Repository navigation
Releases: OrderG-X/dsh-pages
Release list
v0.2.0 — 8 个模板,一套设计
- 8 个模板:报告、对比、清单 / 计划、数据看板、时间线、学习卡片、测验、流程图。模型只写内容(
template+data),排版、深浅色、手机适配、勾选 / 答题 / 记住了这些交互和保存都是现成的,快而且不会写坏;data写错了工具会说清楚哪里不对。 - 一套设计:标题上方一条蓝色短线加类别小字,大数字当主角,只用一个强调色(DeepSeek 蓝),绿、红、琥珀只表示好、不好、要留意;面板白底细线;图表配色按色盲也分得清的顺序取。深浅色都有。
- 模型自己写的页面也用这套:存的时候自动带上颜色变量、基本样子和现成的类(页头、面板、大数字、输入框、分段切换、开关、标签……),工具说明里列给模型。这份样式放在 CSS
@layer里,页面自己写的样式总能盖过它,不会把页面改坏。大数字一行放不下会自动缩小。
8 built-in templates (report, compare, checklist, dashboard, timeline, flashcards, quiz, flow): the model writes only the content and the plugin lays it out, with interactions and saving built in. All templates share one design (kicker + title, big-number strip, a single accent, hairline panels, a colorblind-safe chart palette, light and dark). Pages the model writes by hand now get the same design automatically, inside a CSS @layer so the page's own styles always win.
更新 / Update:dsh plugin add @orderg-x/dsh-pages,然后重启 DSH。
v0.1.1 — 两处同开时不丢改动
同一页同时开在对话里和右侧栏时更稳了(第二轮审查修的 6 条):
- 重载前等这一页正在存的都存好;没存上的放回去再试,存好前不重载,不会载进来旧数据再把别处的改动盖掉。
- 页面狂发重载请求时,一次只重载一轮、两秒最多一次。
- storage 事件补上
storageArea(e.storageArea === localStorage判断照样对),清空时发key为 null 的事件。 - 这一框旧了以后,用户的按键、点击先拦下再重载,不会出现页面处理了、却没存上的情况。
- storage 监听按真被调到算,撤掉了就不再当有人听。
- Windows 上浏览器冷启动慢:同时来的几次体检一起等它开好再计时。
Steadier two-view sync (chat + sidebar): reloads wait for pending saves and never load stale data, reload requests are throttled, StorageEvent now carries storageArea and a key: null clear event, input on a stale frame is held until it reloads, storage listeners count only when actually called, and concurrent checks wait for a cold-starting browser.
更新 / Update:dsh plugin add @orderg-x/dsh-pages,然后重启 DSH。
v0.1.0 — 模型把回答做成一页,直接嵌在对话里能点能用
第一版。模型用 show_page 把回答做成一页网页:对比、清单、计算器、测验……
- 页面直接嵌在回复下面,能交互;深浅色跟着 DSH 走。
- 页面里的 localStorage 存在 DSH 里,重开、改出新版本都还在;对话里和右侧栏同时开着,两边实时同步。
- 改一次存一版,旧版能翻。
- 存好自动在本机看不见的 Chrome / Edge 里体检:脚本报错、横向溢出、深色没跟上,都交给模型改。
- 右侧栏看整页、看所有做过的页面;导出 PNG / PDF / HTML。
- 手机上(配合 dsh-mobile)照样能用。
- macOS、Windows 都测过。
First release. show_page turns an answer into a live web page right inside the chat: interactive, following DSH's light/dark theme, with saved state synced between the chat and the sidebar, versions, an automatic headless check, and PNG / PDF / HTML export.
安装 / Install: dsh plugin add @orderg-x/dsh-pages,然后重启 DSH。
