Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5c7395ad
authored
Aug 25, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/alpha' into alpha
parents
7e513ad0
05ad8c12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
i18n/zh-cn.json
+0
-0
web/src/components/table/channels/modals/EditChannelModal.jsx
+25
-1
web/src/i18n/locales/en.json
+4
-1
No files found.
i18n/zh-cn.json
deleted
100644 → 0
View file @
7e513ad0
This diff is collapsed.
Click to expand it.
web/src/components/table/channels/modals/EditChannelModal.jsx
View file @
5c7395ad
...
...
@@ -1485,6 +1485,31 @@ const EditChannelModal = (props) => {
optionList=
{
modelOptions
}
style=
{
{
width
:
'100%'
}
}
onChange=
{
(
value
)
=>
handleInputChange
(
'models'
,
value
)
}
renderSelectedItem=
{
(
optionNode
)
=>
{
const
modelName
=
String
(
optionNode
?.
value
??
''
);
return
{
isRenderInTag
:
true
,
content
:
(
<
span
className=
"cursor-pointer select-none"
role=
"button"
tabIndex=
{
0
}
title=
{
t
(
'点击复制模型名称'
)
}
onClick=
{
async
(
e
)
=>
{
e
.
stopPropagation
();
const
ok
=
await
copy
(
modelName
);
if
(
ok
)
{
showSuccess
(
t
(
'已复制:
{{
name
}}
'
,
{
name
:
modelName
}));
}
else
{
showError
(
t
(
'复制失败'
));
}
}
}
>
{
optionNode
.
label
||
modelName
}
</
span
>
),
};
}
}
extraText=
{
(
<
Space
wrap
>
<
Button
size=
'small'
type=
'primary'
onClick=
{
()
=>
handleInputChange
(
'models'
,
basicModels
)
}
>
...
...
@@ -1724,7 +1749,6 @@ const EditChannelModal = (props) => {
showClear
/>
<
JSONEditor
key=
{
`status_code_mapping-${isEdit ? channelId : 'new'}`
}
field=
'status_code_mapping'
...
...
web/src/i18n/locales/en.json
View file @
5c7395ad
...
...
@@ -1995,5 +1995,7 @@
"跟随系统主题设置"
:
"Follow system theme"
,
"当前跟随系统"
:
"Currently following system"
,
"深色"
:
"Dark"
,
"浅色"
:
"Light"
"浅色"
:
"Light"
,
"点击复制模型名称"
:
"Click to copy model name"
,
"已复制:{{name}}"
:
"Copied: {{name}}"
}
\ No newline at end of file
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