CN-417 feat: 前端appearence功能实现

This commit is contained in:
@changcode
2022-04-08 09:28:55 +08:00
parent ae530a7096
commit c2728aec99
3 changed files with 77 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ export const storageKey = {
languages: 'cn-languages',
language: 'cn-language',
timezone: 'cn-timezone',
theme: 'cn-theme',
dateFormat: 'cn-date-format',
timezoneOffset: 'cn-timezone-offset',
timezoneLocalOffset: 'cn-timezone-local-offset',
token: 'cn-token',
@@ -195,6 +197,16 @@ export const dnsServerRole = {
RTDNSM: 'RTDNSM'
}
export const themeData = [
{ value: 'light', label: 'light' },
{ value: 'dark', label: 'dark' }
]
export const langData = [
{ value: 'zh', label: 'zh' },
{ value: 'en', label: 'en' }
]
export const performanceMetricMapping = {
'dns error': 'DNS Error Rate',
'http error': 'HTTP Error Rate',