import type { ModuleConfig } from '@/types/module' import type { SearchIndexItem } from '@/stores/searchIndex' import GeneralSettings from './GeneralSettings.vue' const searchItems: SearchIndexItem[] = [ { title: '浅色模式', description: '切换到浅色主题', keywords: ['浅色', '主题', 'theme', 'light'] }, { title: '深色模式', description: '切换到深色主题', keywords: ['深色', '主题', 'theme', 'dark'] }, { title: '跟随系统', description: '跟随系统主题设置', keywords: ['系统', '主题', 'theme', 'system'] }, { title: '普通模式', description: '标准背景效果', keywords: ['效果', '普通', 'normal', 'effect'] }, { title: 'Win 云母', description: 'Windows 11 云母效果', keywords: ['效果', '云母', 'mica', 'effect'] }, { title: 'Win 亚克力', description: 'Windows 11 亚克力效果', keywords: ['效果', '亚克力', 'acrylic', 'effect'] }, { title: '开机自启', description: '启动 Windows 时自动运行应用', keywords: ['开机', '自启', '自动', 'auto', 'start'] }, { title: '模块管理', description: '启用/禁用模块与拖拽排序', keywords: ['模块', '管理', '排序', '禁用', '启用', 'module'] }, { title: '检查更新', description: '检查并下载应用新版本', keywords: ['更新', '版本', '升级', 'update', 'check', 'release'] }, { title: '应用版本', description: '查看当前应用版本与安装方式', keywords: ['版本', 'version', 'about', '关于'] }, { title: 'ThingHK 内核', description: '查看监控内核安装状态并更新', keywords: ['内核', 'thinghk', 'kernel', '监控', '更新'] }, { title: '退出程序', description: '彻底退出 Thing 应用', keywords: ['退出', '关闭', 'quit', 'exit', '结束'] } ] export const moduleConfig: ModuleConfig = { id: 'settings', name: '常规设置', icon: 'settings', description: '主题、效果、开机自启与模块管理', category: 'system', builtin: true, component: GeneralSettings, searchItems, order: 999 }