-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneral.ts
60 lines (42 loc) · 2 KB
/
general.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//------------------------------------------------------------------
// API
//------------------------------------------------------------------
export const API_URL = () => `https://${import.meta.env.VITE_SERVERNAME}`
export const ROLE_admin = "admin"
export const ROLE_advanced = "advanced"
export const ROLE_user = "user"
export type ROLE = "admin" | "advanced" | "user"
export const ALL_ROLES = [ ROLE_admin, ROLE_advanced, ROLE_user ]
//------------------------------------------------------------------
// APP
//------------------------------------------------------------------
export const APP_TITLE = "WebAppTest";
export const APP_LOGO_TEXT: string | undefined = "WEBAPP";
import { PaletteMode } from "@mui/material";
import { green } from "@mui/material/colors"
export const APP_URL_BASE = "/app";
export const APP_URL_Home = `${APP_URL_BASE}`
export const APP_URL_Login = `${APP_URL_BASE}/login/:from?/:token?`
export const APP_URL_Users = `${APP_URL_BASE}/users`
export const LOCAL_STORAGE_CURRENT_USER_NFO = "currentUserNfo";
export const LOCAL_STORAGE_THEME = "theme";
//------------------------------------------------------------------
// GUI
//------------------------------------------------------------------
export const CSS_VAR_TOOLBAR_TEXT_COLOR = "--toolbar-text-color";
export const CSS_VAR_APP_BUTTON_FG = "--app-button-fg";
export const CSS_VAR_APP_BUTTON_BG = "--app-button-bg";
export const CSS_VAR_APP_CONTROL_BG = "--app-control-bg";
export const light_bg_paper = "#c0c0c0";
export const THEME_DARK = "dark";
export const THEME_LIGHT = "light";
export const THEME_INITIAL: PaletteMode = THEME_DARK;
export const DEFAULT_SIZE_XSMALL = '0.5rem'
export const DEFAULT_SIZE_SMALL = '1rem'
export const DEFAULT_SIZE_LARGE = '2rem'
export const DEFAULT_SIZE_XLARGE = '4rem'
export const DEFAULT_FONTWEIGHT_SEMIBOLD = 500
export const DEFAULT_FONTWEIGHT_BOLD = 600
export const DEFAULT_FONTSIZE_NORMAL = "1rem"
export const DEFAULT_FONTSIZE_MEDIUM = "1.5rem"
export const DEFAULT_COLOR_TIPS = green[400]