mirror of
https://github.com/directus/directus.git
synced 2026-02-10 03:55:03 -05:00
Merge branch 'main' into insights
This commit is contained in:
@@ -14,4 +14,5 @@ export * from './modules';
|
||||
export * from './panels';
|
||||
export * from './permissions';
|
||||
export * from './presets';
|
||||
export * from './settings';
|
||||
export * from './users';
|
||||
|
||||
47
packages/shared/src/types/settings.ts
Normal file
47
packages/shared/src/types/settings.ts
Normal 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)[];
|
||||
};
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user