From 30e2f1360eae314bdef2910e7e1c91793777e41c Mon Sep 17 00:00:00 2001 From: wood chen Date: Fri, 27 Jun 2025 02:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E7=BC=93=E5=AD=98=E9=A1=B9=E6=B3=A8=E9=87=8A=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4CSS=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E4=BB=A5=E6=94=B9=E5=96=84=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E9=85=8D=E8=89=B2=E5=92=8C=E9=98=B4=E5=BD=B1=E6=95=88=E6=9E=9C?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E5=8D=87=E7=95=8C=E9=9D=A2=E7=BE=8E=E8=A7=82?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E5=8F=AF=E8=AF=BB=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/utils.go | 3 +- web/app/globals.css | 137 ++++++++++++++++++++++++++-------------- 2 files changed, 92 insertions(+), 48 deletions(-) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 982293d..dfafe2c 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -16,7 +16,7 @@ import ( "time" ) -// 文件大小缓存项 +// 文件大小缓存项 type fileSizeCache struct { size int64 timestamp time.Time @@ -375,4 +375,3 @@ func ClearFileSizeCache() { if count > 0 { log.Printf("[FileSizeCache] 清理了 %d 个文件大小缓存项", count) } -} diff --git a/web/app/globals.css b/web/app/globals.css index a23ac26..483edb3 100644 --- a/web/app/globals.css +++ b/web/app/globals.css @@ -8,57 +8,102 @@ body { @layer base { :root { - --background: 0 0% 100%; - --foreground: 0 0% 3.9%; + --background: 30 12.5000% 96.8627%; + --foreground: 0 0% 0%; --card: 0 0% 100%; - --card-foreground: 0 0% 3.9%; + --card-foreground: 0 0% 0%; --popover: 0 0% 100%; - --popover-foreground: 0 0% 3.9%; - --primary: 0 0% 9%; - --primary-foreground: 0 0% 98%; - --secondary: 0 0% 96.1%; - --secondary-foreground: 0 0% 9%; - --muted: 0 0% 96.1%; - --muted-foreground: 0 0% 45.1%; - --accent: 0 0% 96.1%; - --accent-foreground: 0 0% 9%; - --destructive: 0 84.2% 60.2%; - --destructive-foreground: 0 0% 98%; - --border: 0 0% 89.8%; - --input: 0 0% 89.8%; - --ring: 0 0% 3.9%; - --chart-1: 12 76% 61%; - --chart-2: 173 58% 39%; - --chart-3: 197 37% 24%; - --chart-4: 43 74% 66%; - --chart-5: 27 87% 67%; + --popover-foreground: 0 0% 0%; + --primary: 23.8835 44.9782% 55.0980%; + --primary-foreground: 0 0% 100%; + --secondary: 0 0% 96.0784%; + --secondary-foreground: 0 0% 0%; + --muted: 0 0% 89.8039%; + --muted-foreground: 0 0% 45.0980%; + --accent: 23.8835 44.9782% 55.0980%; + --accent-foreground: 0 0% 0%; + --destructive: 11.7857 44.0945% 50.1961%; + --destructive-foreground: 0 0% 100%; + --border: 0 0% 89.8039%; + --input: 0 0% 89.8039%; + --ring: 23.8835 44.9782% 55.0980%; + --chart-1: 23.8835 44.9782% 55.0980%; + --chart-2: 11.7857 44.0945% 50.1961%; + --chart-3: 120 25.0000% 42.3529%; + --chart-4: 346.0563 93.4211% 70.1961%; + --chart-5: 60 76.5432% 68.2353%; + --sidebar: 0 0% 96.0784%; + --sidebar-foreground: 0 0% 0%; + --sidebar-primary: 23.8835 44.9782% 55.0980%; + --sidebar-primary-foreground: 0 0% 100%; + --sidebar-accent: 23.8835 44.9782% 55.0980%; + --sidebar-accent-foreground: 0 0% 0%; + --sidebar-border: 0 0% 89.8039%; + --sidebar-ring: 23.8835 44.9782% 55.0980%; + --font-sans: #000000; + --font-serif: #000000; + --font-mono: #000000; --radius: 0.5rem; + --shadow-2xs: 0 0 0 0 hsl(0 0% 0% / 0.00); + --shadow-xs: 0 0 0 0 hsl(0 0% 0% / 0.00); + --shadow-sm: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 1px 2px -1px hsl(0 0% 0% / 0.00); + --shadow: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 1px 2px -1px hsl(0 0% 0% / 0.00); + --shadow-md: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 2px 4px -1px hsl(0 0% 0% / 0.00); + --shadow-lg: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 4px 6px -1px hsl(0 0% 0% / 0.00); + --shadow-xl: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 8px 10px -1px hsl(0 0% 0% / 0.00); + --shadow-2xl: 0 0 0 0 hsl(0 0% 0% / 0.00); + --tracking-normal: -0.025em; } + .dark { - --background: 0 0% 3.9%; - --foreground: 0 0% 98%; - --card: 0 0% 3.9%; - --card-foreground: 0 0% 98%; - --popover: 0 0% 3.9%; - --popover-foreground: 0 0% 98%; - --primary: 0 0% 98%; - --primary-foreground: 0 0% 9%; - --secondary: 0 0% 14.9%; - --secondary-foreground: 0 0% 98%; - --muted: 0 0% 14.9%; - --muted-foreground: 0 0% 63.9%; - --accent: 0 0% 14.9%; - --accent-foreground: 0 0% 98%; - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 0 0% 98%; - --border: 0 0% 14.9%; - --input: 0 0% 14.9%; - --ring: 0 0% 83.1%; - --chart-1: 220 70% 50%; - --chart-2: 160 60% 45%; - --chart-3: 30 80% 55%; - --chart-4: 280 65% 60%; - --chart-5: 340 75% 55%; + --background: 0 0% 10.1961%; + --foreground: 30 12.5000% 96.8627%; + --card: 0 0% 14.9020%; + --card-foreground: 30 12.5000% 96.8627%; + --popover: 0 0% 14.9020%; + --popover-foreground: 30 12.5000% 96.8627%; + --primary: 23.8835 44.9782% 55.0980%; + --primary-foreground: 0 0% 0%; + --secondary: 0 0% 25.0980%; + --secondary-foreground: 30 12.5000% 96.8627%; + --muted: 0 0% 25.0980%; + --muted-foreground: 0 0% 63.9216%; + --accent: 23.8835 44.9782% 55.0980%; + --accent-foreground: 0 0% 0%; + --destructive: 11.7857 44.0945% 50.1961%; + --destructive-foreground: 0 0% 0%; + --border: 0 0% 25.0980%; + --input: 0 0% 14.9020%; + --ring: 23.8835 44.9782% 55.0980%; + --chart-1: 23.8835 44.9782% 55.0980%; + --chart-2: 11.7857 44.0945% 50.1961%; + --chart-3: 120 25.0000% 42.3529%; + --chart-4: 346.0563 93.4211% 70.1961%; + --chart-5: 60 76.5432% 68.2353%; + --sidebar: 0 0% 12.1569%; + --sidebar-foreground: 30 12.5000% 96.8627%; + --sidebar-primary: 23.8835 44.9782% 55.0980%; + --sidebar-primary-foreground: 0 0% 0%; + --sidebar-accent: 23.8835 44.9782% 55.0980%; + --sidebar-accent-foreground: 0 0% 0%; + --sidebar-border: 0 0% 20%; + --sidebar-ring: 23.8835 44.9782% 55.0980%; + --font-sans: #F8F7F6; + --font-serif: #F8F7F6; + --font-mono: #F8F7F6; + --radius: 0.5rem; + --shadow-2xs: 0 0 0 0 hsl(0 0% 0% / 0.00); + --shadow-xs: 0 0 0 0 hsl(0 0% 0% / 0.00); + --shadow-sm: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 1px 2px -1px hsl(0 0% 0% / 0.00); + --shadow: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 1px 2px -1px hsl(0 0% 0% / 0.00); + --shadow-md: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 2px 4px -1px hsl(0 0% 0% / 0.00); + --shadow-lg: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 4px 6px -1px hsl(0 0% 0% / 0.00); + --shadow-xl: 0 0 0 0 hsl(0 0% 0% / 0.00), 0 8px 10px -1px hsl(0 0% 0% / 0.00); + --shadow-2xl: 0 0 0 0 hsl(0 0% 0% / 0.00); + } + + body { + letter-spacing: var(--tracking-normal); } }