From 178f94574bc5295e9a90ebc5a90ba60aa90a4969 Mon Sep 17 00:00:00 2001 From: OoO Date: Wed, 13 May 2026 23:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=96=82=E7=AE=A1=E7=90=86=E9=A0=81?= =?UTF-8?q?=E6=89=8B=E6=A9=9F=E8=A1=A8=E6=A0=BC=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 +- templates/login_history.html | 75 ++++++++++++++++- templates/notification_templates.html | 77 +++++++++++++++++- templates/user_management.html | 81 +++++++++++++++++++ web/templates/vendor_stockout/send_email.html | 78 ++++++++++++++++++ .../vendor_stockout/vendor_management.html | 78 ++++++++++++++++++ 6 files changed, 388 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index a730480..3971a3d 100644 --- a/config.py +++ b/config.py @@ -320,7 +320,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.140" +SYSTEM_VERSION = "V10.141" LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log') public_url = PUBLIC_URL # 用於模板顯示 diff --git a/templates/login_history.html b/templates/login_history.html index 65900e1..f9bf893 100644 --- a/templates/login_history.html +++ b/templates/login_history.html @@ -2,6 +2,79 @@ {% block title %}登入歷史 - WOOO TECH{% endblock %} +{% block extra_css %} + +{% endblock %} + {% block content %}
- +
diff --git a/templates/notification_templates.html b/templates/notification_templates.html index 285c24f..d1b53f9 100644 --- a/templates/notification_templates.html +++ b/templates/notification_templates.html @@ -20,7 +20,7 @@
-
+
@@ -126,6 +126,81 @@ color: #6c757d; font-size: 0.875rem; } + +@media (max-width: 760px) { + .notification-template-table { + min-width: 0; + border-collapse: separate; + border-spacing: 0; + } + + .notification-template-table, + .notification-template-table tbody, + .notification-template-table tr, + .notification-template-table td { + display: block; + width: 100%; + } + + .notification-template-table thead { + display: none; + } + + .notification-template-table tbody { + display: grid; + gap: 10px; + padding: 12px; + } + + .notification-template-table tbody tr { + overflow: hidden; + border: 1px solid var(--momo-border-light, #e5dccd); + border-radius: 8px; + background: var(--momo-bg-surface, #fffaf1); + } + + .notification-template-table tbody td { + display: grid; + grid-template-columns: 5.6rem minmax(0, 1fr); + gap: 10px; + padding: 10px 12px; + border-bottom: 1px solid var(--momo-border-light, #e5dccd); + text-align: left !important; + overflow-wrap: anywhere; + } + + .notification-template-table tbody td:last-child { + border-bottom: 0; + } + + .notification-template-table tbody td::before { + color: var(--momo-text-tertiary, #9a8f80); + font-family: var(--momo-font-mono, monospace); + font-size: 11px; + font-weight: 800; + } + + .notification-template-table tbody td:nth-child(1)::before { content: "狀態"; } + .notification-template-table tbody td:nth-child(2)::before { content: "代碼"; } + .notification-template-table tbody td:nth-child(3)::before { content: "名稱"; } + .notification-template-table tbody td:nth-child(4)::before { content: "分類"; } + .notification-template-table tbody td:nth-child(5)::before { content: "渠道"; } + .notification-template-table tbody td:nth-child(6)::before { content: "預覽"; } + .notification-template-table tbody td:nth-child(7)::before { content: "操作"; } + + .notification-template-table tbody td[colspan] { + display: block; + } + + .notification-template-table tbody td[colspan]::before { + content: none; + } + + .notification-template-table .template-preview { + max-height: none; + white-space: normal; + } +}
狀態