mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
Added: open plugin hompage by click plugin name
This commit is contained in:
parent
8ec128121f
commit
5cf96d38b8
@ -81,7 +81,7 @@
|
|||||||
"lowdb": "^1.0.0",
|
"lowdb": "^1.0.0",
|
||||||
"md5": "^2.2.1",
|
"md5": "^2.2.1",
|
||||||
"melody.css": "^1.0.2",
|
"melody.css": "^1.0.2",
|
||||||
"picgo": "^1.1.11",
|
"picgo": "^1.1.12",
|
||||||
"qiniu": "^7.1.1",
|
"qiniu": "^7.1.1",
|
||||||
"request": "^2.83.0",
|
"request": "^2.83.0",
|
||||||
"request-promise": "^4.2.2",
|
"request-promise": "^4.2.2",
|
||||||
|
@ -22,10 +22,10 @@
|
|||||||
class="plugin-item__content"
|
class="plugin-item__content"
|
||||||
:class="{ disabled: !item.enabled }"
|
:class="{ disabled: !item.enabled }"
|
||||||
>
|
>
|
||||||
<div class="plugin-item__name">
|
<div class="plugin-item__name" @click="openHomepage(item.homepage)">
|
||||||
{{ item.name }} <small>{{ ' ' + item.version }}</small>
|
{{ item.name }} <small>{{ ' ' + item.version }}</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="plugin-item__desc">
|
<div class="plugin-item__desc" :title="item.description">
|
||||||
{{ item.description }}
|
{{ item.description }}
|
||||||
</div>
|
</div>
|
||||||
<div class="plugin-item__info-bar">
|
<div class="plugin-item__info-bar">
|
||||||
@ -285,6 +285,11 @@ export default {
|
|||||||
if (item === 'transformer') {
|
if (item === 'transformer') {
|
||||||
this.$db.set('picBed.transformer', 'path')
|
this.$db.set('picBed.transformer', 'path')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
openHomepage (url) {
|
||||||
|
if (url) {
|
||||||
|
this.$electron.remote.shell.openExternal(url)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
@ -332,7 +337,6 @@ export default {
|
|||||||
padding 8px
|
padding 8px
|
||||||
user-select text
|
user-select text
|
||||||
transition all .2s ease-in-out
|
transition all .2s ease-in-out
|
||||||
cursor pointer
|
|
||||||
margin-bottom 10px
|
margin-bottom 10px
|
||||||
&:hover
|
&:hover
|
||||||
background #333
|
background #333
|
||||||
@ -357,6 +361,10 @@ export default {
|
|||||||
line-height 22px
|
line-height 22px
|
||||||
// font-weight 600
|
// font-weight 600
|
||||||
font-weight 600
|
font-weight 600
|
||||||
|
cursor pointer
|
||||||
|
transition all .2s ease-in-out
|
||||||
|
&:hover
|
||||||
|
color: #1B9EF3
|
||||||
&__desc
|
&__desc
|
||||||
font-size 14px
|
font-size 14px
|
||||||
height 21px
|
height 21px
|
||||||
@ -376,6 +384,10 @@ export default {
|
|||||||
&__config
|
&__config
|
||||||
float right
|
float right
|
||||||
font-size 16px
|
font-size 16px
|
||||||
|
cursor pointer
|
||||||
|
transition all .2s ease-in-out
|
||||||
|
&:hover
|
||||||
|
color: #1B9EF3
|
||||||
.config-button
|
.config-button
|
||||||
font-size 12px
|
font-size 12px
|
||||||
color #ddd
|
color #ddd
|
||||||
|
@ -3061,7 +3061,6 @@ electron@1.8.8:
|
|||||||
element-ui@^2.4.11:
|
element-ui@^2.4.11:
|
||||||
version "2.4.11"
|
version "2.4.11"
|
||||||
resolved "https://registry.yarnpkg.com/element-ui/-/element-ui-2.4.11.tgz#db6a2d37001b8fe5fff9f176fb58bb3908cfa9c9"
|
resolved "https://registry.yarnpkg.com/element-ui/-/element-ui-2.4.11.tgz#db6a2d37001b8fe5fff9f176fb58bb3908cfa9c9"
|
||||||
integrity sha512-RtgK0t840NAFTajGMWvylzZRSX1EkZ7V4YgAoBxhv4TtkeMscLuk/IdYOzPdlQq6IN0byx1YVBxCX+u4yYkGvw==
|
|
||||||
dependencies:
|
dependencies:
|
||||||
async-validator "~1.8.1"
|
async-validator "~1.8.1"
|
||||||
babel-helper-vue-jsx-merge-props "^2.0.0"
|
babel-helper-vue-jsx-merge-props "^2.0.0"
|
||||||
@ -6197,10 +6196,9 @@ performance-now@^2.1.0:
|
|||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
|
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
|
||||||
|
|
||||||
picgo@^1.1.11:
|
picgo@^1.1.12:
|
||||||
version "1.1.11"
|
version "1.1.12"
|
||||||
resolved "https://registry.yarnpkg.com/picgo/-/picgo-1.1.11.tgz#a79067e37bfab84d557a7dfe51a733a63ccf7d8f"
|
resolved "http://registry.npm.taobao.org/picgo/download/picgo-1.1.12.tgz#264f54f3b8d5712d912fc64c051421da8dad2390"
|
||||||
integrity sha512-J4igRhH3eRHf7MrgV9eLF+nwABCQyfuKQwtRvKkJXyTiDTuhvfpjv4WOBcW5ilqWUAsgwIP/rXaw1mxxQ5bQbQ==
|
|
||||||
dependencies:
|
dependencies:
|
||||||
chalk "^2.4.1"
|
chalk "^2.4.1"
|
||||||
commander "^2.17.0"
|
commander "^2.17.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user