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
5bee54a1
authored
Oct 15, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: update AWS key format in EditChannelModal for consistency
parent
59caea8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
web/src/components/table/channels/modals/EditChannelModal.jsx
+7
-7
No files found.
web/src/components/table/channels/modals/EditChannelModal.jsx
View file @
5bee54a1
...
@@ -110,7 +110,7 @@ function type2secretPrompt(type) {
...
@@ -110,7 +110,7 @@ function type2secretPrompt(type) {
case
50
:
case
50
:
return
'按照如下格式输入: AccessKey|SecretKey, 如果上游是New API,则直接输ApiKey'
;
return
'按照如下格式输入: AccessKey|SecretKey, 如果上游是New API,则直接输ApiKey'
;
case
51
:
case
51
:
return
'按照如下格式输入: Access
Key ID|Secret Access
Key'
;
return
'按照如下格式输入: Access
Key|SecretAccess
Key'
;
default
:
default
:
return
'请输入渠道对应的鉴权密钥'
;
return
'请输入渠道对应的鉴权密钥'
;
}
}
...
@@ -1489,7 +1489,7 @@ const EditChannelModal = (props) => {
...
@@ -1489,7 +1489,7 @@ const EditChannelModal = (props) => {
placeholder=
{
t
(
'请选择密钥格式'
)
}
placeholder=
{
t
(
'请选择密钥格式'
)
}
optionList=
{
[
optionList=
{
[
{
{
label
:
'Access
Key ID / Secret Access
Key'
,
label
:
'Access
Key / SecretAccess
Key'
,
value
:
'ak_sk'
,
value
:
'ak_sk'
,
},
},
{
label
:
'API Key'
,
value
:
'api_key'
},
{
label
:
'API Key'
,
value
:
'api_key'
},
...
@@ -1500,7 +1500,7 @@ const EditChannelModal = (props) => {
...
@@ -1500,7 +1500,7 @@ const EditChannelModal = (props) => {
handleChannelOtherSettingsChange
(
'aws_key_type'
,
value
);
handleChannelOtherSettingsChange
(
'aws_key_type'
,
value
);
}
}
}
}
extraText=
{
t
(
extraText=
{
t
(
'AK/SK 模式:使用 Access
Key ID 和 Secret Access
Key;API Key 模式:使用 API Key'
,
'AK/SK 模式:使用 Access
Key 和 SecretAccess
Key;API Key 模式:使用 API Key'
,
)
}
)
}
/>
/>
</>
</>
...
@@ -1577,9 +1577,9 @@ const EditChannelModal = (props) => {
...
@@ -1577,9 +1577,9 @@ const EditChannelModal = (props) => {
placeholder=
{
placeholder=
{
inputs
.
type
===
33
inputs
.
type
===
33
?
inputs
.
aws_key_type
===
'api_key'
?
inputs
.
aws_key_type
===
'api_key'
?
t
(
'请输入 API Key,一行一个,格式:API
Key|Region'
)
?
t
(
'请输入 API Key,一行一个,格式:APIKey|Region'
)
:
t
(
:
t
(
'请输入密钥,一行一个,格式:Access
Key ID|Secret Access
Key|Region'
,
'请输入密钥,一行一个,格式:Access
Key|SecretAccess
Key|Region'
,
)
)
:
t
(
'请输入密钥,一行一个'
)
:
t
(
'请输入密钥,一行一个'
)
}
}
...
@@ -1779,8 +1779,8 @@ const EditChannelModal = (props) => {
...
@@ -1779,8 +1779,8 @@ const EditChannelModal = (props) => {
placeholder=
{
placeholder=
{
inputs
.
type
===
33
inputs
.
type
===
33
?
inputs
.
aws_key_type
===
'api_key'
?
inputs
.
aws_key_type
===
'api_key'
?
t
(
'请输入 API Key,格式:API
Key|Region'
)
?
t
(
'请输入 API Key,格式:APIKey|Region'
)
:
t
(
'按照如下格式输入:Access
Key ID|Secret Access
Key|Region'
)
:
t
(
'按照如下格式输入:Access
Key|SecretAccess
Key|Region'
)
:
t
(
type2secretPrompt
(
inputs
.
type
))
:
t
(
type2secretPrompt
(
inputs
.
type
))
}
}
rules=
{
rules=
{
...
...
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