diff --git a/src/components/layout/MainLayout.tsx b/src/components/layout/MainLayout.tsx index c62d283..81ace68 100644 --- a/src/components/layout/MainLayout.tsx +++ b/src/components/layout/MainLayout.tsx @@ -13,15 +13,15 @@ import { Button } from '@/components/ui/Button'; import { PageTransition } from '@/components/common/PageTransition'; import { MainRoutes } from '@/router/MainRoutes'; import { - IconBot, - IconChartLine, - IconFileText, - IconInfo, - IconLayoutDashboard, - IconScrollText, - IconSettings, - IconShield, - IconTimer, + IconSidebarAuthFiles, + IconSidebarConfig, + IconSidebarDashboard, + IconSidebarLogs, + IconSidebarOauth, + IconSidebarProviders, + IconSidebarQuota, + IconSidebarSystem, + IconSidebarUsage, } from '@/components/ui/icons'; import { INLINE_LOGO_JPEG } from '@/assets/logoInline'; import { @@ -38,15 +38,15 @@ import { isSupportedLanguage } from '@/utils/language'; import type { Theme } from '@/types'; const sidebarIcons: Record = { - dashboard: , - aiProviders: , - authFiles: , - oauth: , - quota: , - usage: , - config: , - logs: , - system: , + dashboard: , + aiProviders: , + authFiles: , + oauth: , + quota: , + usage: , + config: , + logs: , + system: , }; // Header action icons - smaller size for header buttons @@ -132,7 +132,13 @@ const headerIcons = { - + @@ -171,17 +177,35 @@ const THEME_CARDS: Array<{ { key: 'white', labelKey: 'theme.white', - colors: { bg: '#ffffff', card: '#ffffff', border: '#e5e5e5', text: '#2d2a26', textMuted: '#a29c95' }, + colors: { + bg: '#ffffff', + card: '#ffffff', + border: '#e5e5e5', + text: '#2d2a26', + textMuted: '#a29c95', + }, }, { key: 'light', labelKey: 'theme.light', - colors: { bg: '#faf9f5', card: '#f0eee8', border: '#e3e1db', text: '#2d2a26', textMuted: '#a29c95' }, + colors: { + bg: '#faf9f5', + card: '#f0eee8', + border: '#e3e1db', + text: '#2d2a26', + textMuted: '#a29c95', + }, }, { key: 'dark', labelKey: 'theme.dark', - colors: { bg: '#151412', card: '#1d1b18', border: '#3a3530', text: '#f6f4f1', textMuted: '#9c958d' }, + colors: { + bg: '#151412', + card: '#1d1b18', + border: '#3a3530', + text: '#f6f4f1', + textMuted: '#9c958d', + }, }, ]; @@ -420,7 +444,6 @@ export function MainLayout() { }); }, [fetchConfig]); - const statusClass = connectionStatus === 'connected' ? 'success' @@ -503,7 +526,7 @@ export function MainLayout() { clearCache(); const results = await Promise.allSettled([ fetchConfig(undefined, true), - triggerHeaderRefresh() + triggerHeaderRefresh(), ]); const rejected = results.find((result) => result.status === 'rejected'); if (rejected && rejected.status === 'rejected') { @@ -618,7 +641,10 @@ export function MainLayout() { > {headerIcons.update} -
+