Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
2fdca621
authored
Jul 31, 2024
by
Archer
Committed by
GitHub
Jul 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: remove unuse code (#2227)
parent
8c7f4a3a
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
27 additions
and
90 deletions
+27
-90
packages/web/components/common/Input/HttpInput/index.tsx
+3
-7
packages/web/components/common/Textarea/PromptEditor/Editor.tsx
+1
-1
packages/web/components/common/Textarea/PromptEditor/index.tsx
+3
-6
pnpm-lock.yaml
+7
-58
projects/app/src/components/core/app/WelcomeTextConfig.tsx
+1
-1
projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ChatItem.tsx
+1
-1
projects/app/src/pages/app/detail/components/Plugin/Header.tsx
+1
-1
projects/app/src/pages/app/detail/components/Plugin/index.tsx
+1
-1
projects/app/src/pages/app/detail/components/Workflow/index.tsx
+1
-1
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/ChatTest.tsx
+1
-1
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodeHttp/index.tsx
+1
-1
projects/app/src/pages/app/detail/components/WorkflowComponents/context.tsx
+2
-10
projects/app/src/pages/app/detail/components/useChatTest.tsx
+1
-1
projects/app/src/pages/app/detail/index.tsx
+3
-0
No files found.
packages/web/components/common/Input/HttpInput/index.tsx
View file @
2fdca621
import
React
,
{
useEffect
}
from
'react'
;
import
{
$getRoot
,
EditorState
,
type
LexicalEditor
}
from
'lexical'
;
import
{
useCallback
,
useTransition
}
from
'react'
;
import
{
useCallback
}
from
'react'
;
import
{
editorStateToText
}
from
'../../Textarea/PromptEditor/utils'
;
import
{
EditorVariablePickerType
}
from
'../../Textarea/PromptEditor/type'
;
import
Editor
from
'./Editor'
;
...
...
@@ -30,18 +30,14 @@ const HttpInput = ({
})
=>
{
const
[
currentValue
,
setCurrentValue
]
=
React
.
useState
(
value
);
const
[,
startSts
]
=
useTransition
();
const
onChangeInput
=
useCallback
((
editorState
:
EditorState
,
editor
:
LexicalEditor
)
=>
{
const
text
=
editorStateToText
(
editor
).
replaceAll
(
'}}{{'
,
'}} {{'
);
setCurrentValue
(
text
);
onChange
?.(
text
);
},
[]);
const
onBlurInput
=
useCallback
((
editor
:
LexicalEditor
)
=>
{
startSts
(()
=>
{
const
text
=
editorStateToText
(
editor
).
replaceAll
(
'}}{{'
,
'}} {{'
);
onBlur
?.(
text
);
});
const
text
=
editorStateToText
(
editor
).
replaceAll
(
'}}{{'
,
'}} {{'
);
onBlur
?.(
text
);
},
[]);
return
(
...
...
packages/web/components/common/Textarea/PromptEditor/Editor.tsx
View file @
2fdca621
import
{
useState
,
useRef
,
useTransition
,
useEffect
}
from
'react'
;
import
{
useState
,
useRef
,
useTransition
}
from
'react'
;
import
{
LexicalComposer
}
from
'@lexical/react/LexicalComposer'
;
import
{
PlainTextPlugin
}
from
'@lexical/react/LexicalPlainTextPlugin'
;
import
{
ContentEditable
}
from
'@lexical/react/LexicalContentEditable'
;
...
...
packages/web/components/common/Textarea/PromptEditor/index.tsx
View file @
2fdca621
...
...
@@ -6,7 +6,7 @@ import MyModal from '../../MyModal';
import
{
useTranslation
}
from
'next-i18next'
;
import
{
EditorState
,
type
LexicalEditor
}
from
'lexical'
;
import
{
EditorVariableLabelPickerType
,
EditorVariablePickerType
}
from
'./type.d'
;
import
{
useCallback
,
useTransition
}
from
'react'
;
import
{
useCallback
}
from
'react'
;
const
PromptEditor
=
({
showOpenModal
=
true
,
...
...
@@ -36,7 +36,6 @@ const PromptEditor = ({
isFlow
?:
boolean
;
})
=>
{
const
{
isOpen
,
onOpen
,
onClose
}
=
useDisclosure
();
const
[,
startSts
]
=
useTransition
();
const
{
t
}
=
useTranslation
();
const
onChangeInput
=
useCallback
((
editorState
:
EditorState
,
editor
:
LexicalEditor
)
=>
{
...
...
@@ -44,10 +43,8 @@ const PromptEditor = ({
onChange
?.(
text
);
},
[]);
const
onBlurInput
=
useCallback
((
editor
:
LexicalEditor
)
=>
{
startSts
(()
=>
{
const
text
=
editorStateToText
(
editor
).
replaceAll
(
'}}{{'
,
'}} {{'
);
onBlur
?.(
text
);
});
const
text
=
editorStateToText
(
editor
).
replaceAll
(
'}}{{'
,
'}} {{'
);
onBlur
?.(
text
);
},
[]);
return
(
...
...
pnpm-lock.yaml
View file @
2fdca621
...
...
@@ -61,7 +61,7 @@ importers:
version
:
4.0.2
next
:
specifier
:
14.2.5
version
:
14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
version
:
14.2.5(
@babel/core@7.24.9)(
react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
openai
:
specifier
:
4.53.0
version
:
4.53.0(encoding@0.1.13)
...
...
@@ -180,7 +180,7 @@ importers:
version
:
1.4.5-lts.1
next
:
specifier
:
14.2.5
version
:
14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
version
:
14.2.5(
@babel/core@7.24.9)(
react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
nextjs-cors
:
specifier
:
^2.2.0
version
:
2.2.0(next@14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))
...
...
@@ -368,7 +368,7 @@ importers:
version
:
2.1.1(@chakra-ui/system@2.6.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(react@18.3.1))(react@18.3.1)
'
@chakra-ui/next-js'
:
specifier
:
2.1.5
version
:
2.1.5(@chakra-ui/react@2.8.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.5(
@babel/core@7.24.9)(
react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react@18.3.1)
version
:
2.1.5(@chakra-ui/react@2.8.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react@18.3.1)
'
@chakra-ui/react'
:
specifier
:
2.8.1
version
:
2.8.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
...
...
@@ -464,7 +464,7 @@ importers:
version
:
14.2.5(@babel/core@7.24.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
next-i18next
:
specifier
:
15.3.0
version
:
15.3.0(i18next@23.11.5)(next@14.2.5(
@babel/core@7.24.9)(
react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react-i18next@14.1.2(i18next@23.11.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)
version
:
15.3.0(i18next@23.11.5)(next@14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react-i18next@14.1.2(i18next@23.11.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)
nextjs-node-loader
:
specifier
:
^1.1.5
version
:
1.1.5(webpack@5.92.1)
...
...
@@ -10023,20 +10023,12 @@ snapshots:
transitivePeerDependencies
:
-
'
@types/react'
'
@chakra-ui/next-js@2.1.5(@chakra-ui/react@2.8.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.5(@babel/core@7.24.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react@18.3.1)'
:
dependencies
:
'
@chakra-ui/react'
:
2.8.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'
@emotion/cache'
:
11.11.0
'
@emotion/react'
:
11.11.1(@types/react@18.3.1)(react@18.3.1)
next
:
14.2.5(@babel/core@7.24.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
react
:
18.3.1
'
@chakra-ui/next-js@2.1.5(@chakra-ui/react@2.8.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(next@14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react@18.3.1)'
:
dependencies
:
'
@chakra-ui/react'
:
2.8.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(framer-motion@9.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'
@emotion/cache'
:
11.11.0
'
@emotion/react'
:
11.11.1(@types/react@18.3.1)(react@18.3.1)
next
:
14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
next
:
14.2.5(
@babel/core@7.24.9)(
react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
react
:
18.3.1
'
@chakra-ui/number-input@2.1.1(@chakra-ui/system@2.6.1(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.3.1)(react@18.3.1))(@types/react@18.3.1)(react@18.3.1))(react@18.3.1))(react@18.3.1)'
:
...
...
@@ -16632,18 +16624,6 @@ snapshots:
neo-async@2.6.2
:
{}
next-i18next@15.3.0(i18next@23.11.5)(next@14.2.5(@babel/core@7.24.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react-i18next@14.1.2(i18next@23.11.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)
:
dependencies
:
'
@babel/runtime'
:
7.24.8
'
@types/hoist-non-react-statics'
:
3.3.5
core-js
:
3.37.1
hoist-non-react-statics
:
3.3.2
i18next
:
23.11.5
i18next-fs-backend
:
2.3.1
next
:
14.2.5(@babel/core@7.24.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
react
:
18.3.1
react-i18next
:
14.1.2(i18next@23.11.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
next-i18next@15.3.0(i18next@23.11.5)(next@14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))(react-i18next@14.1.2(i18next@23.11.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)
:
dependencies
:
'
@babel/runtime'
:
7.24.8
...
...
@@ -16652,7 +16632,7 @@ snapshots:
hoist-non-react-statics
:
3.3.2
i18next
:
23.11.5
i18next-fs-backend
:
2.3.1
next
:
14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
next
:
14.2.5(
@babel/core@7.24.9)(
react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
react
:
18.3.1
react-i18next
:
14.1.2(i18next@23.11.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
...
...
@@ -16682,36 +16662,10 @@ snapshots:
-
'
@babel/core'
-
babel-plugin-macros
next@14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
:
dependencies
:
'
@next/env'
:
14.2.5
'
@swc/helpers'
:
0.5.5
busboy
:
1.6.0
caniuse-lite
:
1.0.30001642
graceful-fs
:
4.2.11
postcss
:
8.4.31
react
:
18.3.1
react-dom
:
18.3.1(react@18.3.1)
styled-jsx
:
5.1.1(react@18.3.1)
optionalDependencies
:
'
@next/swc-darwin-arm64'
:
14.2.5
'
@next/swc-darwin-x64'
:
14.2.5
'
@next/swc-linux-arm64-gnu'
:
14.2.5
'
@next/swc-linux-arm64-musl'
:
14.2.5
'
@next/swc-linux-x64-gnu'
:
14.2.5
'
@next/swc-linux-x64-musl'
:
14.2.5
'
@next/swc-win32-arm64-msvc'
:
14.2.5
'
@next/swc-win32-ia32-msvc'
:
14.2.5
'
@next/swc-win32-x64-msvc'
:
14.2.5
sass
:
1.77.8
transitivePeerDependencies
:
-
'
@babel/core'
-
babel-plugin-macros
nextjs-cors@2.2.0(next@14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8))
:
dependencies
:
cors
:
2.8.5
next
:
14.2.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
next
:
14.2.5(
@babel/core@7.24.9)(
react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.77.8)
nextjs-node-loader@1.1.5(webpack@5.92.1)
:
dependencies
:
...
...
@@ -18084,11 +18038,6 @@ snapshots:
optionalDependencies
:
'
@babel/core'
:
7.24.9
styled-jsx@5.1.1(react@18.3.1)
:
dependencies
:
client-only
:
0.0.1
react
:
18.3.1
stylis@4.2.0
:
{}
stylis@4.3.2
:
{}
...
...
projects/app/src/components/core/app/WelcomeTextConfig.tsx
View file @
2fdca621
import
{
Box
,
Flex
,
TextareaProps
}
from
'@chakra-ui/react'
;
import
React
,
{
useTransition
}
from
'react'
;
import
React
from
'react'
;
import
MyIcon
from
'@fastgpt/web/components/common/Icon'
;
import
ChatFunctionTip
from
'./Tip'
;
import
MyTextarea
from
'@/components/common/Textarea/MyTextarea'
;
...
...
projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ChatItem.tsx
View file @
2fdca621
import
{
Box
,
BoxProps
,
Card
,
Flex
}
from
'@chakra-ui/react'
;
import
React
,
{
useMemo
,
useTransition
}
from
'react'
;
import
React
,
{
useMemo
}
from
'react'
;
import
ChatController
,
{
type
ChatControllerProps
}
from
'./ChatController'
;
import
ChatAvatar
from
'./ChatAvatar'
;
import
{
MessageCardStyle
}
from
'../constants'
;
...
...
projects/app/src/pages/app/detail/components/Plugin/Header.tsx
View file @
2fdca621
...
...
@@ -14,7 +14,6 @@ import { useRouter } from 'next/router';
import
AppCard
from
'../WorkflowComponents/AppCard'
;
import
{
uiWorkflow2StoreWorkflow
}
from
'../WorkflowComponents/utils'
;
import
{
useSystemStore
}
from
'@/web/common/system/useSystemStore'
;
import
RouteTab
from
'../RouteTab'
;
import
{
useSystem
}
from
'@fastgpt/web/hooks/useSystem'
;
const
PublishHistories
=
dynamic
(()
=>
import
(
'../PublishHistoriesSlider'
));
...
...
@@ -54,6 +53,7 @@ const Header = () => {
router
.
push
(
'/app/list'
);
}
catch
(
error
)
{}
},
[
onSaveWorkflow
,
router
]);
// effect
useBeforeunload
({
callback
:
onSaveWorkflow
,
...
...
projects/app/src/pages/app/detail/components/Plugin/index.tsx
View file @
2fdca621
...
...
@@ -69,4 +69,4 @@ const Render = () => {
);
};
export
default
Re
act
.
memo
(
Render
)
;
export
default
Re
nder
;
projects/app/src/pages/app/detail/components/Workflow/index.tsx
View file @
2fdca621
...
...
@@ -69,4 +69,4 @@ const Render = () => {
);
};
export
default
Re
act
.
memo
(
Render
)
;
export
default
Re
nder
;
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/ChatTest.tsx
View file @
2fdca621
import
type
{
StoreNodeItemType
}
from
'@fastgpt/global/core/workflow/type/node.d'
;
import
React
from
'react'
;
import
{
SmallCloseIcon
}
from
'@chakra-ui/icons'
;
import
{
Box
,
Flex
,
HStack
,
IconButton
}
from
'@chakra-ui/react'
;
import
{
Box
,
Flex
,
IconButton
}
from
'@chakra-ui/react'
;
import
MyIcon
from
'@fastgpt/web/components/common/Icon'
;
import
MyTooltip
from
'@fastgpt/web/components/common/MyTooltip'
;
import
{
useTranslation
}
from
'next-i18next'
;
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodeHttp/index.tsx
View file @
2fdca621
...
...
@@ -305,7 +305,7 @@ export function RenderHttpProps({
{
t
(
'common:core.module.Http request props'
)
}
<
QuestionTip
ml=
{
1
}
label=
{
t
(
'core.module.http.Props tip'
,
{
variable
:
variableText
})
}
label=
{
t
(
'co
mmon:co
re.module.http.Props tip'
,
{
variable
:
variableText
})
}
></
QuestionTip
>
</
Flex
>
<
LightRowTabs
<
TabEnum
>
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/context.tsx
View file @
2fdca621
...
...
@@ -5,11 +5,7 @@ import {
storeNode2FlowNode
}
from
'@/web/core/workflow/utils'
;
import
{
getErrText
}
from
'@fastgpt/global/common/error/utils'
;
import
{
NodeOutputKeyEnum
,
RuntimeEdgeStatusEnum
,
WorkflowIOValueTypeEnum
}
from
'@fastgpt/global/core/workflow/constants'
;
import
{
NodeOutputKeyEnum
,
RuntimeEdgeStatusEnum
}
from
'@fastgpt/global/core/workflow/constants'
;
import
{
FlowNodeTypeEnum
}
from
'@fastgpt/global/core/workflow/node/constant'
;
import
{
RuntimeNodeItemType
}
from
'@fastgpt/global/core/workflow/runtime/type'
;
import
{
FlowNodeItemType
,
StoreNodeItemType
}
from
'@fastgpt/global/core/workflow/type/node'
;
...
...
@@ -49,11 +45,7 @@ import { useDisclosure } from '@chakra-ui/react';
import
{
uiWorkflow2StoreWorkflow
}
from
'./utils'
;
import
{
useTranslation
}
from
'next-i18next'
;
import
{
useRequest2
}
from
'@fastgpt/web/hooks/useRequest'
;
import
{
formatTime2HM
,
formatTime2YMDHM
,
formatTime2YMDHMW
}
from
'@fastgpt/global/common/string/time'
;
import
{
formatTime2HM
,
formatTime2YMDHMW
}
from
'@fastgpt/global/common/string/time'
;
import
type
{
InitProps
}
from
'@/pages/app/detail/components/PublishHistoriesSlider'
;
import
{
cloneDeep
}
from
'lodash'
;
...
...
projects/app/src/pages/app/detail/components/useChatTest.tsx
View file @
2fdca621
...
...
@@ -19,10 +19,10 @@ import { AppTypeEnum } from '@fastgpt/global/core/app/constants';
import
dynamic
from
'next/dynamic'
;
import
{
useChat
}
from
'@/components/core/chat/ChatContainer/useChat'
;
import
{
Box
}
from
'@chakra-ui/react'
;
import
ChatBox
from
'@/components/core/chat/ChatContainer/ChatBox'
;
import
{
AppChatConfigType
}
from
'@fastgpt/global/core/app/type'
;
const
PluginRunBox
=
dynamic
(()
=>
import
(
'@/components/core/chat/ChatContainer/PluginRunBox'
));
const
ChatBox
=
dynamic
(()
=>
import
(
'@/components/core/chat/ChatContainer/ChatBox'
));
export
const
useChatTest
=
({
nodes
,
...
...
projects/app/src/pages/app/detail/index.tsx
View file @
2fdca621
...
...
@@ -9,12 +9,15 @@ import AppContextProvider, { AppContext } from './components/context';
import
{
AppTypeEnum
}
from
'@fastgpt/global/core/app/constants'
;
const
SimpleEdit
=
dynamic
(()
=>
import
(
'./components/SimpleApp'
),
{
ssr
:
false
,
loading
:
()
=>
<
Loading
fixed=
{
false
}
/>
});
const
Workflow
=
dynamic
(()
=>
import
(
'./components/Workflow'
),
{
ssr
:
false
,
loading
:
()
=>
<
Loading
fixed=
{
false
}
/>
});
const
Plugin
=
dynamic
(()
=>
import
(
'./components/Plugin'
),
{
ssr
:
false
,
loading
:
()
=>
<
Loading
fixed=
{
false
}
/>
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment