diff --git a/lib/skill-page.js b/lib/skill-page.js new file mode 100644 index 0000000..bfda508 --- /dev/null +++ b/lib/skill-page.js @@ -0,0 +1,187 @@ +/** + * The local skill management page (`GET /cloud-memory/skills`). + * + * A thin shell: the browser fetches the JSON inventory from + * `/cloud-memory/skills/api` and renders it; every action is a small + * JSON POST back to the same prefix. All skill data is inserted with + * textContent, never as raw HTML. + */ +export function renderSkillsPage(options) { + return ` + +
+ + +v${options.version} · 本机技能的列表、启停、安装与回收站;云端同步仍在后台自动进行。← 返回云端记忆设置
+ +