diff --git a/README.en.md b/README.en.md index ac2ba0f..ad58b59 100644 --- a/README.en.md +++ b/README.en.md @@ -26,6 +26,7 @@ - [Documentation](#documentation) - [FAQ & Troubleshooting](#faq--troubleshooting) - [Star History](#star-history) +- [Community](#community) - [Friendly Links](#friendly-links) - [Contributing](#contributing) - [License](#license) @@ -170,6 +171,13 @@ Paste before ``. Point iframe `src` to `https://your-domain/chat`. The pa + + +## Community + +- **Bugs / feature requests**:[GitHub Issues](https://github.com/2930134478/AI-CS/issues) (include deployment method and logs; never post API keys or DB passwords) +- **QQ group**:1106804464. It appears in the [demo site footer](https://demo.cscorp.top) under Contact. + ## Friendly Links - [Live demo](https://demo.cscorp.top) diff --git a/README.md b/README.md index e4bda96..a88b283 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ - [相关文档](#docs) - [常见问题与排障](#faq) - [Star History](#star-history) +- [交流与反馈](#community) - [Friendly Links](#friendly-links) - [贡献](#contributing) - [许可证](#license) @@ -334,6 +335,13 @@ npm run dev + + +## 交流与反馈 + +- **Bug / 功能建议**:[GitHub Issues](https://github.com/2930134478/AI-CS/issues)(请附部署方式、后端日志;勿贴 API Key、数据库密码) +- **QQ 交流群**:在 `frontend/lib/website-config.ts` 填写 `contact.qqGroupNumber`(可选 `contact.qqGroupJoinUrl` 加群链接)后,[官网 / Demo 页脚](https://demo.cscorp.top)「联系我们」会同步展示 + ## Friendly Links - [在线演示 · AI-CS Demo](https://demo.cscorp.top) diff --git a/_tmp_csdn_article.html b/_tmp_csdn_article.html deleted file mode 100644 index e69de29..0000000 diff --git a/frontend/components/layout/Footer.tsx b/frontend/components/layout/Footer.tsx index a636121..8845ae0 100644 --- a/frontend/components/layout/Footer.tsx +++ b/frontend/components/layout/Footer.tsx @@ -1,7 +1,7 @@ "use client"; import Link from "next/link"; -import { Github, Mail, MessageSquare } from "lucide-react"; +import { Github, Mail, MessageSquare, Users } from "lucide-react"; import { websiteConfig } from "@/lib/website-config"; import { useI18n } from "@/lib/i18n/provider"; @@ -113,6 +113,26 @@ export function Footer() { ) : null} + {websiteConfig.contact.qqGroupNumber ? ( +
  • + + {websiteConfig.contact.qqGroupJoinUrl ? ( + + {t("footer.qqGroup")}: {websiteConfig.contact.qqGroupNumber} + + ) : ( + + {t("footer.qqGroup")}: {websiteConfig.contact.qqGroupNumber} + + )} +
  • + ) : null}
  • > = { "footer.poweredBy": "Powered by Next.js & Go |", "footer.allRightsReserved": "保留所有权利。", "footer.emailLabel": "邮箱", + "footer.qqGroup": "QQ 交流群", + "footer.qqGroupAria": "加入 QQ 交流群", "agent.page.dashboard": "对话", "agent.page.internalChat": "知识库测试", "agent.page.knowledge": "知识库", @@ -1211,6 +1215,8 @@ export const DICT: Record> = { "footer.poweredBy": "Powered by Next.js & Go |", "footer.allRightsReserved": "All rights reserved.", "footer.emailLabel": "Email", + "footer.qqGroup": "QQ group", + "footer.qqGroupAria": "Join QQ group", "agent.page.dashboard": "Chats", "agent.page.internalChat": "KB Test", "agent.page.knowledge": "Knowledge Base", diff --git a/frontend/lib/website-config.ts b/frontend/lib/website-config.ts index 15243e1..8cb4483 100644 --- a/frontend/lib/website-config.ts +++ b/frontend/lib/website-config.ts @@ -19,6 +19,10 @@ export const websiteConfig = { contact: { email: "contact@example.com", // 可选:邮箱地址 wechat: "", // 可选:微信号或微信群链接 + /** QQ 交流群号(纯数字或展示文案);留空则页脚不显示 */ + qqGroupNumber: "", + /** 可选:一键加群链接(如 https://qm.qq.com/q/xxxxx ),有则页脚可点击 */ + qqGroupJoinUrl: "", }, // 友情链接(用于互相引流)