From f54408e2c7bb2077a8739a7c6cbbafc7a6fd1dfc Mon Sep 17 00:00:00 2001 From: QQ Date: Wed, 11 Nov 2026 11:07:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20lib/skill-page.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/skill-page.js | 187 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 lib/skill-page.js 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} · 本机技能的列表、启停、安装与回收站;云端同步仍在后台自动进行。← 返回云端记忆设置

+ +
+

从 git 仓库安装

+
+ + +
+
+
+ +
+

本机技能

+
+
+
+ +
+

回收站

+
+
+
+ + + +`; +}