From e4956e7b1822a22ca76b1843c93b0a77eb25b215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B5=E6=91=87=E5=B0=8F=E5=AD=90?= <84499436+Wxw-Gu@users.noreply.github.com> Date: Mon, 15 Dec 2025 16:01:25 +0800 Subject: [PATCH] =?UTF-8?q?init:=20=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 9 + .env.example | 8 + .gitignore | 7 + .npmrc | 1 + .prettierignore | 6 + .prettierrc.yaml | 4 + .vscode/extensions.json | 3 + .vscode/launch.json | 39 + .vscode/settings.json | 11 + LICENSE | 21 + README.md | 86 + build/entitlements.mac.plist | 12 + build/icon.icns | Bin 0 -> 85649 bytes build/icon.ico | Bin 0 -> 123545 bytes build/icon.png | Bin 0 -> 35949 bytes electron-builder.yml | 46 + electron.vite.config.ts | 16 + eslint.config.mjs | 32 + package.json | 58 + pnpm-lock.yaml | 5022 ++++++++++++++++++++ public/WX20251215-155324.png | Bin 0 -> 140841 bytes public/WX20251215-155524.png | Bin 0 -> 474357 bytes resources/icon.png | Bin 0 -> 35949 bytes src/main/index.ts | 244 + src/main/wechat-db.ts | 362 ++ src/preload/index.d.ts | 19 + src/preload/index.ts | 30 + src/renderer/index.html | 17 + src/renderer/src/App.tsx | 187 + src/renderer/src/assets/base.css | 67 + src/renderer/src/assets/electron.svg | 10 + src/renderer/src/assets/main.css | 380 ++ src/renderer/src/assets/wavy-lines.svg | 25 + src/renderer/src/components/ChatWindow.tsx | 479 ++ src/renderer/src/components/Sidebar.tsx | 118 + src/renderer/src/components/Versions.tsx | 15 + src/renderer/src/env.d.ts | 1 + src/renderer/src/main.tsx | 10 + src/shared/types.ts | 23 + tsconfig.json | 4 + tsconfig.node.json | 8 + tsconfig.web.json | 20 + 42 files changed, 7400 insertions(+) create mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 .npmrc create mode 100644 .prettierignore create mode 100644 .prettierrc.yaml create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 LICENSE create mode 100644 README.md create mode 100644 build/entitlements.mac.plist create mode 100644 build/icon.icns create mode 100644 build/icon.ico create mode 100644 build/icon.png create mode 100644 electron-builder.yml create mode 100644 electron.vite.config.ts create mode 100644 eslint.config.mjs create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 public/WX20251215-155324.png create mode 100644 public/WX20251215-155524.png create mode 100644 resources/icon.png create mode 100644 src/main/index.ts create mode 100644 src/main/wechat-db.ts create mode 100644 src/preload/index.d.ts create mode 100644 src/preload/index.ts create mode 100644 src/renderer/index.html create mode 100644 src/renderer/src/App.tsx create mode 100644 src/renderer/src/assets/base.css create mode 100644 src/renderer/src/assets/electron.svg create mode 100644 src/renderer/src/assets/main.css create mode 100644 src/renderer/src/assets/wavy-lines.svg create mode 100644 src/renderer/src/components/ChatWindow.tsx create mode 100644 src/renderer/src/components/Sidebar.tsx create mode 100644 src/renderer/src/components/Versions.tsx create mode 100644 src/renderer/src/env.d.ts create mode 100644 src/renderer/src/main.tsx create mode 100644 src/shared/types.ts create mode 100644 tsconfig.json create mode 100644 tsconfig.node.json create mode 100644 tsconfig.web.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cf640d5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..980b2d0 --- /dev/null +++ b/.env.example @@ -0,0 +1,8 @@ +# WeChat Database Key (Optional, can be entered in UI) +VITE_DB_KEY= + +# DeepSeek API Key (Optional, can be entered in UI) +VITE_DEEPSEEK_API_KEY= + +# Message types to filter out (comma separated) +VITE_FILTER_MSG_TYPES=分享消息,图片,表情包,视频 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b33346 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +node_modules +dist +out +.env +.DS_Store +.eslintcache +*.log* diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..bf2e764 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +shamefully-hoist=true diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..9c6b791 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +out +dist +pnpm-lock.yaml +LICENSE.md +tsconfig.json +tsconfig.*.json diff --git a/.prettierrc.yaml b/.prettierrc.yaml new file mode 100644 index 0000000..35893b3 --- /dev/null +++ b/.prettierrc.yaml @@ -0,0 +1,4 @@ +singleQuote: true +semi: false +printWidth: 100 +trailingComma: none diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..940260d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["dbaeumer.vscode-eslint"] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..0b6b9a6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,39 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Main Process", + "type": "node", + "request": "launch", + "cwd": "${workspaceRoot}", + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite", + "windows": { + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd" + }, + "runtimeArgs": ["--sourcemap"], + "env": { + "REMOTE_DEBUGGING_PORT": "9222" + } + }, + { + "name": "Debug Renderer Process", + "port": 9222, + "request": "attach", + "type": "chrome", + "webRoot": "${workspaceFolder}/src/renderer", + "timeout": 60000, + "presentation": { + "hidden": true + } + } + ], + "compounds": [ + { + "name": "Debug All", + "configurations": ["Debug Main Process", "Debug Renderer Process"], + "presentation": { + "order": 1 + } + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..330d724 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "[typescript]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2a119a5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 WechatExplorer Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5451350 --- /dev/null +++ b/README.md @@ -0,0 +1,86 @@ +# WechatExplorer + +WechatExplorer 是一个基于 Electron + React + TypeScript 开发的微信聊天记录查看与分析工具。它支持查看解密后的微信数据库内容,提供聊天记录搜索、导出以及 AI 智能总结功能。 + + +## 📸 预览 + +
+
+OR0$DL2n@k`_Xus;Q-3eZlXA7Bs3zI^27$m2nt>6<4GW14t=z4{>9z!ZD
zsZSWvT>fl8)aM1leQWR7S+OJ@4ZFWQr5$L4_LK2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