diff --git a/.env b/.env index 320ac3d..f52b47c 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ NODE_ENV = production # 程序配置 ## 程序名称 -MAIN_VITE_TITLE = "ChatLens" +MAIN_VITE_TITLE = "ChatLab" # 全局 API 配置 MAIN_VITE_SERVER_API = 127.0.0.1 diff --git a/README.md b/README.md index 71e4711..87afdb2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ChatLens +# ChatLab 聊天记录分析工具 diff --git a/electron-builder.yml b/electron-builder.yml index e9605b4..97fc325 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,7 +1,7 @@ # 应用程序的唯一标识符 -appId: com.chatlens.app +appId: com.chatlab.app # 应用程序的产品名称 -productName: ChatLens +productName: ChatLab # 构建资源所在的目录 directories: buildResources: build @@ -19,13 +19,13 @@ asarUnpack: # Windows 平台配置 win: - executableName: ChatLens + executableName: ChatLab target: nsis # NSIS 安装器配置 nsis: oneClick: false - artifactName: ChatLens-${version}-setup.${ext} + artifactName: ChatLab-${version}-setup.${ext} shortcutName: ${productName} uninstallDisplayName: ${productName} createDesktopShortcut: always @@ -43,11 +43,11 @@ mac: # macOS 平台的 DMG 配置 dmg: - artifactName: ChatLens-${version}.${ext} + artifactName: ChatLab-${version}.${ext} # Linux 平台配置 linux: - executableName: chatlens + executableName: chatlab icon: build/icon.png target: - AppImage @@ -58,7 +58,7 @@ linux: # AppImage 配置 appImage: - artifactName: ChatLens-${version}.${ext} + artifactName: ChatLab-${version}.${ext} # 是否在构建之前重新编译原生模块 npmRebuild: false diff --git a/electron/main/database/core.ts b/electron/main/database/core.ts index a67385c..f414003 100644 --- a/electron/main/database/core.ts +++ b/electron/main/database/core.ts @@ -21,7 +21,7 @@ function getDbDir(): string { try { const docPath = app.getPath('documents') console.log('[Database] app.getPath("documents"):', docPath) - DB_DIR = path.join(docPath, 'ChatLens', 'databases') + DB_DIR = path.join(docPath, 'ChatLab', 'databases') } catch (error) { console.error('[Database] Error getting userData path:', error) DB_DIR = path.join(process.cwd(), 'databases') diff --git a/electron/main/index.ts b/electron/main/index.ts index ac15021..73631f8 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -45,7 +45,7 @@ class MainProcess { // 初始化程序 async init() { // 注册应用协议 - app.setAsDefaultProtocolClient('chatlens') + app.setAsDefaultProtocolClient('chatlab') // 应用程序准备好之前注册 protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }]) diff --git a/package.json b/package.json index b3e4a53..4f0b2a1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "ChatLens", + "name": "ChatLab", "version": "0.1.0", "description": "获取你的聊天记录年度分析报告", "author": "", diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index c975bf2..4236a2a 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -73,7 +73,7 @@ function cancelDelete() {
-
ChatLens
+
ChatLab
diff --git a/src/components/WelcomeGuide.vue b/src/components/WelcomeGuide.vue index 684eb3a..61bfc72 100644 --- a/src/components/WelcomeGuide.vue +++ b/src/components/WelcomeGuide.vue @@ -131,7 +131,7 @@ function getProgressText(): string {

- ChatLens + ChatLab

获取你的聊天记录分析报告

diff --git a/src/components/charts/README.md b/src/components/charts/README.md index 26cd37b..67acfaf 100644 --- a/src/components/charts/README.md +++ b/src/components/charts/README.md @@ -1,6 +1,6 @@ # 图表组件库 -这是一个基于 `vue-chartjs` 和 `Chart.js` 的可复用图表组件库,专为 ChatLens 项目设计。所有组件都已经过封装,只需传入数据和简单配置即可使用。 +这是一个基于 `vue-chartjs` 和 `Chart.js` 的可复用图表组件库,专为 ChatLab 项目设计。所有组件都已经过封装,只需传入数据和简单配置即可使用。 ## 📦 组件列表 @@ -260,7 +260,7 @@ import { ProgressBar } from '@/components/charts' ### 颜色方案 -所有图表组件使用统一的配色方案,与 ChatLens 的设计语言保持一致: +所有图表组件使用统一的配色方案,与 ChatLab 的设计语言保持一致: - 主色调:Indigo (#6366f1) - 辅助色:Violet, Purple, Pink, Rose diff --git a/src/index.html b/src/index.html index 13f2f44..2a67a37 100644 --- a/src/index.html +++ b/src/index.html @@ -2,7 +2,7 @@ - ChatLens + ChatLab diff --git a/src/types/chat.ts b/src/types/chat.ts index dd715a8..48b3f4e 100644 --- a/src/types/chat.ts +++ b/src/types/chat.ts @@ -1,5 +1,5 @@ /** - * ChatLens 聊天数据模型定义 + * ChatLab 聊天数据模型定义 * 统一的数据结构,支持多平台聊天记录导入 */