From dcc50e470a48517d297e026b81d665219e7a9f90 Mon Sep 17 00:00:00 2001 From: kicer Date: Thu, 17 Sep 2026 22:08:41 +0800 Subject: [PATCH] =?UTF-8?q?MCP=20=E6=9C=8D=E5=8A=A1=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=8A=A0=E4=B8=8A=E5=8D=95=E6=AC=A1=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E8=B6=85=E6=97=B6=EF=BC=88timeout=5Fms=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 位置按建议放在「启用」同排、其之前。留空 = 不写入该项(沿用缺省 60s);清空一个已填的值 = 删掉 config.yml 里的该键(后端 deleteIn 支持嵌套键,无键时是空操作)。 区间在 UI 先校验 1000~600000,与 config.js 归一化时的夹限一致——写进去再被静默夹掉不如当场报错。新增走 append 的对象字段,编辑走逐字段 setIn,与 name/url/enable 同一批 PATCH 一次落盘。按约定只改弹窗,MCP 卡片列表不加这一行。 --- app/server/public/css/style.css | 5 +++++ app/server/public/index.html | 24 +++++++++++++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index 4f04138..5c0e09b 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -1096,6 +1096,11 @@ label.icon-btn { cursor: pointer; } .modal .mpe-mcard { border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; background: #fafbfd; } .modal .mpe-mcard .mpe-row { margin-bottom: 0; } .modal .mpe-cks { display: flex; align-items: center; gap: 16px; margin-top: 8px; } +/* 超时(ms)与「启用」同排。数字框单独成类,不吃 .mpe-ck input 那套 15px 无边框样式(那是给 checkbox 的); + 选择器带 .modal 前缀是为了压过 .modal input{width:100%},否则会被撑满整行。 */ +.modal .mpe-num { display: flex; align-items: center; gap: 5px; flex: none; font-size: 12.5px; color: var(--gray); } +.modal .mpe-num input { width: 92px; padding: 5px 8px; margin: 0; font-size: 13px; border: 1px solid #dde1ea; border-radius: 8px; background: #fff; color: var(--ink); } +.modal .mpe-num input:focus { border-color: var(--active); } .modal .mpe-ck { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gray); } .modal .mpe-ck input { width: 15px; height: 15px; padding: 0; margin: 0; border: none; background: none; accent-color: var(--active); cursor: pointer; } .modal .mpe-del { flex: none; border: none; background: none; margin: 0; padding: 2px 7px; cursor: pointer; color: var(--gray-light); font-size: 18px; line-height: 1.2; } diff --git a/app/server/public/index.html b/app/server/public/index.html index 55757c2..9aabe6b 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -261,7 +261,7 @@ - +