mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-01-24 09:23:07 +08:00
feat: 重命名项目
This commit is contained in:
2
.env
2
.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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -45,7 +45,7 @@ class MainProcess {
|
||||
// 初始化程序
|
||||
async init() {
|
||||
// 注册应用协议
|
||||
app.setAsDefaultProtocolClient('chatlens')
|
||||
app.setAsDefaultProtocolClient('chatlab')
|
||||
|
||||
// 应用程序准备好之前注册
|
||||
protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }])
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ChatLens",
|
||||
"name": "ChatLab",
|
||||
"version": "0.1.0",
|
||||
"description": "获取你的聊天记录年度分析报告",
|
||||
"author": "",
|
||||
|
||||
@@ -73,7 +73,7 @@ function cancelDelete() {
|
||||
<div class="flex flex-col p-4">
|
||||
<!-- Header / Toggle -->
|
||||
<div class="mb-6 flex items-center" :class="[isCollapsed ? 'justify-center' : 'justify-between']">
|
||||
<div v-if="!isCollapsed" class="text-lg font-semibold text-gray-900 dark:text-white">ChatLens</div>
|
||||
<div v-if="!isCollapsed" class="text-lg font-semibold text-gray-900 dark:text-white">ChatLab</div>
|
||||
<UButton icon="i-heroicons-bars-3" color="gray" variant="ghost" size="sm" @click="toggleSidebar" />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ function getProgressText(): string {
|
||||
<h1
|
||||
class="mb-4 bg-linear-to-r from-purple-600 via-pink-500 to-orange-400 bg-clip-text text-5xl font-black tracking-tight text-transparent sm:text-6xl"
|
||||
>
|
||||
ChatLens
|
||||
ChatLab
|
||||
</h1>
|
||||
<p class="text-lg font-medium text-gray-500 dark:text-gray-400">获取你的聊天记录分析报告</p>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>ChatLens</title>
|
||||
<title>ChatLab</title>
|
||||
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
|
||||
<link rel="icon" href="/assets/imgs/favicon.ico" />
|
||||
</head>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* ChatLens 聊天数据模型定义
|
||||
* ChatLab 聊天数据模型定义
|
||||
* 统一的数据结构,支持多平台聊天记录导入
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user