/** * 站点配置:类型 + 默认值(单一事实源)。 * * 业务配置可在后台 `/admin/settings` 动态修改(存于 DB settings 表), * 未修改时使用这里的默认值。`siteConfig` 为兼容旧引用的子集。 */ export interface LocalizedText { zh: string en: string } export interface SocialLink { name: string icon: string url: string } export interface ToolItem { id: string name: string url: string icon: string color: string descZh: string descEn: string } export interface SiteSettings { site: { name: string brand: string description: LocalizedText } contact: { email: string infoEmail: string wechat: string address: LocalizedText } socials: SocialLink[] tools: ToolItem[] footer: { title: LocalizedText newsletterTitle: LocalizedText newsletterNote: LocalizedText copyright: LocalizedText } seo: { description: LocalizedText keywords: LocalizedText } } export const defaultSettings: SiteSettings = { site: { name: 'ArcticNewOne', brand: '北极新一', description: { zh: '探索无限可能的现代化体验,欢迎来到 ArcticNewOne。', en: 'Explore infinite possibilities and modern experiences. Welcome to ArcticNewOne.', }, }, contact: { email: 'chenchun@virtheart.com', infoEmail: 'info@virtheart.com', wechat: 'LucskyNew', address: { zh: '贵州省毕节市七星关区\n滨河西路', en: 'Binhe West Road, Qixingguan District\nBijie City, Guizhou Province', }, }, socials: [ { name: 'X', icon: 'ph:x-logo', url: 'https://x.com/arcticnewone' }, { name: 'Instagram', icon: 'ph:instagram-logo', url: 'https://instagram.com/arcticnewone' }, { name: 'LinkedIn', icon: 'ph:linkedin-logo', url: 'https://www.linkedin.com/company/arcticnewone' }, { name: 'GitHub', icon: 'ph:github-logo', url: 'https://github.com/arcticnewone' }, ], tools: [ { id: 'drawio', name: 'Drawio', url: 'https://drawio.virtheart.com', icon: 'ph:flow-arrow-duotone', color: 'from-orange-50/50 to-amber-100/50', descZh: '强大的在线图表绘制工具,支持流程图、UML、网络拓扑等。', descEn: 'Powerful online diagramming tool for flowcharts, UML, and network topologies.', }, { id: 'excalidraw', name: 'Excalidraw', url: 'https://excalidraw.virtheart.com', icon: 'ph:pencil-circle-duotone', color: 'from-purple-50/50 to-indigo-100/50', descZh: '手绘风格的白板工具,轻松绘制草图和协作思考。', descEn: 'Hand-drawn style whiteboard tool for easy sketching and collaborative thinking.', }, { id: 'itTools', name: 'IT-Tools', url: 'https://ittools.virtheart.com', icon: 'ph:wrench-duotone', color: 'from-blue-50/50 to-cyan-100/50', descZh: '为开发人员和IT从业者提供的一站式实用工具集合。', descEn: 'An all-in-one practical tool collection for developers and IT professionals.', }, ], footer: { title: { zh: '雕琢视觉,塑造故事。\n让我们共创卓越作品!', en: 'Crafting visuals. Shaping stories.\nLet\'s create great work together!', }, newsletterTitle: { zh: '抢先获取最新资讯', en: 'Get the latest updates first' }, newsletterNote: { zh: '无广告干扰。仅提供精选更新。', en: 'No spam. Only curated updates.' }, copyright: { zh: '© 2026 北极新一工作室', en: '© 2026 ArcticNewOne Studio' }, }, seo: { description: { zh: '探索无限可能的现代化体验,欢迎来到 ArcticNewOne。', en: 'Explore infinite possibilities and modern experiences. Welcome to ArcticNewOne.', }, keywords: { zh: '北极新一,ArcticNewOne,设计,开发,品牌', en: 'ArcticNewOne,design,development,branding' }, }, } /** 兼容旧引用的站点元信息子集(新代码请用 useSiteSettings) */ export const siteConfig = { brand: defaultSettings.site.name, brandZh: defaultSettings.site.brand, email: defaultSettings.contact.email, infoEmail: defaultSettings.contact.infoEmail, wechat: defaultSettings.contact.wechat, copyright: defaultSettings.footer.copyright.zh, socials: defaultSettings.socials, }