@lobehub/chat 0.79.2 → 0.79.4

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 (141) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/next.config.mjs +1 -1
  3. package/package.json +4 -5
  4. package/public/manifest.json +10 -2
  5. package/src/{pages → app}/chat/index.tsx +1 -1
  6. package/src/{pages → app}/chat/mobile/index.tsx +1 -1
  7. package/src/app/chat/{page.page.tsx → mobile/page.tsx} +1 -1
  8. package/src/app/{page.page.tsx → chat/page.tsx} +1 -1
  9. package/src/{pages/chat/setting → app/chat/settings}/index.tsx +1 -1
  10. package/src/{pages/chat/setting/layout.tsx → app/chat/settings/layout.pc.tsx} +1 -1
  11. package/src/app/{market/page.page.tsx → chat/settings/page.tsx} +1 -1
  12. package/src/{pages → app}/home/index.tsx +1 -1
  13. package/src/{pages → app}/market/features/SideBar/AgentInfo/index.tsx +1 -1
  14. package/src/{pages → app}/market/index.tsx +1 -1
  15. package/src/{pages → app}/market/layout.mobile.tsx +1 -1
  16. package/src/app/{welcome/page.page.tsx → market/page.tsx} +1 -1
  17. package/src/app/metadata.ts +18 -9
  18. package/src/app/page.tsx +7 -0
  19. package/src/{pages → app}/settings/index.tsx +1 -1
  20. package/src/app/settings/page.tsx +7 -0
  21. package/src/{pages → app}/welcome/index.tsx +1 -1
  22. package/src/app/welcome/page.tsx +7 -0
  23. package/src/styles/global.ts +3 -0
  24. package/src/app/chat/mobile/page.page.tsx +0 -7
  25. package/src/app/chat/settings/page.page.tsx +0 -7
  26. package/src/app/settings/page.page.tsx +0 -7
  27. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/ApiKeyForm.tsx +0 -0
  28. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/ErrorActionContainer.tsx +0 -0
  29. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/InvalidAccess.tsx +0 -0
  30. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/OpenAiBizError.tsx +0 -0
  31. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/Plugin/PluginError.tsx +0 -0
  32. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/Plugin/PluginSettings.tsx +0 -0
  33. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/index.tsx +0 -0
  34. /package/src/{pages → app}/chat/features/Conversation/ChatList/Error/style.tsx +0 -0
  35. /package/src/{pages → app}/chat/features/Conversation/ChatList/MessageExtra.tsx +0 -0
  36. /package/src/{pages → app}/chat/features/Conversation/ChatList/OTPInput.tsx +0 -0
  37. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/FunctionCall.tsx +0 -0
  38. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/IFrameRender/hooks.ts +0 -0
  39. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/IFrameRender/index.tsx +0 -0
  40. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/IFrameRender/utils.ts +0 -0
  41. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/PluginMessage.tsx +0 -0
  42. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/PluginResultRender.tsx +0 -0
  43. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/SystemJsRender/index.tsx +0 -0
  44. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/SystemJsRender/utils.ts +0 -0
  45. /package/src/{pages → app}/chat/features/Conversation/ChatList/Plugins/style.ts +0 -0
  46. /package/src/{pages → app}/chat/features/Conversation/ChatList/SkeletonList.tsx +0 -0
  47. /package/src/{pages → app}/chat/features/Conversation/ChatList/index.tsx +0 -0
  48. /package/src/{pages → app}/chat/features/Conversation/Input/ActionBar/ActionLeft.tsx +0 -0
  49. /package/src/{pages → app}/chat/features/Conversation/Input/ActionBar/ActionRight.tsx +0 -0
  50. /package/src/{pages → app}/chat/features/Conversation/Input/ActionBar/Token.tsx +0 -0
  51. /package/src/{pages → app}/chat/features/Conversation/Input/Desktop.tsx +0 -0
  52. /package/src/{pages → app}/chat/features/Conversation/Input/Footer/SaveTopic.tsx +0 -0
  53. /package/src/{pages → app}/chat/features/Conversation/Input/Footer/index.tsx +0 -0
  54. /package/src/{pages → app}/chat/features/Conversation/Input/Mobile.tsx +0 -0
  55. /package/src/{pages → app}/chat/features/Conversation/Input/index.tsx +0 -0
  56. /package/src/{pages → app}/chat/features/Conversation/ScrollAnchor/index.tsx +0 -0
  57. /package/src/{pages → app}/chat/features/Conversation/ScrollAnchor/useAtBottom.ts +0 -0
  58. /package/src/{pages → app}/chat/features/Conversation/index.tsx +0 -0
  59. /package/src/{pages → app}/chat/features/Header/Desktop.tsx +0 -0
  60. /package/src/{pages → app}/chat/features/Header/Mobile.tsx +0 -0
  61. /package/src/{pages → app}/chat/features/Header/PluginTag/PluginStatus.tsx +0 -0
  62. /package/src/{pages → app}/chat/features/Header/PluginTag/index.tsx +0 -0
  63. /package/src/{pages → app}/chat/features/Header/ShareButton/index.tsx +0 -0
  64. /package/src/{pages → app}/chat/features/Header/index.tsx +0 -0
  65. /package/src/{pages → app}/chat/features/SessionList/CollapseGroup/index.tsx +0 -0
  66. /package/src/{pages → app}/chat/features/SessionList/Desktop.tsx +0 -0
  67. /package/src/{pages → app}/chat/features/SessionList/Header/Desktop.tsx +0 -0
  68. /package/src/{pages → app}/chat/features/SessionList/Header/Mobile.tsx +0 -0
  69. /package/src/{pages → app}/chat/features/SessionList/Header/index.tsx +0 -0
  70. /package/src/{pages → app}/chat/features/SessionList/Inbox/index.tsx +0 -0
  71. /package/src/{pages → app}/chat/features/SessionList/List/AddButton.tsx +0 -0
  72. /package/src/{pages → app}/chat/features/SessionList/List/Item/Actions.tsx +0 -0
  73. /package/src/{pages → app}/chat/features/SessionList/List/Item/index.tsx +0 -0
  74. /package/src/{pages → app}/chat/features/SessionList/List/SkeletonList.tsx +0 -0
  75. /package/src/{pages → app}/chat/features/SessionList/List/index.tsx +0 -0
  76. /package/src/{pages → app}/chat/features/SessionList/Mobile.tsx +0 -0
  77. /package/src/{pages → app}/chat/features/SessionList/index.tsx +0 -0
  78. /package/src/{pages → app}/chat/features/SessionSearchBar/index.tsx +0 -0
  79. /package/src/{pages → app}/chat/features/Sidebar/Desktop.tsx +0 -0
  80. /package/src/{pages → app}/chat/features/Sidebar/Mobile.tsx +0 -0
  81. /package/src/{pages → app}/chat/features/Sidebar/SystemRole/Header.tsx +0 -0
  82. /package/src/{pages → app}/chat/features/Sidebar/SystemRole/index.tsx +0 -0
  83. /package/src/{pages → app}/chat/features/Sidebar/SystemRole/style.ts +0 -0
  84. /package/src/{pages → app}/chat/features/Sidebar/Topic/DefaultContent.tsx +0 -0
  85. /package/src/{pages → app}/chat/features/Sidebar/Topic/SkeletonList.tsx +0 -0
  86. /package/src/{pages → app}/chat/features/Sidebar/Topic/TopicContent.tsx +0 -0
  87. /package/src/{pages → app}/chat/features/Sidebar/Topic/TopicItem.tsx +0 -0
  88. /package/src/{pages → app}/chat/features/Sidebar/Topic/index.tsx +0 -0
  89. /package/src/{pages → app}/chat/features/Sidebar/TopicSearchBar/index.tsx +0 -0
  90. /package/src/{pages → app}/chat/features/Sidebar/index.tsx +0 -0
  91. /package/src/{pages → app}/chat/layout.mobile.tsx +0 -0
  92. /package/src/{pages/chat/layout.tsx → app/chat/layout.pc.tsx} +0 -0
  93. /package/src/{pages/chat/setting → app/chat/settings}/features/Header/Desktop.tsx +0 -0
  94. /package/src/{pages/chat/setting → app/chat/settings}/features/Header/Mobile.tsx +0 -0
  95. /package/src/{pages/chat/setting → app/chat/settings}/features/Header/index.tsx +0 -0
  96. /package/src/{pages/chat/setting → app/chat/settings}/layout.mobile.tsx +0 -0
  97. /package/src/{pages → app}/home/Loading.tsx +0 -0
  98. /package/src/app/{layout.page.tsx → layout.tsx} +0 -0
  99. /package/src/{pages → app}/market/features/AgentCard/AgentCardBanner.tsx +0 -0
  100. /package/src/{pages → app}/market/features/AgentCard/AgentCardItem.tsx +0 -0
  101. /package/src/{pages → app}/market/features/AgentCard/Loading.tsx +0 -0
  102. /package/src/{pages → app}/market/features/AgentCard/index.tsx +0 -0
  103. /package/src/{pages → app}/market/features/AgentCard/style.ts +0 -0
  104. /package/src/{pages → app}/market/features/AgentSearchBar/index.tsx +0 -0
  105. /package/src/{pages → app}/market/features/Header/Desktop.tsx +0 -0
  106. /package/src/{pages → app}/market/features/Header/Mobile.tsx +0 -0
  107. /package/src/{pages → app}/market/features/Header/index.tsx +0 -0
  108. /package/src/{pages → app}/market/features/SideBar/AgentInfo/Comment.tsx +0 -0
  109. /package/src/{pages → app}/market/features/SideBar/AgentInfo/Header.tsx +0 -0
  110. /package/src/{pages → app}/market/features/SideBar/AgentInfo/Loading.tsx +0 -0
  111. /package/src/{pages → app}/market/features/SideBar/AgentInfo/TokenTag.tsx +0 -0
  112. /package/src/{pages → app}/market/features/SideBar/AgentInfo/style.ts +0 -0
  113. /package/src/{pages → app}/market/features/SideBar/Desktop.tsx +0 -0
  114. /package/src/{pages → app}/market/features/SideBar/Mobile.tsx +0 -0
  115. /package/src/{pages → app}/market/features/SideBar/index.tsx +0 -0
  116. /package/src/{pages → app}/market/features/TagList/index.tsx +0 -0
  117. /package/src/{pages/market/layout.tsx → app/market/layout.pc.tsx} +0 -0
  118. /package/src/{pages → app}/settings/features/Banner/index.tsx +0 -0
  119. /package/src/{pages → app}/settings/features/Header/Desktop.tsx +0 -0
  120. /package/src/{pages → app}/settings/features/Header/Mobile.tsx +0 -0
  121. /package/src/{pages → app}/settings/features/Header/index.tsx +0 -0
  122. /package/src/{pages → app}/settings/features/Settings/Agent.tsx +0 -0
  123. /package/src/{pages → app}/settings/features/Settings/Common.tsx +0 -0
  124. /package/src/{pages → app}/settings/features/Settings/LLM/Checker.tsx +0 -0
  125. /package/src/{pages → app}/settings/features/Settings/LLM/ModelList.tsx +0 -0
  126. /package/src/{pages → app}/settings/features/Settings/LLM/getModelList.ts +0 -0
  127. /package/src/{pages → app}/settings/features/Settings/LLM/index.tsx +0 -0
  128. /package/src/{pages → app}/settings/features/Settings/index.tsx +0 -0
  129. /package/src/{pages → app}/settings/features/ThemeSwatches/ThemeSwatchesNeutral.tsx +0 -0
  130. /package/src/{pages → app}/settings/features/ThemeSwatches/ThemeSwatchesPrimary.tsx +0 -0
  131. /package/src/{pages → app}/settings/features/ThemeSwatches/index.ts +0 -0
  132. /package/src/{pages → app}/settings/layout.mobile.tsx +0 -0
  133. /package/src/{pages/settings/layout.tsx → app/settings/layout.pc.tsx} +0 -0
  134. /package/src/{pages → app}/welcome/features/Banner/AgentCard.tsx +0 -0
  135. /package/src/{pages → app}/welcome/features/Banner/AgentTemplate.tsx +0 -0
  136. /package/src/{pages → app}/welcome/features/Banner/Hero.tsx +0 -0
  137. /package/src/{pages → app}/welcome/features/Banner/index.tsx +0 -0
  138. /package/src/{pages → app}/welcome/features/Banner/style.ts +0 -0
  139. /package/src/{pages → app}/welcome/features/Footer/index.tsx +0 -0
  140. /package/src/{pages → app}/welcome/layout.mobile.tsx +0 -0
  141. /package/src/{pages/welcome/layout.tsx → app/welcome/layout.pc.tsx} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.79.4](https://github.com/lobehub/lobe-chat/compare/v0.79.3...v0.79.4)
6
+
7
+ <sup>Released on **2023-09-26**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Move dir from page to app and remove .page suffix.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **misc**: Move dir from page to app and remove .page suffix, closes [#236](https://github.com/lobehub/lobe-chat/issues/236) ([2907303](https://github.com/lobehub/lobe-chat/commit/2907303))
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
+
30
+ ### [Version 0.79.3](https://github.com/lobehub/lobe-chat/compare/v0.79.2...v0.79.3)
31
+
32
+ <sup>Released on **2023-09-25**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **meta**: Update meta image.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **meta**: Update meta image, closes [#66](https://github.com/lobehub/lobe-chat/issues/66) ([a71ffff](https://github.com/lobehub/lobe-chat/commit/a71ffff))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 0.79.2](https://github.com/lobehub/lobe-chat/compare/v0.79.1...v0.79.2)
6
56
 
7
57
  <sup>Released on **2023-09-25**</sup>
package/next.config.mjs CHANGED
@@ -12,7 +12,7 @@ const withPWA = nextPWA({
12
12
  /** @type {import('next').NextConfig} */
13
13
  const nextConfig = {
14
14
  reactStrictMode: true,
15
- pageExtensions: ['page.tsx', 'api.ts'],
15
+ pageExtensions: ['tsx', 'api.ts'],
16
16
  transpilePackages: ['@lobehub/ui'],
17
17
  webpack(config) {
18
18
  config.experiments = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.79.2",
4
- "description": "Lobe Chat is an open-source chatbot client using Vercel AI SDK, Typescript and Next.js",
3
+ "version": "0.79.4",
4
+ "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
7
7
  "ChatGPT",
@@ -88,14 +88,14 @@
88
88
  "lucide-react": "latest",
89
89
  "nanoid": "^5",
90
90
  "next": "13.4.7",
91
- "openai": "^4.7.1",
91
+ "openai": "^4.10.0",
92
92
  "polished": "^4",
93
93
  "react": "^18",
94
94
  "react-dom": "^18",
95
95
  "react-hotkeys-hook": "^4",
96
96
  "react-i18next": "^13",
97
97
  "react-intersection-observer": "^9",
98
- "react-layout-kit": "^1.7.2",
98
+ "react-layout-kit": "^1.7.3",
99
99
  "swr": "^2",
100
100
  "systemjs": "^6.14.2",
101
101
  "ts-md5": "^1",
@@ -119,7 +119,6 @@
119
119
  "@types/react": "^18",
120
120
  "@types/react-dom": "^18",
121
121
  "@types/systemjs": "^6.13.2",
122
- "@types/testing-library__jest-dom": "^6",
123
122
  "@types/uuid": "^9",
124
123
  "@umijs/lint": "^4",
125
124
  "@vitest/coverage-v8": "latest",
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "background_color": "#000000",
3
+ "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
3
4
  "display": "fullscreen",
4
5
  "icons": [
5
6
  {
6
- "src": "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png",
7
+ "src": "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/android-chrome-192x192.png",
7
8
  "sizes": "192x192",
8
9
  "type": "image/png"
9
10
  },
10
11
  {
11
- "src": "https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png",
12
+ "src": "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/android-chrome-512x512.png",
12
13
  "sizes": "512x512",
13
14
  "type": "image/png"
14
15
  }
@@ -16,6 +17,13 @@
16
17
  "name": "LobeChat",
17
18
  "orientation": "portrait",
18
19
  "scope": "/",
20
+ "screenshots": [
21
+ {
22
+ "src": "https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/og-960x720.png",
23
+ "sizes": "960x720",
24
+ "type": "image/png"
25
+ }
26
+ ],
19
27
  "short_name": "LobeChat",
20
28
  "splash_pages": null,
21
29
  "start_url": "/",
@@ -13,8 +13,8 @@ import { genSiteHeadTitle } from '@/utils/genSiteHeadTitle';
13
13
  import Conversation from './features/Conversation';
14
14
  import Header from './features/Header';
15
15
  import SideBar from './features/Sidebar';
16
- import DesktopLayout from './layout';
17
16
  import MobileLayout from './layout.mobile';
17
+ import DesktopLayout from './layout.pc';
18
18
 
19
19
  const Chat = memo(() => {
20
20
  const { mobile } = useResponsive();
@@ -5,12 +5,12 @@ import { memo } from 'react';
5
5
  import { Flexbox } from 'react-layout-kit';
6
6
 
7
7
  import AppMobileLayout from '@/layout/AppMobileLayout';
8
- import Header from '@/pages/chat/features/Header';
9
8
  import { useSessionStore } from '@/store/session';
10
9
  import { agentSelectors } from '@/store/session/selectors';
11
10
  import { genSiteHeadTitle } from '@/utils/genSiteHeadTitle';
12
11
 
13
12
  import Conversation from '../features/Conversation';
13
+ import Header from '../features/Header';
14
14
  import SideBar from '../features/Sidebar';
15
15
 
16
16
  const Chat = memo(() => {
@@ -1,4 +1,4 @@
1
- import Page from '@/pages/chat';
1
+ import Page from './index';
2
2
 
3
3
  const Index = () => {
4
4
  return <Page />;
@@ -1,4 +1,4 @@
1
- import Page from '@/pages/home';
1
+ import Page from './index';
2
2
 
3
3
  const Index = () => {
4
4
  return <Page />;
@@ -11,8 +11,8 @@ import { useSessionStore } from '@/store/session';
11
11
  import { agentSelectors } from '@/store/session/selectors';
12
12
  import { genSiteHeadTitle } from '@/utils/genSiteHeadTitle';
13
13
 
14
- import DesktopLayout from './layout';
15
14
  import MobileLayout from './layout.mobile';
15
+ import DesktopLayout from './layout.pc';
16
16
 
17
17
  const EditPage = memo(() => {
18
18
  const { mobile } = useResponsive();
@@ -4,7 +4,7 @@ import { Flexbox } from 'react-layout-kit';
4
4
  import SafeSpacing from '@/components/SafeSpacing';
5
5
  import { HEADER_HEIGHT } from '@/const/layoutTokens';
6
6
 
7
- import ChatLayout from '../layout';
7
+ import ChatLayout from '../layout.pc';
8
8
  import Header from './features/Header';
9
9
 
10
10
  const DesktopLayout = memo<PropsWithChildren>(({ children }) => {
@@ -1,4 +1,4 @@
1
- import Page from '@/pages/market';
1
+ import Page from './index';
2
2
 
3
3
  const Index = () => {
4
4
  return <Page />;
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { memo } from 'react';
4
4
 
5
- import Loading from '@/pages/home/Loading';
6
5
  import {
7
6
  useEffectAfterSessionHydrated,
8
7
  useSessionHydrated,
@@ -11,6 +10,7 @@ import {
11
10
  import { sessionSelectors } from '@/store/session/selectors';
12
11
 
13
12
  import Welcome from '../welcome';
13
+ import Loading from './Loading';
14
14
 
15
15
  const Home = memo(() => {
16
16
  const hydrated = useSessionHydrated();
@@ -3,13 +3,13 @@ import { memo, useState } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { Flexbox } from 'react-layout-kit';
5
5
 
6
- import TokenTag from '@/pages/market/features/SideBar/AgentInfo/TokenTag';
7
6
  import { useMarketStore } from '@/store/market';
8
7
 
9
8
  import AgentCardBanner from '../../AgentCard/AgentCardBanner';
10
9
  import Comment from './Comment';
11
10
  import Header from './Header';
12
11
  import Loading from './Loading';
12
+ import TokenTag from './TokenTag';
13
13
  import { useStyles } from './style';
14
14
 
15
15
  enum InfoTabs {
@@ -10,8 +10,8 @@ import { genSiteHeadTitle } from '@/utils/genSiteHeadTitle';
10
10
 
11
11
  import AgentCard from './features/AgentCard';
12
12
  import AgentSearchBar from './features/AgentSearchBar';
13
- import DesktopLayout from './layout';
14
13
  import MobileLayout from './layout.mobile';
14
+ import DesktopLayout from './layout.pc';
15
15
 
16
16
  const Market = memo(() => {
17
17
  const { t } = useTranslation('common');
@@ -2,10 +2,10 @@ import { ReactNode, memo } from 'react';
2
2
  import { Flexbox } from 'react-layout-kit';
3
3
 
4
4
  import AppMobileLayout from '@/layout/AppMobileLayout';
5
- import SideBar from '@/pages/market/features/SideBar';
6
5
  import { useSwitchSideBarOnInit } from '@/store/global';
7
6
 
8
7
  import Header from './features/Header';
8
+ import SideBar from './features/SideBar';
9
9
 
10
10
  const MarketLayout = memo<{ children: ReactNode }>(({ children }) => {
11
11
  useSwitchSideBarOnInit('market');
@@ -1,4 +1,4 @@
1
- import Page from '@/pages/welcome';
1
+ import Page from './index';
2
2
 
3
3
  const Index = () => {
4
4
  return <Page />;
@@ -8,18 +8,27 @@ const title = genSiteHeadTitle();
8
8
  const description = pkg.description;
9
9
  const metadata: Metadata = {
10
10
  appleWebApp: {
11
+ startupImage: [
12
+ 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/splash-750x1624.png',
13
+ {
14
+ media: '(device-width: 768px) and (device-height: 1024px)',
15
+ url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/splash-2048x2732.png',
16
+ },
17
+ ],
11
18
  statusBarStyle: 'black-translucent',
12
19
  title: title,
13
20
  },
14
21
  description: description,
15
22
  icons: {
16
23
  apple:
17
- 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/apple-touch-icon.png',
18
- icon: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-32x32.png',
24
+ 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/apple-touch-icon.png',
25
+ icon: 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/favicon-32x32.png',
19
26
  other: {
20
27
  rel: 'mask-icon',
21
- url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/safari-pinned-tab.svg',
28
+ url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/safari-pinned-tab.svg',
22
29
  },
30
+ shortcut:
31
+ 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/favicon.ico',
23
32
  },
24
33
  manifest: '/manifest.json',
25
34
  openGraph: {
@@ -27,15 +36,15 @@ const metadata: Metadata = {
27
36
  images: [
28
37
  {
29
38
  alt: title,
30
- height: 192,
31
- url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png',
32
- width: 192,
39
+ height: 360,
40
+ url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/og-480x360.png',
41
+ width: 480,
33
42
  },
34
43
  {
35
44
  alt: title,
36
- height: 512,
37
- url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png',
38
- width: 512,
45
+ height: 720,
46
+ url: 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/og-960x720.png',
47
+ width: 960,
39
48
  },
40
49
  ],
41
50
  locale: 'en_US',
@@ -0,0 +1,7 @@
1
+ import Page from './home';
2
+
3
+ const Index = () => {
4
+ return <Page />;
5
+ };
6
+
7
+ export default Index;
@@ -9,8 +9,8 @@ import { useSwitchSideBarOnInit } from '@/store/global';
9
9
  import { genSiteHeadTitle } from '@/utils/genSiteHeadTitle';
10
10
 
11
11
  import Settings from './features/Settings';
12
- import DesktopLayout from './layout';
13
12
  import MobileLayout from './layout.mobile';
13
+ import DesktopLayout from './layout.pc';
14
14
 
15
15
  const Setting = memo(() => {
16
16
  const { mobile } = useResponsive();
@@ -0,0 +1,7 @@
1
+ import Page from './index';
2
+
3
+ const Index = () => {
4
+ return <Page />;
5
+ };
6
+
7
+ export default Index;
@@ -9,8 +9,8 @@ import { genSiteHeadTitle } from '@/utils/genSiteHeadTitle';
9
9
 
10
10
  import Banner from './features/Banner';
11
11
  import Footer from './features/Footer';
12
- import Layout from './layout';
13
12
  import Mobile from './layout.mobile';
13
+ import Layout from './layout.pc';
14
14
 
15
15
  const Welcome = memo(() => {
16
16
  const { mobile } = useResponsive();
@@ -0,0 +1,7 @@
1
+ import Page from './index';
2
+
3
+ const Index = () => {
4
+ return <Page />;
5
+ };
6
+
7
+ export default Index;
@@ -3,6 +3,9 @@ import { css } from 'antd-style';
3
3
  export default () => css`
4
4
  body,
5
5
  .ant-app {
6
+ overflow: hidden;
7
+ overscroll-behavior: none;
8
+
6
9
  ::-webkit-scrollbar {
7
10
  width: 0;
8
11
  height: 0;
@@ -1,7 +0,0 @@
1
- import Page from '@/pages/chat/mobile';
2
-
3
- const Index = () => {
4
- return <Page />;
5
- };
6
-
7
- export default Index;
@@ -1,7 +0,0 @@
1
- import Page from '@/pages/chat/setting';
2
-
3
- const Index = () => {
4
- return <Page />;
5
- };
6
-
7
- export default Index;
@@ -1,7 +0,0 @@
1
- import Page from '@/pages/settings';
2
-
3
- const Index = () => {
4
- return <Page />;
5
- };
6
-
7
- export default Index;
File without changes
File without changes
File without changes
File without changes
File without changes