formatting
This commit is contained in:
parent
0471443716
commit
4b28a69856
1 changed files with 2438 additions and 1874 deletions
|
|
@ -1,25 +1,34 @@
|
|||
import { Button, Checkbox, Group, Select, Stack, Text, TextInput, Title } from '@mantine/core';
|
||||
import {
|
||||
Button,
|
||||
Checkbox,
|
||||
Group,
|
||||
Select,
|
||||
Stack,
|
||||
Text,
|
||||
TextInput,
|
||||
Title,
|
||||
} from "@mantine/core";
|
||||
|
||||
const LOG_LEVELS = [
|
||||
'debug',
|
||||
'info',
|
||||
'notice',
|
||||
'warning',
|
||||
'error',
|
||||
'critical',
|
||||
'alert',
|
||||
'emergency',
|
||||
"debug",
|
||||
"info",
|
||||
"notice",
|
||||
"warning",
|
||||
"error",
|
||||
"critical",
|
||||
"alert",
|
||||
"emergency",
|
||||
] as const;
|
||||
|
||||
const LEVEL_COLORS: Record<string, { c: string; fw?: number }> = {
|
||||
debug: { c: 'dimmed' },
|
||||
info: { c: 'blue' },
|
||||
notice: { c: 'teal' },
|
||||
warning: { c: 'yellow' },
|
||||
error: { c: 'red' },
|
||||
critical: { c: 'red', fw: 700 },
|
||||
alert: { c: 'red', fw: 700 },
|
||||
emergency: { c: 'red', fw: 900 },
|
||||
debug: { c: "dimmed" },
|
||||
info: { c: "blue" },
|
||||
notice: { c: "teal" },
|
||||
warning: { c: "yellow" },
|
||||
error: { c: "red" },
|
||||
critical: { c: "red", fw: 700 },
|
||||
alert: { c: "red", fw: 700 },
|
||||
emergency: { c: "red", fw: 900 },
|
||||
};
|
||||
|
||||
export interface LogControlsProps {
|
||||
|
|
|
|||
Loading…
Reference in a new issue