From 981ca33a1a61e394e5e509eff7fcabc0800eba96 Mon Sep 17 00:00:00 2001 From: kicer Date: Tue, 1 Sep 2026 22:36:50 +0800 Subject: [PATCH] =?UTF-8?q?2.0=E9=98=B6=E6=AE=B55=E8=B0=83=E6=95=B44:=20?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=8D=A1=E9=BB=98=E8=AE=A4=E4=BB=85=E5=90=8D?= =?UTF-8?q?=E7=A7=B0/id/=E7=8A=B6=E6=80=81+=E4=BD=99=E9=A2=9D=E4=B8=8Etoke?= =?UTF-8?q?n=E5=8D=A0=E4=BD=8D,=E7=BC=96=E8=BE=91=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=BC=80=E7=BB=9F=E4=B8=80=E5=BC=B9=E7=AA=97(=E7=BC=96?= =?UTF-8?q?=E8=BE=91/=E5=88=A0=E9=99=A4/=E6=96=B0=E5=A2=9E=E5=A4=8D?= =?UTF-8?q?=E7=94=A8);=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80confirmModal/pro?= =?UTF-8?q?mptModal=E6=9B=BF=E4=BB=A3=E5=85=A8=E9=83=A8=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E5=BC=B9=E7=AA=97;=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=94=B9primary=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 11 +++ app/server/public/index.html | 62 ++++++++---- app/server/public/js/core.js | 43 +++++++++ app/server/public/js/models.js | 156 +++++++++++++------------------ app/server/public/js/settings.js | 9 +- app/server/public/js/skills.js | 16 ++-- app/server/public/js/tasks.js | 2 +- 7 files changed, 181 insertions(+), 118 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index a25917e..b31231c 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -239,6 +239,7 @@ body { padding: 10px 12px; font-size: 15px; margin-bottom: 10px; outline: none; } .modal input:focus { border-color: #2a5299; } +.modal input:disabled { background: #f2f3f7; color: #99a; } .modal select { width: 100%; border: 1px solid #dde; border-radius: 8px; padding: 10px 12px; font-size: 15px; margin-bottom: 10px; outline: none; @@ -262,6 +263,7 @@ body { border-radius: 10px; padding: 11px; font-size: 15px; cursor: pointer; } .ghost-btn:active { background: #e8eaf0; } +.ghost-btn.danger { background: #fdf3f2; color: #c0392b; border-color: #eac2bd; } .btn-row { display: flex; gap: 10px; } .btn-row .primary-btn { flex: 1; } .modal .modal-text { font-size: 14px; color: #556; margin-bottom: 12px; } @@ -322,6 +324,15 @@ body { .model-card-state.busy { background: #fdecea; color: #b3382c; } /* 配置已加但还没重启进运行池 */ .model-card-state.pending { background: #fff4dc; color: #a06a00; } +.model-card-right { display: flex; align-items: center; gap: 4px; } +.model-edit-ico { + background: none; border: none; cursor: pointer; padding: 5px; border-radius: 8px; +} +.model-edit-ico svg { + width: 17px; height: 17px; stroke: #7f8db0; fill: none; + stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; +} +.model-edit-ico:active { background: #eef0f6; } .model-card-meta { font-size: 12px; color: #888; margin-top: 4px; } .model-card-foot { display: flex; justify-content: flex-end; gap: 14px; margin-top: 6px; } diff --git a/app/server/public/index.html b/app/server/public/index.html index 4bb97f2..b6fa9f9 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -211,20 +211,50 @@ - -