refactor: 优化主界面布局与通知系统

重构App.vue,首页独立无侧边栏,其他页面采用统一侧边栏布局。新增右下角固定通知区,集成返回顶部、队列通知、外交通知和敌方警报。移除新手引导组件,替换为弱引导提示系统。支持星球重命名弹窗。优化NPC成长与行为定时器逻辑,提升性能和可维护性。删除issue模板及相关文档描述。
This commit is contained in:
谦君
2025-12-19 12:01:45 +08:00
parent a689ce21b7
commit 752cade67c
61 changed files with 5774 additions and 2817 deletions

View File

@@ -569,11 +569,17 @@ export interface Player {
isGMEnabled?: boolean // GM模式开关默认false通过秘籍激活
lastVersionCheckTime?: number // 最后一次自动检查版本的时间戳(被动检测)
lastManualUpdateCheck?: number // 最后一次手动检查更新的时间戳(主动检测)
// 外交系统字段
diplomaticRelations?: Record<string, DiplomaticRelation> // 玩家对NPC的关系key: npcId
// 外交系统字段(外交关系存储在 NPC.relations 中)
diplomaticReports?: DiplomaticReport[] // 外交变化报告
// 新手引导字段
tutorialProgress?: TutorialProgress // 新手引导进度
// 隐私协议同意状态
privacyAgreed?: boolean // 是否已同意隐私协议
// 弱引导系统
dismissedHints?: string[] // 已关闭的提示ID列表
hintsEnabled?: boolean // 是否启用弱引导提示默认true
// 显示设置
backgroundEnabled?: boolean // 是否启用背景动画默认false
}
export interface NotificationSettings {
@@ -609,6 +615,7 @@ export interface Universe {
export interface NPC {
id: string
name: string
note?: string // 玩家添加的备注
planets: Planet[]
technologies: Record<TechnologyType, number>
difficulty: 'easy' | 'medium' | 'hard'