mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-02 11:08:13 -05:00
Fixed: some bugs
This commit is contained in:
parent
c149211def
commit
ea5b937c93
@ -50,6 +50,7 @@ const handleGetPluginList = (ipcMain, STORE_PATH, CONFIG_PATH) => {
|
|||||||
author: pluginPKG.author.name || pluginPKG.author,
|
author: pluginPKG.author.name || pluginPKG.author,
|
||||||
description: pluginPKG.description,
|
description: pluginPKG.description,
|
||||||
logo: 'file://' + path.join(pluginPath, 'logo.png').split(path.sep).join('/'),
|
logo: 'file://' + path.join(pluginPath, 'logo.png').split(path.sep).join('/'),
|
||||||
|
version: pluginPKG.version,
|
||||||
config: {
|
config: {
|
||||||
plugin: {
|
plugin: {
|
||||||
name: pluginList[i].replace(/picgo-plugin-/, ''),
|
name: pluginList[i].replace(/picgo-plugin-/, ''),
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
>
|
>
|
||||||
<div class="plugin-item__content">
|
<div class="plugin-item__content">
|
||||||
<div class="plugin-item__name">
|
<div class="plugin-item__name">
|
||||||
{{ item.name }}
|
{{ item.name }} <small>{{ ' ' + item.version }}</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="plugin-item__desc">
|
<div class="plugin-item__desc">
|
||||||
{{ item.description }}
|
{{ item.description }}
|
||||||
@ -254,6 +254,7 @@ export default {
|
|||||||
config: {},
|
config: {},
|
||||||
homepage: item.package.links ? item.package.links.homepage : '',
|
homepage: item.package.links ? item.package.links.homepage : '',
|
||||||
hasInstall: this.pluginNameList.some(plugin => plugin === item.package.name.replace(/picgo-plugin-/, '')),
|
hasInstall: this.pluginNameList.some(plugin => plugin === item.package.name.replace(/picgo-plugin-/, '')),
|
||||||
|
version: item.package.version,
|
||||||
installing: false,
|
installing: false,
|
||||||
reload: false
|
reload: false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user