From 295efe88d4b2974df95da8eaf6963082279b15eb Mon Sep 17 00:00:00 2001 From: digua Date: Tue, 27 Jan 2026 21:21:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=89=88=E6=9C=AC=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelogs_cn.json | 30 +++--- src/i18n/locales/en-US/home.json | 1 + src/i18n/locales/zh-CN/home.json | 1 + src/pages/home/components/AgreementModal.vue | 2 + src/pages/home/components/ChangelogModal.vue | 100 ++++++++++++++++++- src/pages/home/index.vue | 51 +--------- 6 files changed, 118 insertions(+), 67 deletions(-) diff --git a/docs/changelogs_cn.json b/docs/changelogs_cn.json index 8dde085..1d93aa1 100644 --- a/docs/changelogs_cn.json +++ b/docs/changelogs_cn.json @@ -2,7 +2,7 @@ { "version": "0.8.0", "date": "2026-01-26", - "summary": "本次更新新增了会话摘要与向量检索能力,每次版本更新后会提示更新日志,优化了部分界面,同时修复了一些已知问题。", + "summary": "新增了会话摘要与向量检索能力;每次版本更新后会弹窗展示更新内容;优化了部分界面交互;同时修复了一些已知问题。", "changes": [ { "type": "feat", @@ -27,7 +27,7 @@ { "version": "0.7.0", "date": "2026-01-23", - "summary": "优化 AI 对话体验,并改进更新逻辑与图表方案。", + "summary": "优化了 AI 对话体验;改进了更新逻辑;图表方案使用 Echarts 替代 chart.js。", "changes": [ { "type": "feat", @@ -45,7 +45,7 @@ { "version": "0.6.0", "date": "2026-01-21", - "summary": "接入AI sdk,提高 AI对话 的稳定性;追加思考内容块;部分样式优化", + "summary": "接入了 AI sdk,提高了 AI 对话 的稳定性;AI对话新增展示思考内容块;对部分样式进行了优化。", "changes": [ { "type": "feat", @@ -62,7 +62,7 @@ { "version": "0.5.2", "date": "2026-01-20", - "summary": "支持合并导入;修复了一些问题", + "summary": "支持了合并导入,同时修复了一些问题。", "changes": [ { "type": "feat", @@ -85,7 +85,7 @@ { "version": "0.5.1", "date": "2026-01-16", - "summary": "修复了一些问题", + "summary": "修复了一些问题。", "changes": [ { "type": "feat", @@ -105,7 +105,7 @@ { "version": "0.5.0", "date": "2026-01-14", - "summary": "支持 instagram 聊天记录导入;支持批量导入;支持增量导入", + "summary": "支持了 instagram 聊天记录导入;首页支持了批量导入;聊天页面支持了增量导入。", "changes": [ { "type": "feat", @@ -130,7 +130,7 @@ { "version": "0.4.1", "date": "2026-01-13", - "summary": "这个版本进行了一些样式和交互上的优化,没有功能更新", + "summary": "进行了一些样式和交互上的优化。", "changes": [ { "type": "feat", @@ -157,7 +157,7 @@ { "version": "0.4.0", "date": "2026-01-12", - "summary": "导入支持 shuakami-jsonl格式;优化了 AI 对话,现在更加节省token了;导入聊天记录时支持生成会话索引,同时消息查看器也支持按索引查看;更新支持了加速镜像。", + "summary": "导入支持 shuakami-jsonl 格式;优化了 AI 对话,现在更加节省token了;导入聊天记录时支持生成会话索引,同时消息查看器也支持按索引查看;软件更新支持了加速镜像。", "changes": [ { "type": "feat", @@ -184,7 +184,7 @@ { "version": "0.3.1", "date": "2026-01-09", - "summary": "新版本已适配 Discord 导入;各个解析器支持了回复类型的导入;软件存储目录迁移至更规范的目录;导入时支持角色导入;对导入报错支持了更详细的诊断和提示;部分功能优化。", + "summary": "已适配 Discord 导入;各个解析器支持了回复类型的导入;软件存储目录迁移至更规范的目录;导入时支持角色导入;对导入报错支持了更详细的诊断和提示;部分细节优化。", "changes": [ { "type": "feat", @@ -212,7 +212,7 @@ { "version": "0.3.0", "date": "2026-01-08", - "summary": "本次更新支持了英文版;以及一些功能优化", + "summary": "进行了全量的国际化支持,支持中英文切换;一些功能优化。", "changes": [ { "type": "feat", @@ -230,7 +230,7 @@ { "version": "0.2.0", "date": "2025-12-29", - "summary": "支持配置代理;导入时支持显示错误日志;优化部分界面交互;以及部分功能更新", + "summary": "支持配置代理;导入时支持显示错误日志;优化部分界面交互,以及部分功能更新。", "changes": [ { "type": "feat", @@ -250,7 +250,7 @@ { "version": "0.1.3", "date": "2025-12-25", - "summary": "修复了一些问题", + "summary": "修复了一些问题。", "changes": [ { "type": "fix", @@ -263,7 +263,7 @@ { "version": "0.1.2", "date": "2025-12-25", - "summary": "支持深色模式,AI对话中,系统提示词中支持传递给用户身份", + "summary": "支持了深色模式;AI对话中,系统提示词中支持传递给用户身份。", "changes": [ { "type": "feat", @@ -286,7 +286,7 @@ { "version": "0.1.1", "date": "2025-12-24", - "summary": "支持 WhatsApp、旧版QQ 聊天记录分析", + "summary": "已适配 WhatsApp 聊天记录的导入;支持旧版 QQ 讨论组格式的分析。", "changes": [ { "type": "feat", @@ -307,7 +307,7 @@ { "version": "0.1.0", "date": "2025-12-23", - "summary": "项目发布。", + "summary": "项目正式开源发布。", "changes": [ { "type": "feat", diff --git a/src/i18n/locales/en-US/home.json b/src/i18n/locales/en-US/home.json index 9905e88..0da3ce6 100644 --- a/src/i18n/locales/en-US/home.json +++ b/src/i18n/locales/en-US/home.json @@ -93,6 +93,7 @@ "subtitle": "View all version updates", "viewChangelog": "Changelog", "latest": "Latest", + "current": "Current", "total": "{count} versions in total", "close": "Close", "loadError": "Failed to load changelog", diff --git a/src/i18n/locales/zh-CN/home.json b/src/i18n/locales/zh-CN/home.json index 4dc72b2..7930c71 100644 --- a/src/i18n/locales/zh-CN/home.json +++ b/src/i18n/locales/zh-CN/home.json @@ -93,6 +93,7 @@ "subtitle": "查看所有版本更新内容", "viewChangelog": "版本日志", "latest": "最新版本", + "current": "当前版本", "total": "共 {count} 个版本", "close": "关闭", "loadError": "加载版本日志失败", diff --git a/src/pages/home/components/AgreementModal.vue b/src/pages/home/components/AgreementModal.vue index ee1e414..f0b7068 100644 --- a/src/pages/home/components/AgreementModal.vue +++ b/src/pages/home/components/AgreementModal.vue @@ -111,6 +111,8 @@ function handleAgree() { // 不同意协议,退出应用 function handleDisagree() { + // 不同意时清除已存的协议版本 + localStorage.removeItem(AGREEMENT_KEY) window.api.send('window-close') } diff --git a/src/pages/home/components/ChangelogModal.vue b/src/pages/home/components/ChangelogModal.vue index bd76daa..0f18716 100644 --- a/src/pages/home/components/ChangelogModal.vue +++ b/src/pages/home/components/ChangelogModal.vue @@ -1,5 +1,5 @@ - diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index ccd28ba..30127dc 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -1,8 +1,6 @@