Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
487e6990
Unverified
Commit
487e6990
authored
Sep 04, 2023
by
crazywoola
Committed by
GitHub
Sep 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ui in chat openning statement (#1094)
parent
a7cdb745
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
148 additions
and
500 deletions
+148
-500
index.tsx
web/app/components/app/chat/index.tsx
+1
-1
index.tsx
web/app/components/share/chat/index.tsx
+1
-1
index.tsx
web/app/components/share/chatbot/index.tsx
+0
-1
yarn.lock
web/yarn.lock
+146
-497
No files found.
web/app/components/app/chat/index.tsx
View file @
487e6990
...
@@ -56,7 +56,7 @@ export type IChatProps = {
...
@@ -56,7 +56,7 @@ export type IChatProps = {
const
Chat
:
FC
<
IChatProps
>
=
({
const
Chat
:
FC
<
IChatProps
>
=
({
configElem
,
configElem
,
chatList
,
chatList
,
controlChatUpdateAllConversation
,
feedbackDisabled
=
false
,
feedbackDisabled
=
false
,
isHideFeedbackEdit
=
false
,
isHideFeedbackEdit
=
false
,
isHideSendInput
=
false
,
isHideSendInput
=
false
,
...
...
web/app/components/share/chat/index.tsx
View file @
487e6990
...
@@ -318,7 +318,7 @@ const Main: FC<IMainProps> = ({
...
@@ -318,7 +318,7 @@ const Main: FC<IMainProps> = ({
content
:
caculatedIntroduction
,
content
:
caculatedIntroduction
,
isAnswer
:
true
,
isAnswer
:
true
,
feedbackDisabled
:
true
,
feedbackDisabled
:
true
,
isOpeningStatement
:
isPublicVersion
,
isOpeningStatement
:
true
,
}
}
if
(
caculatedIntroduction
)
if
(
caculatedIntroduction
)
return
[
openstatement
]
return
[
openstatement
]
...
...
web/app/components/share/chatbot/index.tsx
View file @
487e6990
...
@@ -238,7 +238,6 @@ const Main: FC<IMainProps> = ({
...
@@ -238,7 +238,6 @@ const Main: FC<IMainProps> = ({
if
(
caculatedIntroduction
&&
caculatedPromptVariables
)
if
(
caculatedIntroduction
&&
caculatedPromptVariables
)
caculatedIntroduction
=
replaceStringWithValues
(
caculatedIntroduction
,
promptConfig
?.
prompt_variables
||
[],
caculatedPromptVariables
)
caculatedIntroduction
=
replaceStringWithValues
(
caculatedIntroduction
,
promptConfig
?.
prompt_variables
||
[],
caculatedPromptVariables
)
// console.log(isPublicVersion)
const
openstatement
=
{
const
openstatement
=
{
id
:
`
${
Date
.
now
()}
`
,
id
:
`
${
Date
.
now
()}
`
,
content
:
caculatedIntroduction
,
content
:
caculatedIntroduction
,
...
...
web/yarn.lock
View file @
487e6990
This diff is collapsed.
Click to expand it.
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