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
fd3f32d0
authored
Aug 26, 2024
by
heheer
Committed by
GitHub
Aug 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix welcome text rerender & add copyright (#2525)
parent
f7544ea4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
packages/web/components/common/Input/HttpInput/Editor.tsx
+8
-0
packages/web/components/common/Textarea/PromptEditor/Editor.tsx
+8
-0
packages/web/components/common/Textarea/PromptEditor/utils.ts
+8
-0
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodeSystemConfig.tsx
+0
-3
No files found.
packages/web/components/common/Input/HttpInput/Editor.tsx
View file @
fd3f32d0
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import
{
useState
,
useRef
,
useTransition
,
useEffect
,
useMemo
}
from
'react'
;
import
{
useState
,
useRef
,
useTransition
,
useEffect
,
useMemo
}
from
'react'
;
import
{
LexicalComposer
}
from
'@lexical/react/LexicalComposer'
;
import
{
LexicalComposer
}
from
'@lexical/react/LexicalComposer'
;
import
{
PlainTextPlugin
}
from
'@lexical/react/LexicalPlainTextPlugin'
;
import
{
PlainTextPlugin
}
from
'@lexical/react/LexicalPlainTextPlugin'
;
...
...
packages/web/components/common/Textarea/PromptEditor/Editor.tsx
View file @
fd3f32d0
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import
{
useState
,
useRef
,
useTransition
}
from
'react'
;
import
{
useState
,
useRef
,
useTransition
}
from
'react'
;
import
{
LexicalComposer
}
from
'@lexical/react/LexicalComposer'
;
import
{
LexicalComposer
}
from
'@lexical/react/LexicalComposer'
;
import
{
PlainTextPlugin
}
from
'@lexical/react/LexicalPlainTextPlugin'
;
import
{
PlainTextPlugin
}
from
'@lexical/react/LexicalPlainTextPlugin'
;
...
...
packages/web/components/common/Textarea/PromptEditor/utils.ts
View file @
fd3f32d0
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import
type
{
DecoratorNode
,
Klass
,
LexicalEditor
,
LexicalNode
}
from
'lexical'
;
import
type
{
DecoratorNode
,
Klass
,
LexicalEditor
,
LexicalNode
}
from
'lexical'
;
import
type
{
EntityMatch
}
from
'@lexical/text'
;
import
type
{
EntityMatch
}
from
'@lexical/text'
;
import
{
$createTextNode
,
$getRoot
,
$isTextNode
,
TextNode
}
from
'lexical'
;
import
{
$createTextNode
,
$getRoot
,
$isTextNode
,
TextNode
}
from
'lexical'
;
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodeSystemConfig.tsx
View file @
fd3f32d0
...
@@ -89,14 +89,12 @@ const NodeUserGuide = ({ data, selected }: NodeProps<FlowNodeItemType>) => {
...
@@ -89,14 +89,12 @@ const NodeUserGuide = ({ data, selected }: NodeProps<FlowNodeItemType>) => {
export
default
React
.
memo
(
NodeUserGuide
);
export
default
React
.
memo
(
NodeUserGuide
);
function
WelcomeText
({
chatConfig
:
{
welcomeText
},
setAppDetail
}:
ComponentProps
)
{
function
WelcomeText
({
chatConfig
:
{
welcomeText
},
setAppDetail
}:
ComponentProps
)
{
const
[,
startTst
]
=
useTransition
();
return
(
return
(
<
Box
className=
"nodrag"
>
<
Box
className=
"nodrag"
>
<
WelcomeTextConfig
<
WelcomeTextConfig
resize=
{
'both'
}
resize=
{
'both'
}
value=
{
welcomeText
}
value=
{
welcomeText
}
onChange=
{
(
e
)
=>
{
onChange=
{
(
e
)
=>
{
startTst
(()
=>
{
setAppDetail
((
state
)
=>
({
setAppDetail
((
state
)
=>
({
...
state
,
...
state
,
chatConfig
:
{
chatConfig
:
{
...
@@ -104,7 +102,6 @@ function WelcomeText({ chatConfig: { welcomeText }, setAppDetail }: ComponentPro
...
@@ -104,7 +102,6 @@ function WelcomeText({ chatConfig: { welcomeText }, setAppDetail }: ComponentPro
welcomeText
:
e
.
target
.
value
welcomeText
:
e
.
target
.
value
}
}
}));
}));
});
}
}
}
}
/>
/>
</
Box
>
</
Box
>
...
...
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