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
8e2e477a
Unverified
Commit
8e2e477a
authored
Dec 19, 2023
by
Joel
Committed by
GitHub
Dec 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: enchance annotation ui (#1781)
parent
9b34f5a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
config-param-modal.tsx
...p/configuration/toolbox/annotation/config-param-modal.tsx
+4
-4
index.tsx
web/app/components/app/overview/settings/index.tsx
+2
-2
common.zh.ts
web/i18n/lang/common.zh.ts
+1
-1
No files found.
web/app/components/app/configuration/toolbox/annotation/config-param-modal.tsx
View file @
8e2e477a
...
@@ -83,7 +83,7 @@ const ConfigParamModal: FC<Props> = ({
...
@@ -83,7 +83,7 @@ const ConfigParamModal: FC<Props> = ({
{
t
(
`appAnnotation.initSetup.${isInit ? 'title' : 'configTitle'}`
)
}
{
t
(
`appAnnotation.initSetup.${isInit ? 'title' : 'configTitle'}`
)
}
</
div
>
</
div
>
<
div
className=
'
space-y-2
'
>
<
div
className=
'
mt-6 space-y-3
'
>
<
Item
<
Item
title=
{
t
(
'appDebug.feature.annotation.scoreThreshold.title'
)
}
title=
{
t
(
'appDebug.feature.annotation.scoreThreshold.title'
)
}
tooltip=
{
t
(
'appDebug.feature.annotation.scoreThreshold.description'
)
}
tooltip=
{
t
(
'appDebug.feature.annotation.scoreThreshold.description'
)
}
...
@@ -120,12 +120,12 @@ const ConfigParamModal: FC<Props> = ({
...
@@ -120,12 +120,12 @@ const ConfigParamModal: FC<Props> = ({
</
Item
>
</
Item
>
</
div
>
</
div
>
<
div
className=
'mt-
4
flex gap-2 justify-end'
>
<
div
className=
'mt-
6
flex gap-2 justify-end'
>
<
Button
onClick=
{
onHide
}
>
{
t
(
'common.operation.cancel'
)
}
</
Button
>
<
Button
className=
'!text-sm'
onClick=
{
onHide
}
>
{
t
(
'common.operation.cancel'
)
}
</
Button
>
<
Button
<
Button
type=
'primary'
type=
'primary'
onClick=
{
handleSave
}
onClick=
{
handleSave
}
className=
'flex items-center border-[0.5px]'
className=
'flex items-center border-[0.5px]
!text-sm
'
loading=
{
isLoading
}
loading=
{
isLoading
}
>
>
<
div
></
div
>
<
div
></
div
>
...
...
web/app/components/app/overview/settings/index.tsx
View file @
8e2e477a
...
@@ -160,8 +160,8 @@ const SettingsModal: FC<ISettingsModalProps> = ({
...
@@ -160,8 +160,8 @@ const SettingsModal: FC<ISettingsModalProps> = ({
/>
/>
</>
}
</>
}
<
div
className=
'mt-10 flex justify-end'
>
<
div
className=
'mt-10 flex justify-end'
>
<
Button
className=
'mr-2 flex-shrink-0'
onClick=
{
onHide
}
>
{
t
(
'common.operation.cancel'
)
}
</
Button
>
<
Button
className=
'mr-2 flex-shrink-0
!text-sm
'
onClick=
{
onHide
}
>
{
t
(
'common.operation.cancel'
)
}
</
Button
>
<
Button
type=
'primary'
className=
'flex-shrink-0'
onClick=
{
onClickSave
}
loading=
{
saveLoading
}
>
{
t
(
'common.operation.save'
)
}
</
Button
>
<
Button
type=
'primary'
className=
'flex-shrink-0
!text-sm
'
onClick=
{
onClickSave
}
loading=
{
saveLoading
}
>
{
t
(
'common.operation.save'
)
}
</
Button
>
</
div
>
</
div
>
{
showEmojiPicker
&&
<
EmojiPicker
{
showEmojiPicker
&&
<
EmojiPicker
onSelect=
{
(
icon
,
icon_background
)
=>
{
onSelect=
{
(
icon
,
icon_background
)
=>
{
...
...
web/i18n/lang/common.zh.ts
View file @
8e2e477a
...
@@ -32,7 +32,7 @@ const translation = {
...
@@ -32,7 +32,7 @@ const translation = {
ok
:
'好的'
,
ok
:
'好的'
,
log
:
'日志'
,
log
:
'日志'
,
learnMore
:
'了解更多'
,
learnMore
:
'了解更多'
,
params
:
'参数'
,
params
:
'参数
设置
'
,
},
},
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