@lobehub/lobehub 2.0.0-next.72 → 2.0.0-next.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/changelog/v1.json +9 -0
  3. package/next.config.ts +5 -5
  4. package/package.json +1 -1
  5. package/scripts/prebuild.mts +1 -1
  6. package/src/app/(backend)/trpc/desktop/[trpc]/route.ts +6 -6
  7. package/src/app/[variants]/(main)/(mobile)/me/(home)/__tests__/UserBanner.test.tsx +7 -4
  8. package/src/app/[variants]/(main)/(mobile)/me/(home)/__tests__/useCategory.test.tsx +4 -4
  9. package/src/app/[variants]/(main)/(mobile)/me/(home)/features/UserBanner.tsx +5 -6
  10. package/src/app/[variants]/(main)/(mobile)/me/(home)/features/useCategory.tsx +5 -8
  11. package/src/app/[variants]/(main)/(mobile)/me/(home)/index.tsx +25 -0
  12. package/src/app/[variants]/(main)/(mobile)/me/(home)/layout.tsx +13 -16
  13. package/src/app/[variants]/(main)/(mobile)/me/profile/features/Category.tsx +6 -6
  14. package/src/app/[variants]/(main)/(mobile)/me/profile/features/Header.tsx +3 -3
  15. package/src/app/[variants]/(main)/(mobile)/me/profile/index.tsx +16 -0
  16. package/src/app/[variants]/(main)/(mobile)/me/profile/layout.tsx +9 -11
  17. package/src/app/[variants]/(main)/(mobile)/me/settings/features/Header.tsx +3 -3
  18. package/src/app/[variants]/(main)/(mobile)/me/settings/features/useCategory.tsx +3 -4
  19. package/src/app/[variants]/(main)/(mobile)/me/settings/index.tsx +16 -0
  20. package/src/app/[variants]/(main)/(mobile)/me/settings/layout.tsx +15 -13
  21. package/src/app/[variants]/(main)/changelog/_layout/Desktop/index.tsx +6 -5
  22. package/src/app/[variants]/(main)/changelog/_layout/Mobile/Header.tsx +3 -3
  23. package/src/app/[variants]/(main)/changelog/_layout/Mobile/index.tsx +5 -5
  24. package/src/app/[variants]/(main)/changelog/features/Post.tsx +7 -4
  25. package/src/app/[variants]/(main)/changelog/index.tsx +55 -0
  26. package/src/app/[variants]/(main)/chat/_layout/Desktop/index.tsx +6 -7
  27. package/src/app/[variants]/(main)/chat/_layout/Mobile.tsx +3 -3
  28. package/src/app/[variants]/(main)/chat/components/WorkspaceLayout.tsx +1 -14
  29. package/src/app/[variants]/(main)/chat/components/conversation/features/ChatHydration/index.tsx +2 -2
  30. package/src/app/[variants]/(main)/chat/components/conversation/features/ChatInput/Desktop/MessageFromUrl.tsx +11 -13
  31. package/src/app/[variants]/(main)/chat/components/conversation/features/ChatInput/Desktop/index.tsx +0 -1
  32. package/src/app/[variants]/(main)/chat/components/conversation/features/ThreadHydration.tsx +2 -2
  33. package/src/app/[variants]/(main)/chat/components/topic/features/Topic/TopicListContent/TopicItem/TopicContent.tsx +20 -11
  34. package/src/app/[variants]/(main)/chat/features/PageTitle/index.tsx +1 -2
  35. package/src/app/[variants]/(main)/chat/index.tsx +29 -0
  36. package/src/app/[variants]/(main)/chat/session/features/SessionHydration.tsx +8 -6
  37. package/src/app/[variants]/(main)/chat/session/features/SessionListContent/Inbox/index.tsx +2 -4
  38. package/src/app/[variants]/(main)/chat/session/features/SessionListContent/List/index.tsx +1 -1
  39. package/src/app/[variants]/(main)/chat/session/layout/Mobile/SessionHeader.tsx +3 -3
  40. package/src/app/[variants]/(main)/chat/settings/_layout/Desktop/Header.tsx +3 -3
  41. package/src/app/[variants]/(main)/chat/settings/_layout/Mobile/Header.tsx +3 -3
  42. package/src/app/[variants]/(main)/chat/settings/features/PublishResultModal/index.tsx +3 -3
  43. package/src/app/[variants]/(main)/chat/{components/SettingsPage.tsx → settings/index.tsx} +6 -35
  44. package/src/app/[variants]/(main)/components/Link.tsx +21 -0
  45. package/src/app/[variants]/(main)/discover/(detail)/_layout/{Desktop.tsx → Desktop/index.tsx} +15 -7
  46. package/src/app/[variants]/(main)/discover/(detail)/_layout/Mobile/index.tsx +3 -3
  47. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Capabilities/Block.tsx +1 -1
  48. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Overview/index.tsx +1 -1
  49. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Related/index.tsx +2 -2
  50. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/SystemRole/index.tsx +3 -3
  51. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Versions/index.tsx +4 -4
  52. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/index.tsx +1 -1
  53. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Header.tsx +2 -2
  54. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Sidebar/ActionButton/AddAgent.tsx +3 -3
  55. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Sidebar/ActionButton/index.tsx +1 -1
  56. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Sidebar/Related/index.tsx +1 -1
  57. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Sidebar/TocList/index.tsx +2 -2
  58. package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/StatusPage/index.tsx +3 -3
  59. package/src/app/[variants]/(main)/discover/(detail)/assistant/{AssistantDetailPage.tsx → index.tsx} +18 -11
  60. package/src/app/[variants]/(main)/discover/(detail)/features/Breadcrumb.tsx +1 -1
  61. package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Details/Related/index.tsx +2 -2
  62. package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Details/Versions/index.tsx +5 -5
  63. package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Details/index.tsx +1 -1
  64. package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Sidebar/Related/index.tsx +2 -2
  65. package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Sidebar/ServerConfig.tsx +4 -4
  66. package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Sidebar/TocList/index.tsx +2 -2
  67. package/src/app/[variants]/(main)/discover/(detail)/mcp/{McpDetailPage.tsx → index.tsx} +15 -7
  68. package/src/app/[variants]/(main)/discover/(detail)/mcp/loading.tsx +1 -0
  69. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Details/Overview/index.tsx +1 -1
  70. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Details/Parameter/ParameterItem.tsx +1 -1
  71. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Details/Related/index.tsx +2 -2
  72. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Details/index.tsx +1 -1
  73. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Header.tsx +1 -1
  74. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Sidebar/ActionButton/ChatWithModel.tsx +3 -3
  75. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Sidebar/ActionButton/index.tsx +1 -1
  76. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Sidebar/Related/index.tsx +2 -2
  77. package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Sidebar/RelatedProviders/index.tsx +1 -1
  78. package/src/app/[variants]/(main)/discover/(detail)/model/{ModelDetailPage.tsx → index.tsx} +17 -10
  79. package/src/app/[variants]/(main)/discover/(detail)/model/loading.tsx +1 -0
  80. package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Details/Related/index.tsx +2 -2
  81. package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Details/index.tsx +1 -1
  82. package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Sidebar/ActionButton/ProviderConfig.tsx +5 -4
  83. package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Sidebar/ActionButton/index.tsx +1 -1
  84. package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Sidebar/Related/index.tsx +2 -2
  85. package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Sidebar/RelatedModels/index.tsx +1 -1
  86. package/src/app/[variants]/(main)/discover/(detail)/provider/{ProviderDetailPage.tsx → index.tsx} +17 -10
  87. package/src/app/[variants]/(main)/discover/(detail)/provider/loading.tsx +1 -0
  88. package/src/app/[variants]/(main)/discover/(list)/(home)/{HomePage.tsx → index.tsx} +14 -0
  89. package/src/app/[variants]/(main)/discover/(list)/_layout/Desktop/Nav.tsx +2 -3
  90. package/src/app/[variants]/(main)/discover/(list)/_layout/Desktop/index.tsx +4 -3
  91. package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/Nav.tsx +3 -4
  92. package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/index.tsx +4 -3
  93. package/src/app/[variants]/(main)/discover/(list)/assistant/_layout/Desktop.tsx +3 -4
  94. package/src/app/[variants]/(main)/discover/(list)/assistant/_layout/Mobile.tsx +3 -3
  95. package/src/app/[variants]/(main)/discover/(list)/assistant/features/List/Item.tsx +2 -2
  96. package/src/app/[variants]/(main)/discover/(list)/assistant/{AssistantPage.tsx → index.tsx} +18 -4
  97. package/src/app/[variants]/(main)/discover/(list)/features/SortButton/index.tsx +2 -2
  98. package/src/app/[variants]/(main)/discover/(list)/mcp/_layout/Desktop.tsx +3 -3
  99. package/src/app/[variants]/(main)/discover/(list)/mcp/_layout/Mobile.tsx +3 -3
  100. package/src/app/[variants]/(main)/discover/(list)/mcp/features/List/Item.tsx +1 -1
  101. package/src/app/[variants]/(main)/discover/(list)/mcp/{McpPage.tsx → index.tsx} +9 -2
  102. package/src/app/[variants]/(main)/discover/(list)/model/_layout/Desktop.tsx +3 -3
  103. package/src/app/[variants]/(main)/discover/(list)/model/_layout/Mobile.tsx +3 -3
  104. package/src/app/[variants]/(main)/discover/(list)/model/features/List/Item.tsx +1 -1
  105. package/src/app/[variants]/(main)/discover/(list)/model/{ModelPage.tsx → index.tsx} +9 -2
  106. package/src/app/[variants]/(main)/discover/(list)/provider/features/List/Item.tsx +1 -1
  107. package/src/app/[variants]/(main)/discover/(list)/provider/{Client.tsx → index.tsx} +9 -2
  108. package/src/app/[variants]/(main)/discover/_layout/Desktop/index.tsx +4 -4
  109. package/src/app/[variants]/(main)/discover/_layout/Mobile/index.tsx +3 -3
  110. package/src/app/[variants]/(main)/discover/components/Title.tsx +1 -1
  111. package/src/app/[variants]/(main)/discover/features/Search.tsx +2 -2
  112. package/src/app/[variants]/(main)/discover/features/useNav.tsx +11 -12
  113. package/src/app/[variants]/(main)/hooks/useActiveTabKey.ts +40 -0
  114. package/src/app/[variants]/(main)/hooks/usePathname.ts +10 -0
  115. package/src/app/[variants]/(main)/hooks/useQuery.ts +12 -0
  116. package/src/app/[variants]/(main)/hooks/useRouter.ts +22 -0
  117. package/src/app/[variants]/(main)/hooks/useSearchParams.ts +11 -0
  118. package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/ModelSelect/index.tsx +5 -5
  119. package/src/app/[variants]/(main)/image/@topic/features/Topics/TopicUrlSync.tsx +1 -1
  120. package/src/app/[variants]/(main)/image/ComingSoon.tsx +15 -0
  121. package/src/app/[variants]/(main)/image/_layout/Desktop/index.tsx +5 -2
  122. package/src/app/[variants]/(main)/image/_layout/DesktopWrapper.tsx +15 -0
  123. package/src/app/[variants]/(main)/image/_layout/Mobile/index.tsx +3 -1
  124. package/src/app/[variants]/(main)/image/features/ImageWorkspace/index.tsx +1 -2
  125. package/src/app/[variants]/(main)/image/index.tsx +18 -0
  126. package/src/app/[variants]/(main)/knowledge/_layout/Desktop.tsx +17 -0
  127. package/src/app/[variants]/(main)/knowledge/_layout/Mobile.tsx +17 -0
  128. package/src/app/[variants]/(main)/knowledge/components/KnowledgeBaseItem/index.tsx +1 -1
  129. package/src/app/[variants]/(main)/knowledge/components/modal/ModalPageClient.tsx +4 -4
  130. package/src/app/[variants]/(main)/knowledge/routes/KnowledgeBaseDetail/index.tsx +5 -8
  131. package/src/app/[variants]/(main)/knowledge/routes/KnowledgeBaseDetail/menu/Head.tsx +1 -1
  132. package/src/app/[variants]/(main)/knowledge/routes/KnowledgeHome/menu/CategoryMenu.tsx +2 -2
  133. package/src/app/[variants]/(main)/knowledge/routes/KnowledgeHome/menu/KnowledgeBase.tsx +1 -1
  134. package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/DesktopLayoutContainer.tsx +3 -2
  135. package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/SideBar/BottomActions.tsx +4 -4
  136. package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/SideBar/TopActions.test.tsx +9 -9
  137. package/src/app/[variants]/(main)/layouts/desktop/SideBar/TopActions.tsx +117 -0
  138. package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/index.tsx +9 -4
  139. package/src/app/[variants]/(main)/layouts/index.tsx +11 -0
  140. package/src/app/[variants]/(main)/{_layout/Mobile → layouts/mobile}/NavBar.tsx +5 -5
  141. package/src/app/[variants]/(main)/{_layout/Mobile → layouts/mobile}/index.tsx +10 -7
  142. package/src/app/[variants]/(main)/profile/(home)/desktop.tsx +26 -0
  143. package/src/app/[variants]/(main)/profile/(home)/index.tsx +26 -0
  144. package/src/app/[variants]/(main)/profile/@category/features/CategoryContent.tsx +5 -7
  145. package/src/app/[variants]/(main)/profile/_layout/Desktop/index.tsx +3 -2
  146. package/src/app/[variants]/(main)/profile/_layout/DesktopWrapper.tsx +14 -0
  147. package/src/app/[variants]/(main)/profile/_layout/Mobile/Header.tsx +3 -3
  148. package/src/app/[variants]/(main)/profile/_layout/Mobile/index.tsx +4 -3
  149. package/src/app/[variants]/(main)/profile/apikey/index.tsx +18 -0
  150. package/src/app/[variants]/(main)/profile/hooks/useCategory.tsx +6 -6
  151. package/src/app/[variants]/(main)/profile/security/index.tsx +29 -0
  152. package/src/app/[variants]/(main)/profile/stats/features/AssistantsRank.tsx +4 -4
  153. package/src/app/[variants]/(main)/profile/stats/features/TopicsRank.tsx +4 -4
  154. package/src/app/[variants]/(main)/profile/stats/index.tsx +20 -0
  155. package/src/app/[variants]/(main)/profile/usage/features/UsageTable.tsx +7 -9
  156. package/src/app/[variants]/(main)/profile/usage/index.tsx +13 -0
  157. package/src/app/[variants]/(main)/settings/_layout/Desktop/Header.tsx +2 -2
  158. package/src/app/[variants]/(main)/settings/_layout/Desktop/index.tsx +2 -2
  159. package/src/app/[variants]/(main)/settings/_layout/DesktopWrapper.tsx +23 -0
  160. package/src/app/[variants]/(main)/settings/_layout/Mobile/Header.tsx +8 -7
  161. package/src/app/[variants]/(main)/settings/_layout/Mobile/index.tsx +2 -5
  162. package/src/app/[variants]/(main)/settings/_layout/MobileWrapper.tsx +23 -0
  163. package/src/app/[variants]/(main)/settings/agent/AgentMenu/Menu.tsx +2 -4
  164. package/src/app/[variants]/(main)/settings/agent/index.tsx +2 -4
  165. package/src/app/[variants]/(main)/settings/provider/(list)/index.tsx +2 -3
  166. package/src/app/[variants]/(main)/settings/provider/ProviderMenu/All.tsx +2 -2
  167. package/src/app/[variants]/(main)/settings/provider/ProviderMenu/Item.tsx +38 -37
  168. package/src/app/[variants]/(main)/settings/provider/_layout/Mobile.tsx +2 -2
  169. package/src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx +3 -3
  170. package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +3 -3
  171. package/src/app/[variants]/DesktopRouter.tsx +40 -0
  172. package/src/app/[variants]/MobileRouter.tsx +41 -0
  173. package/src/app/[variants]/desktopRouter.config.tsx +381 -0
  174. package/src/app/[variants]/layout.tsx +1 -3
  175. package/src/app/[variants]/loaders/routeParams.ts +45 -0
  176. package/src/app/[variants]/loading/Server/Redirect.tsx +1 -1
  177. package/src/app/[variants]/mobileRouter.config.tsx +412 -0
  178. package/src/app/[variants]/page.tsx +16 -6
  179. package/src/app/desktop/devtools/page.tsx +1 -1
  180. package/src/app/desktop/layout.tsx +1 -1
  181. package/src/components/BootErrorBoundary/index.tsx +129 -0
  182. package/src/components/mdx/constants.ts +1 -0
  183. package/src/features/ChangelogModal/index.tsx +3 -3
  184. package/src/features/KnowledgeManager/FileExplorer/index.tsx +4 -4
  185. package/src/features/KnowledgeManager/Header/FilesSearchBar.tsx +1 -1
  186. package/src/features/User/UserPanel/PanelContent.tsx +4 -3
  187. package/src/features/User/UserPanel/useMenu.tsx +20 -14
  188. package/src/features/User/__tests__/PanelContent.test.tsx +13 -7
  189. package/src/hooks/useDiscoverTab.ts +2 -2
  190. package/src/hooks/useInterceptingRoutes.test.ts +23 -26
  191. package/src/hooks/useInterceptingRoutes.ts +5 -4
  192. package/src/hooks/usePinnedAgentState.ts +6 -6
  193. package/src/hooks/useQuery.ts +5 -0
  194. package/src/hooks/useQueryParam.ts +322 -0
  195. package/src/hooks/useQueryRoute.test.ts +2 -12
  196. package/src/hooks/useQueryRoute.ts +5 -5
  197. package/src/hooks/useShowMobileWorkspace.ts +1 -1
  198. package/src/hooks/useSwitchSession.ts +4 -3
  199. package/src/layout/GlobalProvider/ImportSettings.tsx +22 -9
  200. package/src/layout/GlobalProvider/StoreInitialization.tsx +9 -1
  201. package/src/proxy.ts +13 -1
  202. package/src/services/message/index.ts +11 -2
  203. package/src/store/chat/agents/createAgentExecutors.ts +31 -16
  204. package/src/store/chat/slices/aiChat/actions/__tests__/streamingExecutor.test.ts +218 -0
  205. package/src/store/chat/slices/aiChat/actions/conversationControl.ts +4 -0
  206. package/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts +9 -3
  207. package/src/store/chat/slices/aiChat/actions/streamingExecutor.ts +142 -61
  208. package/src/store/chat/slices/builtinTool/actions/__tests__/search.test.ts +204 -10
  209. package/src/store/chat/slices/builtinTool/actions/search.ts +51 -26
  210. package/src/store/chat/slices/message/action.test.ts +182 -33
  211. package/src/store/chat/slices/message/actions/optimisticUpdate.ts +79 -36
  212. package/src/store/chat/slices/message/actions/query.ts +7 -5
  213. package/src/store/chat/slices/message/selectors/dbMessage.ts +11 -4
  214. package/src/store/chat/slices/plugin/action.test.ts +257 -54
  215. package/src/store/chat/slices/plugin/actions/optimisticUpdate.ts +63 -26
  216. package/src/store/chat/slices/plugin/actions/pluginTypes.ts +52 -19
  217. package/src/store/chat/slices/plugin/actions/publicApi.ts +6 -1
  218. package/src/store/chat/slices/plugin/actions/workflow.ts +17 -6
  219. package/src/store/chat/slices/thread/action.ts +2 -0
  220. package/src/store/global/action.test.ts +3 -3
  221. package/src/store/global/actions/workspacePane.ts +2 -1
  222. package/src/store/global/initialState.ts +10 -2
  223. package/src/store/user/slices/common/action.ts +4 -0
  224. package/src/app/[variants]/(main)/(mobile)/me/(home)/loading.tsx +0 -38
  225. package/src/app/[variants]/(main)/(mobile)/me/(home)/page.tsx +0 -40
  226. package/src/app/[variants]/(main)/(mobile)/me/profile/loading.tsx +0 -5
  227. package/src/app/[variants]/(main)/(mobile)/me/profile/page.tsx +0 -30
  228. package/src/app/[variants]/(main)/(mobile)/me/settings/loading.tsx +0 -5
  229. package/src/app/[variants]/(main)/(mobile)/me/settings/page.tsx +0 -30
  230. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/TopActions.tsx +0 -106
  231. package/src/app/[variants]/(main)/changelog/layout.tsx +0 -10
  232. package/src/app/[variants]/(main)/changelog/modal/page.tsx +0 -23
  233. package/src/app/[variants]/(main)/changelog/page.tsx +0 -78
  234. package/src/app/[variants]/(main)/chat/ChatRouter.tsx +0 -83
  235. package/src/app/[variants]/(main)/chat/_layout/ChatLayout.tsx +0 -22
  236. package/src/app/[variants]/(main)/chat/components/MainChatPage.tsx +0 -25
  237. package/src/app/[variants]/(main)/chat/error.tsx +0 -3
  238. package/src/app/[variants]/(main)/chat/layout.tsx +0 -10
  239. package/src/app/[variants]/(main)/chat/loading.tsx +0 -3
  240. package/src/app/[variants]/(main)/chat/not-found.tsx +0 -1
  241. package/src/app/[variants]/(main)/chat/page.tsx +0 -12
  242. package/src/app/[variants]/(main)/chat/settings/error.tsx +0 -3
  243. package/src/app/[variants]/(main)/chat/settings/loading.tsx +0 -3
  244. package/src/app/[variants]/(main)/chat/settings/not-found.tsx +0 -1
  245. package/src/app/[variants]/(main)/discover/(detail)/_layout/DetailLayout.tsx +0 -22
  246. package/src/app/[variants]/(main)/discover/(detail)/assistant/[...slugs]/Client.tsx +0 -51
  247. package/src/app/[variants]/(main)/discover/(detail)/mcp/[slug]/Client.tsx +0 -43
  248. package/src/app/[variants]/(main)/discover/(detail)/mcp/[slug]/loading.tsx +0 -1
  249. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/Client.tsx +0 -40
  250. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/loading.tsx +0 -1
  251. package/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/Client.tsx +0 -40
  252. package/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/loading.tsx +0 -1
  253. package/src/app/[variants]/(main)/discover/(list)/_layout/ListLayout.tsx +0 -22
  254. package/src/app/[variants]/(main)/discover/(list)/assistant/AssistantLayout.tsx +0 -21
  255. package/src/app/[variants]/(main)/discover/(list)/mcp/Client.tsx +0 -44
  256. package/src/app/[variants]/(main)/discover/(list)/mcp/McpLayout.tsx +0 -21
  257. package/src/app/[variants]/(main)/discover/(list)/model/Client.tsx +0 -44
  258. package/src/app/[variants]/(main)/discover/(list)/model/ModelLayout.tsx +0 -21
  259. package/src/app/[variants]/(main)/discover/(list)/provider/ProviderPage.tsx +0 -43
  260. package/src/app/[variants]/(main)/discover/DiscoverRouter.tsx +0 -170
  261. package/src/app/[variants]/(main)/discover/[[...path]]/page.tsx +0 -12
  262. package/src/app/[variants]/(main)/discover/_layout/DiscoverLayout.tsx +0 -22
  263. package/src/app/[variants]/(main)/discover/error.tsx +0 -3
  264. package/src/app/[variants]/(main)/discover/not-found.tsx +0 -1
  265. package/src/app/[variants]/(main)/error.tsx +0 -3
  266. package/src/app/[variants]/(main)/image/layout.tsx +0 -15
  267. package/src/app/[variants]/(main)/image/page.tsx +0 -45
  268. package/src/app/[variants]/(main)/knowledge/KnowledgeRouter.tsx +0 -74
  269. package/src/app/[variants]/(main)/knowledge/[[...path]]/page.tsx +0 -12
  270. package/src/app/[variants]/(main)/knowledge/components/modal/page.tsx +0 -13
  271. package/src/app/[variants]/(main)/knowledge/layout.tsx +0 -12
  272. package/src/app/[variants]/(main)/layout.tsx +0 -10
  273. package/src/app/[variants]/(main)/not-found.tsx +0 -1
  274. package/src/app/[variants]/(main)/profile/apikey/page.tsx +0 -32
  275. package/src/app/[variants]/(main)/profile/error.tsx +0 -3
  276. package/src/app/[variants]/(main)/profile/layout.tsx +0 -11
  277. package/src/app/[variants]/(main)/profile/loading.tsx +0 -3
  278. package/src/app/[variants]/(main)/profile/not-found.tsx +0 -1
  279. package/src/app/[variants]/(main)/profile/security/page.tsx +0 -28
  280. package/src/app/[variants]/(main)/profile/stats/page.tsx +0 -23
  281. package/src/app/[variants]/(main)/profile/usage/page.tsx +0 -23
  282. package/src/app/[variants]/@modal/(.)changelog/modal/features/Cover.tsx +0 -48
  283. package/src/app/[variants]/@modal/(.)changelog/modal/features/Hero.tsx +0 -29
  284. package/src/app/[variants]/@modal/(.)changelog/modal/features/Post.tsx +0 -57
  285. package/src/app/[variants]/@modal/(.)changelog/modal/features/PublishedTime.tsx +0 -50
  286. package/src/app/[variants]/@modal/(.)changelog/modal/features/ReadDetail.tsx +0 -72
  287. package/src/app/[variants]/@modal/(.)changelog/modal/features/VersionTag.tsx +0 -26
  288. package/src/app/[variants]/@modal/(.)changelog/modal/layout.tsx +0 -41
  289. package/src/app/[variants]/@modal/(.)changelog/modal/loading.tsx +0 -10
  290. package/src/app/[variants]/@modal/(.)changelog/modal/page.tsx +0 -38
  291. package/src/app/[variants]/@modal/_layout/ModalLayout.tsx +0 -63
  292. package/src/app/[variants]/@modal/_layout/SettingModalLayout.tsx +0 -71
  293. package/src/app/[variants]/@modal/default.tsx +0 -3
  294. package/src/app/[variants]/@modal/error.tsx +0 -3
  295. package/src/app/[variants]/@modal/layout.tsx +0 -7
  296. package/src/app/[variants]/@modal/loading.tsx +0 -5
  297. /package/src/app/[variants]/{@modal/(.)changelog/modal → (main)/changelog}/features/Pagination.tsx +0 -0
  298. /package/src/app/[variants]/{@modal/(.)changelog/modal → (main)/changelog}/features/UpdateChangelogStatus.tsx +0 -0
  299. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/DetailProvider.tsx +0 -0
  300. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Capabilities/Knowledge.tsx +0 -0
  301. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Capabilities/KnowledgeItem.tsx +0 -0
  302. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Capabilities/PluginItem.tsx +0 -0
  303. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Capabilities/Plugins.tsx +0 -0
  304. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Capabilities/index.tsx +0 -0
  305. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Nav.tsx +0 -0
  306. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/Overview/TagList.tsx +0 -0
  307. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Details/SystemRole/TagList.tsx +0 -0
  308. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Sidebar/Related/Item.tsx +0 -0
  309. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Sidebar/Summary/index.tsx +0 -0
  310. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/features → features}/Sidebar/index.tsx +0 -0
  311. /package/src/app/[variants]/(main)/discover/(detail)/assistant/{[...slugs]/loading.tsx → loading.tsx} +0 -0
  312. /package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Sidebar/ActionButton/index.tsx +0 -0
  313. /package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Sidebar/ConnectionTypeAlert.tsx +0 -0
  314. /package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Sidebar/Related/Item.tsx +0 -0
  315. /package/src/app/[variants]/(main)/discover/(detail)/mcp/{[slug]/features → features}/Sidebar/index.tsx +0 -0
  316. /package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/DetailProvider.tsx +0 -0
  317. /package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Details/Nav.tsx +0 -0
  318. /package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Details/Overview/ProviderList/index.tsx +0 -0
  319. /package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Details/Parameter/index.tsx +0 -0
  320. /package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Sidebar/Related/Item.tsx +0 -0
  321. /package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Sidebar/RelatedProviders/Item.tsx +0 -0
  322. /package/src/app/[variants]/(main)/discover/(detail)/model/{[...slugs]/features → features}/Sidebar/index.tsx +0 -0
  323. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/DetailProvider.tsx +0 -0
  324. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Details/Guide/index.tsx +0 -0
  325. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Details/Nav.tsx +0 -0
  326. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Details/Overview/ModelList/index.tsx +0 -0
  327. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Details/Overview/index.tsx +0 -0
  328. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Header.tsx +0 -0
  329. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Sidebar/Related/Item.tsx +0 -0
  330. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Sidebar/RelatedModels/Item.tsx +0 -0
  331. /package/src/app/[variants]/(main)/discover/(detail)/provider/{[...slugs]/features → features}/Sidebar/index.tsx +0 -0
  332. /package/src/app/[variants]/(main)/labs/{page.tsx → index.tsx} +0 -0
  333. /package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/RegisterHotkeys.tsx +0 -0
  334. /package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/SideBar/Avatar.test.tsx +0 -0
  335. /package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/SideBar/Avatar.tsx +0 -0
  336. /package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/SideBar/PinList/index.tsx +0 -0
  337. /package/src/app/[variants]/(main)/{_layout/Desktop → layouts/desktop}/SideBar/index.tsx +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.73](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.72...v2.0.0-next.73)
6
+
7
+ <sup>Released on **2025-11-17**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **misc**: Support parallel topic agent runtime.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **misc**: Support parallel topic agent runtime, closes [#10273](https://github.com/lobehub/lobe-chat/issues/10273) ([02eba3c](https://github.com/lobehub/lobe-chat/commit/02eba3c))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 2.0.0-next.72](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.71...v2.0.0-next.72)
6
31
 
7
32
  <sup>Released on **2025-11-17**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "features": [
5
+ "Support parallel topic agent runtime."
6
+ ]
7
+ },
8
+ "date": "2025-11-17",
9
+ "version": "2.0.0-next.73"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/next.config.ts CHANGED
@@ -249,11 +249,11 @@ const nextConfig: NextConfig = {
249
249
  // permanent: true,
250
250
  // source: '/settings',
251
251
  // },
252
- {
253
- destination: '/chat',
254
- permanent: false,
255
- source: '/',
256
- },
252
+ // {
253
+ // destination: '/chat',
254
+ // permanent: false,
255
+ // source: '/',
256
+ // },
257
257
  {
258
258
  destination: '/chat',
259
259
  permanent: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.72",
3
+ "version": "2.0.0-next.73",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -13,7 +13,7 @@ const partialBuildPages = [
13
13
  {
14
14
  name: 'changelog',
15
15
  disabled: isDesktop,
16
- paths: ['src/app/[variants]/@modal/(.)changelog', 'src/app/[variants]/(main)/changelog'],
16
+ paths: ['src/app/[variants]/(main)/changelog'],
17
17
  },
18
18
  {
19
19
  name: 'auth',
@@ -17,12 +17,12 @@ const handler = (req: NextRequest) => {
17
17
  */
18
18
  createContext: () => createLambdaContext(req),
19
19
 
20
- endpoint: '/trpc/desktop',
20
+ endpoint: '/trpc/desktop',
21
21
 
22
- onError: ({ error, path, type }) => {
23
- pino.info(`Error in tRPC handler (desktop) on path: ${path}, type: ${type}`);
24
- console.error(error);
25
- },
22
+ onError: ({ error, path, type }) => {
23
+ pino.info(`Error in tRPC handler (desktop) on path: ${path}, type: ${type}`);
24
+ console.error(error);
25
+ },
26
26
 
27
27
  req: preparedReq,
28
28
  responseMeta({ ctx }) {
@@ -34,4 +34,4 @@ const handler = (req: NextRequest) => {
34
34
  });
35
35
  };
36
36
 
37
- export { handler as GET, handler as POST };
37
+ export { handler as GET, handler as POST };
@@ -6,10 +6,12 @@ import { useUserStore } from '@/store/user';
6
6
  import UserBanner from '../features/UserBanner';
7
7
 
8
8
  // Mock dependencies
9
- vi.mock('next/navigation', () => ({
10
- useRouter: vi.fn(() => ({
11
- push: vi.fn(),
12
- })),
9
+ const mockNavigate = vi.fn();
10
+ vi.mock('react-router-dom', () => ({
11
+ Link: ({ to, children }: { to: string; children: React.ReactNode }) => (
12
+ <a href={to}>{children}</a>
13
+ ),
14
+ useNavigate: () => mockNavigate,
13
15
  }));
14
16
 
15
17
  vi.mock('@/features/User/UserInfo', () => ({
@@ -45,6 +47,7 @@ vi.mock('@/const/auth', () => ({
45
47
 
46
48
  afterEach(() => {
47
49
  enableAuth = true;
50
+ mockNavigate.mockReset();
48
51
  });
49
52
 
50
53
  describe('UserBanner', () => {
@@ -11,10 +11,9 @@ const wrapper: React.JSXElementConstructor<{ children: React.ReactNode }> = ({ c
11
11
  );
12
12
 
13
13
  // Mock dependencies
14
- vi.mock('next/navigation', () => ({
15
- useRouter: vi.fn(() => ({
16
- push: vi.fn(),
17
- })),
14
+ const mockNavigate = vi.fn();
15
+ vi.mock('react-router-dom', () => ({
16
+ useNavigate: () => mockNavigate,
18
17
  }));
19
18
 
20
19
  vi.mock('react-i18next', () => ({
@@ -48,6 +47,7 @@ vi.mock('@/const/version', async (importOriginal) => {
48
47
  afterEach(() => {
49
48
  enableAuth = true;
50
49
  enableClerk = true;
50
+ mockNavigate.mockReset();
51
51
  });
52
52
 
53
53
  describe('useCategory', () => {
@@ -1,8 +1,7 @@
1
1
  'use client';
2
2
 
3
- import Link from 'next/link';
4
- import { useRouter } from 'next/navigation';
5
3
  import { memo } from 'react';
4
+ import { Link, useNavigate } from 'react-router-dom';
6
5
  import { Flexbox } from 'react-layout-kit';
7
6
 
8
7
  import { enableAuth, enableNextAuth } from '@/const/auth';
@@ -13,7 +12,7 @@ import { useUserStore } from '@/store/user';
13
12
  import { authSelectors } from '@/store/user/selectors';
14
13
 
15
14
  const UserBanner = memo(() => {
16
- const router = useRouter();
15
+ const navigate = useNavigate();
17
16
  const isLoginWithAuth = useUserStore(authSelectors.isLoginWithAuth);
18
17
  const [signIn] = useUserStore((s) => [s.openLogin]);
19
18
 
@@ -21,10 +20,10 @@ const UserBanner = memo(() => {
21
20
  <Flexbox gap={12} paddingBlock={8}>
22
21
  {!enableAuth || (enableAuth && isLoginWithAuth) ? (
23
22
  <>
24
- <Link href={'/profile'} style={{ color: 'inherit' }}>
23
+ <Link style={{ color: 'inherit' }} to="/profile">
25
24
  <UserInfo />
26
25
  </Link>
27
- <Link href={'/profile/stats'} style={{ color: 'inherit' }}>
26
+ <Link style={{ color: 'inherit' }} to="/profile/stats">
28
27
  <DataStatistics paddingInline={12} />
29
28
  </Link>
30
29
  </>
@@ -36,7 +35,7 @@ const UserBanner = memo(() => {
36
35
  signIn();
37
36
  return;
38
37
  }
39
- router.push('/login');
38
+ navigate('/login');
40
39
  }}
41
40
  />
42
41
  )}
@@ -8,8 +8,8 @@ import {
8
8
  FileClockIcon,
9
9
  Settings2,
10
10
  } from 'lucide-react';
11
- import { useRouter } from 'next/navigation';
12
11
  import { useTranslation } from 'react-i18next';
12
+ import { useNavigate } from 'react-router-dom';
13
13
 
14
14
  import { CellProps } from '@/components/Cell';
15
15
  import { usePWAInstall } from '@/hooks/usePWAInstall';
@@ -18,7 +18,7 @@ import { useUserStore } from '@/store/user';
18
18
  import { authSelectors } from '@/store/user/selectors';
19
19
 
20
20
  export const useCategory = () => {
21
- const router = useRouter();
21
+ const navigate = useNavigate();
22
22
  const { canInstall, install } = usePWAInstall();
23
23
  const { t } = useTranslation(['common', 'setting', 'auth']);
24
24
  const { showCloudPromotion, hideDocs } = useServerConfigStore(featureFlagsSelectors);
@@ -29,7 +29,7 @@ export const useCategory = () => {
29
29
  icon: CircleUserRound,
30
30
  key: 'profile',
31
31
  label: t('userPanel.profile'),
32
- onClick: () => router.push('/me/profile'),
32
+ onClick: () => navigate('/me/profile'),
33
33
  },
34
34
  ];
35
35
 
@@ -38,7 +38,7 @@ export const useCategory = () => {
38
38
  icon: Settings2,
39
39
  key: 'setting',
40
40
  label: t('userPanel.setting'),
41
- onClick: () => router.push('/me/settings'),
41
+ onClick: () => navigate('/me/settings'),
42
42
  },
43
43
  {
44
44
  type: 'divider',
@@ -58,9 +58,6 @@ export const useCategory = () => {
58
58
  ];
59
59
 
60
60
  /* ↓ cloud slot ↓ */
61
-
62
- /* ↑ cloud slot ↑ */
63
-
64
61
  const helps: CellProps[] = [
65
62
  showCloudPromotion && {
66
63
  icon: Cloudy,
@@ -84,7 +81,7 @@ export const useCategory = () => {
84
81
  icon: FileClockIcon,
85
82
  key: 'changelog',
86
83
  label: t('changelog'),
87
- onClick: () => router.push('/changelog'),
84
+ onClick: () => navigate('/changelog'),
88
85
  },
89
86
  ].filter(Boolean) as CellProps[];
90
87
 
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+
3
+ import { memo } from 'react';
4
+ import { Center } from 'react-layout-kit';
5
+
6
+ import BrandWatermark from '@/components/BrandWatermark';
7
+
8
+ import Category from './features/Category';
9
+ import UserBanner from './features/UserBanner';
10
+
11
+ const MeHomePage = memo(() => {
12
+ return (
13
+ <>
14
+ <UserBanner />
15
+ <Category />
16
+ <Center padding={16}>
17
+ <BrandWatermark />
18
+ </Center>
19
+ </>
20
+ );
21
+ });
22
+
23
+ MeHomePage.displayName = 'MeHomePage';
24
+
25
+ export default MeHomePage;
@@ -1,18 +1,15 @@
1
- import { PropsWithChildren, Suspense } from 'react';
2
-
3
- import Loading from '@/components/Loading/BrandTextLoading';
4
- import MobileContentLayout from '@/components/server/MobileNavLayout';
5
-
6
- import Header from './features/Header';
7
-
8
- const Layout = ({ children }: PropsWithChildren) => {
9
- return (
10
- <MobileContentLayout header={<Header />} withNav>
11
- <Suspense fallback={<Loading />}>{children}</Suspense>
1
+ import MobileContentLayout from "@/components/server/MobileNavLayout";
2
+ import Loading from "@/components/Loading/BrandTextLoading";
3
+ import { Outlet } from "react-router-dom";
4
+ import Header from "./features/Header";
5
+ import { Suspense } from "react";
6
+
7
+ const Layout = () => {
8
+ return <MobileContentLayout header={<Header />} withNav>
9
+ <Suspense fallback={<Loading />}>
10
+ <Outlet />
11
+ </Suspense>
12
12
  </MobileContentLayout>
13
- );
14
- };
15
-
16
- Layout.displayName = 'MeLayout';
13
+ }
17
14
 
18
- export default Layout;
15
+ export default Layout;
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { ChartColumnBigIcon, LogOut, ShieldCheck, UserCircle } from 'lucide-react';
4
- import { useRouter } from 'next/navigation';
5
4
  import { memo } from 'react';
6
5
  import { useTranslation } from 'react-i18next';
6
+ import { useNavigate } from 'react-router-dom';
7
7
 
8
8
  import Cell, { CellProps } from '@/components/Cell';
9
9
  import { ProfileTabs } from '@/store/global/initialState';
@@ -16,26 +16,26 @@ const Category = memo(() => {
16
16
  authSelectors.isLoginWithClerk(s),
17
17
  s.logout,
18
18
  ]);
19
- const router = useRouter();
19
+ const navigate = useNavigate();
20
20
  const { t } = useTranslation('auth');
21
21
  const items: CellProps[] = [
22
22
  {
23
23
  icon: UserCircle,
24
24
  key: ProfileTabs.Profile,
25
25
  label: t('tab.profile'),
26
- onClick: () => router.push('/profile'),
26
+ onClick: () => navigate('/profile'),
27
27
  },
28
28
  isLoginWithClerk && {
29
29
  icon: ShieldCheck,
30
30
  key: ProfileTabs.Security,
31
31
  label: t('tab.security'),
32
- onClick: () => router.push('/profile/security'),
32
+ onClick: () => navigate('/profile/security'),
33
33
  },
34
34
  {
35
35
  icon: ChartColumnBigIcon,
36
36
  key: ProfileTabs.Stats,
37
37
  label: t('tab.stats'),
38
- onClick: () => router.push('/profile/stats'),
38
+ onClick: () => navigate('/profile/stats'),
39
39
  },
40
40
  isLogin && {
41
41
  type: 'divider',
@@ -46,7 +46,7 @@ const Category = memo(() => {
46
46
  label: t('signout', { ns: 'auth' }),
47
47
  onClick: () => {
48
48
  signOut();
49
- router.push('/login');
49
+ navigate('/login');
50
50
  },
51
51
  },
52
52
  ].filter(Boolean) as CellProps[];
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { ChatHeader } from '@lobehub/ui/mobile';
4
- import { useRouter } from 'next/navigation';
5
4
  import { memo } from 'react';
6
5
  import { useTranslation } from 'react-i18next';
6
+ import { useNavigate } from 'react-router-dom';
7
7
  import { Flexbox } from 'react-layout-kit';
8
8
 
9
9
  import { mobileHeaderSticky } from '@/styles/mobileHeader';
@@ -11,7 +11,7 @@ import { mobileHeaderSticky } from '@/styles/mobileHeader';
11
11
  const Header = memo(() => {
12
12
  const { t } = useTranslation('common');
13
13
 
14
- const router = useRouter();
14
+ const navigate = useNavigate();
15
15
  return (
16
16
  <ChatHeader
17
17
  center={
@@ -23,7 +23,7 @@ const Header = memo(() => {
23
23
  }
24
24
  />
25
25
  }
26
- onBackClick={() => router.push('/me')}
26
+ onBackClick={() => navigate('/me')}
27
27
  showBackButton
28
28
  style={mobileHeaderSticky}
29
29
  />
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+
3
+ import { memo } from 'react';
4
+
5
+
6
+ import Category from './features/Category';
7
+
8
+ const MeProfilePage = memo(() => {
9
+ return (
10
+ <Category />
11
+ );
12
+ });
13
+
14
+ MeProfilePage.displayName = 'MeProfilePage';
15
+
16
+ export default MeProfilePage;
@@ -1,13 +1,11 @@
1
- import { PropsWithChildren } from 'react';
1
+ import MobileContentLayout from "@/components/server/MobileNavLayout";
2
+ import { Outlet } from "react-router-dom";
3
+ import Header from "./features/Header";
2
4
 
3
- import MobileContentLayout from '@/components/server/MobileNavLayout';
5
+ const Layout = () => {
6
+ return <MobileContentLayout header={<Header />}>
7
+ <Outlet />
8
+ </MobileContentLayout>
9
+ }
4
10
 
5
- import Header from './features/Header';
6
-
7
- const Layout = ({ children }: PropsWithChildren) => {
8
- return <MobileContentLayout header={<Header />}>{children}</MobileContentLayout>;
9
- };
10
-
11
- Layout.displayName = 'MeProfileLayout';
12
-
13
- export default Layout;
11
+ export default Layout;
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { ChatHeader } from '@lobehub/ui/mobile';
4
- import { useRouter } from 'next/navigation';
5
4
  import { memo } from 'react';
6
5
  import { useTranslation } from 'react-i18next';
6
+ import { useNavigate } from 'react-router-dom';
7
7
  import { Flexbox } from 'react-layout-kit';
8
8
 
9
9
  import { mobileHeaderSticky } from '@/styles/mobileHeader';
@@ -11,7 +11,7 @@ import { mobileHeaderSticky } from '@/styles/mobileHeader';
11
11
  const Header = memo(() => {
12
12
  const { t } = useTranslation('common');
13
13
 
14
- const router = useRouter();
14
+ const navigate = useNavigate();
15
15
  return (
16
16
  <ChatHeader
17
17
  center={
@@ -23,7 +23,7 @@ const Header = memo(() => {
23
23
  }
24
24
  />
25
25
  }
26
- onBackClick={() => router.push('/me')}
26
+ onBackClick={() => navigate('/me')}
27
27
  showBackButton
28
28
  style={mobileHeaderSticky}
29
29
  />
@@ -1,12 +1,11 @@
1
1
  import { Bot, Brain, Info, Mic2, Settings2, Sparkles } from 'lucide-react';
2
- import { useRouter } from 'next/navigation';
3
2
  import { useTranslation } from 'react-i18next';
4
-
3
+ import { useNavigate } from 'react-router-dom';
5
4
  import { CellProps } from '@/components/Cell';
6
5
  import { SettingsTabs } from '@/store/global/initialState';
7
6
 
8
7
  export const useCategory = () => {
9
- const router = useRouter();
8
+ const navigate = useNavigate();
10
9
  const { t } = useTranslation('setting');
11
10
 
12
11
  const items: CellProps[] = [
@@ -40,6 +39,6 @@ export const useCategory = () => {
40
39
 
41
40
  return items.map((item) => ({
42
41
  ...item,
43
- onClick: () => router.push(`/settings?active=${item.key}`),
42
+ onClick: () => navigate(`/settings?active=${item.key}`),
44
43
  }));
45
44
  };
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+
3
+ import { memo } from 'react';
4
+
5
+
6
+ import Category from './features/Category';
7
+
8
+ const MeSettingsPage = memo(() => {
9
+ return (
10
+ <Category />
11
+ );
12
+ });
13
+
14
+ MeSettingsPage.displayName = 'MeSettingsPage';
15
+
16
+ export default MeSettingsPage;
@@ -1,13 +1,15 @@
1
- import { PropsWithChildren } from 'react';
2
-
3
- import MobileContentLayout from '@/components/server/MobileNavLayout';
4
-
5
- import Header from './features/Header';
6
-
7
- const Layout = ({ children }: PropsWithChildren) => {
8
- return <MobileContentLayout header={<Header />}>{children}</MobileContentLayout>;
9
- };
10
-
11
- Layout.displayName = 'MeSettingsLayout';
12
-
13
- export default Layout;
1
+ import MobileContentLayout from "@/components/server/MobileNavLayout";
2
+ import Loading from "@/components/Loading/BrandTextLoading";
3
+ import { Outlet } from "react-router-dom";
4
+ import Header from "./features/Header";
5
+ import { Suspense } from "react";
6
+
7
+ const Layout = () => {
8
+ return <MobileContentLayout header={<Header />} withNav>
9
+ <Suspense fallback={<Loading />}>
10
+ <Outlet />
11
+ </Suspense>
12
+ </MobileContentLayout>
13
+ }
14
+
15
+ export default Layout;
@@ -1,15 +1,16 @@
1
- import { ReactNode } from 'react';
1
+ import { Outlet } from 'react-router-dom';
2
+
3
+ import { Locales } from '@/locales/resources';
2
4
 
3
5
  import Hero from '../../features/Hero';
4
6
  import Container from './Container';
5
7
 
6
- type Props = { children: ReactNode };
7
-
8
- const Layout = ({ children }: Props) => {
8
+ const Layout = (props: { locale: Locales }) => {
9
+ const { locale } = props;
9
10
  return (
10
11
  <Container>
11
12
  <Hero />
12
- {children}
13
+ <Outlet context={{ locale }} />
13
14
  </Container>
14
15
  );
15
16
  };
@@ -1,17 +1,17 @@
1
1
  'use client';
2
2
 
3
3
  import { ChatHeader } from '@lobehub/ui/mobile';
4
- import { useRouter } from 'next/navigation';
5
4
  import { memo } from 'react';
6
5
  import { useTranslation } from 'react-i18next';
7
6
  import { Flexbox } from 'react-layout-kit';
7
+ import { useNavigate } from 'react-router-dom';
8
8
 
9
9
  import { mobileHeaderSticky } from '@/styles/mobileHeader';
10
10
 
11
11
  const Header = memo(() => {
12
12
  const { t } = useTranslation('changelog');
13
13
 
14
- const router = useRouter();
14
+ const navigate = useNavigate();
15
15
  return (
16
16
  <ChatHeader
17
17
  center={
@@ -23,7 +23,7 @@ const Header = memo(() => {
23
23
  }
24
24
  />
25
25
  }
26
- onBackClick={() => router.back()}
26
+ onBackClick={() => navigate(-1)}
27
27
  showBackButton
28
28
  style={mobileHeaderSticky}
29
29
  />
@@ -1,17 +1,17 @@
1
- import { ReactNode } from 'react';
1
+ import { Outlet } from 'react-router-dom';
2
2
 
3
3
  import MobileContentLayout from '@/components/server/MobileNavLayout';
4
+ import { Locales } from '@/locales/resources';
4
5
 
5
6
  import Hero from '../../features/Hero';
6
7
  import Header from './Header';
7
8
 
8
- type Props = { children: ReactNode };
9
-
10
- const Layout = ({ children }: Props) => {
9
+ const Layout = (props: { locale: Locales }) => {
10
+ const { locale } = props;
11
11
  return (
12
12
  <MobileContentLayout header={<Header />} padding={16}>
13
13
  <Hero />
14
- {children}
14
+ <Outlet context={{ locale }} />
15
15
  </MobileContentLayout>
16
16
  );
17
17
  };
@@ -1,10 +1,11 @@
1
1
  import { Typography } from '@lobehub/ui';
2
+ import { Image } from '@lobehub/ui/mdx';
2
3
  import { Divider } from 'antd';
3
4
  import Link from 'next/link';
5
+ import useSWR from 'swr';
4
6
  import urlJoin from 'url-join';
5
7
 
6
8
  import { CustomMDX } from '@/components/mdx';
7
- import Image from '@/components/mdx/Image';
8
9
  import { OFFICIAL_SITE } from '@/const/url';
9
10
  import { Locales } from '@/locales/resources';
10
11
  import { ChangelogService } from '@/server/services/changelog';
@@ -14,14 +15,16 @@ import GridLayout from './GridLayout';
14
15
  import PublishedTime from './PublishedTime';
15
16
  import VersionTag from './VersionTag';
16
17
 
17
- const Post = async ({
18
+ const Post = ({
18
19
  id,
19
20
  mobile,
20
21
  versionRange,
21
22
  locale,
22
23
  }: ChangelogIndexItem & { branch?: string; locale: Locales; mobile?: boolean }) => {
23
- const changelogService = new ChangelogService();
24
- const data = await changelogService.getPostById(id, { locale });
24
+ const { data } = useSWR([`changelog-post-${id}`, locale], async () => {
25
+ const changelogService = new ChangelogService();
26
+ return await changelogService.getPostById(id, { locale });
27
+ });
25
28
 
26
29
  if (!data || !data.title) return null;
27
30