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
8d40b9bb
Commit
8d40b9bb
authored
Jul 11, 2023
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ui
parent
05ea8e01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
index.tsx
web/app/components/share/text-generation/index.tsx
+8
-4
common.en.ts
web/i18n/lang/common.en.ts
+1
-0
common.zh.ts
web/i18n/lang/common.zh.ts
+1
-0
No files found.
web/app/components/share/text-generation/index.tsx
View file @
8d40b9bb
...
@@ -10,6 +10,7 @@ import Button from '../../base/button'
...
@@ -10,6 +10,7 @@ import Button from '../../base/button'
import
{
checkOrSetAccessToken
}
from
'../utils'
import
{
checkOrSetAccessToken
}
from
'../utils'
import
s
from
'./style.module.css'
import
s
from
'./style.module.css'
import
RunBatch
from
'./run-batch'
import
RunBatch
from
'./run-batch'
import
ResDownload
from
'./run-batch/res-download'
import
useBreakpoints
,
{
MediaType
}
from
'@/hooks/use-breakpoints'
import
useBreakpoints
,
{
MediaType
}
from
'@/hooks/use-breakpoints'
import
RunOnce
from
'@/app/components/share/text-generation/run-once'
import
RunOnce
from
'@/app/components/share/text-generation/run-once'
import
{
fetchSavedMessage
as
doFetchSavedMessage
,
fetchAppInfo
,
fetchAppParams
,
removeMessage
,
saveMessage
}
from
'@/service/share'
import
{
fetchSavedMessage
as
doFetchSavedMessage
,
fetchAppInfo
,
fetchAppParams
,
removeMessage
,
saveMessage
}
from
'@/service/share'
...
@@ -24,7 +25,6 @@ import SavedItems from '@/app/components/app/text-generate/saved-items'
...
@@ -24,7 +25,6 @@ import SavedItems from '@/app/components/app/text-generate/saved-items'
import
type
{
InstalledApp
}
from
'@/models/explore'
import
type
{
InstalledApp
}
from
'@/models/explore'
import
{
appDefaultIconBackground
}
from
'@/config'
import
{
appDefaultIconBackground
}
from
'@/config'
import
Toast
from
'@/app/components/base/toast'
import
Toast
from
'@/app/components/base/toast'
const
PARALLEL_LIMIT
=
5
const
PARALLEL_LIMIT
=
5
enum
TaskStatus
{
enum
TaskStatus
{
pending
=
'pending'
,
pending
=
'pending'
,
...
@@ -340,9 +340,13 @@ const TextGeneration: FC<IMainProps> = ({
...
@@ -340,9 +340,13 @@ const TextGeneration: FC<IMainProps> = ({
<
div
className=
'text-lg text-gray-800 font-semibold'
>
{
t
(
'share.generation.title'
)
}
</
div
>
<
div
className=
'text-lg text-gray-800 font-semibold'
>
{
t
(
'share.generation.title'
)
}
</
div
>
</
div
>
</
div
>
<
div
className=
'flex items-center space-x-1'
>
<
div
className=
'flex items-center space-x-1'
>
<
Button
className=
'h-8'
>
{
(
allTaskFinished
||
true
)
&&
(
Download
<
ResDownload
</
Button
>
isMobile=
{
isMobile
}
vars=
{
promptConfig
?.
prompt_variables
||
[]
}
values=
{
[[
'a'
,
'b'
,
'c'
]]
}
/>
)
}
{
!
isPC
&&
(
{
!
isPC
&&
(
<
div
<
div
className=
'flex items-center justify-center cursor-pointer'
className=
'flex items-center justify-center cursor-pointer'
...
...
web/i18n/lang/common.en.ts
View file @
8d40b9bb
...
@@ -21,6 +21,7 @@ const translation = {
...
@@ -21,6 +21,7 @@ const translation = {
copy
:
'Copy'
,
copy
:
'Copy'
,
lineBreak
:
'Line break'
,
lineBreak
:
'Line break'
,
sure
:
'I
\'
m sure'
,
sure
:
'I
\'
m sure'
,
download
:
'Download'
,
},
},
placeholder
:
{
placeholder
:
{
input
:
'Please enter'
,
input
:
'Please enter'
,
...
...
web/i18n/lang/common.zh.ts
View file @
8d40b9bb
...
@@ -21,6 +21,7 @@ const translation = {
...
@@ -21,6 +21,7 @@ const translation = {
copy
:
'复制'
,
copy
:
'复制'
,
lineBreak
:
'换行'
,
lineBreak
:
'换行'
,
sure
:
'我确定'
,
sure
:
'我确定'
,
download
:
'下载'
,
},
},
placeholder
:
{
placeholder
:
{
input
:
'请输入'
,
input
:
'请输入'
,
...
...
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