@moonsand/dsh-ui-optimize 0.0.0-stage → 0.8.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/LICENSE +21 -0
- package/README.md +50 -2
- package/README.zh.md +69 -0
- package/client.js +1347 -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."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/zh.json
ADDED
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.8.4",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Two 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) and the desktop Reload/Restart actions at the sidebar foot. · 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
|
}
|