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
05ad8c12
authored
Aug 25, 2025
by
t0ng7u
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🍎
chore(EditChannelModal.jsx): Format code file
parent
a955b43f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
23 deletions
+22
-23
web/src/components/table/channels/modals/EditChannelModal.jsx
+22
-23
No files found.
web/src/components/table/channels/modals/EditChannelModal.jsx
View file @
05ad8c12
...
...
@@ -1725,31 +1725,30 @@ const EditChannelModal = (props) => {
/>
<
Form
.
TextArea
field=
'header_override'
label=
{
t
(
'请求头覆盖'
)
}
placeholder=
{
t
(
'此项可选,用于覆盖请求头参数'
)
+
'\n'
+
t
(
'格式示例:'
)
+
'\
n
{
\
n
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0"
\
n
}
'
}
autosize
onChange=
{
(
value
)
=>
handleInputChange
(
'header_override'
,
value
)
}
extraText=
{
<
div
className=
"flex gap-2 flex-wrap"
>
<
Text
className=
"!text-semi-color-primary cursor-pointer"
onClick=
{
()
=>
handleInputChange
(
'header_override'
,
JSON
.
stringify
({
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0"
},
null
,
2
))
}
>
{
t
(
'格式模板'
)
}
</
Text
>
</
div
>
}
showClear
field=
'header_override'
label=
{
t
(
'请求头覆盖'
)
}
placeholder=
{
t
(
'此项可选,用于覆盖请求头参数'
)
+
'\n'
+
t
(
'格式示例:'
)
+
'\
n
{
\
n
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0"
\
n
}
'
}
autosize
onChange=
{
(
value
)
=>
handleInputChange
(
'header_override'
,
value
)
}
extraText=
{
<
div
className=
"flex gap-2 flex-wrap"
>
<
Text
className=
"!text-semi-color-primary cursor-pointer"
onClick=
{
()
=>
handleInputChange
(
'header_override'
,
JSON
.
stringify
({
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0"
},
null
,
2
))
}
>
{
t
(
'格式模板'
)
}
</
Text
>
</
div
>
}
showClear
/>
<
JSONEditor
key=
{
`status_code_mapping-${isEdit ? channelId : 'new'}`
}
field=
'status_code_mapping'
...
...
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