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
44a9cf50
authored
Mar 08, 2024
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化其他设置显示效果
parent
12436907
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
web/src/components/OtherSetting.js
+6
-3
No files found.
web/src/components/OtherSetting.js
View file @
44a9cf50
...
...
@@ -189,7 +189,8 @@ const OtherSetting = () => {
placeholder
=
{
'在此输入新的公告内容,支持 Markdown & HTML 代码'
}
field
=
{
'Notice'
}
onChange
=
{
handleInputChange
}
style
=
{{
minHeight
:
150
,
fontFamily
:
'JetBrains Mono, Consolas'
}}
style
=
{{
fontFamily
:
'JetBrains Mono, Consolas'
}}
autosize
=
{{
minRows
:
6
,
maxRows
:
12
}}
/
>
<
Button
onClick
=
{
submitNotice
}
loading
=
{
loadingInput
[
'Notice'
]}
>
设置公告
<
/Button
>
<
/Form.Section
>
...
...
@@ -216,7 +217,8 @@ const OtherSetting = () => {
placeholder
=
{
'在此输入首页内容,支持 Markdown & HTML 代码,设置后首页的状态信息将不再显示。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为首页。'
}
field
=
{
'HomePageContent'
}
onChange
=
{
handleInputChange
}
style
=
{{
minHeight
:
150
,
fontFamily
:
'JetBrains Mono, Consolas'
}}
style
=
{{
fontFamily
:
'JetBrains Mono, Consolas'
}}
autosize
=
{{
minRows
:
6
,
maxRows
:
12
}}
/
>
<
Button
onClick
=
{()
=>
submitOption
(
'HomePageContent'
)}
loading
=
{
loadingInput
[
'HomePageContent'
]}
>
设置首页内容
<
/Button
>
<
Form
.
TextArea
...
...
@@ -224,7 +226,8 @@ const OtherSetting = () => {
placeholder
=
{
'在此输入新的关于内容,支持 Markdown & HTML 代码。如果输入的是一个链接,则会使用该链接作为 iframe 的 src 属性,这允许你设置任意网页作为关于页面。'
}
field
=
{
'About'
}
onChange
=
{
handleInputChange
}
style
=
{{
minHeight
:
150
,
fontFamily
:
'JetBrains Mono, Consolas'
}}
style
=
{{
fontFamily
:
'JetBrains Mono, Consolas'
}}
autosize
=
{{
minRows
:
6
,
maxRows
:
12
}}
/
>
<
Button
onClick
=
{
submitAbout
}
loading
=
{
loadingInput
[
'About'
]}
>
设置关于
<
/Button
>
{
/* */
}
...
...
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