Commit Graph
134 Commits
Author SHA1 Message Date
wangheng 6aa0d3dce4 feat(ui): 控制室图标改内联 SVG,替代系统 emoji (v0.5.3-local.9)
emoji 的渲染完全取决于系统字体(Windows Segoe UI Emoji / macOS Apple Color
Emoji 的形状与配色都不同),同一份代码在不同机器上长得不一样,观感也偏旧
(截图里的 🖥️ 呈老式 CRT 显示器样式)。

- 新增 ICON_CONSOLE 内联 SVG(显示器 + 支架,stroke=currentColor)
- 侧栏控制室卡片改用该图标
- .dsh-wt_layoutIcon 改为定尺寸 flex 容器;新增 .dsh-wt_layoutSvg 跟随主题色,
  选中态取强调色

用户自定义图标选择器(EMOJI_SET)保留不动 —— 那是功能,不是默认值。

验证:npm run pack 全绿,双资产同源 sha256 888d4e8f…。
2026-12-02 17:43:58 +08:00
wangheng 1b053e5577 fix(update): 更新检查改走宿主中转,修复 Gitea 无 CORS 导致请求被拦 (v0.5.3-local.8)
0.5.3-local.6 把更新检查从上游 GitHub 改到自建 Gitea API,但仍不通:
页面来源是 http://127.0.0.1:<随机端口>,请求 https://gitea.ququclean.com/api/...
属跨源,而 Gitea 不返回 Access-Control-Allow-Origin,浏览器直接拦截 fetch。
表现为「立即检查」无反应、长期显示「上次检查未成功」。

改为宿主中转:
- src/index.ts 新增 /api/worktable/update-check 路由,服务端(Node 无 CORS
  约束)代取 Gitea releases/latest,客户端只请求同源路径
- updateCheck.ts / index.tsx 的 fetch 改指向该同源路由
- 该路由沿既有约定需要鉴权(request-auth.test.mjs 要求除 health/preview-static
  外所有路由都必须拒绝未鉴权请求),未传 publicAsset

测试:sidebar-popup.test.mjs 的 releaseUrl 改为 /api/worktable/update-check。

验证:npm run pack 全绿,双资产同源 sha256 225e8568…。
2026-12-02 17:30:41 +08:00
wangheng 65b99b8cf3 fix(styles): 恢复 DS Bot 侧栏「返回 bot」按钮显示 (v0.5.3-local.7)
按用户要求,撤回 [data-slot="sidebar.footer.action"] .bt-return 的隐藏规则。
其余三条保留:duet 语音记录开关、nav.bt-home-nav(首页/消息/待办)、连接插件。

验证:npm run pack 全绿,双资产同源 sha256 8c30d35f…。
2026-12-02 17:24:54 +08:00
wangheng f65694516f fix(update): 更新检查改查本仓 Gitea,修复查不到新版 (v0.5.3-local.6)
本仓从上游 fork 后,更新检查仍查上游 GitHub,导致:
- 上游只发官方版(无本地补丁),本仓 -local.* 版本它不知道
- 国内网络访问 api.github.com 常失败,显示「上次检查未成功」
- 安装命令也指向上游 github.com

三处改动:
- updateCheck.ts(控制室):改为 Gitea API /api/v1/repos/xiaoqu/dsh-worktable/releases/latest
- index.tsx(设置面板,独立实现):同样改 Gitea API
- hostTransport.ts:安装命令改为带具体 tag 的本仓 tgz

注意 Gitea 不支持 /releases/latest/download 简写(实测 404),
安装命令必须带具体 tag,UPDATE_TGZ 每次发版需同步更新。

版本比较无需改动:cmpVer('v0.5.2-local.6','0.5.3-local.5') = -1,
core 段 0.5.2 < 0.5.3 已能正确判定有新版。

测试同步:sidebar-popup.test.mjs 的 releaseUrl 断言改为新 API 地址。

验证:npm run pack 全绿,双资产同源 sha256 95b2b6b1…。
2026-12-02 17:00:56 +08:00
wangheng b567701fa1 feat: 二级页面、孤儿路由防护、iframe 全屏与 DS Bot 侧栏隐藏 (v0.5.3-local.5)
借鉴同线分支 dsh-worktable 0.5.2-local.9 的四项改造,逐项评估后移植:

- 二级页面:LayoutSpec.parentId + layoutTree 树形侧栏 + 折叠/展开。
  仅一级嵌套;删父项目不级联删子页面(提升为顶级,避免误删用户内容)。
  管理面板加「+新增二级页面」,继承父项目文件夹。
- 孤儿路由防护:register 遇 duplicate 路由只 warn 不抛,避免热重载时
  旧 fiber 未释放导致新 fiber 激活失败、侧边栏抽屉整体消失。
- iframe allowFullScreen:项目窗格里的 HTML 看板可全屏。
- DS Bot 侧栏隐藏:由本插件注入 CSS,替代改 ds-bot/client.js 的做法
  (ds-bot 随应用升级,改源码必丢)。nav.bt-home-nav 带标签选择器避免误伤。

未移植对方的状态防清空(stateStore.serverKeys):本仓 hostState.ts 已有
hydrated 守卫(读完宿主前禁写、读不到整场不写)与更细的 6 段退避重试,
覆盖面更强。

顺带修三个 Windows 兼容缺陷,否则 pack 门禁过不去:
- release-prep.mjs:tar 加 --force-local(GNU tar 把 C: 当 rsh 主机)
- preview-files.test.mjs:rmSync 删 junction 失败,加 unlinkSync 兜底
- widget-mount.test.mjs:提取段缺 normalizeProjects 依赖,起点前移

验证:npm run pack 全绿(139 项兼容回归 + 工厂门禁 10/10 + 结构 7 文件 +
独立安装 import + 锚点 14 场景 + Chromium 分栏 5 场景 + 服务端 3 场景)。
双资产同源 sha256 cf633ad7…。
2026-12-02 16:37:29 +08:00
Aisland f98246ef0c fix(v0.5.1): 适配rc.5并修正控制室与更新提醒 2026-10-31 17:05:17 +08:00
Aisland 56ffe0cd1c feat(v0.5.0): secure project previews and fix host UI compatibility 2026-10-27 23:09:34 +08:00
Aisland 6cb86b6c73 feat(v0.4.0): support Windows Desktop and isolate project widget mounts 2026-10-03 13:02:20 +08:00
Aisland e63d122142 fix(v0.3.4): adapt worktable to DSH 0.2 Web 2026-10-02 12:58:44 +08:00
Aisland a7b8803978 fix(v0.3.3): 分栏引擎双版本锚点(0.1.1-rc.2/0.1.2-rc.1) + 数据目录解析循环修复 + 发布流水线加防(锚点8场景/数据目录3场景) + 公告/文档同步 2026-09-06 11:32:43 +08:00
Aisland 033ef1fc6b docs: neat-freak 发布前同步——公告正文补流光S速度、AGENTS/PRD 补 consoleGlowSpeed 键 2026-09-02 20:58:16 +08:00
Aisland 265c7bb6a7 chore: 移除探测用临时脚本 2026-09-02 20:31:35 +08:00
Aisland 5c6c04d70a fix(console): 聊天分隔线修复——加载后按规格钳制存档chatW(脏值1067→600,setChatW同兜底max);分隔线向内容侧偏移3px,避开与宿主聊天区2px重叠(不加宽) 2026-09-02 20:31:24 +08:00
Aisland c113584fc1 docs: neat-freak 收尾同步——AGENTS(背景三背景记忆/媒体库默认双图/5键操作台/更新公告/标注协议v3.2) + PRD持久化清单(view.v1新键/updateCache/photoRecords) + README zh/en 补第5键与双默认预设 2026-09-02 01:55:08 +08:00
Aisland beeb3522e0 chore: 移除临时转换脚本 2026-09-02 00:55:39 +08:00
Aisland 50a11bcf7e feat(console): 默认预设升级为两张(极光SVG + 海岸公路Sea01 1280px JPEG 181KB);恢复初始按钮文案去括号;种子逻辑双图入库 2026-09-02 00:55:33 +08:00
Aisland 47fa0a9f6f chore: 移除误入库的排障临时脚本 2026-09-02 00:47:18 +08:00
Aisland 3f2b80f347 feat(console): 媒体库抓手排序——每行缩略图与垃圾桶之间加六点抓手,按住上下拖实时重排、松手持久化(photoStore.reorder + env) 2026-09-02 00:46:38 +08:00
Aisland 0a9ff9d34e v0.2.3: pane collapse, 1px dividers, flush pane edges 2026-08-29 21:39:19 +08:00
Aisland 58baa65441 release: prepare v0.2.1 - update checker, mount notification, docs sync 2026-08-24 23:47:26 +08:00
Aisland 31b14df9c4 docs: keep verified upstream utf16 picker fix patch (tracking #580) 2026-08-24 13:23:01 +08:00
Aisland 1e04a60f61 chore: unify version 0.2.0, add package README/LICENSE, sync PRD persistence 2026-08-22 18:34:53 +08:00
Aisland 442722799a docs: record rc.2 link-plugin regression recovery and junction workaround 2026-08-22 18:28:34 +08:00
Aisland e8f1c80708 fix: inherit current session model for new sessions instead of picking arbitrary 2026-08-21 22:52:21 +08:00
Aisland 819a3c6d1e fix: repair stale session model selection (real root cause of model-unavailable) 2026-08-21 22:43:08 +08:00
Aisland 874ee5f7be fix: apply deployment default preset to new sessions (stale deleted model) 2026-08-21 22:30:55 +08:00
Aisland 5905cc44ef fix: lengthen and feather busy card sweep to avoid hard edge 2026-08-21 18:58:14 +08:00
Aisland 7efb07fd1a feat: clickable square rail buttons when collapsed + eye icon toggle in manage panel 2026-08-21 18:17:59 +08:00
Aisland d4d1cc1f49 fix: move sweep shimmer to busy cards only, remove panel-wide sweep 2026-08-21 14:04:26 +08:00
Aisland fd03ef6cc6 feat: periodic glass sweep shimmer across console panel 2026-08-21 13:59:49 +08:00
Aisland 4b2134985b fix: drop diagonal sheen streak, strengthen top-left reflection 2026-08-21 13:25:27 +08:00
Aisland fdb3b15e1a feat: stronger glass reflections with dual sheen gradients 2026-08-21 13:22:51 +08:00
Aisland 590aeb5365 fix: restore tile texture with moderate opacity, add center glow to create card 2026-08-21 13:18:29 +08:00
Aisland 06fcd8bafb fix: drop frosted blur for clearer glass, right-align runtime without icon 2026-08-21 13:11:45 +08:00
Aisland 0324644d0c fix: clearer glass transparency, remove status dot, filter code from previews 2026-08-21 12:28:10 +08:00
Aisland 24cfab508b fix: more transparent console glass so grid shows through 2026-08-21 12:14:26 +08:00
Aisland e95eda9292 fix: adapt glassmorphism for light theme (stronger dark corners, white edge) 2026-08-21 12:10:20 +08:00
Aisland 6834ba3fd7 feat: iOS glassmorphism console cards (corner gradient edge + inner sheen + backdrop blur) 2026-08-21 12:05:20 +08:00
Aisland 62b5deb552 fix: shrink console preview text to 60% 2026-08-21 02:12:30 +08:00
Aisland 14f654adda fix: console area 2x (edge 1.4), comet moving light, darker blueprint grid bg 2026-08-21 02:03:16 +08:00
Aisland dbb5a01a8e fix: console cards 80%, single title, stronger busy glow, thinner dividers 2026-08-21 01:52:02 +08:00
Aisland 3d96a07f9d feat: console spacing/cards polish, create card, drop kids/jump, borderless entry 2026-08-21 01:39:38 +08:00
Aisland 5196d0f768 fix: self-heal broken console view (tab-closed legacy state) 2026-08-21 01:24:16 +08:00
Aisland 14c21a10bd fix: unclosable console tab, compact grid with neon outline glow, naming fix 2026-08-21 01:15:59 +08:00
Aisland 142860b15a feat: console glow cards, icon theme toggle, cold preview warmup, unified naming 2026-08-21 01:04:29 +08:00
Aisland 249f09d8d6 feat: built-in Worktable console project with monitor panel and theme 2026-08-21 00:37:00 +08:00
Aisland 5bfa108628 fix: put symbols after text on both bind buttons 2026-08-20 23:21:57 +08:00
Aisland fbca9f4e66 feat: add refresh symbol to folder change button 2026-08-20 23:17:57 +08:00
Aisland 56c2778508 fix: bind popup drop title, move unbind into row, toggle session list 2026-08-20 23:14:32 +08:00
Aisland 48f3edeaa5 refactor: compact bind popup with unified boxes and right-side session list 2026-08-20 22:59:46 +08:00