From 7ed53bec4762f1f42bc9249e21dc07d624e6e852 Mon Sep 17 00:00:00 2001 From: Rogee Date: Wed, 29 Jul 2026 14:49:20 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E4=B8=8E=E5=89=8D=E7=AB=AF=E5=BC=80=E5=8F=91=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - vite dev server 端口改为 5000 并启用 strictPort,端口冲突时拒绝启动 - AGENTS.md 更新前端目录结构说明(移除已删除的 ERB/enterprise 目录)及端口文档 - v3 登录页精简:移除 useBranding/globalConfig 依赖,去掉忘记密码链接 - 中文登录表单翻译优化(Email → 电子邮件) --- AGENTS.md | 17 ++++++++++--- .../dashboard/i18n/locale/zh_CN/login.json | 4 +-- .../app/javascript/v3/views/login/Index.vue | 25 ++----------------- frontend/vite.config.ts | 3 ++- 4 files changed, 19 insertions(+), 30 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7e478246..319e1b81 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,9 +19,6 @@ backend/ # Go backend (the Go module lives here) tests/ # e2e tests + test helpers frontend/ # Chatwoot Vue 3 frontend (vendored for customization) app/javascript/ # Vue SPA source (dashboard, widget, sdk, portal, superadmin) - app/views/ # ERB templates (vite-plugin-ruby entrypoint resolution) - config/vite.json # Vite-Rails bridge config - enterprise/ # Enterprise edition frontend overlay package.json # pnpm + Vite + Vue 3 toolchain deploy/ # Deployment artifacts docker/ # Dockerfile, Dockerfile.dev, docker-compose.{yml,dev,prod,test}.yml @@ -145,7 +142,7 @@ Key decoupling changes: # From repo root — unified dev workflow pnpm install # install all workspace deps pnpm dev:backend # start Go backend (air hot-reload, port 3000) -pnpm dev:frontend # start Vite dev server (port 3036, proxies API to :3000) +pnpm dev:frontend # start Vite dev server (port 5000, proxies API to :3000) pnpm dev # start both concurrently # Frontend-only (from frontend/) @@ -165,3 +162,15 @@ Default `CHATWOOT_DIR` points to `../frontend`. - Do not add Go files to `backend/scripts/legacy/` expecting them to be excluded — `go build ./...` compiles them; keep that directory for one-off scripts only. - Do not commit `.env`, `coverage.out`, `bin/`, or `tmp/`. - Do not rewrite git history or force-push without explicit instruction. + + + +## CodeGraph + +In repositories indexed by CodeGraph (a `.codegraph/` directory exists at the repo root), reach for it BEFORE grep/find or reading files when you need to understand or locate code: + +- **MCP tool** (when available): `codegraph_explore` answers most code questions in one call — the relevant symbols' verbatim source plus the call paths between them, including dynamic-dispatch hops grep can't follow. Name a file or symbol in the query to read its current line-numbered source. If it's listed but deferred, load it by name via tool search. +- **Shell** (always works): `codegraph explore ""` prints the same output. + +If there is no `.codegraph/` directory, skip CodeGraph entirely — indexing is the user's decision. + diff --git a/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json b/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json index 2dbbc932..34add4de 100644 --- a/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json +++ b/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json @@ -2,8 +2,8 @@ "LOGIN": { "TITLE": "登录到Chatwoot", "EMAIL": { - "LABEL": "Email", - "PLACEHOLDER": "实例 {'@'}companyname.com", + "LABEL": "电子邮件", + "PLACEHOLDER": "电子邮件", "ERROR": "请输入一个有效的电子邮件" }, "PASSWORD": { diff --git a/frontend/app/javascript/v3/views/login/Index.vue b/frontend/app/javascript/v3/views/login/Index.vue index 5c5a9d87..9ddcbc6e 100644 --- a/frontend/app/javascript/v3/views/login/Index.vue +++ b/frontend/app/javascript/v3/views/login/Index.vue @@ -1,13 +1,11 @@