@moonsand/dsh-ui-optimize 0.0.0-stage → 0.9.26
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.md +61 -2
- package/README.zh.md +81 -0
- package/client.js +1906 -0
- package/cordis.patch.yml +3 -0
- package/desktop-restart.host.js +808 -0
- package/icon.svg +8 -0
- package/index.js +25 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +50 -3
package/icon.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="dsh-ui-optimize">
|
|
2
|
+
<rect x="4" y="4" width="56" height="56" rx="16" fill="#1F2430"/>
|
|
3
|
+
<path d="M32 14a10 10 0 0 0-10 10c0 7 10 17 10 17s10-10 10-17a10 10 0 0 0-10-10Z" fill="#4E6EF2"/>
|
|
4
|
+
<circle cx="32" cy="24" r="3.4" fill="#F3F5FA"/>
|
|
5
|
+
<circle cx="18" cy="47" r="5" fill="#7E95FF"/>
|
|
6
|
+
<circle cx="32" cy="47" r="5" fill="#F3F5FA"/>
|
|
7
|
+
<circle cx="46" cy="47" r="5" fill="#333844" stroke="#7E95FF" stroke-width="2"/>
|
|
8
|
+
</svg>
|
package/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host half of @moonsand/dsh-ui-optimize.
|
|
3
|
+
*
|
|
4
|
+
* Two responsibilities:
|
|
5
|
+
*
|
|
6
|
+
* 1. The theme gallery is entirely a browser-side feature (see `client.js`);
|
|
7
|
+
* this row exists so the bundle has a Host entry of its own.
|
|
8
|
+
* 2. The desktop Reload/Restart endpoints, ported from
|
|
9
|
+
* `@moonsand/dsh-desktop-restart`. That code lives byte-identical in
|
|
10
|
+
* `./desktop-restart.host.js` — the Windows process-management rules in its
|
|
11
|
+
* header were measured on this machine and are not worth retyping.
|
|
12
|
+
*
|
|
13
|
+
* The ported routes deliberately keep the original `/desktop-restart` prefix, so
|
|
14
|
+
* the standalone plugin must stay uninstalled: a second registration of the same
|
|
15
|
+
* route path throws.
|
|
16
|
+
*/
|
|
17
|
+
import { apply as applyDesktopActions } from './desktop-restart.host.js'
|
|
18
|
+
|
|
19
|
+
/** The desktop endpoints need the web carrier. A profile without a web server has
|
|
20
|
+
* no web UI to theme either, so making it a hard dependency costs nothing real. */
|
|
21
|
+
export const inject = ['webServer']
|
|
22
|
+
|
|
23
|
+
export function apply(ctx) {
|
|
24
|
+
applyDesktopActions(ctx)
|
|
25
|
+
}
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "dsh-ui-optimize",
|
|
4
|
+
"description": "Minimalist theme gallery for the DSH interface: pick one card in Settings and the whole UI re-colours at once — no per-token tuning. Eight themes — Celadon, Linen, Cream, Graphite, Indigo, Slate, Sage, Rose — each define one palette for light and one for dark and follow the Appearance setting automatically. Choosing Default restores the original look. Colours travel only through the theme token layer, so an upstream redesign cannot break the layout or the plugin. The same page also folds the sidebar panel rows into one Panels entry that opens a two-column launcher with search and keyboard control, and adds the desktop Reload/Restart buttons at the sidebar foot — each feature has its own switch."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/zh.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "dsh-ui-optimize",
|
|
4
|
+
"description": "给 DSH 界面换主题的极简插件:设置页里只有一排主题卡片,点一下整套界面配色跟着换,不必逐个去调颜色。内置 8 套主题——青瓷、亚麻、奶油、石墨、靛蓝、雾蓝、苔绿、玫瑰,每套为浅色与深色各定义一组配色、切换外观时自动跟随;选「默认」即恢复原生外观。配色只走主题变量层、不注入结构性样式,上游改版不会把界面弄坏。同一页里还能把侧栏面板行收成一个「面板」入口(点开是两列启动面板,带搜索与键盘操作),并在侧栏底部加上刷新/重启按钮——三个功能各有独立开关。"
|
|
5
|
+
}
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonsand/dsh-ui-optimize",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.9.26",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Three features for the DSH web interface, each with its own switch: a minimalist theme gallery (eight themes, one palette for light and one for dark), the desktop Reload/Restart actions at the sidebar foot, and folding the sidebar panel rows into one Panels launcher. · DSH 界面优化:8 套极简主题(浅色与深色各一组配色)+ 侧栏底部的刷新/重启按钮 + 侧栏面板收成一个「面板」入口,三个功能各有独立开关。",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "MoonSand",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/MoonSand/dsh-ui-optimize.git"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/MoonSand/dsh-ui-optimize#readme",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"dsh",
|
|
18
|
+
"dsh-plugin",
|
|
19
|
+
"deepseek-harness",
|
|
20
|
+
"theme",
|
|
21
|
+
"electron",
|
|
22
|
+
"restart"
|
|
23
|
+
],
|
|
24
|
+
"exports": {
|
|
25
|
+
".": "./index.js",
|
|
26
|
+
"./client": "./client.js",
|
|
27
|
+
"./locale/*.json": "./locale/*.json",
|
|
28
|
+
"./icon": "./icon.svg"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"index.js",
|
|
32
|
+
"client.js",
|
|
33
|
+
"desktop-restart.host.js",
|
|
34
|
+
"cordis.patch.yml",
|
|
35
|
+
"locale/*.json",
|
|
36
|
+
"icon.svg"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"dsh": ">=0.2.1-rc.3"
|
|
40
|
+
},
|
|
41
|
+
"dsh": {
|
|
42
|
+
"bundle": {
|
|
43
|
+
"patch": "./cordis.patch.yml"
|
|
44
|
+
},
|
|
45
|
+
"client": {
|
|
46
|
+
"platform": "web",
|
|
47
|
+
"immediately": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"test": "node scripts/smoke.mjs"
|
|
52
|
+
}
|
|
6
53
|
}
|