MCPcopy Index your code
hub / github.com/TangSengDaoDao/TangSengDaoDaoWeb

github.com/TangSengDaoDao/TangSengDaoDaoWeb @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
1,420 symbols 2,711 edges 135 files 55 documented · 4% updated 29d agov1.0.0 · 2023-07-12★ 18021 open issues

Browse by type

Functions 931 Types & classes 489
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

运行

  1. yarn install

  2. yarn dev

发布镜像

修改api地址 packages/tsdaodaoweb/src/index.tsx 修改 WKApp.apiClient.config.apiURL = "/api/v1/"

make deploy

PC端运行

tauri 环境安装 (https://tauri.app/v1/guides/getting-started/prerequisites)

调试

yarn tauri dev

打包

yarn tauri build
(window打包的时候 要去掉package.json里的 build里的REACT_APP_VERSION=$npm_package_version 要不然执行yarn tauri build 会报错) (如果需要打包M1架构的包 需要安装 aarch64-apple-darwin(执行:rustup target add aarch64-apple-darwin))

yarn tauri build --target aarch64-apple-darwin (M1架构的包)

yarn tauri build --target universal-apple-darwin (通用架构,生成可在 Apple 芯片和基于 Intel 的 Mac 上运行的通用 macOS 二进制文件。)

其他技巧

icon生成

tauri icon [ICON-PATH]

准备一张1024x1024的icon 执行上面命令 即可生成各种尺寸的icon

icon.icns = macOS
icon.ico = MS Windows
*.png = Linux

注意

添加依赖

yarn workspace @tsdaodao/web add react-avatar-editor

## 使用Github Action 自动构建各端PC版本

需要先全局安装 @tauri-apps/cli yarn global add @tauri-apps/cli

tauri signer generate -w ~/.tauri/tsdaodao.key

上面 的命令会自动生成一个公钥、私钥对。公钥可以公开分享,私钥必须严密保存。

在Github Secrets中 配置 TAURI_PRIVATE_KEY 和 TAURI_KEY_PASSWORD

(参考:https://www.banyudu.com/posts/tauri-version-release-and-update-guide)

## 自动更新

  1. 修改 tauri.conf.json 里的 updater.pubkey的内容(上面通过tauri signer generate 生成的公钥)

  2. 修改 tauri.conf.json 里的 updater.endpoints 的内容为自己服务器的更新地址

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 914
Class 380
Interface 97
Function 17
Enum 12

Languages

TypeScript100%
Rust1%

Modules by API surface

packages/tsdaodaobase/src/Components/Conversation/vm.ts65 symbols
packages/tsdaodaobase/src/App.tsx62 symbols
packages/tsdaodaobase/src/Components/Conversation/index.tsx60 symbols
packages/tsdaodaobase/src/Service/Model.tsx57 symbols
packages/tsdaodaobase/src/Service/DataSource/DataSource.ts51 symbols
packages/tsdaodaodatasource/src/datasource.ts39 symbols
packages/tsdaodaobase/src/Components/WKViewQueue/index.tsx30 symbols
packages/tsdaodaobase/src/Components/ListItem/index.tsx29 symbols
packages/tsdaodaobase/src/Components/MessageInput/index.tsx24 symbols
packages/tsdaodaobase/src/Components/ConversationList/index.tsx23 symbols
packages/tsdaodaobase/src/Service/Module.ts21 symbols
packages/tsdaodaobase/src/Pages/Chat/index.tsx21 symbols

For agents

$ claude mcp add TangSengDaoDaoWeb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page