Merge branch 'main' into insights

This commit is contained in:
rijkvanzanten
2021-09-15 14:58:20 -04:00
110 changed files with 2642 additions and 1926 deletions

View File

@@ -14,4 +14,5 @@ export * from './modules';
export * from './panels';
export * from './permissions';
export * from './presets';
export * from './settings';
export * from './users';

View File

@@ -0,0 +1,47 @@
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 Settings = {
id: 1;
project_name: string;
project_url: string | null;
project_color: string | null;
project_logo: string | null;
public_foreground: string | null;
public_background: string | null;
public_note: string | null;
auth_login_attempts: number;
auth_password_policy: string | null;
storage_asset_transform: string;
storage_asset_presets:
| {
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' | null;
transforms: any[] | null;
}[]
| null;
custom_css: string | null;
storage_default_folder: string | null;
basemaps: any[] | null;
mapbox_key: string | null;
module_bar: (SettingsModuleBarLink | SettingsModuleBarModule)[];
};

View File

@@ -11,13 +11,6 @@ export type Role = {
collection: string;
}[];
}[];
module_list:
| null
| {
link: string;
name: string;
icon: string;
}[];
enforce_2fa: null | boolean;
external_id: null | string;
ip_whitelist: string[];