dsh-oort-theme-plugin 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.i18n.yaml +37 -0
- package/README.md +82 -2
- package/README.zh.md +83 -0
- package/cordis.patch.yml +3 -0
- package/lib/client.js +1086 -0
- package/lib/index.js +11 -0
- package/package.json +73 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeepSeek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write theme-plugin/README.md
|
|
5
|
+
/:
|
|
6
|
+
en: 284c2f1d20f8450f
|
|
7
|
+
zh: 6eea2682ef3f023a
|
|
8
|
+
/dsh-oort-theme-plugin:
|
|
9
|
+
en: 008ca914d02b6785
|
|
10
|
+
zh: 81738d91fc1743a2
|
|
11
|
+
/dsh-oort-theme-plugin/summary:
|
|
12
|
+
en: cb86b4478c72ea61
|
|
13
|
+
zh: e88f3fc8ed5eccf5
|
|
14
|
+
/dsh-oort-theme-plugin/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: e36dead4f5b39924
|
|
17
|
+
/dsh-oort-theme-plugin/use-this-package:
|
|
18
|
+
en: bbff250eba0f1b89
|
|
19
|
+
zh: be52206a1599204f
|
|
20
|
+
/dsh-oort-theme-plugin/use-this-package/install-a-local-package-archive:
|
|
21
|
+
en: 05f589ba582fc05b
|
|
22
|
+
zh: 3e044b6e19207bf2
|
|
23
|
+
/dsh-oort-theme-plugin/understand-the-implementation:
|
|
24
|
+
en: b3fdbba52a9da811
|
|
25
|
+
zh: 53eda4ee99cce3ac
|
|
26
|
+
/dsh-oort-theme-plugin/further-exploration:
|
|
27
|
+
en: 5a33a44e99fa4a4d
|
|
28
|
+
zh: f8f23a2fd9f92f36
|
|
29
|
+
/dsh-oort-theme-plugin/model-experience:
|
|
30
|
+
en: a9adeafd581db859
|
|
31
|
+
zh: 0a828c3687bae3d3
|
|
32
|
+
/dsh-oort-theme-plugin/known-limitations-and-deferred-work:
|
|
33
|
+
en: a640da147ea7a4f1
|
|
34
|
+
zh: 931c144a8752ab70
|
|
35
|
+
/dsh-oort-theme-plugin/known-limitations-and-deferred-work/dev-note:
|
|
36
|
+
en: e67f633dc6fe7773
|
|
37
|
+
zh: 4f9f026b33f03db6
|
package/README.md
CHANGED
|
@@ -1,3 +1,83 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
description: "Adds an Appearance dialog and image themes to the DSH desktop and Web client."
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
# dsh-oort-theme-plugin
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
This bundle adds an Appearance dialog to the account menu and provides selectable image themes. It uses the host's theme service, so the built-in light, dark, and system modes remain available. Install the bundle in a DSH profile and restart the application to load it.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Use this package](#use-this-package)
|
|
17
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
18
|
+
- [Further Exploration](#further-exploration)
|
|
19
|
+
- [Model Experience](#model-experience)
|
|
20
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
21
|
+
- [Dev Note](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## Use this package
|
|
27
|
+
|
|
28
|
+
### Install a local package archive
|
|
29
|
+
|
|
30
|
+
Build and pack this directory from the repository checkout:
|
|
31
|
+
|
|
32
|
+
```powershell
|
|
33
|
+
cd theme-plugin
|
|
34
|
+
npm pack
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
After opening and fully quitting Desktop once, install the archive with the Desktop-installed `dsh` command, then reopen Desktop:
|
|
38
|
+
|
|
39
|
+
```powershell
|
|
40
|
+
dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.0.tgz
|
|
41
|
+
```
|
|
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>`.
|
|
44
|
+
|
|
45
|
+
-----
|
|
46
|
+
|
|
47
|
+
<a id="understand-the-implementation"></a>
|
|
48
|
+
## Understand the implementation
|
|
49
|
+
|
|
50
|
+
<details>
|
|
51
|
+
<summary>Implementation internals — click to expand</summary>
|
|
52
|
+
|
|
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
|
+
|
|
55
|
+
</details>
|
|
56
|
+
|
|
57
|
+
-----
|
|
58
|
+
|
|
59
|
+
<a id="further-exploration"></a>
|
|
60
|
+
## Further Exploration
|
|
61
|
+
|
|
62
|
+
See the [Desktop plugin installation guide](../apps/desktop/README.md) and the [profile bundle model](../docs/architecture.md).
|
|
63
|
+
|
|
64
|
+
-----
|
|
65
|
+
|
|
66
|
+
<a id="model-experience"></a>
|
|
67
|
+
## Model Experience
|
|
68
|
+
|
|
69
|
+
This bundle changes the interface only. It does not add model-visible input or tools.
|
|
70
|
+
|
|
71
|
+
## Known Limitations and Deferred Work
|
|
72
|
+
|
|
73
|
+
The host must provide the Appearance menu action and theme service used by this package. Publishing a new package version does not automatically update an installed Desktop profile.
|
|
74
|
+
|
|
75
|
+
<a id="dev-note"></a>
|
|
76
|
+
### Dev Note
|
|
77
|
+
|
|
78
|
+
<details>
|
|
79
|
+
<summary>Working context for maintainers — click to expand</summary>
|
|
80
|
+
|
|
81
|
+
None.
|
|
82
|
+
|
|
83
|
+
</details>
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "为 DSH 桌面版和 Web 客户端提供外观弹框与图片主题。"
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# dsh-oort-theme-plugin
|
|
7
|
+
|
|
8
|
+
[English](README.md) | 中文
|
|
9
|
+
|
|
10
|
+
## 概述
|
|
11
|
+
|
|
12
|
+
此扩展包在账号菜单中提供「外观」弹框和可选图片主题。弹框使用宿主的主题服务,内置浅色、深色和跟随系统模式仍由宿主提供。将扩展包安装到 DSH 配置后,重启应用即可加载。
|
|
13
|
+
|
|
14
|
+
## 目录
|
|
15
|
+
|
|
16
|
+
- [使用此扩展包](#use-this-package)
|
|
17
|
+
- [实现方式](#understand-the-implementation)
|
|
18
|
+
- [延伸阅读](#further-exploration)
|
|
19
|
+
- [模型体验](#model-experience)
|
|
20
|
+
- [已知限制](#known-limitations-and-deferred-work)
|
|
21
|
+
- [开发备注](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## 使用此扩展包
|
|
27
|
+
|
|
28
|
+
### 安装本地压缩包
|
|
29
|
+
|
|
30
|
+
在仓库检出目录构建并打包:
|
|
31
|
+
|
|
32
|
+
```powershell
|
|
33
|
+
cd theme-plugin
|
|
34
|
+
npm pack
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
先打开一次桌面版并完全退出,再使用桌面版安装的 `dsh` 命令安装压缩包,然后重新打开桌面版:
|
|
38
|
+
|
|
39
|
+
```powershell
|
|
40
|
+
dsh plugin --profile desktop add C:\path\to\dsh-oort-theme-plugin-0.1.0.tgz
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
点击左下角账号头像展开菜单,即可找到「外观」。Web 配置也可用 `dsh plugin --profile web add <压缩包路径>` 安装同一压缩包。
|
|
44
|
+
|
|
45
|
+
-----
|
|
46
|
+
|
|
47
|
+
<a id="understand-the-implementation"></a>
|
|
48
|
+
## 实现方式
|
|
49
|
+
|
|
50
|
+
<details>
|
|
51
|
+
<summary>实现细节——点击展开</summary>
|
|
52
|
+
|
|
53
|
+
扩展包补丁插入一条 Host 配置。浏览器入口通过宿主的主题与槽位服务注册主题选项和弹框。构建时,图片资源被嵌入 `lib/client.js`。
|
|
54
|
+
|
|
55
|
+
</details>
|
|
56
|
+
|
|
57
|
+
-----
|
|
58
|
+
|
|
59
|
+
<a id="further-exploration"></a>
|
|
60
|
+
## 延伸阅读
|
|
61
|
+
|
|
62
|
+
参见[桌面插件安装说明](../apps/desktop/README.zh.md)和[配置扩展包机制](../docs/architecture.zh.md)。
|
|
63
|
+
|
|
64
|
+
-----
|
|
65
|
+
|
|
66
|
+
<a id="model-experience"></a>
|
|
67
|
+
## 模型体验
|
|
68
|
+
|
|
69
|
+
此扩展包只改变界面,不增加模型可见输入或工具。
|
|
70
|
+
|
|
71
|
+
## 已知限制
|
|
72
|
+
|
|
73
|
+
宿主必须提供此扩展包使用的「外观」菜单操作和主题服务。发布新版本不会自动更新已安装的桌面配置。
|
|
74
|
+
|
|
75
|
+
<a id="dev-note"></a>
|
|
76
|
+
### 开发备注
|
|
77
|
+
|
|
78
|
+
<details>
|
|
79
|
+
<summary>维护者工作记录——点击展开</summary>
|
|
80
|
+
|
|
81
|
+
无。
|
|
82
|
+
|
|
83
|
+
</details>
|
package/cordis.patch.yml
ADDED