From dc4c67e386e652a537ad0f5a966551c5c17d6f7f Mon Sep 17 00:00:00 2001 From: "jif2.zhang" Date: Mon, 21 Sep 2026 10:49:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BF=E9=97=AE=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=88=86=E9=A1=B5=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4/=E6=93=8D=E4=BD=9C/?= =?UTF-8?q?=E9=94=AE=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/style.css | 49 +++++++++++++ public/index.html | 27 ++++++- public/js/api.js | 12 ++- public/js/app.js | 121 +++++++++++++++++++++++++++---- src/persistence/duckdbAdapter.js | 54 +++++++++++--- src/routes/configs.js | 18 ++++- test/audit.test.js | 61 ++++++++++++++-- test/mcp.test.js | 4 +- 8 files changed, 304 insertions(+), 42 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index bf2c06a..220cc1a 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -492,6 +492,55 @@ body { .modal-wide .modal-body { max-height: 70vh; +} + +/* 访问记录:过滤栏与分页 */ +.audit-filters { + display: flex; + gap: 8px; + align-items: center; + flex-wrap: wrap; + margin-bottom: 12px; +} + +.audit-filters input, +.audit-filters select { + height: 28px; + padding: 0 8px; + border: 1px solid #adadad; + border-radius: 3px; + font-size: 13px; + background: #fff; +} + +.audit-filters #audit-filter-key { + min-width: 180px; +} + +.audit-filters input[type="datetime-local"] { + padding: 0 4px; + font-size: 12px; +} + +.audit-pagination { + display: flex; + justify-content: flex-end; + align-items: center; + gap: 8px; + margin-top: 12px; + font-size: 12px; + color: #555; +} + +.audit-pagination .btn:disabled { + opacity: 0.45; + cursor: not-allowed; +} + +.audit-pagination select { + height: 26px; + border: 1px solid #adadad; + border-radius: 3px; } .modal-header { diff --git a/public/index.html b/public/index.html index 0691024..1f73a13 100644 --- a/public/index.html +++ b/public/index.html @@ -311,7 +311,22 @@