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
b467f9ea
authored
Mar 25, 2024
by
Calcium-Ion
Committed by
GitHub
Mar 25, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #145 from QuentinHsu/fix-dev-error
fix(global): error in console under dev mode
parents
2e2820ee
164bee8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
web/src/components/PersonalSetting.js
+2
-2
web/src/components/SystemSetting.js
+2
-1
web/src/pages/Setting/index.js
+1
-1
No files found.
web/src/components/PersonalSetting.js
View file @
b467f9ea
...
@@ -595,7 +595,7 @@ const PersonalSetting = () => {
...
@@ -595,7 +595,7 @@ const PersonalSetting = () => {
onCancel={() => setShowWeChatBindModal(false)}
onCancel={() => setShowWeChatBindModal(false)}
// onOpen={() => setShowWeChatBindModal(true)}
// onOpen={() => setShowWeChatBindModal(true)}
visible={showWeChatBindModal}
visible={showWeChatBindModal}
size={'
mini
'}
size={'
small
'}
>
>
<Image src={status.wechat_qrcode} />
<Image src={status.wechat_qrcode} />
<div style={{ textAlign: 'center' }}>
<div style={{ textAlign: 'center' }}>
...
@@ -645,7 +645,7 @@ const PersonalSetting = () => {
...
@@ -645,7 +645,7 @@ const PersonalSetting = () => {
onClick={sendVerificationCode}
onClick={sendVerificationCode}
disabled={disableButton || loading}
disabled={disableButton || loading}
>
>
{disableButton ? `
重新发送
(
$
{
countdown
})
` : '获取验证码'}
{disableButton ? `
重新发送
(
$
{
countdown
})
` : '获取验证码'}
</Button>
</Button>
</div>
</div>
<div style={{ marginTop: 10 }}>
<div style={{ marginTop: 10 }}>
...
...
web/src/components/SystemSetting.js
View file @
b467f9ea
...
@@ -42,7 +42,7 @@ const SystemSetting = () => {
...
@@ -42,7 +42,7 @@ const SystemSetting = () => {
TurnstileSecretKey
:
''
,
TurnstileSecretKey
:
''
,
RegisterEnabled
:
''
,
RegisterEnabled
:
''
,
EmailDomainRestrictionEnabled
:
''
,
EmailDomainRestrictionEnabled
:
''
,
EmailDomainWhitelist
:
''
,
EmailDomainWhitelist
:
[]
,
// telegram login
// telegram login
TelegramOAuthEnabled
:
''
,
TelegramOAuthEnabled
:
''
,
TelegramBotToken
:
''
,
TelegramBotToken
:
''
,
...
@@ -85,6 +85,7 @@ const SystemSetting = () => {
...
@@ -85,6 +85,7 @@ const SystemSetting = () => {
useEffect
(()
=>
{
useEffect
(()
=>
{
getOptions
().
then
();
getOptions
().
then
();
},
[]);
},
[]);
useEffect
(()
=>
{},
[
inputs
.
EmailDomainWhitelist
]);
const
updateOption
=
async
(
key
,
value
)
=>
{
const
updateOption
=
async
(
key
,
value
)
=>
{
setLoading
(
true
);
setLoading
(
true
);
...
...
web/src/pages/Setting/index.js
View file @
b467f9ea
...
@@ -39,7 +39,7 @@ const Setting = () => {
...
@@ -39,7 +39,7 @@ const Setting = () => {
<
Layout
.
Content
>
<
Layout
.
Content
>
<
Tabs
type
=
'line'
defaultActiveKey
=
'1'
>
<
Tabs
type
=
'line'
defaultActiveKey
=
'1'
>
{
panes
.
map
((
pane
)
=>
(
{
panes
.
map
((
pane
)
=>
(
<
TabPane
itemKey
=
{
pane
.
itemKey
}
tab
=
{
pane
.
tab
}
>
<
TabPane
itemKey
=
{
pane
.
itemKey
}
tab
=
{
pane
.
tab
}
key
=
{
pane
.
itemKey
}
>
{
pane
.
content
}
{
pane
.
content
}
<
/TabPane
>
<
/TabPane
>
))}
))}
...
...
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