-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
settings.ts
64 lines (60 loc) · 1.72 KB
/
settings.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
61
62
63
64
export type SettingsModuleBarModule = {
type: 'module';
id: string;
enabled: boolean;
locked?: boolean;
};
export type SettingsModuleBarLink = {
type: 'link';
id: string;
url: string;
icon: string;
name: string;
enabled: boolean;
locked?: boolean;
};
export type SettingsStorageAssetPreset = {
key: string | null;
fit: 'contain' | 'cover' | 'inside' | 'outside' | null;
width: number | null;
height: number | null;
quality: number | null;
withoutEnlargement: boolean | null;
format: 'jpeg' | 'png' | 'webp' | 'tiff' | 'avif' | null;
transforms: any[] | null;
};
export type CustomAspectRatio = {
text: string;
value: number;
};
export type Settings = {
id: 1;
project_name: string;
project_descriptor: string | null;
project_url: string | null;
report_error_url: string | null;
report_bug_url: string | null;
report_feature_url: string | null;
default_language: string | null;
project_color: string | null;
project_logo: string | null;
public_foreground: string | null;
public_background: { id: string; type: string } | null;
public_favicon: string | null;
public_note: string | null;
auth_login_attempts: number;
auth_password_policy: string | null;
storage_asset_transform: string;
storage_asset_presets: SettingsStorageAssetPreset[] | null;
custom_aspect_ratios: CustomAspectRatio[] | null;
custom_css: string | null;
storage_default_folder: string | null;
basemaps: any[] | null;
mapbox_key: string | null;
module_bar: (SettingsModuleBarLink | SettingsModuleBarModule)[];
default_appearance: 'auto' | 'light' | 'dark';
default_theme_light: string | null;
default_theme_dark: string | null;
theme_light_overrides: Record<string, unknown> | null;
theme_dark_overrides: Record<string, unknown> | null;
};