dsh-featured 0.1.3 → 0.1.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/lib/client.js CHANGED
@@ -3,8 +3,8 @@
3
3
  // 正式 DSH bundle:向官方插件页 plugins.tab 槽注册「精选插件」tab,
4
4
  // 带搜索栏、标签筛选、申请收录入口与 README 详情弹窗。
5
5
  //
6
- // 与内联版(dsh-plugins-plugin)的关系:
7
- // - 两者用同一个 slot id `dsh-plugins-plugin`,页面只显示一个 tab;
6
+ // 与内联欢迎页(历史集成自带)的关系:
7
+ // - 两者用同一个 slot id(兼容常量,见 apply),页面只显示一个 tab;
8
8
  // - 本插件启动时若发现内联版已注册,先调它的 disposer 注销(GitHub 上挂
9
9
  // window.__DSH_FEATURED_ENTRY__),再注册完整版 —— 干净替换,不靠 priority 遮蔽。
10
10
  // - 内联版保持原样不动(已发布,有人下载);本插件装上后自动接管。
package/lib/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // 按 updated 取最新),5 分钟内存缓存 —— 浏览器侧零外部请求、无缓存/跨域问题。
6
6
  // 2. 已安装表:轮询 pluginManager.listBundles(),给卡片「已安装」徽标。
7
7
  // 3. 聚合路由 GET /dsh-featured/featured:返回 { entries, installed, sources }。
8
- // 4. 内联版让位通道:如果某个接入插件内联了 dsh-plugins-plugin 的极简版,
8
+ // 4. 内联版让位通道:如果某个接入插件内联了极简欢迎页,
9
9
  // 它的 client 会在 window 上挂 __DSH_FEATURED_ENTRY__ = { dispose }。
10
10
  // 本插件 client 启动时先调它注销内联版,再用同一个 slot id 注册完整版,
11
11
  // 因此页面上永远只有一个「精选插件」tab(多插件同时集成也只会有内联一份)。
package/locale/en.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "noMatch": "No plugins match \"{q}\"",
11
11
  "apply": "Submit",
12
12
  "applyTitle": "Submit your plugin",
13
- "applyStep1": "Fork the dsh-plugins-plugin repo and add your plugin to entries in plugins.json, following the existing entry format (package, title, description, version, tags…).",
13
+ "applyStep1": "Fork the skillpie/dsh-plugins repo and add your plugin to entries in the root plugins.json, following the existing entry format (package, title, description, version, tags…).",
14
14
  "applyStep2": "Open a Pull Request. Once merged, your plugin appears in every client that integrates Featured Plugins, with version and icon resolved automatically.",
15
15
  "applyStep3": "You can also file an Issue with the package name and a short description, and a maintainer will add it for you.",
16
16
  "applyExample": "Entry example (copy and edit):",
package/locale/zh.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "noMatch": "没有匹配「{q}」的插件",
11
11
  "apply": "申请收录",
12
12
  "applyTitle": "申请收录插件",
13
- "applyStep1": "Fork 仓库 dsh-plugins-plugin,在 plugins.json 的 entries 里按现有条目格式补充你的插件(包名、标题、简介、版本、标签等)。",
13
+ "applyStep1": "Fork 仓库 skillpie/dsh-plugins,在根目录的 plugins.json 的 entries 里按现有条目格式补充你的插件(包名、标题、简介、版本、标签等)。",
14
14
  "applyStep2": "提交 Pull Request。合并后插件会出现在所有接入「精选插件」的客户端,并自动带上版本与图标。",
15
15
  "applyStep3": "也可以直接在 Issue 里留下包名和简介,由维护者代为收录。",
16
16
  "applyExample": "条目示例(可直接复制修改):",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-featured",
3
- "version": "0.1.3",
4
- "description": "精选推荐:官方插件页「精选推荐」板块的独立完整版。带搜索栏、标签筛选、申请收录入口,数据来自 GitHub 集中维护的 plugins.json;已接入 dsh-plugins-plugin 内联版的插件会自动让位给本插件,界面更新只需发这一个包。",
3
+ "version": "0.1.4",
4
+ "description": "精选插件:官方插件页的精选板块。带搜索栏、标签筛选、申请收录入口,数据来自 GitHub 集中维护的 plugins.json;已接入内联欢迎页的插件会自动让位给本插件,界面更新只需发这一个包。",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "keywords": [