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
74594a82
Commit
74594a82
authored
Aug 04, 2023
by
StyleZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: some style
parent
a060a3be
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
27 deletions
+57
-27
index.tsx
web/app/components/header/account-dropdown/index.tsx
+1
-1
index.tsx
web/app/components/header/account-setting/index.tsx
+1
-1
index.tsx
...ts/header/account-setting/model-page/model-item/index.tsx
+55
-13
common.en.ts
web/i18n/lang/common.en.ts
+0
-6
common.zh.ts
web/i18n/lang/common.zh.ts
+0
-6
No files found.
web/app/components/header/account-dropdown/index.tsx
View file @
74594a82
...
...
@@ -23,7 +23,7 @@ export default function AppSelector() {
rounded-lg font-normal hover:bg-gray-50 cursor-pointer
`
const
router
=
useRouter
()
const
[
settingVisible
,
setSettingVisible
]
=
useState
(
fals
e
)
const
[
settingVisible
,
setSettingVisible
]
=
useState
(
tru
e
)
const
[
aboutVisible
,
setAboutVisible
]
=
useState
(
false
)
const
{
locale
}
=
useContext
(
I18n
)
...
...
web/app/components/header/account-setting/index.tsx
View file @
74594a82
...
...
@@ -30,7 +30,7 @@ type IAccountSettingProps = {
}
export
default
function
AccountSetting
({
onCancel
,
activeTab
=
'
account
'
,
activeTab
=
'
provider
'
,
}:
IAccountSettingProps
)
{
const
[
activeMenu
,
setActiveMenu
]
=
useState
(
activeTab
)
const
{
t
}
=
useTranslation
()
...
...
web/app/components/header/account-setting/model-page/model-item/index.tsx
View file @
74594a82
...
...
@@ -16,7 +16,8 @@ const ModelItem: FC<ModelItemProps> = ({
const
{
t
}
=
useTranslation
()
return
(
<
div
className=
'flex justify-between items-center mb-2 px-4 h-14 bg-gray-50 rounded-xl'
>
<
div
className=
'mb-2 bg-gray-50 rounded-xl'
>
<
div
className=
'flex justify-between items-center px-4 h-14'
>
{
provider
.
icon
}
<
Button
className=
'!px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
...
...
@@ -35,6 +36,47 @@ const ModelItem: FC<ModelItemProps> = ({
<
Operation
/>
</
div
>
</
div
>
<
div
className=
'px-3 pb-3'
>
<
div
className=
'flex mb-1 px-3 py-2 bg-white rounded-lg shadow-xs last:mb-0'
>
<
div
className=
'grow'
>
<
div
className=
'flex items-center mb-0.5 h-[18px] text-[13px] font-medium text-gray-700'
>
al6z-infra/llama136-v2-chat
<
div
className=
'ml-2 px-1.5 rounded-md border border-[rgba(0,0,0,0.08)] text-xs text-gray-600'
>
Embeddings
</
div
>
</
div
>
<
div
className=
'text-xs text-gray-500'
>
version: d7769041994d94e96ad9d568eac12laecf50684a060963625a41c4006126985
</
div
>
</
div
>
<
div
className=
'flex items-center'
>
<
Indicator
className=
'mr-3'
/>
<
Button
className=
'mr-1 !px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
onClick=
{
onOpenModal
}
>
{
t
(
'common.operation.edit'
)
}
</
Button
>
<
Operation
/>
</
div
>
</
div
>
<
div
className=
'flex mb-1 px-3 py-2 bg-white rounded-lg shadow-xs last:mb-0'
>
<
div
className=
'grow'
>
<
div
className=
'flex items-center mb-0.5 h-[18px] text-[13px] font-medium text-gray-700'
>
al6z-infra/llama136-v2-chat
<
div
className=
'ml-2 px-1.5 rounded-md border border-[rgba(0,0,0,0.08)] text-xs text-gray-600'
>
Embeddings
</
div
>
</
div
>
<
div
className=
'text-xs text-gray-500'
>
version: d7769041994d94e96ad9d568eac12laecf50684a060963625a41c4006126985
</
div
>
</
div
>
<
div
className=
'flex items-center'
>
<
Indicator
className=
'mr-3'
/>
<
Button
className=
'mr-1 !px-3 !h-7 rounded-md bg-white !text-xs font-medium text-gray-700'
onClick=
{
onOpenModal
}
>
{
t
(
'common.operation.edit'
)
}
</
Button
>
<
Operation
/>
</
div
>
</
div
>
</
div
>
</
div
>
)
}
...
...
web/i18n/lang/common.en.ts
View file @
74594a82
...
...
@@ -224,12 +224,6 @@ const translation = {
models
:
'Models'
,
showMoreModelProvider
:
'Show more model provider'
,
card
:
{
openai
:
{
desc
:
'Models provided by OpenAI, such as GPT-3.5-Turbo and GPT-4.'
,
},
anthropic
:
{
desc
:
'Anthropic’s powerful models, such as Claude 2 and Claude Instant.'
,
},
quota
:
'QUOTA'
,
onTrial
:
'On Trial'
,
paid
:
'Paid'
,
...
...
web/i18n/lang/common.zh.ts
View file @
74594a82
...
...
@@ -220,12 +220,6 @@ const translation = {
models
:
'Models'
,
showMoreModelProvider
:
'Show more model provider'
,
card
:
{
openai
:
{
desc
:
'Models provided by OpenAI, such as GPT-3.5-Turbo and GPT-4.'
,
},
anthropic
:
{
desc
:
'Anthropic’s powerful models, such as Claude 2 and Claude Instant.'
,
},
quota
:
'QUOTA'
,
onTrial
:
'On Trial'
,
paid
:
'Paid'
,
...
...
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