diff --git a/.gitignore b/.gitignore index 2206c6b..3772a65 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,6 @@ Thumbs.db # 文档目录不上传 doc/ + +# ---- 用户上传文件(隐私文件,不要上传) ---- +backend/uploads/ \ No newline at end of file diff --git a/README.md b/README.md index 728646d..52b272d 100644 --- a/README.md +++ b/README.md @@ -62,11 +62,6 @@ AI-CS/ │ │ ├── agent/ # 客服端功能 │ │ └── visitor/ # 访客端功能 │ └── lib/ # 工具库和配置 -├── doc/ # 项目文档 -│ ├── CHANGELOG.md # 更新日志 -│ ├── 测试指南.md # 测试文档 -│ ├── 后端学习笔记.md # 后端架构说明 -│ └── 前端学习笔记.md # 前端架构说明 └── README.md # 本文件 ``` @@ -81,7 +76,7 @@ AI-CS/ ### 1. 克隆项目 ```bash -git clone +git clone https://github.com/2930134478/AI-CS.git cd AI-CS ``` diff --git a/frontend/components/dashboard/NavigationSidebar.tsx b/frontend/components/dashboard/NavigationSidebar.tsx index 7b53068..998ffa6 100644 --- a/frontend/components/dashboard/NavigationSidebar.tsx +++ b/frontend/components/dashboard/NavigationSidebar.tsx @@ -4,6 +4,7 @@ import { useState, useRef, useEffect } from "react"; import { useAuth } from "@/features/agent/hooks/useAuth"; import { getAvatarUrl, getAvatarColor, getAvatarInitial } from "@/utils/avatar"; import { Button } from "@/components/ui/button"; +import { websiteConfig } from "@/lib/website-config"; export type NavigationPage = "dashboard" | "faqs" | "users" | "settings"; @@ -185,8 +186,10 @@ export function NavigationSidebar({ - {/* 个人资料按钮(固定在底部) */} -
+ {/* 个人资料按钮和 GitHub 按钮(固定在底部) */} +
+ {/* 个人资料按钮 */} +
)} +
+ + {/* GitHub 链接按钮(个人资料下方) */} +
); diff --git a/frontend/components/layout/Footer.tsx b/frontend/components/layout/Footer.tsx index eff2d96..b52a6ee 100644 --- a/frontend/components/layout/Footer.tsx +++ b/frontend/components/layout/Footer.tsx @@ -137,7 +137,7 @@ export function Footer() {

Powered by Next.js & Go | - {/* 头部:标题和关闭按钮 - 使用渐变背景 */} + {/* 头部:标题和操作按钮 - 使用渐变背景 */}

@@ -492,26 +493,28 @@ export function ChatWidget({ visitorId, isOpen, onToggle }: ChatWidgetProps) {

客服聊天

+ {/* GitHub 链接按钮(替换关闭按钮) */}
diff --git a/frontend/lib/website-config.ts b/frontend/lib/website-config.ts index f8294be..2980da9 100644 --- a/frontend/lib/website-config.ts +++ b/frontend/lib/website-config.ts @@ -4,12 +4,12 @@ */ export const websiteConfig = { - // GitHub 仓库地址(请替换为您的实际仓库地址) + // GitHub 仓库地址 github: { - repo: "https://github.com/your-username/ai-cs", - releases: "https://github.com/your-username/ai-cs/releases", - issues: "https://github.com/your-username/ai-cs/issues", - readme: "https://github.com/your-username/ai-cs/blob/main/README.md", + repo: "https://github.com/2930134478/AI-CS", + releases: "https://github.com/2930134478/AI-CS/releases", + issues: "https://github.com/2930134478/AI-CS/issues", + readme: "https://github.com/2930134478/AI-CS/blob/master/README.md", }, // 联系方式