dsh-oort-theme-plugin 0.1.0 → 0.1.1
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/README.i18n.yaml +6 -6
- package/README.md +6 -4
- package/README.zh.md +6 -4
- package/lib/client.js +228 -59
- package/package.json +1 -1
package/README.i18n.yaml
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
en: bbff250eba0f1b89
|
|
19
19
|
zh: be52206a1599204f
|
|
20
20
|
/dsh-oort-theme-plugin/use-this-package/install-a-local-package-archive:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: a102bf63bc785773
|
|
22
|
+
zh: 5fbfadb8a07e0795
|
|
23
23
|
/dsh-oort-theme-plugin/understand-the-implementation:
|
|
24
|
-
en:
|
|
25
|
-
zh:
|
|
24
|
+
en: 659711f8bef2f20d
|
|
25
|
+
zh: 0c6cfc4923914973
|
|
26
26
|
/dsh-oort-theme-plugin/further-exploration:
|
|
27
27
|
en: 5a33a44e99fa4a4d
|
|
28
28
|
zh: f8f23a2fd9f92f36
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
en: a9adeafd581db859
|
|
31
31
|
zh: 0a828c3687bae3d3
|
|
32
32
|
/dsh-oort-theme-plugin/known-limitations-and-deferred-work:
|
|
33
|
-
en:
|
|
34
|
-
zh:
|
|
33
|
+
en: bfeea25d6565e8c4
|
|
34
|
+
zh: e59a722d24fd9b55
|
|
35
35
|
/dsh-oort-theme-plugin/known-limitations-and-deferred-work/dev-note:
|
|
36
36
|
en: e67f633dc6fe7773
|
|
37
37
|
zh: 4f9f026b33f03db6
|
package/README.md
CHANGED
|
@@ -34,13 +34,13 @@ cd theme-plugin
|
|
|
34
34
|
npm pack
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Desktop includes version `0.1.0` as an offline fallback and checks npm for newer versions at startup. To install this archive manually, fully quit Desktop and run:
|
|
38
38
|
|
|
39
39
|
```powershell
|
|
40
|
-
dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.
|
|
40
|
+
dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.1.tgz
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
The Appearance entry is in the menu opened from the account avatar at the lower left. The Web profile accepts the same archive through `dsh plugin --profile web add <archive>`.
|
|
43
|
+
Reopen Desktop to use a manual installation. The Appearance entry is in the menu opened from the account avatar at the lower left. The Web profile accepts the same archive through `dsh plugin --profile web add <archive>`.
|
|
44
44
|
|
|
45
45
|
-----
|
|
46
46
|
|
|
@@ -52,6 +52,8 @@ The Appearance entry is in the menu opened from the account avatar at the lower
|
|
|
52
52
|
|
|
53
53
|
The bundle patch inserts one Host row. The package's browser entry registers the theme options and dialog through the host's theme and slot services. Image assets are embedded in `lib/client.js` during the package build.
|
|
54
54
|
|
|
55
|
+
Version `0.1.1` adds Spring, Autumn leaves, Winter snow, Lavender, and Chinese ink backgrounds. Their photos come from Pixabay: [Spring](https://pixabay.com/photos/tree-276014/), [Autumn](https://pixabay.com/photos/forest-8371211/), [Winter](https://pixabay.com/photos/trees-4830285/), [Lavender](https://pixabay.com/photos/sunset-1373171/), and [Chinese ink](https://pixabay.com/photos/mountain-6815304/). The photos follow the [Pixabay Content License](https://pixabay.com/service/license-summary/); the theme palette and preview are defined in this package.
|
|
56
|
+
|
|
55
57
|
</details>
|
|
56
58
|
|
|
57
59
|
-----
|
|
@@ -70,7 +72,7 @@ This bundle changes the interface only. It does not add model-visible input or t
|
|
|
70
72
|
|
|
71
73
|
## Known Limitations and Deferred Work
|
|
72
74
|
|
|
73
|
-
The host must provide the Appearance menu action and theme service used by this package.
|
|
75
|
+
The host must provide the Appearance menu action and theme service used by this package. Desktop checks npm for newer versions at startup; other profiles retain their installed version until updated explicitly.
|
|
74
76
|
|
|
75
77
|
<a id="dev-note"></a>
|
|
76
78
|
### Dev Note
|
package/README.zh.md
CHANGED
|
@@ -34,13 +34,13 @@ cd theme-plugin
|
|
|
34
34
|
npm pack
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
桌面版以 `0.1.0` 作为离线兜底,启动时检查 npm 是否有更新。若需手动安装此压缩包,先完全退出桌面版,再运行:
|
|
38
38
|
|
|
39
39
|
```powershell
|
|
40
|
-
dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.
|
|
40
|
+
dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.1.tgz
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
手动安装后重新打开桌面版。点击左下角账号头像展开菜单,即可找到「外观」。Web 配置也可用 `dsh plugin --profile web add <压缩包路径>` 安装同一压缩包。
|
|
44
44
|
|
|
45
45
|
-----
|
|
46
46
|
|
|
@@ -52,6 +52,8 @@ dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.0.tgz
|
|
|
52
52
|
|
|
53
53
|
扩展包补丁插入一条 Host 配置。浏览器入口通过宿主的主题与槽位服务注册主题选项和弹框。构建时,图片资源被嵌入 `lib/client.js`。
|
|
54
54
|
|
|
55
|
+
`0.1.1` 新增春日、秋叶、冬雪、紫罗兰、中国风五套背景。照片来自 Pixabay:[春日](https://pixabay.com/photos/tree-276014/)、[秋叶](https://pixabay.com/photos/forest-8371211/)、[冬雪](https://pixabay.com/photos/trees-4830285/)、[紫罗兰](https://pixabay.com/photos/sunset-1373171/)及[中国风](https://pixabay.com/photos/mountain-6815304/)。照片适用 [Pixabay 内容许可](https://pixabay.com/service/license-summary/);本插件负责配色与预览。
|
|
56
|
+
|
|
55
57
|
</details>
|
|
56
58
|
|
|
57
59
|
-----
|
|
@@ -70,7 +72,7 @@ dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.0.tgz
|
|
|
70
72
|
|
|
71
73
|
## 已知限制
|
|
72
74
|
|
|
73
|
-
|
|
75
|
+
宿主必须提供此扩展包使用的「外观」菜单操作和主题服务。桌面版启动时检查 npm 新版本;其他配置需显式更新已安装版本。
|
|
74
76
|
|
|
75
77
|
<a id="dev-note"></a>
|
|
76
78
|
### 开发备注
|