2023-08-24 04:20:53 +08:00
|
|
|
export const themes = [
|
|
|
|
'light',
|
|
|
|
'dark',
|
|
|
|
'cupcake',
|
|
|
|
'bumblebee',
|
|
|
|
'emerald',
|
|
|
|
'corporate',
|
|
|
|
'synthwave',
|
|
|
|
'retro',
|
|
|
|
'cyberpunk',
|
|
|
|
'valentine',
|
|
|
|
'halloween',
|
|
|
|
'garden',
|
|
|
|
'forest',
|
|
|
|
'aqua',
|
|
|
|
'lofi',
|
|
|
|
'pastel',
|
|
|
|
'fantasy',
|
|
|
|
'wireframe',
|
|
|
|
'black',
|
|
|
|
'luxury',
|
|
|
|
'dracula',
|
|
|
|
'cmyk',
|
|
|
|
'autumn',
|
|
|
|
'business',
|
|
|
|
'acid',
|
|
|
|
'lemonade',
|
|
|
|
'night',
|
|
|
|
'coffee',
|
|
|
|
'winter',
|
|
|
|
]
|
2023-09-03 03:26:29 +08:00
|
|
|
|
2023-09-03 03:36:12 +08:00
|
|
|
export enum ROUTES {
|
2023-09-03 03:26:29 +08:00
|
|
|
Overview = '/overview',
|
|
|
|
Proxies = '/proxies',
|
|
|
|
Proxyprovider = '/proxyprovider',
|
|
|
|
Rules = '/rules',
|
|
|
|
Conns = '/conns',
|
|
|
|
Log = '/logs',
|
|
|
|
Config = '/config',
|
|
|
|
}
|
|
|
|
|
2023-09-03 03:56:04 +08:00
|
|
|
export enum LATENCY_QUALITY_MAP_HTTP {
|
2023-09-03 05:35:08 +08:00
|
|
|
NOT_CONNECTED = -1,
|
2023-09-03 03:26:29 +08:00
|
|
|
MEDIUM = 200,
|
|
|
|
HIGH = 500,
|
|
|
|
}
|
|
|
|
|
2023-09-03 03:56:04 +08:00
|
|
|
export enum LATENCY_QUALITY_MAP_HTTPS {
|
2023-09-03 05:35:08 +08:00
|
|
|
NOT_CONNECTED = -1,
|
2023-09-03 03:56:04 +08:00
|
|
|
MEDIUM = 800,
|
|
|
|
HIGH = 1500,
|
|
|
|
}
|
|
|
|
|
2023-09-03 03:26:29 +08:00
|
|
|
export enum PROXIES_PREVIEW_TYPE {
|
|
|
|
OFF = 'off',
|
|
|
|
DOTS = 'dots',
|
|
|
|
BAR = 'bar',
|
|
|
|
Auto = 'auto',
|
|
|
|
}
|
|
|
|
|
2023-09-03 05:35:08 +08:00
|
|
|
export enum PROXIES_ORDERING_TYPE {
|
2023-09-03 03:26:29 +08:00
|
|
|
NATURAL = 'orderNatural',
|
|
|
|
LATENCY_ASC = 'orderLatency_asc',
|
|
|
|
LATENCY_DESC = 'orderLatency_desc',
|
|
|
|
NAME_ASC = 'orderName_asc',
|
|
|
|
NAME_DESC = 'orderName_desc',
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum LANG {
|
|
|
|
EN = 'en-US',
|
|
|
|
ZH = 'zh-CN',
|
|
|
|
}
|
|
|
|
|
2023-09-03 03:36:12 +08:00
|
|
|
export enum CONNECTIONS_TABLE_ACCESSOR_KEY {
|
|
|
|
Close = 'close',
|
|
|
|
ID = 'ID',
|
|
|
|
Type = 'type',
|
|
|
|
Process = 'process',
|
|
|
|
Host = 'host',
|
|
|
|
Rule = 'rules',
|
|
|
|
Chains = 'chains',
|
|
|
|
DlSpeed = 'dlSpeed',
|
|
|
|
ULSpeed = 'ulSpeed',
|
|
|
|
Download = 'dl',
|
|
|
|
Upload = 'ul',
|
|
|
|
Source = 'source',
|
|
|
|
Destination = 'destination',
|
|
|
|
}
|
|
|
|
|
|
|
|
export const CONNECTIONS_TABLE_INITIAL_COLUMN_ORDER = Object.values(
|
|
|
|
CONNECTIONS_TABLE_ACCESSOR_KEY,
|
|
|
|
)
|
|
|
|
export const CONNECTIONS_TABLE_INITIAL_COLUMN_VISIBILITY = {
|
|
|
|
...Object.fromEntries(
|
|
|
|
CONNECTIONS_TABLE_INITIAL_COLUMN_ORDER.map((i) => [i, true]),
|
|
|
|
),
|
|
|
|
[CONNECTIONS_TABLE_ACCESSOR_KEY.ID]: false,
|
2023-09-03 03:26:29 +08:00
|
|
|
}
|