ygc-dsh-plugin-autoupdate 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.js +13 -5
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -899,13 +899,21 @@ function injectStyle() {
899
899
  }
900
900
  };
901
901
 
902
- ctx.slots.inject('sidebar.panellist', () => [
902
+ // 从侧栏面板改为「设置 → 插件自动更新」:
903
+ // 这类后台维护功能没有对话流,放在侧栏占一个常驻图标没必要,
904
+ // 收进设置页与其他插件配置归到一处。settings.section 是「一页一个入口」的注册位。
905
+ ctx.slots.inject('settings.section', () =>
903
906
  ctx.slots.register(
904
- { name: 'sidebar.panellist', id: 'plugin-autoupdate', order: 42, label },
905
- Icon,
907
+ {
908
+ name: 'settings.section',
909
+ id: 'plugin-autoupdate',
910
+ order: 47,
911
+ label,
912
+ icon: 'refresh',
913
+ },
914
+ Panel,
906
915
  ),
907
- ctx.slots.register({ name: 'main', key: 'plugin-autoupdate' }, Panel),
908
- ]);
916
+ );
909
917
  },
910
918
  };
911
919
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ygc-dsh-plugin-autoupdate",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "DSH 插件自动更新器:定时检查已装插件的新版本并按策略升级;把自己的插件特征(清单+本地副本+本机汇总)同步到共享插件库自己那一格,本机标识与会话同步插件共用,并汇集他人清单供人工选用。",
6
6
  "icon": "icon.svg",