mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
feat: 优化switch组件的大小规格与整体表单一致
This commit is contained in:
parent
674abe5ae2
commit
cdc02f660b
@ -87,7 +87,7 @@ export default function DataDashboard(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'DataExportEnabled'}
|
field={'DataExportEnabled'}
|
||||||
label={'启用数据看板(实验性)'}
|
label={'启用数据看板(实验性)'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
|
@ -81,7 +81,7 @@ export default function SettingsDrawing(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'DrawingEnabled'}
|
field={'DrawingEnabled'}
|
||||||
label={'启用绘图功能'}
|
label={'启用绘图功能'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
@ -96,7 +96,7 @@ export default function SettingsDrawing(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'MjNotifyEnabled'}
|
field={'MjNotifyEnabled'}
|
||||||
label={'允许回调(会泄露服务器 IP 地址)'}
|
label={'允许回调(会泄露服务器 IP 地址)'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
@ -111,7 +111,7 @@ export default function SettingsDrawing(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'MjAccountFilterEnabled'}
|
field={'MjAccountFilterEnabled'}
|
||||||
label={'允许 AccountFilter 参数'}
|
label={'允许 AccountFilter 参数'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
@ -126,7 +126,7 @@ export default function SettingsDrawing(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'MjForwardUrlEnabled'}
|
field={'MjForwardUrlEnabled'}
|
||||||
label={'开启之后将上游地址替换为服务器地址'}
|
label={'开启之后将上游地址替换为服务器地址'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
@ -146,7 +146,7 @@ export default function SettingsDrawing(props) {
|
|||||||
<Tag>--relax</Tag> 以及 <Tag>--turbo</Tag> 参数
|
<Tag>--relax</Tag> 以及 <Tag>--turbo</Tag> 参数
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
@ -165,7 +165,7 @@ export default function SettingsDrawing(props) {
|
|||||||
检测必须等待绘图成功才能进行放大等操作
|
检测必须等待绘图成功才能进行放大等操作
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
|
@ -141,7 +141,7 @@ export default function GeneralSettings(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'DisplayInCurrencyEnabled'}
|
field={'DisplayInCurrencyEnabled'}
|
||||||
label={'以货币形式显示额度'}
|
label={'以货币形式显示额度'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
@ -156,7 +156,7 @@ export default function GeneralSettings(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'DisplayTokenStatEnabled'}
|
field={'DisplayTokenStatEnabled'}
|
||||||
label={'Billing 相关 API 显示令牌额度而非用户额度'}
|
label={'Billing 相关 API 显示令牌额度而非用户额度'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
@ -171,7 +171,7 @@ export default function GeneralSettings(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'DefaultCollapseSidebar'}
|
field={'DefaultCollapseSidebar'}
|
||||||
label={'默认折叠侧边栏'}
|
label={'默认折叠侧边栏'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
|
@ -102,7 +102,7 @@ export default function SettingsLog(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'LogConsumeEnabled'}
|
field={'LogConsumeEnabled'}
|
||||||
label={'启用额度消费日志记录'}
|
label={'启用额度消费日志记录'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
|
@ -114,7 +114,7 @@ export default function SettingsMonitoring(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'AutomaticDisableChannelEnabled'}
|
field={'AutomaticDisableChannelEnabled'}
|
||||||
label={'失败时自动禁用通道'}
|
label={'失败时自动禁用通道'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
@ -129,7 +129,7 @@ export default function SettingsMonitoring(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'AutomaticEnableChannelEnabled'}
|
field={'AutomaticEnableChannelEnabled'}
|
||||||
label={'成功时自动启用通道'}
|
label={'成功时自动启用通道'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
|
@ -77,7 +77,7 @@ export default function SettingsSensitiveWords(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'CheckSensitiveEnabled'}
|
field={'CheckSensitiveEnabled'}
|
||||||
label={'启用屏蔽词过滤功能'}
|
label={'启用屏蔽词过滤功能'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) => {
|
onChange={(value) => {
|
||||||
@ -92,7 +92,7 @@ export default function SettingsSensitiveWords(props) {
|
|||||||
<Form.Switch
|
<Form.Switch
|
||||||
field={'CheckSensitiveOnPromptEnabled'}
|
field={'CheckSensitiveOnPromptEnabled'}
|
||||||
label={'启用 Prompt 检查'}
|
label={'启用 Prompt 检查'}
|
||||||
size='large'
|
size='default'
|
||||||
checkedText='|'
|
checkedText='|'
|
||||||
uncheckedText='〇'
|
uncheckedText='〇'
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user