From 1a8ecc3ee11cfb8ee2f14cc9bf5e52770b10d5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=91=E6=9E=97=5FCyril=20Pilgrim?= Date: Sun, 8 Mar 2026 18:10:53 +0800 Subject: [PATCH] polish(ui): clean up server panel markup and i18n for add-server section Motivation: The add-server section used inline styles instead of semantic classes, and the delete/cancel buttons lacked proper i18n keys and semantic CSS class names. Implementation: Moved inline flex styles for 'add-server-inline' and 'add-server-panel' into CSS classes. Added data-i18n-placeholder attributes to new server inputs. Replaced raw class 'btn-icon danger' with 'btn-danger btn-icon' on delete button. Added missing 'data-i18n=cancel' to the cancel button. --- .gitignore | 2 ++ data/.gitkeep | 0 ui/static/index.html | 26 +++++++++++++------------- 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 data/.gitkeep diff --git a/.gitignore b/.gitignore index 586c3e3..3f9e928 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ config.json outputs/ !outputs/.gitkeep +data/* +!data/.gitkeep # macOS .DS_Store diff --git a/data/.gitkeep b/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ui/static/index.html b/ui/static/index.html index 9e58cef..a4ae4a5 100644 --- a/ui/static/index.html +++ b/ui/static/index.html @@ -40,7 +40,7 @@

Server Config

-
+
-
-

添加新服务器

-
- - +
+

Add New Server

+
+ + + data-i18n="add_server">Add Server
@@ -177,4 +177,4 @@ - \ No newline at end of file +