dsh-theme-mineradio 0.1.0 → 2.0.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/LICENSE +21 -0
- package/README.md +59 -90
- package/README.zh.md +59 -0
- package/cordis.patch.yml +10 -6
- package/lib/client.js +4433 -0
- package/lib/index.js +5 -19
- package/lib/invariant.js +12 -0
- package/lib/types/client/index.d.ts +10 -0
- package/lib/types/index.d.ts +7 -0
- package/lib/types/invariant.d.ts +12 -0
- package/package.json +87 -59
- package/dist/client.cjs +0 -88
- package/dist/index.cjs +0 -79
- package/lib/index.d.ts +0 -18
- package/lib/theme.d.ts +0 -31
- package/lib/theme.js +0 -44
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 John Wu
|
|
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.md
CHANGED
|
@@ -1,90 +1,59 @@
|
|
|
1
|
-
# dsh-theme-mineradio
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
##
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## 安装进 dsh web
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
# 1. 构建(见上)
|
|
66
|
-
# 2. 安装进 web profile(用本包的绝对路径)
|
|
67
|
-
dsh plugin --profile web add "file:<本包绝对路径>"
|
|
68
|
-
|
|
69
|
-
# 3. 确保 $DSH_HOME/profiles/web/cordis.patch.yml 里有这一段
|
|
70
|
-
# (dsh plugin add 通常会自动写入;手动装则贴 cordis.patch.yml 内容)
|
|
71
|
-
# - insert:
|
|
72
|
-
# - id: dsh-theme-mineradio
|
|
73
|
-
# name: 'dsh-theme-mineradio'
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
重启 `dsh web`,打开「设置 → 外观 / 主题」,选择 **mineradio**,即可看到暗色玻璃 + 青金光晕漂移动态背景。
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## 调优与排错
|
|
81
|
-
|
|
82
|
-
- **光晕没透出来?** 多半是 `--dsw-alias-bg-*` 的令牌名与 dsh 实际不一致。打开 dsh 随包分发的 `dsh-client-ui-theme` README 核对真实令牌名(例如底色可能叫 `--dsw-alias-canvas` / `--dsw-alias-surface` 等),在 `src/theme.ts` 改成对的名字即可。未知令牌名 dsh 会直接忽略、不报错。
|
|
83
|
-
- **文字看不清?** 保持 `--dsw-alias-bg-layer-2`(面板)接近不透明(已设为 `rgba(14,16,20,0.92)`)。这是壁纸皮肤插件 `dsh-skin-alphacoders` 实测出来的坑:全表面半透明会让文字糊掉。
|
|
84
|
-
- **想让用户调动画 / 选配色并持久化?** 浏览器侧走 `api-proxy` 会被 settings 白名单拦下。需要在 **Host 半**用 `ctx.settings.register('ui-mineradio', schema)` 持有 owner scope,再用 `ctx.webServer.register({ kind:'prefix', path:'/mineradio', handler })` 给浏览器侧开同源读写通道(参考 `dsh-skin-alphacoders`)。
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## 许可证
|
|
89
|
-
|
|
90
|
-
MIT。视觉风格参考自 Mineradio,原作者保留其界面视觉设计的著作权。
|
|
1
|
+
# dsh-theme-mineradio
|
|
2
|
+
[](https://awesome-dsh-plugin.com)
|
|
3
|
+
|
|
4
|
+
English | [中文](README.zh.md)
|
|
5
|
+
|
|
6
|
+
**Mineradio** is a cinematic glassmorphism theme for the DeepSeek Harness web UI — a faithful re-skin of the Mineradio "private visual radio" identity. The header, sidebar, composer, stats line, and trajectory view become panes of warm champagne glass over a near-black studio backdrop. You can put a video as wallpaper and switch it off and the stock UI comes back exactly, with no source changes to DSH itself.
|
|
7
|
+
|
|
8
|
+
## What ports from Mineradio
|
|
9
|
+
|
|
10
|
+
- **Champagne-gold identity** — the signature palette (`#f4d28a` champagne, `#7ad7c2` mint, `#ff5367` ember rose over a warm near-black `#08090B`) drives every alias token: surfaces, hairline strokes, text ink, buttons, scrollbars, and warm-tinted shadows with a gold bloom.
|
|
11
|
+
- **Typography** — Inter + Noto Sans SC for the UI, self-hosted so there's no shell/fontsource dependency.
|
|
12
|
+
- **Cinematic glow** — a champagne-gold ambient bloom sits behind the glass; the spotlight hue knob sweeps it from warm amber to mint while keeping the brand warm.
|
|
13
|
+
- **Fluid backdrop** — a living fluid board (hue + depth adjustable, defaults to warm gold) or your own wallpaper (image or video) with its own blur and frost.
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- **Two modes**: **Mica** restyles the layout into floating glass cards (blur and frost adjustable), while **Compatibility Mode** keeps the stock layout byte-for-byte and only swaps the material to generic glass — other plugins' UI gets the same treatment automatically
|
|
18
|
+
- **Free backdrop**: a living fluid board (hue adjustable) or your own wallpaper (fills the page, aspect preserved, with its own blur and frost); light wallpapers look best in light mode, dark wallpapers in dark mode
|
|
19
|
+
- **Background brightness**: follows the resolved scheme — dark mode darkens (0–50), light mode brightens (50–100), 50 is unchanged
|
|
20
|
+
- **Ambient decor**: particle whale in the chat center, star particles, and an interactive dot-grid mesh — all toggleable
|
|
21
|
+
- **Champagne glow**: a pointer-tracking glow over the glass panes, plus a hover press-down for tactile depth
|
|
22
|
+
- One switch: off restores the stock UI exactly, and every effect is removed with the plugin
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
### Windows (one command)
|
|
27
|
+
|
|
28
|
+
```powershell
|
|
29
|
+
powershell -ExecutionPolicy Bypass -Command "Invoke-WebRequest 'https://github.com/dhicoc/dsh-theme-mineradio/raw/main/install.ps1' -OutFile install.ps1; .\install.ps1"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Installs the **latest release** by default. No git needed — the installer falls back to a plain zip download. It links the plugin into the profile's `node_modules` and registers `ui-mineradio` in `cordis.patch.yml` (idempotent — safe to run again). Reload the web UI and it is on.
|
|
33
|
+
|
|
34
|
+
Pin a version or track the dev branch:
|
|
35
|
+
|
|
36
|
+
```powershell
|
|
37
|
+
.\install.ps1 -Version 'v1.0.0' # a specific release
|
|
38
|
+
.\install.ps1 -Version 'main' # the development branch
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Manual / via pnpm
|
|
42
|
+
|
|
43
|
+
```powershell
|
|
44
|
+
dsh plugin --profile web add https://github.com/dhicoc/dsh-theme-mineradio
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The `dsh.bundle` manifest registers `ui-mineradio` automatically, so no manual patch is needed. (The installer adds this equivalent entry for source installs:)
|
|
48
|
+
|
|
49
|
+
```yaml
|
|
50
|
+
- insert:
|
|
51
|
+
- id: ui-mineradio
|
|
52
|
+
name: 'dsh-theme-mineradio'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Restart the web UI. To turn it off: Settings → Plugins → **Mineradio**.
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
MIT. Mineradio visual identity (palette, typography, glow aesthetic) is a faithful re-skin of the Mineradio project by XxHuberrr, whose original is licensed GPL-3.0.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# dsh-theme-mineradio
|
|
2
|
+
[](https://awesome-dsh-plugin.com)
|
|
3
|
+
|
|
4
|
+
中文 | [English](README.md)
|
|
5
|
+
|
|
6
|
+
**Mineradio** 是一套为 DeepSeek Harness Web UI 打造的影院级玻璃拟态主题——对 Mineradio「私人视觉电台」气质的忠实移植。顶栏、侧栏、输入框、状态行与轨迹视图都化作近黑演播室背景上一块块温暖的香槟金玻璃。你可以把视频设为壁纸,一键关闭后原样还原官方界面,无需改动 DSH 任何源码。
|
|
7
|
+
|
|
8
|
+
## 从 Mineradio 移植了什么
|
|
9
|
+
|
|
10
|
+
- **香槟金身份标识** —— 招牌调色板(香槟金 `#f4d28a`、薄荷 `#7ad7c2`、余烬玫瑰 `#ff5367`,压在一层温暖的近黑 `#08090B` 之上)驱动全部 alias token:表面、发丝描边、文字墨色、按钮、滚动条,以及带金色辉光的暖调阴影。
|
|
11
|
+
- **字体** —— 界面使用 Inter + Noto Sans SC,自托管,不依赖外壳或 fontsource。
|
|
12
|
+
- **影院辉光** —— 玻璃背后有一层香槟金环境光;辉光色相旋钮可把它从暖琥珀扫到薄荷,同时保持品牌暖调。
|
|
13
|
+
- **流体背景** —— 流动流体板(色相 + 深浅可调,默认落在暖金色),或自选壁纸(图片 / 视频),各自带模糊与磨砂。
|
|
14
|
+
|
|
15
|
+
## 特性
|
|
16
|
+
|
|
17
|
+
- **双模式**:**云母效果**把布局重构为漂浮的玻璃卡片(模糊度、磨砂度可调);**兼容模式**按字节保留官方布局,只把材质换成通用玻璃——其他插件的 UI 也会自动获得同样的玻璃质感
|
|
18
|
+
- **自由背景**:流动流体板(色相可调)或自选壁纸(铺满页面、保持比例,带独立模糊与磨砂);浅色壁纸配浅色模式观感最佳,深色壁纸配深色模式
|
|
19
|
+
- **背景亮度**:跟随解析到的配色——深色模式压暗(0–50),浅色模式提亮(50–100),50 为原样
|
|
20
|
+
- **环境装饰**:聊天区中心的粒子鲸鱼、星尘粒子、可交互点阵网格——都可开关
|
|
21
|
+
- **香槟辉光**:跟随鼠标在玻璃面板上流动的光晕,外加悬停下压的触觉深度
|
|
22
|
+
- 一个开关:关闭后原样还原官方界面,插件卸载时所有效果一并移除
|
|
23
|
+
|
|
24
|
+
## 安装
|
|
25
|
+
|
|
26
|
+
### Windows(一条命令)
|
|
27
|
+
|
|
28
|
+
```powershell
|
|
29
|
+
powershell -ExecutionPolicy Bypass -Command "Invoke-WebRequest 'https://github.com/dhicoc/dsh-theme-mineradio/raw/main/install.ps1' -OutFile install.ps1; .\install.ps1"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
默认安装**最新正式版**。无需 git——安装脚本会退回到普通 zip 下载。脚本会把插件链接进 profile 的 `node_modules`,并在 `cordis.patch.yml` 中注册 `ui-mineradio`(幂等,可重复执行)。刷新 Web UI 即为开启状态。
|
|
33
|
+
|
|
34
|
+
锁定版本或跟踪开发分支:
|
|
35
|
+
|
|
36
|
+
```powershell
|
|
37
|
+
.\install.ps1 -Version 'v1.0.0' # 指定版本
|
|
38
|
+
.\install.ps1 -Version 'main' # 开发分支
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 手动 / 通过 pnpm
|
|
42
|
+
|
|
43
|
+
```powershell
|
|
44
|
+
dsh plugin --profile web add https://github.com/dhicoc/dsh-theme-mineradio
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`dsh.bundle` manifest 会自动注册 `ui-mineradio`,无需手动补丁。(安装脚本对源码安装会写入这条等价条目:)
|
|
48
|
+
|
|
49
|
+
```yaml
|
|
50
|
+
- insert:
|
|
51
|
+
- id: ui-mineradio
|
|
52
|
+
name: 'dsh-theme-mineradio'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
重启 Web UI。想要关闭:设置 → 插件 → **Mineradio**。
|
|
56
|
+
|
|
57
|
+
## 许可证
|
|
58
|
+
|
|
59
|
+
MIT。Mineradio 视觉标识(调色板、字体、辉光美学)是对 XxHuberrr 的 Mineradio 项目的忠实重新定制,原项目采用 GPL-3.0 授权。
|
package/cordis.patch.yml
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
# dsh-theme-mineradio — bundle layer
|
|
2
|
+
#
|
|
3
|
+
# Registers the Mineradio glass theme as a DSH plugin. The client package
|
|
4
|
+
# (dsh.client.inject in package.json) carries the actual Web-surface theme; this
|
|
5
|
+
# patch is what makes `dsh plugin add` load it — the same `ui-mineradio`
|
|
6
|
+
# insert the install docs previously asked users to add by hand.
|
|
7
|
+
|
|
8
|
+
- insert:
|
|
9
|
+
- id: ui-mineradio
|
|
10
|
+
name: dsh-theme-mineradio
|