import { DEFAULT_FIELD_ORDER } from "./constants"; import { GlobalSettings, DEFAULT_CONFIG, ResumeData } from "../types/resume"; const initialGlobalSettings: GlobalSettings = { baseFontSize: 16, pagePadding: 32, paragraphSpacing: 12, lineHeight: 1.5, sectionSpacing: 10, headerSize: 18, subheaderSize: 16, useIconMode: true, themeColor: "#000000", centerSubtitle: true, }; export const initialResumeState = { title: "新建简历", basic: { name: "宋哈娜", title: "高级前端工程师", employementStatus: "离职", email: "zhangsan@example.com", phone: "13800138000", location: "北京市朝阳区", birthDate: "2025-01", fieldOrder: DEFAULT_FIELD_ORDER, icons: { email: "Mail", phone: "Phone", birthDate: "CalendarRange", employementStatus: "Briefcase", location: "MapPin", }, photoConfig: DEFAULT_CONFIG, customFields: [ { id: "personal", label: "个人网站", value: "https://zhangsan.dev", icon: "Globe", }, ], photo: "/avatar.png", githubKey: "", githubUseName: "", githubContributionsVisible: false, }, education: [ { id: "1", school: "北京大学", major: "计算机科学与技术", degree: "", startDate: "2013-09", endDate: "2017-06", visible: true, gpa: "", description: ``, }, ], skillContent: `
`, selfEvaluationContent: "", experience: [ { id: "1", company: "字节跳动", position: "高级前端工程师", date: "2021.07 - 2024.12", visible: true, details: ``, }, ], draggingProjectId: null, projects: [ { id: "p1", name: "抖音创作者中台", role: "前端负责人", date: "2022.06 - 2023.12", description: ``, visible: true, }, { id: "p2", name: "微信小程序开发者工具", role: "核心开发者", date: "2020.03 - 2021.06", description: ``, visible: true, }, { id: "p3", name: "前端监控平台", role: "技术负责人", date: "2021.09 - 2022.03", description: ``, visible: true, }, ], menuSections: [ { id: "basic", title: "基本信息", icon: "👤", enabled: true, order: 0 }, { id: "skills", title: "专业技能", icon: "⚡", enabled: true, order: 1 }, { id: "experience", title: "工作经验", icon: "💼", enabled: true, order: 2, }, { id: "projects", title: "项目经历", icon: "🚀", enabled: true, order: 3, }, { id: "education", title: "教育经历", icon: "🎓", enabled: true, order: 4, }, ], certificates: [], customData: {}, activeSection: "basic", globalSettings: initialGlobalSettings, }; export const initialResumeStateEn = { title: "New Resume", basic: { name: "Dva", title: "Senior Frontend Engineer", employementStatus: "Available", email: "john.smith@123.com", phone: "555-123-4567", location: "San Francisco, CA", birthDate: "", fieldOrder: DEFAULT_FIELD_ORDER, icons: { email: "Mail", phone: "Phone", birthDate: "CalendarRange", employementStatus: "Briefcase", location: "MapPin", }, photoConfig: DEFAULT_CONFIG, customFields: [], photo: "/avatar.png", githubKey: "", githubUseName: "", githubContributionsVisible: false, }, education: [ { id: "1", school: "Stanford University", major: "Computer Science", degree: "", startDate: "2013-09", endDate: "2017-06", visible: true, gpa: "", description: ``, }, ], skillContent: `
`, selfEvaluationContent: "", experience: [ { id: "1", company: "ByteDance", position: "Senior Frontend Engineer", date: "2021.07 - 2024.12", visible: true, details: ``, }, ], draggingProjectId: null, projects: [ { id: "p1", name: "TikTok Creator Platform", role: "Frontend Lead", date: "2022.06 - 2023.12", description: ``, visible: true, }, { id: "p2", name: "WeChat Mini Program Developer Tools", role: "Core Developer", date: "2020.03 - 2021.06", description: ``, visible: true, }, { id: "p3", name: "Frontend Monitoring Platform", role: "Technical Lead", date: "2021.09 - 2022.05", description: ``, visible: true, }, ], menuSections: [ { id: "basic", title: "Profile", icon: "👤", enabled: true, order: 0, }, { id: "skills", title: "Skills", icon: "⚡", enabled: true, order: 1, }, { id: "experience", title: "Experience", icon: "💼", enabled: true, order: 2, }, { id: "projects", title: "Projects", icon: "🚀", enabled: true, order: 3, }, { id: "education", title: "Education", icon: "🎓", enabled: true, order: 4, }, ], certificates: [], customData: {}, activeSection: "basic", globalSettings: initialGlobalSettings, }; export const blankResumeState = { ...initialResumeState, title: "新建简历", basic: { ...initialResumeState.basic, name: "", title: "", email: "", phone: "", location: "", birthDate: "", employementStatus: "", photo: "", customFields: [], }, education: [], skillContent: "", selfEvaluationContent: "", experience: [], projects: [], certificates: [], menuSections: [initialResumeState.menuSections[0]], }; export const blankResumeStateEn = { ...initialResumeStateEn, title: "New Resume", basic: { ...initialResumeStateEn.basic, name: "", title: "", email: "", phone: "", location: "", birthDate: "", employementStatus: "", photo: "", customFields: [], }, education: [], skillContent: "", selfEvaluationContent: "", experience: [], projects: [], certificates: [], menuSections: [initialResumeStateEn.menuSections[0]], };