From 2da2cef3382fab88090b8494e2dee5afbdfb4cc3 Mon Sep 17 00:00:00 2001 From: Mplan Date: Wed, 29 Jul 2026 23:03:31 +0800 Subject: [PATCH] style(ui): align semantic surfaces and upload layout --- scripts/check-style-system.mjs | 12 +++++++ src/components/cloud/CloudEditModal.vue | 9 ++--- src/components/cloud/ImageDetailModal.vue | 2 +- src/components/cloud/MapPickerModal.vue | 7 ++-- src/components/cloud/QuickUploadModal.vue | 10 ++++-- .../profile/ContributionHeatmap.vue | 2 +- src/lib/theme.ts | 2 +- src/styles/components.css | 22 ++++++++++++ src/views/auth/AuthConfirmView.vue | 2 +- src/views/auth/ForgotPasswordView.vue | 4 +-- src/views/auth/LoginView.vue | 4 +-- src/views/auth/RegisterView.vue | 4 +-- src/views/auth/ResetPasswordView.vue | 2 +- src/views/community/CommunityView.vue | 2 +- src/views/encyclopedia/CloudTypeView.vue | 12 +++---- src/views/encyclopedia/EncyclopediaView.vue | 6 +++- src/views/gallery/GalleryView.vue | 4 +-- src/views/map/MapView.vue | 14 ++++---- src/views/profile/ProfileSettingsView.vue | 4 +-- src/views/profile/ProfileView.vue | 24 ++++++------- src/views/upload/UploadView.vue | 35 ++++++++++--------- 21 files changed, 116 insertions(+), 67 deletions(-) diff --git a/scripts/check-style-system.mjs b/scripts/check-style-system.mjs index 6ffd95a..190341d 100644 --- a/scripts/check-style-system.mjs +++ b/scripts/check-style-system.mjs @@ -17,6 +17,18 @@ const deprecatedPatterns = [ pattern: /#(?:f0fdfa|ccfbf1|99f6e4|5eead4|2dd4bf|14b8a6|0d9488|0f766e|115e59|134e4a)\b/gi, message: '检测到旧版高饱和 teal 色值,请改用自然绿色设计令牌。', }, + { + pattern: /#(?:c084fc|a855f7|9333ea|7e22ce)\b/gi, + message: '检测到禁用的紫色硬编码,请改用 rose 或项目语义令牌。', + }, + { + pattern: /#(?:1f2937|9ca3af)\b/gi, + message: '检测到默认 gray 调色板硬编码,请改用对应的 slate 色值或语义令牌。', + }, + { + pattern: /#60a5fa\b/gi, + message: '检测到默认 blue-400 硬编码,请按用途改用 sky 或 amber 等项目语义色。', + }, { pattern: /text-xs uppercase tracking-\[0\.18em\] text-slate-500/g, message: '重复的小节标签应使用 oc-section-label。', diff --git a/src/components/cloud/CloudEditModal.vue b/src/components/cloud/CloudEditModal.vue index e39dd07..00a3a08 100644 --- a/src/components/cloud/CloudEditModal.vue +++ b/src/components/cloud/CloudEditModal.vue @@ -1,6 +1,7 @@