Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lobehub/lobe-vidol
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e046e1b6f887477579bfaec653409ff71db80c50
Choose a base ref
..
head repository: lobehub/lobe-vidol
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 501eeeb7c82b91926bab1b832f59bd0dc3421b0c
Choose a head ref
Showing with 5,133 additions and 1,989 deletions.
  1. +157 −0 CHANGELOG.md
  2. +1 −2 next.config.mjs
  3. +18 −17 package.json
  4. +2 −2 src/app/api/voice/microsoft/voices/route.ts
  5. +6 −18 src/app/chat/Apps.tsx
  6. +35 −0 src/app/chat/ChatMode/index.tsx
  7. +24 −0 src/app/chat/ChatMode/style.ts
  8. +2 −2 src/app/chat/SideBar/Header/index.tsx
  9. +2 −2 src/app/chat/SideBar/index.tsx
  10. +46 −0 src/app/chat/ViewerMode/index.tsx
  11. +34 −0 src/app/chat/ViewerMode/style.ts
  12. +6 −21 src/app/chat/page.tsx
  13. +6 −20 src/app/chat/style.ts
  14. +5 −0 src/app/error.tsx
  15. +22 −0 src/app/global-error.tsx
  16. +1 −5 src/app/layout.tsx
  17. +1 −1 src/app/market/page.tsx
  18. +3 −6 src/app/my/SideBar/MyList/Item.tsx
  19. +26 −0 src/app/role/SideBar/Header/index.tsx
  20. +9 −0 src/app/role/SideBar/Header/style.ts
  21. +42 −0 src/app/role/SideBar/index.tsx
  22. +18 −0 src/app/role/layout.tsx
  23. +33 −0 src/app/role/page.tsx
  24. +13 −0 src/app/role/style.ts
  25. +7 −10 src/components/Author/index.tsx
  26. +43 −0 src/components/Avatar.tsx
  27. +30 −0 src/components/EmptyGuide/index.tsx
  28. +24 −0 src/components/EmptyGuide/style.ts
  29. +61 −0 src/components/Error/index.tsx
  30. +1 −1 src/components/GridList/style.ts
  31. +165 −0 src/components/ListItem/index.tsx
  32. +82 −0 src/components/ListItem/style.ts
  33. +9 −0 src/components/ListItem/time.ts
  34. +97 −0 src/components/Menu/index.tsx
  35. +12 −3 src/components/PageLoading/index.tsx
  36. +1 −1 src/components/Panel/Container.tsx
  37. +1 −1 src/components/Panel/index.tsx
  38. +3 −10 src/components/agent/AgentCard/index.tsx
  39. +1 −1 src/components/agent/AgentCard/style.ts
  40. +6 −3 src/components/agent/AgentMeta/index.tsx
  41. +22 −20 src/constants/agent.ts
  42. +19 −22 src/constants/common.ts
  43. +5 −0 src/constants/theme.ts
  44. +21 −0 src/constants/token.ts
  45. +165 −0 src/constants/touch.tsx
  46. +46 −0 src/constants/tts.ts
  47. +5 −7 src/features/Actions/Agent.tsx
  48. +29 −0 src/features/Actions/Chat.tsx
  49. +41 −0 src/features/Actions/ClearSession.tsx
  50. +2 −2 src/features/Actions/Dance.tsx
  51. +34 −0 src/features/Actions/Discord.tsx
  52. +0 −18 src/features/Actions/Edit.tsx
  53. +35 −0 src/features/Actions/Github.tsx
  54. +18 −0 src/features/Actions/Market.tsx
  55. +1 −1 src/features/Actions/PlayControl.tsx
  56. +38 −0 src/features/Actions/ResetConfig.tsx
  57. +61 −0 src/features/Actions/ThemeMode/index.tsx
  58. +19 −0 src/features/Actions/ToggleChatDialog.tsx
  59. +1 −1 src/features/Actions/ToggleChatSideBar.tsx
  60. +1 −1 src/features/Actions/ToggleSessionList.tsx
  61. +2 −2 src/features/Actions/Token.tsx
  62. +2 −2 src/features/Actions/TokenMini.tsx
  63. +28 −0 src/features/Actions/UnSubscribeButton.tsx
  64. +15 −0 src/features/Actions/UserAvatar.tsx
  65. +1 −1 src/features/Actions/Video.tsx
  66. +2 −2 src/features/Actions/ViewerMode.tsx
  67. +3 −3 src/features/Actions/Voice.tsx
  68. +4 −43 src/features/AgentViewer/ToolBar/index.tsx
  69. +27 −26 src/features/AgentViewer/index.tsx
  70. +10 −23 src/features/AgentViewer/style.ts
  71. +1 −1 src/features/AudioPlayer/MiniPlayer/index.tsx
  72. +1 −1 src/features/AudioPlayer/PlayList/index.tsx
  73. +2 −2 src/features/AudioPlayer/index.tsx
  74. +1 −5 src/features/ChatDialog/index.tsx
  75. +0 −10 src/features/ChatDialog/style.ts
  76. +12 −6 src/features/ChatHeader/index.tsx
  77. +1 −1 src/features/ChatHeader/style.ts
  78. +9 −5 src/features/ChatInfo/Operations/Item.tsx
  79. +27 −17 src/features/ChatInfo/Operations/index.tsx
  80. +6 −3 src/features/ChatInfo/index.tsx
  81. +6 −2 src/features/ChatInput/MessageInput/index.tsx
  82. +2 −2 src/features/ChatInput/index.tsx
  83. +0 −2 src/features/ChatItem/Actions/Assistant.tsx
  84. +2 −2 src/features/ChatItem/Error/ApiKeyForm.tsx
  85. +9 −0 src/features/ChatItem/index.tsx
  86. +13 −4 src/features/ChatList/index.tsx
  87. +8 −0 src/features/ChatList/style.ts
  88. +20 −0 src/features/DebugUI/index.tsx
  89. +13 −4 src/{panels/AgentPanel/Market/Card → features/MarketInfo}/index.tsx
  90. +36 −0 src/features/RoleHeader/index.tsx
  91. +15 −0 src/features/RoleHeader/style.ts
  92. +62 −0 src/features/RoleInfo/index.tsx
  93. +34 −0 src/features/RoleList/List/Elsa/index.tsx
  94. +74 −0 src/features/RoleList/List/Item/Actions.tsx
  95. +38 −0 src/features/RoleList/List/Item/index.tsx
  96. +44 −0 src/features/RoleList/List/SkeletonList.tsx
  97. +50 −0 src/features/RoleList/List/index.tsx
  98. +47 −0 src/features/RoleList/ListItem.tsx
  99. +106 −0 src/features/RoleList/index.tsx
  100. +6 −1 src/{panels/RolePanel/Touch/SideBar → features/RoleList}/style.ts
  101. +9 −7 src/features/SessionList/{V → Elsa}/index.tsx
  102. +2 −0 src/features/SessionList/List/Item/Actions.tsx
  103. +5 −11 src/features/SessionList/List/Item/index.tsx
  104. +6 −11 src/features/SessionList/List/index.tsx
  105. +7 −35 src/features/SessionList/index.tsx
  106. +1 −1 src/features/SessionList/style.ts
  107. +31 −121 src/features/Settings/common.tsx
  108. +32 −0 src/features/Settings/features/AvatarWithUpload/index.tsx
  109. +38 −0 src/features/Settings/features/BackgroundEffect/index.tsx
  110. +33 −0 src/features/Settings/features/NickName/index.tsx
  111. +32 −0 src/features/Settings/features/ThemeSwatchesNetural.tsx
  112. +32 −0 src/features/Settings/features/ThemeSwatchesPrimary.tsx
  113. +4 −5 src/features/Settings/model/openai.tsx
  114. +7 −4 src/features/vrmViewer/viewer.ts
  115. +31 −0 src/hooks/useLoadVrm.ts
  116. +63 −0 src/layout/AppTheme.tsx
  117. +2 −2 src/layout/Background/index.tsx
  118. +24 −17 src/layout/Header/index.tsx
  119. +7 −2 src/layout/StoreHydration.tsx
  120. +24 −0 src/layout/StyleRegistry.tsx
  121. +29 −39 src/layout/index.tsx
  122. +1 −0 src/layout/type.ts
  123. +0 −101 src/panels/AgentPanel/Agent/Card/index.tsx
  124. +6 −13 src/panels/AgentPanel/Agent/List/index.tsx
  125. +2 −5 src/panels/AgentPanel/Agent/index.tsx
  126. +3 −18 src/panels/AgentPanel/index.tsx
  127. +2 −2 src/panels/DancePanel/Dance/Card/index.tsx
  128. +8 −2 src/panels/DancePanel/Market/Card/index.tsx
  129. +2 −2 src/panels/{AgentPanel → MarketPanel}/Market/List/index.tsx
  130. +2 −2 src/panels/{AgentPanel → MarketPanel}/Market/index.tsx
  131. +26 −0 src/panels/MarketPanel/index.tsx
  132. +1 −1 src/panels/{RolePanel → MarketPanel}/style.ts
  133. +3 −3 src/panels/PanelContainer.tsx
  134. +0 −111 src/panels/RolePanel/Info/index.tsx
  135. +0 −107 src/panels/RolePanel/Role/index.tsx
  136. +77 −0 src/panels/RolePanel/RoleEdit/Info/AvatarWithUpload/index.tsx
  137. +68 −0 src/panels/RolePanel/RoleEdit/Info/CoverWithUpload/index.tsx
  138. +33 −0 src/panels/RolePanel/RoleEdit/Info/Greeting/index.tsx
  139. +33 −0 src/panels/RolePanel/RoleEdit/Info/ReadMe/index.tsx
  140. +32 −0 src/panels/RolePanel/RoleEdit/Info/RoleDescription/index.tsx
  141. +32 −0 src/panels/RolePanel/RoleEdit/Info/RoleName/index.tsx
  142. +98 −0 src/panels/RolePanel/RoleEdit/Info/index.tsx
  143. +97 −0 src/panels/RolePanel/RoleEdit/Model/Touch/ActionList/Actions/AddOrEdit.tsx
  144. +30 −0 src/panels/RolePanel/RoleEdit/Model/Touch/ActionList/Actions/Delete.tsx
  145. +52 −0 src/panels/RolePanel/RoleEdit/Model/Touch/ActionList/Actions/Play.tsx
  146. +84 −0 src/panels/RolePanel/RoleEdit/Model/Touch/ActionList/index.tsx
  147. +55 −0 src/panels/RolePanel/RoleEdit/Model/Touch/SideBar/index.tsx
  148. +8 −10 src/panels/RolePanel/{ → RoleEdit/Model}/Touch/index.tsx
  149. +55 −0 src/panels/RolePanel/RoleEdit/Model/ViewerWithUpload/index.tsx
  150. +32 −0 src/panels/RolePanel/RoleEdit/Model/components/Header.tsx
  151. +54 −0 src/panels/RolePanel/RoleEdit/Model/index.tsx
  152. +33 −0 src/panels/RolePanel/RoleEdit/Role/SystemRole/index.tsx
  153. +51 −0 src/panels/RolePanel/RoleEdit/Role/index.tsx
  154. +35 −0 src/panels/RolePanel/RoleEdit/Voice/TTSEngine/index.tsx
  155. +30 −0 src/panels/RolePanel/RoleEdit/Voice/TTSLocale/index.tsx
  156. +44 −0 src/panels/RolePanel/RoleEdit/Voice/TTSPitch/index.tsx
  157. +70 −0 src/panels/RolePanel/RoleEdit/Voice/TTSPlay/index.tsx
  158. +44 −0 src/panels/RolePanel/RoleEdit/Voice/TTSSpeed/index.tsx
  159. +67 −0 src/panels/RolePanel/RoleEdit/Voice/TTSVoice/index.tsx
  160. +68 −0 src/panels/RolePanel/RoleEdit/Voice/index.tsx
  161. +61 −0 src/panels/RolePanel/RoleEdit/index.tsx
  162. +17 −0 src/panels/RolePanel/RoleEdit/style.ts
  163. +25 −0 src/panels/RolePanel/RoleEdit/useSyncSetting.tsx
  164. +0 −70 src/panels/RolePanel/Touch/ActionList/index.tsx
  165. +0 −55 src/panels/RolePanel/Touch/SideBar/AreaList.tsx
  166. +0 −7 src/panels/RolePanel/Touch/SideBar/index.tsx
  167. +0 −268 src/panels/RolePanel/Voice/index.tsx
  168. +3 −51 src/panels/RolePanel/index.tsx
  169. +1 −0 src/panels/index.tsx
  170. +7 −7 src/services/chat.ts
  171. +241 −44 src/store/agent/index.ts
  172. +9 −0 src/store/agent/initialState.ts
  173. +59 −0 src/store/agent/reducers/touch.ts
  174. +76 −6 src/store/agent/selectors/agent.ts
  175. +0 −118 src/store/config/index.ts
  176. +0 −40 src/store/config/initialState.ts
  177. +0 −18 src/store/config/selectors/config.ts
  178. +1 −1 src/store/dance/slices/playlist.ts
  179. +0 −31 src/store/global.ts
  180. +158 −0 src/store/global/index.ts
  181. +13 −0 src/store/global/selectors/panel.ts
  182. +6 −30 src/store/session/index.ts
  183. +0 −1 src/store/session/initialState.ts
  184. +45 −29 src/store/session/selectors.ts
  185. +109 −0 src/store/setting/index.ts
  186. +20 −0 src/store/setting/initialState.ts
  187. +10 −0 src/store/setting/selectors/config.ts
  188. +0 −16 src/store/theme.ts
  189. +0 −151 src/store/touch.ts
  190. +0 −17 src/store/viewer.ts
  191. +10 −14 src/types/agent.ts
  192. +28 −12 src/types/config.ts
  193. +1 −1 src/types/openai/chat.ts
  194. +1 −2 src/types/touch.ts
  195. +36 −0 src/utils/common.ts
  196. +73 −0 src/utils/imageToBase64.ts
  197. +9 −0 src/utils/model.ts
157 changes: 157 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,163 @@

# Changelog

## [Version 0.8.0](https://github.com/lobehub/lobe-vidol/compare/v0.7.0...v0.8.0)

<sup>Released on **2024-05-24**</sup>

#### ✨ Features

- **misc**: 添加 Discord Icon, 添加灰阶设定,添加错误处理逻辑.

#### 🐛 Bug Fixes

- **misc**: Config data lost.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- **misc**: 添加 Discord Icon ([ffdccc2](https://github.com/lobehub/lobe-vidol/commit/ffdccc2))
- **misc**: 添加灰阶设定 ([b7dd792](https://github.com/lobehub/lobe-vidol/commit/b7dd792))
- **misc**: 添加错误处理逻辑 ([23b2d5d](https://github.com/lobehub/lobe-vidol/commit/23b2d5d))

#### What's fixed

- **misc**: Config data lost ([7ccca77](https://github.com/lobehub/lobe-vidol/commit/7ccca77))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version 0.7.0](https://github.com/lobehub/lobe-vidol/compare/v0.6.0...v0.7.0)

<sup>Released on **2024-05-20**</sup>

#### ✨ Features

- **misc**: AgentViewer 抽象,优化模型上传提示,优化角色封面上传提示,优化语音设置样式,使用 localforage 上传本地模型文件,支持上传用户自定义头像,支持用户设置,添加 3D 模型 Tab, 添加头像上传与设置,添加自定义角色,角色设置同步.

#### 🐛 Bug Fixes

- **misc**: 修复 Chat 和 Role 角色预览错乱,修复官方助手聊天产生新的 session, 修复角色预览,修复角色预览加载,角色侧边栏可滚动.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- **misc**: AgentViewer 抽象 ([8d4ceab](https://github.com/lobehub/lobe-vidol/commit/8d4ceab))
- **misc**: 优化模型上传提示 ([75fba52](https://github.com/lobehub/lobe-vidol/commit/75fba52))
- **misc**: 优化角色封面上传提示 ([c4be31f](https://github.com/lobehub/lobe-vidol/commit/c4be31f))
- **misc**: 优化语音设置样式 ([000183c](https://github.com/lobehub/lobe-vidol/commit/000183c))
- **misc**: 使用 localforage 上传本地模型文件 ([abc1fcf](https://github.com/lobehub/lobe-vidol/commit/abc1fcf))
- **misc**: 支持上传用户自定义头像 ([ac50d24](https://github.com/lobehub/lobe-vidol/commit/ac50d24))
- **misc**: 支持用户设置 ([da8b343](https://github.com/lobehub/lobe-vidol/commit/da8b343))
- **misc**: 添加 3D 模型 Tab ([6ee5043](https://github.com/lobehub/lobe-vidol/commit/6ee5043))
- **misc**: 添加头像上传与设置 ([472918f](https://github.com/lobehub/lobe-vidol/commit/472918f))
- **misc**: 添加自定义角色 ([c0b225b](https://github.com/lobehub/lobe-vidol/commit/c0b225b))
- **misc**: 角色设置同步 ([fadef78](https://github.com/lobehub/lobe-vidol/commit/fadef78))

#### What's fixed

- **misc**: 修复 Chat 和 Role 角色预览错乱 ([75311e2](https://github.com/lobehub/lobe-vidol/commit/75311e2))
- **misc**: 修复官方助手聊天产生新的 session ([618dfbb](https://github.com/lobehub/lobe-vidol/commit/618dfbb))
- **misc**: 修复角色预览 ([ca18074](https://github.com/lobehub/lobe-vidol/commit/ca18074))
- **misc**: 修复角色预览加载 ([739931d](https://github.com/lobehub/lobe-vidol/commit/739931d))
- **misc**: 角色侧边栏可滚动 ([94e30b1](https://github.com/lobehub/lobe-vidol/commit/94e30b1))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version 0.6.0](https://github.com/lobehub/lobe-vidol/compare/v0.5.0...v0.6.0)

<sup>Released on **2024-05-08**</sup>

#### ✨ Features

- **misc**: 使用 agent store 作为唯一 agent store, 使用最后一条消息作为会话列表的描述,添加角色 tab, 添加角色编辑页面.

#### 🐛 Bug Fixes

- **misc**: 调整角色列表样式和功能.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- **misc**: 使用 agent store 作为唯一 agent store ([4480c24](https://github.com/lobehub/lobe-vidol/commit/4480c24))
- **misc**: 使用最后一条消息作为会话列表的描述 ([c143621](https://github.com/lobehub/lobe-vidol/commit/c143621))
- **misc**: 添加角色 tab ([f4a2a8c](https://github.com/lobehub/lobe-vidol/commit/f4a2a8c))
- **misc**: 添加角色编辑页面 ([1fb5ac4](https://github.com/lobehub/lobe-vidol/commit/1fb5ac4))

#### What's fixed

- **misc**: 调整角色列表样式和功能 ([09a0871](https://github.com/lobehub/lobe-vidol/commit/09a0871))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version 0.5.0](https://github.com/lobehub/lobe-vidol/compare/v0.4.0...v0.5.0)

<sup>Released on **2024-05-05**</sup>

#### ✨ Features

- **misc**: 优化 chat 侧边栏展示,优化侧边 SessionList 样式,添加默认助手专属栏位,助手添加默认打招呼消息,发现页添加作者和日期时间,添加两遍侧栏快捷方式.

#### 🐛 Bug Fixes

- **misc**: 修复部分表述信息,修复默认 session 数据读取错误,默认没有设置 greeting 时的默认用法。.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- **misc**: 优化 chat 侧边栏展示 ([77e5467](https://github.com/lobehub/lobe-vidol/commit/77e5467))
- **misc**: 优化侧边 SessionList 样式,添加默认助手专属栏位 ([e6d3e31](https://github.com/lobehub/lobe-vidol/commit/e6d3e31))
- **misc**: 助手添加默认打招呼消息 ([07eec41](https://github.com/lobehub/lobe-vidol/commit/07eec41))
- **misc**: 发现页添加作者和日期时间 ([600cd70](https://github.com/lobehub/lobe-vidol/commit/600cd70))
- **misc**: 添加两遍侧栏快捷方式 ([5f1b9db](https://github.com/lobehub/lobe-vidol/commit/5f1b9db))

#### What's fixed

- **misc**: 修复部分表述信息 ([0c95181](https://github.com/lobehub/lobe-vidol/commit/0c95181))
- **misc**: 修复默认 session 数据读取错误 ([22deca3](https://github.com/lobehub/lobe-vidol/commit/22deca3))
- **misc**: 默认没有设置 greeting 时的默认用法。 ([4d6f547](https://github.com/lobehub/lobe-vidol/commit/4d6f547))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

## [Version 0.4.0](https://github.com/lobehub/lobe-vidol/compare/v0.3.2...v0.4.0)

<sup>Released on **2024-05-03**</sup>
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -20,8 +20,7 @@ const nextConfig = {
compress: isProd,
pageExtensions: ['tsx', 'ts'],
experimental: {
optimizePackageImports: ['@lobehub/ui', '@lobehub/icons', 'chroma-js', 'shiki'],
webVitalsAttribution: ['CLS', 'LCP'],
optimizePackageImports: ['@lobehub/ui', '@lobehub/icons', 'chroma-js', 'shiki', '@icons-pack/react-simple-icons','gpt-tokenizer'],
},
reactStrictMode: true,
webpack(config) {
35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lobehub/vidol",
"version": "0.4.0",
"version": "0.8.0",
"private": true,
"description": "Making Virtual Idols Accessible for EveryOne",
"keywords": [
@@ -62,41 +62,42 @@
},
"dependencies": {
"@ant-design/icons": "^5.3.7",
"@ant-design/pro-card": "^2.6.0",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/utilities": "^3.2.2",
"@gltf-transform/core": "^3.10.1",
"@icons-pack/react-simple-icons": "^9.5.0",
"@lobehub/tts": "^1.24.1",
"@lobehub/ui": "^1.138.17",
"@pixiv/three-vrm": "^2.1.1",
"@pixiv/three-vrm-core": "^2.1.1",
"@lobehub/ui": "^1.141.3",
"@pixiv/three-vrm": "2.1.1",
"@pixiv/three-vrm-core": "2.1.1",
"@react-spring/web": "^9.7.3",
"@types/react-speech-recognition": "^3.9.5",
"@vercel/analytics": "^1.2.2",
"ahooks": "^3.7.11",
"@vercel/analytics": "^1.3.1",
"ahooks": "^3.8.0",
"ai": "^2.2.37",
"antd": "~5.16.5",
"antd-style": "^3.6.2",
"axios": "^1.6.8",
"axios": "^1.7.2",
"buffer": "^6.0.3",
"classnames": "^2.5.1",
"dayjs": "^1.11.11",
"fast-deep-equal": "^3.1.3",
"immer": "^10.1.1",
"js-tiktoken": "^1.0.11",
"js-tiktoken": "^1.0.12",
"localforage": "^1.10.0",
"lodash-es": "^4.17.21",
"lucide-react": "^0.309.0",
"mmd-parser": "^1.0.4",
"next": "^14.2.3",
"next-pwa": "^5.6.0",
"openai": "^4.40.2",
"openai": "^4.47.1",
"polished": "^4.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-intersection-observer": "^9.10.2",
"react-layout-kit": "^1.9.0",
"react-lazy-load": "^4.0.1",
"react-virtuoso": "^4.7.10",
"react-virtuoso": "^4.7.11",
"swr": "^2.2.5",
"three": "^0.162.0",
"ua-parser-js": "^1.0.37",
@@ -107,15 +108,15 @@
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@ducanh2912/next-pwa": "^10.2.6",
"@ducanh2912/next-pwa": "^10.2.7",
"@lobehub/lint": "^1.23.4",
"@next/bundle-analyzer": "^14.2.3",
"@peculiar/webcrypto": "^1.4.6",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^14.3.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "20.3.1",
"@types/react": "^18.3.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/three": "^0.162.0",
"@types/ua-parser-js": "^0.7.39",
@@ -124,16 +125,16 @@
"dpdm": "^3.14.0",
"eslint": "^8.57.0",
"eslint-config-next": "13.4.7",
"glob": "^10.3.12",
"glob": "^10.4.1",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"jsdom": "^24.1.0",
"lint-staged": "^15.2.5",
"prettier": "^3.2.5",
"remark": "^14.0.3",
"remark-cli": "^11.0.0",
"semantic-release": "^21.1.2",
"stylelint": "^16.0.0",
"tsx": "^4.9.0",
"tsx": "^4.11.0",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vitest": "~1.2.2",
4 changes: 2 additions & 2 deletions src/app/api/voice/microsoft/voices/route.ts
Original file line number Diff line number Diff line change
@@ -16849,9 +16849,9 @@ const cachedVoiceList: Voice[] = [
DisplayName: 'Aria',
DisplayVoiceName: 'AriaNeural',
ExpressAsRoleValues:
'Default,Chat,Cheerful,CustomerService,Empathy,Newscast-Formal,Newscast-Casual',
'Default,Role,Cheerful,CustomerService,Empathy,Newscast-Formal,Newscast-Casual',
ExpressAsStyleValues:
'Default,Chat,Cheerful,CustomerService,Empathy,Newscast-Formal,Newscast-Casual',
'Default,Role,Cheerful,CustomerService,Empathy,Newscast-Formal,Newscast-Casual',
FrontendVoiceType: 'Neural',
Gender: 'Female',
LocalName: 'Aria',
24 changes: 6 additions & 18 deletions src/app/chat/Apps.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@
import { AgentPanel, DancePanel, RolePanel } from '@/panels';
import { useConfigStore } from '@/store/config';
import { DancePanel, MarketPanel } from '@/panels';
import { useGlobalStore } from '@/store/global';
import { PanelKey } from '@/types/config';

export const apps = [
{
avatar:
'https://registry.npmmirror.com/@lobehub/assets-emoji/latest/files/assets/card-index.webp',
component: <AgentPanel />,
key: 'agent',
label: '角色',
},
{
avatar:
'https://registry.npmmirror.com/@lobehub/assets-emoji/latest/files/assets/folding-hand-fan.webp',
component: <DancePanel />,
key: 'dance',
label: '跳舞',
},

{
avatar:
'https://registry.npmmirror.com/@lobehub/assets-emoji/latest/files/assets/black-nib.webp',
component: <RolePanel />,
key: 'role',
label: '编辑',
component: <MarketPanel />,
key: 'market',
label: '发现',
},
];

export default () => {
const [panel] = useConfigStore((s) => [s.panel]);
const [panel] = useGlobalStore((s) => [s.panel]);

return (
<>
35 changes: 35 additions & 0 deletions src/app/chat/ChatMode/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
'use client';

import classNames from 'classnames';
import React, { memo } from 'react';
import { Flexbox } from 'react-layout-kit';

import Alert from '@/features/Alert';
import MessageInput from '@/features/ChatInput/MessageInput';
import ChatList from '@/features/ChatList';

import { useStyles } from './style';

const Chat = () => {
const { styles } = useStyles();
const ref = React.useRef<HTMLDivElement>(null);
// const background = useSessionStore((s) => sessionSelectors.currentAgent(s)?.meta?.cover);

return (
<Flexbox
flex={1}
className={styles.chat}
// style={{ backgroundImage: `url(${background})` }}
>
<ChatList className={styles.list} />
<Flexbox align={'center'} className={styles.docker} ref={ref}>
<div className={classNames(styles.input)}>
<MessageInput />
<Alert style={{ marginTop: 8 }} />
</div>
</Flexbox>
</Flexbox>
);
};

export default memo(Chat);
24 changes: 24 additions & 0 deletions src/app/chat/ChatMode/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { createStyles } from 'antd-style';

import { CHAT_HEADER_HEIGHT, CHAT_INPUT_WIDTH } from '@/constants/token';

export const useStyles = createStyles(({ css, token }) => ({
chat: css``,
list: css`
margin-top: ${CHAT_HEADER_HEIGHT}px;
`,
input: css`
width: ${CHAT_INPUT_WIDTH};
min-width: 480px;
max-width: 100vw;
@media (max-width: 1024px) {
width: 100%;
}
`,

docker: css`
width: 100%;
padding: ${token.paddingSM}px;
`,
}));
Loading