2021-12-09 14:18:38 +01:00
|
|
|
|
|
|
|
|
declare module 'zero/ui'
|
|
|
|
|
{
|
|
|
|
|
export interface UiStoreState
|
|
|
|
|
{
|
2021-12-16 20:01:43 +01:00
|
|
|
preferences: UiPreferences;
|
|
|
|
|
|
2021-12-09 14:18:38 +01:00
|
|
|
sections: UiSection[];
|
|
|
|
|
settingGroups: UiSettingsGroup[];
|
|
|
|
|
iconSets: UiIconSet[];
|
2021-12-15 14:36:45 +01:00
|
|
|
flavors: Record<string, UiFlavorProvider>;
|
2021-12-15 15:34:05 +01:00
|
|
|
blueprints: string[];
|
2021-12-09 14:18:38 +01:00
|
|
|
}
|
|
|
|
|
|
2021-12-16 20:01:43 +01:00
|
|
|
export interface UiPreferences
|
|
|
|
|
{
|
|
|
|
|
theme: 'default' | 'dark' | 'light';
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-09 14:18:38 +01:00
|
|
|
export interface UiSection
|
|
|
|
|
{
|
|
|
|
|
alias: string;
|
|
|
|
|
name: string;
|
|
|
|
|
icon: string;
|
|
|
|
|
url: string;
|
|
|
|
|
isExternal: boolean;
|
2022-01-07 11:11:06 +01:00
|
|
|
count: number;
|
2021-12-09 14:18:38 +01:00
|
|
|
children: UiSection[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface UiSettingsGroup
|
|
|
|
|
{
|
|
|
|
|
name: string;
|
|
|
|
|
items: UiSettingsItem[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface UiSettingsItem
|
|
|
|
|
{
|
|
|
|
|
alias: string;
|
|
|
|
|
name: string;
|
|
|
|
|
description: string;
|
|
|
|
|
icon: string;
|
|
|
|
|
url: string;
|
|
|
|
|
isPlugin: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface UiIconSet
|
|
|
|
|
{
|
|
|
|
|
alias: string;
|
|
|
|
|
name: string;
|
|
|
|
|
prefix: string;
|
|
|
|
|
icons: string[];
|
|
|
|
|
}
|
2021-12-15 14:36:45 +01:00
|
|
|
|
|
|
|
|
export interface UiFlavorProvider
|
|
|
|
|
{
|
|
|
|
|
canUseWithoutFlavors: boolean;
|
|
|
|
|
defaultFlavor?: string;
|
|
|
|
|
flavors: UiFlavorConfig[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface UiFlavorConfig
|
|
|
|
|
{
|
|
|
|
|
alias?: string;
|
|
|
|
|
name: string;
|
|
|
|
|
description: string;
|
|
|
|
|
icon: string;
|
|
|
|
|
}
|
2021-12-09 14:18:38 +01:00
|
|
|
}
|