no message
Former-commit-id: 3dcc74018824d2caaf994c62f0b9c72baef018af Former-commit-id: c719ef34b4582e4567850f547a73afe6175e88b8 Former-commit-id: 3895be9bd500ea94bfb72a2764de6f8f9492210d
This commit is contained in:
@@ -101,8 +101,10 @@ $baidupanHeight: 30px;
|
|||||||
border: 1px solid #dfe2e5;
|
border: 1px solid #dfe2e5;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
float: left;
|
float: left;
|
||||||
user-select: none;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
border: 1px solid $color-primary;
|
||||||
|
}
|
||||||
.icon {
|
.icon {
|
||||||
float: left;
|
float: left;
|
||||||
height: $baidupanHeight;
|
height: $baidupanHeight;
|
||||||
@@ -118,6 +120,12 @@ $baidupanHeight: 30px;
|
|||||||
height: $baidupanHeight;
|
height: $baidupanHeight;
|
||||||
line-height: $baidupanHeight;
|
line-height: $baidupanHeight;
|
||||||
}
|
}
|
||||||
|
.pwd {
|
||||||
|
float: left;
|
||||||
|
height: $baidupanHeight;
|
||||||
|
line-height: $baidupanHeight;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -15,13 +15,18 @@ export default (quote) => {
|
|||||||
const url = _quote.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i)
|
const url = _quote.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i)
|
||||||
const pwd = _quote.match(/[a-z0-9]{4}$/i)
|
const pwd = _quote.match(/[a-z0-9]{4}$/i)
|
||||||
return `<div class="baidupan">
|
return `<div class="baidupan">
|
||||||
<a href="${_quote}" class="container">
|
<div class="container">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<img src="/static/image/baidu-pan-logo.png">
|
<img src="/static/image/baidu-pan-logo.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="url">${url[0]}</div>
|
<div class="url">
|
||||||
<div class="pwd">${pwd[0]}</div>
|
<a href="${url[0]}">${url[0]}</a>
|
||||||
</a>
|
</div>
|
||||||
|
<div class="pwd">
|
||||||
|
密码
|
||||||
|
<span>${pwd[0]}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>`
|
</div>`
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user