From e8ec28419461de340b77ef93667846fbf6ad5827 Mon Sep 17 00:00:00 2001 From: kicer Date: Tue, 1 Sep 2026 17:30:42 +0800 Subject: [PATCH] =?UTF-8?q?2.0=E9=98=B6=E6=AE=B53:=20=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E7=AE=A1=E7=90=86API(=E5=A2=9E=E5=88=A0=E6=94=B9/=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D/=E6=96=87=E4=BB=B6=E8=AF=BB=E5=86=99?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0,=E8=B7=AF=E5=BE=84=E9=98=B2=E6=8A=A4+?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E9=99=90=E5=88=B6)+H5=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E9=A1=B5=E4=B8=89=E8=A7=86=E5=9B=BE(=E5=88=97=E8=A1=A8/?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AF=A6=E6=83=85/=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8),smoke=E6=96=B0=E5=A2=9E[9]?= =?UTF-8?q?=E6=8A=80=E8=83=BD=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 18 +++ app/server/public/index.html | 65 +++++++- app/server/public/js/skills.js | 235 ++++++++++++++++++++++++++++- app/server/routes/files.js | 1 + app/server/routes/skills.js | 256 ++++++++++++++++++++++++++++++++ app/server/server.js | 1 + app/server/tools/skills.js | 2 +- app/test/smoke.js | 34 ++++- 8 files changed, 596 insertions(+), 16 deletions(-) create mode 100644 app/server/routes/skills.js diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index 6436b5d..b56fc49 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -346,3 +346,21 @@ body { box-shadow: 0 1px 4px rgba(30,40,90,0.06); font-size: 14px; } .ghost-btn.small { flex: none; padding: 6px 12px; font-size: 13px; border-radius: 8px; } + +/* ---- 技能页(阶段 3) ---- */ +.skill-desc { + font-size: 12px; color: #888; margin-top: 3px; + display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; +} +/* 文件编辑器:全屏覆盖本 Tab(盖住列表/详情与顶栏,不遮底部导航) */ +#skill-editor { + position: absolute; inset: 0; z-index: 6; background: #f2f3f7; + display: flex; flex-direction: column; +} +#skill-editor-area { + flex: 1; margin: 10px 12px 12px; resize: none; outline: none; + border: 1px solid #dde; border-radius: 10px; background: #fff; color: #223; + padding: 10px 12px; font-size: 12.5px; line-height: 1.55; tab-size: 4; + font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; + white-space: pre; overflow: auto; +} diff --git a/app/server/public/index.html b/app/server/public/index.html index 92f77b6..84d77ca 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -35,10 +35,46 @@ + + +