From aeaeb9aec570e06ec32f1d0243beaa1ab360fe64 Mon Sep 17 00:00:00 2001 From: zhangshun <453905631@qq.com> Date: Fri, 29 May 2026 17:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=A8=A1=E5=9E=8B=E5=BA=93?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=92=8C=E5=BC=80=E5=8F=91=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 4 ++-- web/src/pages/app/app.css | 25 +++++++++++++---------- web/src/pages/app/layout.ts | 12 +++++------ web/src/pages/app/modules/dictionaries.ts | 1 + web/src/pages/app/modules/models.ts | 5 ++++- web/src/pages/app/modules/preview.ts | 1 + web/src/pages/app/modules/users.ts | 1 + web/src/styles/base.css | 5 +++-- web/src/ui/dialogs.ts | 3 +++ web/src/vendor/w2ui.ts | 1 + web/vite.config.ts | 10 ++++++++- 11 files changed, 44 insertions(+), 24 deletions(-) diff --git a/.env.example b/.env.example index 9531c24..8e32cda 100644 --- a/.env.example +++ b/.env.example @@ -5,8 +5,8 @@ DB_PATH= # login: show login page # fixed: auto login with FIXED_LOGIN_USERNAME and open model library directly -APP_AUTH_MODE=login -FIXED_LOGIN_USERNAME= +APP_AUTH_MODE=fixed +FIXED_LOGIN_USERNAME=admin FIXED_LOGIN_ROLE=user ALLOW_USER_EDIT_SYSTEM_LIBRARY=false diff --git a/web/src/pages/app/app.css b/web/src/pages/app/app.css index 18da720..009002a 100644 --- a/web/src/pages/app/app.css +++ b/web/src/pages/app/app.css @@ -1,11 +1,12 @@ .app-shell { height: 100vh; display: grid; - grid-template-rows: 42px 1fr; + /* grid-template-rows: 42px 1fr; */ } .topbar { - display: flex; + /* display: flex; */ + display: none; align-items: center; justify-content: space-between; gap: 14px; @@ -50,6 +51,7 @@ display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; + background: #fff; } .content-toolbar { @@ -80,17 +82,17 @@ .filter-toolbar { display: grid; - grid-template-columns: minmax(120px, 160px) minmax(120px, 160px) minmax(200px, 1fr) auto; + grid-template-columns: minmax(120px, 200px) minmax(120px, 200px) minmax(200px, 200px) minmax(50px, 80px) minmax(50px, 80px); align-items: end; gap: 8px; padding: 8px 12px; - background: #f8fafb; + /* background: #f8fafb; */ border-bottom: 1px solid #d8e0e8; } .filter-toolbar label { - display: grid; - gap: 3px; + /* display: grid; + gap: 3px; */ } .filter-toolbar span { @@ -129,21 +131,21 @@ .thumb { position: relative; - height: 150px; + min-height: 150px; display: grid; place-items: center; - background: + /* background: linear-gradient(45deg, #edf2f5 25%, transparent 25%), linear-gradient(-45deg, #edf2f5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf2f5 75%), linear-gradient(-45deg, transparent 75%, #edf2f5 75%), - #f8fafb; + #f8fafb; */ background-position: 0 0, 0 6px, 6px -6px, -6px 0; background-size: 12px 12px; border: 1px solid #d3dde5; border-radius: 4px; overflow: hidden; - padding: 4px; + /* padding: 4px; */ } .thumb-actions { @@ -253,6 +255,7 @@ dd { .pagination-total, .pagination-range { + display: none; color: #647586; font-size: 12px; } @@ -331,7 +334,7 @@ dd { } .keyword-filter { - grid-column: 1 / -1; + /* grid-column: 1 / -1; */ } .pagination { diff --git a/web/src/pages/app/layout.ts b/web/src/pages/app/layout.ts index a524e08..f9cc8e9 100644 --- a/web/src/pages/app/layout.ts +++ b/web/src/pages/app/layout.ts @@ -31,14 +31,11 @@ export async function renderApp() {