feat: 添加状态卡片显示控制功能

This commit is contained in:
Montia37
2025-09-10 00:12:03 +08:00
parent 3251d69b92
commit 0e2bafcfce
6 changed files with 125 additions and 56 deletions

View File

@@ -7,10 +7,11 @@ export interface ConfigOptions {
blurBackgroundColor?: string; // 磨砂玻璃背景颜色
enableTransparentTags?: boolean; // 是否启用标签透明背景
tagDefaultColorList?: string; // 标签默认颜色列表
selectThemeColor?: string; // 默认主题颜色
enableLocalStorage?: boolean; // 是否启用本地存储
selectedDefaultView?: "grid" | "table"; // 默认视图模式
selectedDefaultAppearance?: "light" | "dark" | "system"; // 默认外观模式
selectThemeColor?: string; // 默认主题颜色
statusCardsVisibility?: string; // 状态卡片显示控制
enableLogo?: boolean; // 是否启用Logo
logoUrl?: string; // Logo图片URL
enableTitle?: boolean; // 是否启用标题
@@ -38,10 +39,12 @@ export const DEFAULT_CONFIG: ConfigOptions = {
enableTransparentTags: true,
tagDefaultColorList:
"ruby,gray,gold,bronze,brown,yellow,amber,orange,tomato,red",
selectThemeColor: "gray",
enableLocalStorage: true,
selectedDefaultView: "grid",
selectedDefaultAppearance: "system",
selectThemeColor: "gray",
statusCardsVisibility:
"currentTime:true,currentOnline:true,regionOverview:true,trafficOverview:true,networkSpeed:true",
enableLogo: false,
logoUrl: "/assets/logo.png",
enableTitle: true,