@lobehub/chat 0.83.10 → 0.84.0-beta.2
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.
- package/.dockerignore +10 -0
- package/.github/workflows/release.yml +3 -0
- package/.releaserc.js +14 -1
- package/CHANGELOG.md +27 -14
- package/Dockerfile +47 -0
- package/next.config.mjs +3 -0
- package/package.json +4 -2
- package/src/app/chat/(desktop)/features/{ChatHeader.tsx → ChatHeader/Desktop.tsx} +2 -2
- package/src/app/chat/(desktop)/features/ChatHeader/index.tsx +14 -0
- package/src/app/chat/(desktop)/features/{ChatInput.tsx → ChatInput/Desktop.tsx} +7 -5
- package/src/app/chat/(desktop)/features/ChatInput/index.tsx +22 -0
- package/src/app/chat/(desktop)/features/{SessionHeader.tsx → SessionHeader/Desktop.tsx} +1 -1
- package/src/app/chat/(desktop)/features/SessionHeader/index.tsx +14 -0
- package/src/app/chat/(desktop)/features/{SessionList.tsx → SessionList/Desktop.tsx} +4 -5
- package/src/app/chat/(desktop)/features/SessionList/index.tsx +20 -0
- package/src/app/chat/(desktop)/features/{SideBar.tsx → SideBar/Desktop.tsx} +4 -5
- package/src/app/chat/(desktop)/features/SideBar/index.tsx +20 -0
- package/src/app/chat/(desktop)/index.tsx +8 -14
- package/src/app/chat/(desktop)/{layout.desktop.tsx → layout/Desktop.tsx} +8 -7
- package/src/app/chat/(desktop)/layout/index.tsx +25 -0
- package/src/app/chat/(mobile)/features/ChatHeader.tsx +1 -54
- package/src/app/chat/(mobile)/features/ChatInput.tsx +8 -28
- package/src/app/chat/(mobile)/features/SessionList.tsx +8 -13
- package/src/app/chat/(mobile)/features/Topics.tsx +12 -0
- package/src/app/chat/(mobile)/index.tsx +5 -3
- package/src/app/chat/(mobile)/layout.tsx +15 -0
- package/src/app/chat/(mobile)/mobile/page.tsx +20 -2
- package/src/app/chat/components/ChatHeader/Mobile.tsx +54 -0
- package/src/app/chat/{features → components}/ChatHeader/ShareButton/Preview.tsx +9 -25
- package/src/app/chat/{features → components}/ChatHeader/ShareButton/style.ts +7 -7
- package/src/app/chat/components/ChatInput/Mobile.tsx +35 -0
- package/src/app/chat/{features/ChatInputContent → components/ChatInput}/index.tsx +1 -3
- package/src/app/chat/{(mobile)/features/TopicList.tsx → components/Inspector/Mobile.tsx} +4 -6
- package/src/app/chat/{features/TopicListContent → components/Inspector}/index.tsx +1 -3
- package/src/app/chat/{features/SessionListContent → components/SessionList}/Inbox/index.tsx +5 -7
- package/src/app/chat/components/SessionList/Mobile.tsx +16 -0
- package/src/app/chat/{features/SessionListContent → components/SessionList}/index.tsx +1 -3
- package/src/app/chat/layout.tsx +15 -0
- package/src/app/chat/page.tsx +1 -3
- package/src/app/chat/settings/(desktop)/layout.desktop.tsx +15 -10
- package/src/app/chat/settings/(mobile)/layout.mobile.tsx +8 -4
- package/src/app/chat/settings/layout.tsx +14 -0
- package/src/app/chat/settings/page.tsx +33 -9
- package/src/app/market/(desktop)/{features/AgentDetail.tsx → AgentDetail/Desktop.tsx} +3 -5
- package/src/app/market/(desktop)/AgentDetail/index.tsx +16 -0
- package/src/app/market/(desktop)/Header/index.tsx +13 -0
- package/src/app/market/(desktop)/{layout.desktop.tsx → layout/Desktop.tsx} +5 -5
- package/src/app/market/(desktop)/layout/index.tsx +17 -0
- package/src/app/market/(mobile)/AgentDetail.tsx +12 -0
- package/src/app/market/(mobile)/layout.mobile.tsx +5 -5
- package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/Header.tsx +0 -1
- package/src/app/market/{(mobile)/features/AgentDetail.tsx → components/AgentDetail/Mobile.tsx} +4 -6
- package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/index.tsx +1 -3
- package/src/app/market/features/TagList/index.tsx +1 -2
- package/src/app/market/layout.tsx +13 -0
- package/src/app/market/page.tsx +5 -8
- package/src/app/settings/agent/page.tsx +31 -2
- package/src/app/settings/common/page.tsx +14 -2
- package/src/app/settings/{(desktop)/features/Header.tsx → features/Header/Desktop.tsx} +2 -2
- package/src/app/settings/{(mobile)/features/Header/index.tsx → features/Header/Mobile.tsx} +0 -1
- package/src/app/settings/features/Header/index.tsx +14 -0
- package/src/app/settings/{(desktop)/layout.desktop.tsx → layout.desktop/Desktop.tsx} +9 -10
- package/src/app/settings/layout.desktop/index.tsx +32 -0
- package/src/app/settings/layout.mobile.tsx +16 -0
- package/src/app/settings/layout.tsx +15 -0
- package/src/app/settings/llm/page.tsx +14 -2
- package/src/app/settings/{(mobile)/features → mobile}/ExtraList.tsx +1 -1
- package/src/app/settings/{(mobile)/mobile → mobile}/index.tsx +7 -7
- package/src/app/settings/mobile/page.tsx +7 -0
- package/src/app/settings/page.tsx +1 -14
- package/src/app/welcome/{(desktop)/layout.desktop.tsx → DesktopLayout/Desktop.tsx} +4 -4
- package/src/app/welcome/DesktopLayout/index.tsx +15 -0
- package/src/app/welcome/MobileLayout.tsx +23 -0
- package/src/app/welcome/features/Banner/Hero.tsx +3 -2
- package/src/app/welcome/features/Banner/index.tsx +31 -34
- package/src/app/welcome/features/Banner/style.ts +1 -10
- package/src/app/welcome/layout.tsx +22 -0
- package/src/app/welcome/page.tsx +7 -9
- package/src/{layout/ResponsiveLayout.server.tsx → components/ResponsiveLayout.tsx} +3 -4
- package/src/features/MobileTabBar/index.tsx +1 -1
- package/src/features/SideBar/BottomActions.tsx +1 -1
- package/src/layout/{AppLayout.desktop.tsx → AppLayout.tsx} +2 -2
- package/src/layout/{AppLayout.mobile.tsx → AppMobileLayout.tsx} +2 -2
- package/src/layout/GlobalLayout/StoreHydration.tsx +1 -15
- package/src/store/session/slices/session/initialState.ts +2 -2
- package/src/app/chat/(desktop)/layout.responsive.tsx +0 -12
- package/src/app/chat/(mobile)/layout.mobile.tsx +0 -17
- package/src/app/chat/(mobile)/mobile/index.tsx +0 -19
- package/src/app/chat/(mobile)/mobile/layout.mobile.tsx +0 -11
- package/src/app/chat/settings/(desktop)/index.tsx +0 -14
- package/src/app/chat/settings/(desktop)/layout.responsive.tsx +0 -12
- package/src/app/chat/settings/(mobile)/index.tsx +0 -14
- package/src/app/chat/settings/features/EditPage.tsx +0 -38
- package/src/app/market/(desktop)/index.tsx +0 -12
- package/src/app/market/(desktop)/layout.responsive.tsx +0 -16
- package/src/app/market/(mobile)/index.tsx +0 -12
- package/src/app/settings/(desktop)/index.tsx +0 -17
- package/src/app/settings/(desktop)/layout.responsive.tsx +0 -14
- package/src/app/settings/(mobile)/features/Header/Home.tsx +0 -8
- package/src/app/settings/(mobile)/index.tsx +0 -3
- package/src/app/settings/(mobile)/layout.mobile.tsx +0 -19
- package/src/app/settings/(mobile)/mobile/layout.mobile.tsx +0 -14
- package/src/app/settings/agent/Agent.tsx +0 -30
- package/src/app/settings/agent/index.tsx +0 -23
- package/src/app/settings/agent/layout.tsx +0 -1
- package/src/app/settings/common/index.tsx +0 -23
- package/src/app/settings/common/layout.tsx +0 -1
- package/src/app/settings/layout.server.tsx +0 -12
- package/src/app/settings/llm/index.tsx +0 -23
- package/src/app/settings/llm/layout.tsx +0 -1
- package/src/app/welcome/(desktop)/features/Showcase.tsx +0 -23
- package/src/app/welcome/(desktop)/index.tsx +0 -19
- package/src/app/welcome/(desktop)/layout.responsive.tsx +0 -14
- package/src/app/welcome/(mobile)/features/Header.tsx +0 -6
- package/src/app/welcome/(mobile)/features/Showcase.tsx +0 -16
- package/src/app/welcome/(mobile)/index.tsx +0 -10
- package/src/app/welcome/(mobile)/layout.mobile.tsx +0 -20
- package/src/components/ResponsiveIndex.tsx +0 -17
- package/src/layout/ResponsiveLayout.client.tsx +0 -18
- /package/src/app/chat/{features → components}/ChatHeader/PluginTag/PluginStatus.tsx +0 -0
- /package/src/app/chat/{features → components}/ChatHeader/PluginTag/index.tsx +0 -0
- /package/src/app/chat/{features → components}/ChatHeader/ShareButton/Inner.tsx +0 -0
- /package/src/app/chat/{features → components}/ChatHeader/ShareButton/index.tsx +0 -0
- /package/src/app/chat/{features/ChatInputContent → components/ChatInput}/ActionBar/ActionLeft.tsx +0 -0
- /package/src/app/chat/{features/ChatInputContent → components/ChatInput}/ActionBar/ActionRight.tsx +0 -0
- /package/src/app/chat/{features/ChatInputContent → components/ChatInput}/ActionBar/Token.tsx +0 -0
- /package/src/app/chat/{features/ChatInputContent → components/ChatInput}/Footer/SaveTopic.tsx +0 -0
- /package/src/app/chat/{features/ChatInputContent → components/ChatInput}/Footer/index.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/SystemRole/Header.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/SystemRole/index.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/SystemRole/style.ts +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/DefaultContent.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/SkeletonList.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/TopicContent.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/TopicItem.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/index.tsx +0 -0
- /package/src/app/chat/{features/TopicListContent → components/Inspector}/TopicSearchBar/index.tsx +0 -0
- /package/src/app/chat/{features/SessionListContent → components/SessionList}/CollapseGroup/index.tsx +0 -0
- /package/src/app/chat/{features/SessionListContent → components/SessionList}/List/AddButton.tsx +0 -0
- /package/src/app/chat/{features/SessionListContent → components/SessionList}/List/Item/Actions.tsx +0 -0
- /package/src/app/chat/{features/SessionListContent → components/SessionList}/List/Item/index.tsx +0 -0
- /package/src/app/chat/{features/SessionListContent → components/SessionList}/List/SkeletonList.tsx +0 -0
- /package/src/app/chat/{features/SessionListContent → components/SessionList}/List/index.tsx +0 -0
- /package/src/app/chat/features/{PageTitle/index.tsx → PageTitle.tsx} +0 -0
- /package/src/app/market/(desktop)/{features/Header.tsx → Header/Desktop.tsx} +0 -0
- /package/src/app/market/(mobile)/{features/Header.tsx → Header.tsx} +0 -0
- /package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/Comment.tsx +0 -0
- /package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/Loading.tsx +0 -0
- /package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/TokenTag.tsx +0 -0
- /package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/index.tsx +0 -0
- /package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/style.ts +0 -0
- /package/src/app/welcome/{(desktop)/features/Footer.tsx → features/Footer/index.tsx} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { PropsWithChildren, memo } from 'react';
|
|
4
|
-
|
|
5
|
-
import ResponsiveLayout from '@/layout/ResponsiveLayout.client';
|
|
6
|
-
|
|
7
|
-
import MobileLayout from '../(mobile)/layout.mobile';
|
|
8
|
-
import DesktopLayout from './layout.desktop';
|
|
9
|
-
|
|
10
|
-
export default memo(({ children }: PropsWithChildren) => (
|
|
11
|
-
<ResponsiveLayout Desktop={DesktopLayout} Mobile={MobileLayout}>
|
|
12
|
-
{children}
|
|
13
|
-
</ResponsiveLayout>
|
|
14
|
-
));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { memo } from 'react';
|
|
2
|
-
import { Center, Flexbox } from 'react-layout-kit';
|
|
3
|
-
|
|
4
|
-
import Banner from '@/app/welcome/features/Banner';
|
|
5
|
-
|
|
6
|
-
const Showcase = memo(() => (
|
|
7
|
-
<Flexbox align={'center'} justify={'center'} style={{ height: 'calc(100vh - 44px)' }}>
|
|
8
|
-
<Center gap={16}>
|
|
9
|
-
<Banner mobile />
|
|
10
|
-
</Center>
|
|
11
|
-
{/*TODO:暂时隐藏,待模板完成后再补回*/}
|
|
12
|
-
{/*<AgentTemplate width={width} />*/}
|
|
13
|
-
</Flexbox>
|
|
14
|
-
));
|
|
15
|
-
|
|
16
|
-
export default Showcase;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useTheme } from 'antd-style';
|
|
4
|
-
import { PropsWithChildren, memo } from 'react';
|
|
5
|
-
|
|
6
|
-
import AppLayoutMobile from '@/layout/AppLayout.mobile';
|
|
7
|
-
|
|
8
|
-
import Header from './features/Header';
|
|
9
|
-
|
|
10
|
-
const MobileLayout = memo<PropsWithChildren>(({ children }) => {
|
|
11
|
-
const theme = useTheme();
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<AppLayoutMobile navBar={<Header />} showTabBar style={{ background: theme.colorBgLayout }}>
|
|
15
|
-
<div style={{ paddingInline: 16 }}>{children}</div>
|
|
16
|
-
</AppLayoutMobile>
|
|
17
|
-
);
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export default MobileLayout;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { FC, ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
import { useIsMobile } from '@/hooks/useIsMobile';
|
|
6
|
-
|
|
7
|
-
interface ResponsiveIndexProps {
|
|
8
|
-
Mobile: FC;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
const ResponsiveIndex = ({ children, Mobile }: ResponsiveIndexProps) => {
|
|
12
|
-
const mobile = useIsMobile();
|
|
13
|
-
|
|
14
|
-
return mobile ? <Mobile /> : children;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default ResponsiveIndex;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
import { useIsMobile } from '@/hooks/useIsMobile';
|
|
6
|
-
|
|
7
|
-
interface ServerResponsiveLayoutProps {
|
|
8
|
-
Desktop: (props: PropsWithChildren) => ReactNode;
|
|
9
|
-
Mobile: (props: PropsWithChildren) => ReactNode;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
const ResponsiveLayout = ({ children, Desktop, Mobile }: ServerResponsiveLayoutProps) => {
|
|
13
|
-
const mobile = useIsMobile();
|
|
14
|
-
|
|
15
|
-
return mobile ? <Mobile>{children}</Mobile> : <Desktop>{children}</Desktop>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default ResponsiveLayout;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/app/chat/{features/ChatInputContent → components/ChatInput}/ActionBar/ActionLeft.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/ChatInputContent → components/ChatInput}/ActionBar/ActionRight.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/ChatInputContent → components/ChatInput}/ActionBar/Token.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/ChatInputContent → components/ChatInput}/Footer/SaveTopic.tsx
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/SystemRole/Header.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/SystemRole/index.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/SystemRole/style.ts
RENAMED
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/DefaultContent.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/SkeletonList.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/TopicContent.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/Topic/TopicItem.tsx
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/app/chat/{features/TopicListContent → components/Inspector}/TopicSearchBar/index.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/SessionListContent → components/SessionList}/CollapseGroup/index.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/SessionListContent → components/SessionList}/List/AddButton.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/SessionListContent → components/SessionList}/List/Item/Actions.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/SessionListContent → components/SessionList}/List/Item/index.tsx
RENAMED
|
File without changes
|
/package/src/app/chat/{features/SessionListContent → components/SessionList}/List/SkeletonList.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/Comment.tsx
RENAMED
|
File without changes
|
/package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/Loading.tsx
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/index.tsx
RENAMED
|
File without changes
|
/package/src/app/market/{features/AgentDetailContent → components/AgentDetail}/AgentInfo/style.ts
RENAMED
|
File without changes
|
|
File without changes
|