dsh-pocket 1.0.3 → 1.0.4

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.
package/client/client.js CHANGED
@@ -1413,13 +1413,13 @@ function apply(ctx) {
1413
1413
  mobileApply(ctx);
1414
1414
  const rpcCall = (endpoint, payload, signal) => ctx.connection.rpc.call(POCKET_RPC_CHANNEL, endpoint, payload, signal);
1415
1415
  ctx.slots.inject(
1416
- "settings.plugins.tab",
1416
+ "settings.section",
1417
1417
  () => ctx.slots.register(
1418
1418
  {
1419
- name: "settings.plugins.tab",
1419
+ name: "settings.section",
1420
1420
  id: "pocket",
1421
- order: 10,
1422
- label: "\u624B\u673A\u8BBF\u95EE",
1421
+ order: 1,
1422
+ label: () => "\u624B\u673A\u8BBF\u95EE",
1423
1423
  inject: () => ({ rpcCall })
1424
1424
  },
1425
1425
  PocketSettingsTab
package/client/index.jsx CHANGED
@@ -188,13 +188,14 @@ export function apply(ctx) {
188
188
  const rpcCall = (endpoint, payload, signal) =>
189
189
  ctx.connection.rpc.call(POCKET_RPC_CHANNEL, endpoint, payload, signal);
190
190
 
191
- ctx.slots.inject('settings.plugins.tab', () =>
191
+ // 设置一级入口(与 通用设置/模型/插件 同级,order 1 = 通用之后、最外层)
192
+ ctx.slots.inject('settings.section', () =>
192
193
  ctx.slots.register(
193
194
  {
194
- name: 'settings.plugins.tab',
195
+ name: 'settings.section',
195
196
  id: 'pocket',
196
- order: 10,
197
- label: '手机访问',
197
+ order: 1,
198
+ label: () => '手机访问',
198
199
  inject: () => ({ rpcCall }),
199
200
  },
200
201
  PocketSettingsTab,
package/package.json CHANGED
@@ -77,5 +77,5 @@
77
77
  "access": "public",
78
78
  "registry": "https://registry.npmjs.org/"
79
79
  },
80
- "version": "1.0.3"
80
+ "version": "1.0.4"
81
81
  }