@dsh-plugins/dsh-museav-assets 0.1.8 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.0](https://github.com/webkubor/dsh-museav-assets/compare/v0.1.8...v0.2.0) (2026-11-05)
4
+
5
+
6
+ ### ✨ Features
7
+
8
+ * **meta:** 补齐插件管理器标题、简介与图标;样式随插件停用移除 ([6e375cb](https://github.com/webkubor/dsh-museav-assets/commit/6e375cbade47f888602cd732206f6f74827c58ac))
9
+
3
10
  ## [0.1.8](https://github.com/webkubor/dsh-museav-assets/compare/v0.1.7...v0.1.8) (2026-10-25)
4
11
 
5
12
 
package/icon.svg ADDED
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
2
+ <defs>
3
+ <linearGradient id="museav-bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#6d5a8c"/>
5
+ <stop offset="1" stop-color="#3f4f7a"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect width="64" height="64" rx="14" fill="url(#museav-bg)"/>
9
+ <rect x="19" y="13" width="32" height="26" rx="4" fill="#fff" opacity=".35"/>
10
+ <rect x="13" y="21" width="34" height="30" rx="4" fill="#fff"/>
11
+ <circle cx="22.5" cy="30" r="3.5" fill="#f0b26b"/>
12
+ <path d="M16 47l9.5-10.5 6 6.5 4.5-4.5 8 8.5z" fill="#6d5a8c"/>
13
+ </svg>
package/lib/client.js CHANGED
@@ -1131,7 +1131,11 @@ window.__ModuleLoader__.load({
1131
1131
  const inject = ['slots', 'locale']
1132
1132
 
1133
1133
  function apply (ctx) {
1134
- ensureStyle()
1134
+ // 样式标签由 ensureStyle 懒插入;挂在 effect 上,插件停用/卸载时一并移除,不留残留。
1135
+ ctx.effect(() => {
1136
+ ensureStyle()
1137
+ return () => { document.getElementById('dsh-museav-assets-style')?.remove() }
1138
+ }, 'dsh-museav-assets: styles')
1135
1139
  ctx.effect(() => ctx.locale.register(NS, LOCALES), 'dsh-museav-assets: dictionaries')
1136
1140
  const t = ctx.locale.bind(NS)
1137
1141
 
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "MUSE AV Assets",
4
+ "description": "Adds an Assets tab to browse MUSE AV libraries and recent renders by project; click to copy a direct link."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "MUSE AV 资产台",
4
+ "description": "在主区加一个「资产」tab,按项目看素材库与最近出图,点素材复制直链当垫图。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plugins/dsh-museav-assets",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "MUSE AV 资产台:在 DSH 主区加一个「资产」tab,按项目(工作区)看素材库与最近出图,点素材复制直链当垫图用。基于本机 museav CLI,不碰任何密钥。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16,7 +16,9 @@
16
16
  },
17
17
  "./package.json": {
18
18
  "default": "./package.json"
19
- }
19
+ },
20
+ "./locale/*.json": "./locale/*.json",
21
+ "./icon": "./icon.svg"
20
22
  },
21
23
  "dsh": {
22
24
  "bundle": {
@@ -31,7 +33,7 @@
31
33
  }
32
34
  },
33
35
  "scripts": {
34
- "prepublishOnly": "npm run check && npm test && node scripts/prepublish-gate.mjs && node scripts/readme-gate.mjs",
36
+ "prepublishOnly": "npm run check && npm test && node scripts/prepublish-gate.mjs && node scripts/readme-gate.mjs && node scripts/version-sync-gate.mjs",
35
37
  "check": "for f in lib/*.js; do node --check \"$f\" || exit 1; done",
36
38
  "test": "node --test test/*.test.mjs",
37
39
  "deploy": "rsync -av --delete lib/ ~/.dsh/profiles/${DSH_PROFILE:-desktop}/node_modules/@dsh-plugins/dsh-museav-assets/lib/ && rsync -av types package.json cordis.patch.yml README.md README.en.md LICENSE ~/.dsh/profiles/${DSH_PROFILE:-desktop}/node_modules/@dsh-plugins/dsh-museav-assets/"
@@ -63,6 +65,8 @@
63
65
  "README.en.md",
64
66
  "cordis.patch.yml",
65
67
  "lib",
66
- "types"
68
+ "types",
69
+ "locale/*.json",
70
+ "icon.svg"
67
71
  ]
68
72
  }