feat: 优化管理后台页面UI、修复TS编译错误、新增人生事件模块

- 优化 AI 配置列表页面:重构统计卡片、搜索表单、表格列展示
- 修复 3 处 TypeScript TS6133 编译错误,恢复构建
- 新增管理员修改密码和重置密码功能
- 优化小程序多个页面样式和交互
- 人生事件模块完善

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 23:23:09 +08:00
parent 60c63850ee
commit 755059807a
62 changed files with 4661 additions and 3019 deletions
+55
View File
@@ -0,0 +1,55 @@
export const state = {
user: {
nickname: "",
gender: "",
zodiac: "",
mbti: "",
profession: "星际探索者", // Added profession
hobbies: [],
childhood: "",
childhoodDate: "",
happyMoment: "",
happyDate: "",
lowPoint: "",
lowDate: "",
aspirations: "",
},
events: [
{
id: 1,
time: "2025-06-12",
title: "开启人生OS",
content: "在繁星之下的那晚,我决定建立人生OS,系统地梳理我的过去与未来。",
aiReply: "这是一个极具觉知力的决定。紫色的星云预示着智慧的觉醒,从这一刻起,你开始重新编写人生的底层代码。",
isNew: false
}
],
scripts: [],
customPersonas: [], // New for user-defined personas
scriptConfig: {
style: "爽文",
length: "中篇"
},
npcConfig: {
name: "",
role: "伙伴",
relation: "信任",
desc: ""
},
currentPath: null,
onboardingStep: 0,
isPlaying: false,
isGenerating: false
};
export const zodiacs = ["白羊座", "金牛座", "双子座", "巨蟹座", "狮子座", "处女座", "天秤座", "天蝎座", "射手座", "摩羯座", "水瓶座", "双鱼座"];
export const mbtis = ["INTJ", "INTP", "ENTJ", "ENTP", "INFJ", "INFP", "ENFJ", "ENFP", "ISTJ", "ISFJ", "ESTJ", "ESFJ", "ISTP", "ISFP", "ESTP", "ESFP"];
export const scriptStyles = ["爽文", "治愈", "热血", "玄幻", "职场", "赛博"];
export const scriptLengths = ["短篇", "中篇", "长篇", "史诗"];
export const npcRoles = ["伙伴", "宿敌", "导师", "挚爱", "下属", "路人"];
export const npcRelations = ["信任", "对立", "暧昧", "敬畏", "背叛", "守护"];
export const hintWords = {
childhood: ["秘密花园", "老旧弄堂", "秋千", "夏蝉", "被保护的", "好奇心"],
happy: ["突破", "共鸣", "清晨阳光", "认可", "旅行终点", "深呼吸"],
low: ["迷茫", "无力感", "雨后街道", "重新出发", "裂痕中的光", "蜕变"]
};