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
ac642df7
Commit
ac642df7
authored
Jun 30, 2023
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: batch run add hashtag
parent
b4afefea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
index.tsx
web/app/components/app/text-generate/item/index.tsx
+9
-0
index.tsx
web/app/components/share/text-generation/result/index.tsx
+1
-0
No files found.
web/app/components/app/text-generate/item/index.tsx
View file @
ac642df7
...
...
@@ -6,6 +6,7 @@ import cn from 'classnames'
import
copy
from
'copy-to-clipboard'
import
{
HandThumbDownIcon
,
HandThumbUpIcon
}
from
'@heroicons/react/24/outline'
import
{
useBoolean
}
from
'ahooks'
import
{
HashtagIcon
}
from
'@heroicons/react/24/solid'
import
{
Markdown
}
from
'@/app/components/base/markdown'
import
Loading
from
'@/app/components/base/loading'
import
Toast
from
'@/app/components/base/toast'
...
...
@@ -27,6 +28,7 @@ export type IGenerationItemProps = {
isMobile
?:
boolean
isInstalledApp
:
boolean
installedAppId
?:
string
taskId
?:
string
}
export
const
SimpleBtn
=
({
className
,
onClick
,
children
}:
{
...
...
@@ -81,6 +83,7 @@ const GenerationItem: FC<IGenerationItemProps> = ({
isMobile
,
isInstalledApp
,
installedAppId
,
taskId
,
})
=>
{
const
{
t
}
=
useTranslation
()
const
isTop
=
depth
===
1
...
...
@@ -155,6 +158,12 @@ const GenerationItem: FC<IGenerationItemProps> = ({
className=
{
cn
(
!
isTop
&&
'rounded-br-xl border-l-2 border-primary-400'
,
'p-4'
)
}
style=
{
mainStyle
}
>
{
(
isTop
&&
taskId
)
&&
(
<
div
className=
'mb-2 text-gray-500 border border-gray-200 box-border flex items-center rounded-md italic text-[11px] pl-1 pr-1.5 font-medium w-fit group-hover:opacity-100'
>
<
HashtagIcon
className=
'w-3 h-3 text-gray-400 fill-current mr-1 stroke-current stroke-1'
/>
{
taskId
}
</
div
>)
}
<
Markdown
content=
{
content
}
/>
{
messageId
&&
(
<
div
className=
'flex items-center justify-between mt-3'
>
...
...
web/app/components/share/text-generation/result/index.tsx
View file @
ac642df7
...
...
@@ -161,6 +161,7 @@ const Result: FC<IResultProps> = ({
isInstalledApp=
{
isInstalledApp
}
installedAppId=
{
installedAppInfo
?.
id
}
isLoading=
{
isCallBatchAPI
?
(
!
completionRes
&&
isResponsing
)
:
false
}
taskId=
{
isCallBatchAPI
?
((
taskId
as
number
)
<
10
?
`0${taskId}`
:
`${taskId}`
)
:
undefined
}
/>
)
...
...
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