Files
biliup/app/ui/plugins/developer.tsx
T
Monine Melolaris fdf0e02dee UI代码组件化,修复部分选项BUG,文字表述优化,新增日志配置项。 (#822)
主要修改:
拆分各平台配置项代码为单个组件,方便后续维护;
修改了部分文字表述,并优化文字排版,使其更易于理解;
优化部分文字显示以及排版;
修复部分功能默认开启,但前端显示为关闭的BUG。
新增:
添加开发者模式,可用于控制日志输出等级。
2024-02-28 02:37:30 +00:00

66 lines
2.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use client";
import React from "react";
import styles from "../../styles/dashboard.module.scss";
import { Form, Select, Space } from "@douyinfe/semi-ui";
import { IconSetting } from "@douyinfe/semi-icons";
const Developer: React.FC = () => {
return (
<>
<div className={styles.frameDeveloper}>
<div className={styles.frameInside}>
<div className={styles.group}>
<div className={styles.buttonOnlyIconSecond} />
<div
className={styles.lineStory}
style={{
color: "var(--semi-color-bg-0)",
display: "flex",
}}
>
<IconSetting size="small" />
</div>
</div>
<p className={styles.meegoSharedWebWorkIt}>开发者选项</p>
</div>
<Form.Select
label=" 控制台日志输出等级(LOGGING.root.level)"
field="LOGGING.root.level"
placeholder="INFO"
maxTagCount={3}
style={{ width: "100%" }}
fieldStyle={{
alignSelf: "stretch",
padding: 0,
}}
>
<Select.Option value="DEBUG">DEBUG</Select.Option>
<Select.Option value="INFO">INFO</Select.Option>
<Select.Option value="WARNING">WARNING</Select.Option>
<Select.Option value="ERROR">ERROR</Select.Option>
<Select.Option value="CRITICAL">CRITICAL</Select.Option>
</Form.Select>
<Form.Select
label=" 文件日志输出等级(LOGGING.loggers.biliup.level)"
field="LOGGING.loggers.biliup.level"
placeholder="INFO"
maxTagCount={3}
style={{ width: "100%" }}
fieldStyle={{
alignSelf: "stretch",
padding: 0,
}}
>
<Select.Option value="DEBUG">DEBUG</Select.Option>
<Select.Option value="INFO">INFO</Select.Option>
<Select.Option value="WARNING">WARNING</Select.Option>
<Select.Option value="ERROR">ERROR</Select.Option>
<Select.Option value="CRITICAL">CRITICAL</Select.Option>
</Form.Select>
</div>
</>
);
};
export default Developer;