import type { DevicesConfig } from "@/types/devicesConfig"; import { withUserConfig } from "../utils/config-overlay.ts"; /** * 设备展示页行为与展示配置。 * * 遵循「配置管行为,数据管内容」原则: * - enable:页面总开关;false 时导航入口同步隐藏,访问 /devices/ 跳转 404; * - categories:场景分类清单(数组顺序即页面顶部 Chips 顺序); * - disabledIds:可选被禁用的设备 ID 列表; * * 注:设备的具体清单数据(设备名、品牌、规格、感受说明、图片等)请在 `src/data/devices.ts` 中维护。 */ export const devicesConfig: DevicesConfig = withUserConfig("devices", { enable: true, title: "$t:devices", description: "$t:devicesBanner", categories: [ { key: "desk", label: "Desk Setup", icon: "material-symbols:desktop-windows-outline-rounded", description: "Workstation & home office hardware", }, { key: "mobile", label: "Mobile & EDC", icon: "material-symbols:phone-iphone", description: "Daily portable devices & smart gadgets", }, { key: "audio", label: "Audio & Visual", icon: "material-symbols:headphones-rounded", description: "Headphones, speakers & monitoring gears", }, { key: "peripheral", label: "Peripherals", icon: "material-symbols:keyboard-outline-rounded", description: "Keyboards, mice & desk accessories", }, ], // disabledIds: [], });