Added: open plugin hompage by click plugin name

This commit is contained in:
Molunerfinn 2018-12-19 15:45:46 +08:00
parent 8ec128121f
commit 5cf96d38b8
3 changed files with 19 additions and 9 deletions

View File

@ -81,7 +81,7 @@
"lowdb": "^1.0.0",
"md5": "^2.2.1",
"melody.css": "^1.0.2",
"picgo": "^1.1.11",
"picgo": "^1.1.12",
"qiniu": "^7.1.1",
"request": "^2.83.0",
"request-promise": "^4.2.2",

View File

@ -22,10 +22,10 @@
class="plugin-item__content"
:class="{ disabled: !item.enabled }"
>
<div class="plugin-item__name">
<div class="plugin-item__name" @click="openHomepage(item.homepage)">
{{ item.name }} <small>{{ ' ' + item.version }}</small>
</div>
<div class="plugin-item__desc">
<div class="plugin-item__desc" :title="item.description">
{{ item.description }}
</div>
<div class="plugin-item__info-bar">
@ -285,6 +285,11 @@ export default {
if (item === 'transformer') {
this.$db.set('picBed.transformer', 'path')
}
},
openHomepage (url) {
if (url) {
this.$electron.remote.shell.openExternal(url)
}
}
},
beforeDestroy () {
@ -332,7 +337,6 @@ export default {
padding 8px
user-select text
transition all .2s ease-in-out
cursor pointer
margin-bottom 10px
&:hover
background #333
@ -357,6 +361,10 @@ export default {
line-height 22px
// font-weight 600
font-weight 600
cursor pointer
transition all .2s ease-in-out
&:hover
color: #1B9EF3
&__desc
font-size 14px
height 21px
@ -376,6 +384,10 @@ export default {
&__config
float right
font-size 16px
cursor pointer
transition all .2s ease-in-out
&:hover
color: #1B9EF3
.config-button
font-size 12px
color #ddd

View File

@ -3061,7 +3061,6 @@ electron@1.8.8:
element-ui@^2.4.11:
version "2.4.11"
resolved "https://registry.yarnpkg.com/element-ui/-/element-ui-2.4.11.tgz#db6a2d37001b8fe5fff9f176fb58bb3908cfa9c9"
integrity sha512-RtgK0t840NAFTajGMWvylzZRSX1EkZ7V4YgAoBxhv4TtkeMscLuk/IdYOzPdlQq6IN0byx1YVBxCX+u4yYkGvw==
dependencies:
async-validator "~1.8.1"
babel-helper-vue-jsx-merge-props "^2.0.0"
@ -6197,10 +6196,9 @@ performance-now@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
picgo@^1.1.11:
version "1.1.11"
resolved "https://registry.yarnpkg.com/picgo/-/picgo-1.1.11.tgz#a79067e37bfab84d557a7dfe51a733a63ccf7d8f"
integrity sha512-J4igRhH3eRHf7MrgV9eLF+nwABCQyfuKQwtRvKkJXyTiDTuhvfpjv4WOBcW5ilqWUAsgwIP/rXaw1mxxQ5bQbQ==
picgo@^1.1.12:
version "1.1.12"
resolved "http://registry.npm.taobao.org/picgo/download/picgo-1.1.12.tgz#264f54f3b8d5712d912fc64c051421da8dad2390"
dependencies:
chalk "^2.4.1"
commander "^2.17.0"