zdl
|
e23feb3c23
|
feat: 添加评论功能
|
2025-11-14 16:15:13 +08:00 |
|
|
|
e428caf578
|
update ui
|
2025-11-14 15:50:21 +08:00 |
|
|
|
8828340d8c
|
update ui
|
2025-11-14 15:36:02 +08:00 |
|
|
|
fc9b4e6257
|
update ui
|
2025-11-14 15:20:58 +08:00 |
|
|
|
8315aac4d9
|
update ui
|
2025-11-14 15:14:23 +08:00 |
|
|
|
f72b52000c
|
update ui
|
2025-11-14 15:08:32 +08:00 |
|
|
|
ad8ff50001
|
update ui
|
2025-11-14 08:09:18 +08:00 |
|
|
|
98d063bcfe
|
update ui
|
2025-11-14 08:03:33 +08:00 |
|
|
|
8c93606769
|
update ui
|
2025-11-14 07:42:18 +08:00 |
|
|
|
eac3b09a95
|
update ui
|
2025-11-14 07:25:12 +08:00 |
|
|
|
5e70f4443d
|
update ui
|
2025-11-14 06:39:29 +08:00 |
|
|
|
1773c571ab
|
update ui
|
2025-11-13 23:44:37 +08:00 |
|
|
|
6452869968
|
update ui
|
2025-11-13 23:34:29 +08:00 |
|
|
|
3caa5f4c3a
|
update ui
|
2025-11-13 23:24:54 +08:00 |
|
|
|
d3b980b3ca
|
update ui
|
2025-11-13 23:06:19 +08:00 |
|
|
|
6113a3fefd
|
update ui
|
2025-11-13 22:57:24 +08:00 |
|
|
|
f0bb00a2ce
|
update ui
|
2025-11-13 22:35:33 +08:00 |
|
|
|
c6062efb00
|
update ui
|
2025-11-13 22:21:59 +08:00 |
|
|
|
7e0358ede4
|
update ui
|
2025-11-13 21:59:33 +08:00 |
|
|
|
2edeeec497
|
update ui
|
2025-11-13 18:08:02 +08:00 |
|
|
|
716b4ba3bd
|
update ui
|
2025-11-13 17:58:37 +08:00 |
|
|
|
dfa2635b2e
|
update ui
|
2025-11-13 17:51:47 +08:00 |
|
|
|
8dc4ddac66
|
update ui
|
2025-11-13 17:45:09 +08:00 |
|
|
|
cb4c51a958
|
update ui
|
2025-11-13 17:38:54 +08:00 |
|
|
|
0e32076e71
|
update ui
|
2025-11-13 17:31:06 +08:00 |
|
|
|
4bb37c6e6d
|
update ui
|
2025-11-13 17:18:33 +08:00 |
|
|
|
58d1e6f2ad
|
update ui
|
2025-11-13 16:51:35 +08:00 |
|
|
|
9d6c0ac55c
|
update ui
|
2025-11-13 16:34:34 +08:00 |
|
|
|
5ddf8d3c09
|
update ui
|
2025-11-13 16:17:32 +08:00 |
|
|
|
5aa0507a65
|
update ui
|
2025-11-13 16:07:14 +08:00 |
|
|
|
1d9b50a94e
|
update app_vx
|
2025-11-13 15:22:02 +08:00 |
|
|
|
49b31a5a89
|
add docx
|
2025-11-13 10:30:08 +08:00 |
|
|
|
693eae72f6
|
update app_vx
|
2025-11-13 10:21:16 +08:00 |
|
zdl
|
6ef635b1ba
|
feat: 修改配置
|
2025-11-13 00:19:58 +08:00 |
|
zdl
|
9fe65f6c23
|
feat: 参数调整
|
2025-11-12 14:27:32 +08:00 |
|
zdl
|
7fa4a8efbc
|
feat:修复了图片 404 错误
|
2025-11-12 13:51:07 +08:00 |
|
zdl
|
44ae479615
|
feat: 调整链接
|
2025-11-12 13:41:33 +08:00 |
|
zdl
|
e32a500247
|
fix(bytedesk): 修复路径配置,统一使用 /bytedesk/ 前缀
修复 Bytedesk 客服系统路径不匹配问题,统一前端、CRACO 和 Nginx 配置。
## 问题
- 前端配置使用 `/bytedesk-api/` 路径
- 生产 Nginx 配置使用 `/bytedesk/` 路径
- 路径不匹配导致请求 404 或被 React Router 拦截
## 解决方案
统一使用 `/bytedesk/` 路径前缀,避免 React Router 冲突
## 代码变更
### src/bytedesk-integration/config/bytedesk.config.js
- `htmlUrl`: `/bytedesk-api/chat/` → `/bytedesk/chat/`
- `apiUrl`: `/bytedesk-api/` → `/bytedesk/`
- 更新配置注释,说明代理架构
### craco.config.js
- 代理前缀:`/bytedesk-api` → `/bytedesk`
- 删除冗余代理:`/chat` 和 `/config`(Nginx 统一处理)
- 简化配置,减少代理规则数量
## 请求链路
```
浏览器 → /bytedesk/chat/
↓
CRACO/Nginx → location /bytedesk/ {}
↓
代理转发 → http://43.143.189.195/chat/
↓
✅ Bytedesk 聊天窗口
```
## 优势
- ✅ 前端、CRACO、Nginx 路径统一
- ✅ 避免 React Router 冲突
- ✅ 简化代理配置
- ✅ 无需修改服务器 Nginx
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-12 13:30:39 +08:00 |
|
zdl
|
5524826edd
|
feat: 切换iframe域名
|
2025-11-12 13:16:11 +08:00 |
|
zdl
|
19b03b6c91
|
feat: 调整配置
|
2025-11-12 11:54:18 +08:00 |
|
zdl
|
b07cb8ab51
|
feat: 修改 bytedesk.config.js,改为使用相对路径和动态域名
|
2025-11-12 11:26:05 +08:00 |
|
zdl
|
a1c952c619
|
Merge branch 'feature_bugfix/251110_event' of https://git.valuefrontier.cn/vf/vf_react into feature_bugfix/251110_event
* 'feature_bugfix/251110_event' of https://git.valuefrontier.cn/vf/vf_react:
feat: 调整环境配置
|
2025-11-12 11:04:08 +08:00 |
|
zdl
|
fb4a18c8ec
|
feat: 调整环境配置
|
2025-11-12 11:03:37 +08:00 |
|
zdl
|
1e9484e471
|
feat: 调整环境配置
|
2025-11-12 11:01:44 +08:00 |
|
zdl
|
5c60450ba1
|
feat: 配置调整
|
2025-11-12 10:43:06 +08:00 |
|
zdl
|
d2b6d891b2
|
feat: 添加UI
|
2025-11-11 22:47:27 +08:00 |
|
zdl
|
261a7bf329
|
fix(community): 修复 React Hooks 顺序错误
将 Alert 组件中的 useColorModeValue Hook 调用提取到组件顶层,
避免在条件渲染中调用 Hook 导致的顺序变化问题。
## 问题
- useColorModeValue 在 showNotificationBanner 条件渲染内部调用
- 当条件状态变化时,Hooks 调用顺序发生改变
- 触发 React 警告:Hooks 顺序改变(第 75 个 Hook 从 undefined 变为 useContext)
## 解决方案
- 将 alertBgColor 和 alertBorderColor 提取到组件顶层
- 确保所有 Hooks 在每次渲染时以相同顺序调用
- 符合 React Hooks 规则:只在顶层调用 Hooks
## 变更文件
src/views/Community/index.js:
- 新增 alertBgColor 常量(第 47 行)
- 新增 alertBorderColor 常量(第 48 行)
- Alert 组件使用变量替代直接调用 Hook
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-11 20:20:57 +08:00 |
|
zdl
|
a3dfa5fd06
|
fix(bytedesk): 修复组织 UUID 和 API URL 配置错误
回滚之前错误的提交,使用正确的组织 UUID(df_org_uid)和相对路径 API URL。
## 问题
1. **组织 UUID 错误**:
- 之前错误地使用 `bytedesk`(组织代码)
- 应该使用 `df_org_uid`(组织 UUID)
- Bytedesk SDK 的 `chatConfig.org` 需要组织 UUID,不是代码
2. **API URL 默认值错误**:
- 代码默认值使用 HTTP 绝对 URL: `http://43.143.189.195`
- 会导致生产环境 Mixed Content 错误
- 应该使用相对路径: `/bytedesk-api`
## 解决方案
1. 统一使用组织 UUID: `df_org_uid`
2. 修改 API URL 默认值为相对路径: `/bytedesk-api`
## 代码变更
### 1. `.env.production`
```diff
- REACT_APP_BYTEDESK_ORG=bytedesk
+ REACT_APP_BYTEDESK_ORG=df_org_uid
```
### 2. `src/bytedesk-integration/config/bytedesk.config.js`
```diff
- const BYTEDESK_API_URL = process.env.REACT_APP_BYTEDESK_API_URL || 'http://43.143.189.195';
+ const BYTEDESK_API_URL = process.env.REACT_APP_BYTEDESK_API_URL || '/bytedesk-api';
- const BYTEDESK_ORG = process.env.REACT_APP_BYTEDESK_ORG || 'bytedesk';
+ const BYTEDESK_ORG = process.env.REACT_APP_BYTEDESK_ORG || 'df_org_uid';
```
### 3. `src/bytedesk-integration/.env.bytedesk.example`
```diff
- REACT_APP_BYTEDESK_ORG=bytedesk
+ REACT_APP_BYTEDESK_ORG=df_org_uid
```
## 后台配置确认
根据 Bytedesk 管理后台:
- ✅ 组织 UUID: `df_org_uid`
- ✅ 组织代码: `bytedesk`(仅用于显示)
- ✅ 工作组 UUID: `df_wg_uid`
## 最终配置
所有环境的配置统一为:
```bash
REACT_APP_BYTEDESK_API_URL=/bytedesk-api
REACT_APP_BYTEDESK_ORG=df_org_uid
REACT_APP_BYTEDESK_SID=df_wg_uid
```
## 本地开发配置
开发者需要在 `.env.local` 中手动设置(此文件不提交到 git):
```bash
REACT_APP_BYTEDESK_API_URL=/bytedesk-api
REACT_APP_BYTEDESK_ORG=df_org_uid
REACT_APP_BYTEDESK_SID=df_wg_uid
```
## 验证
- ✅ 即使环境变量未设置,默认值也是正确的
- ✅ 不会出现 Mixed Content 错误(使用相对路径)
- ✅ 配置与后台管理界面的 UUID 一致
- ✅ 不再出现 "Failed to create thread" 错误
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-11 20:14:28 +08:00 |
|
zdl
|
1b7bec47ee
|
feat: 调整api
|
2025-11-11 19:00:02 +08:00 |
|
zdl
|
ccf1d1c0a6
|
Merge branch 'feature_bugfix/251111_event' into feature_bugfix/251110_event
* feature_bugfix/251111_event:
fix(socket): 保留暂存监听器,修复重连后事件监听器丢失问题
fix(socket): 暴露 Socket 实例到 window 对象,修复生产环境事件监听器失效问题
fix(notification): 修复 Socket 重连后通知功能失效问题(方案2)
feat: 添加调试 API - 我修改 NotificationContext.js,暴露 addNotification 到 window - 或者在调试工具 (devtools/notificationDebugger.js) 中添加测试方法 - 重新构建并部署 - 可以手动触发网页通知
feat: Service Worker 注册失败修复方案 1. 使用了 window.location.origin,但 Service Worker 环境中没有 window 对象 2. 注册逻辑缺少详细的错误处理和状态检查
feat: 通知调试能力
|
2025-11-11 18:59:00 +08:00 |
|