src/lib/config.ts
Properties |
|
| empty |
empty:
|
| Optional |
| hidden |
hidden:
|
Type : boolean
|
| Optional |
| href |
href:
|
Type : string
|
| Optional |
| icon |
icon:
|
Type : IconConfig
|
| Optional |
| id |
id:
|
Type : string
|
| Optional |
| image |
image:
|
Type : string
|
| Optional |
| label |
label:
|
Type : string
|
| permissions |
permissions:
|
Type : string[]
|
| Optional |
| routerLink |
routerLink:
|
Type : string[]
|
| Optional |
| target |
target:
|
Type : string
|
| Optional |
import { IconConfig } from '@rxap/utilities';
export interface AppsNavigationConfig {
target?: string;
image?: string;
label: string;
href?: string;
routerLink?: string[];
empty?: false;
hidden?: boolean;
id?: string;
permissions?: string[];
icon?: IconConfig;
}
export interface LogoConfig {
src?: string;
width?: number;
height?: number;
}
export interface NavigationConfig {
apps?: AppsNavigationConfig[];
collapsable?: boolean;
pinned?: boolean;
mode?: 'side' | 'over';
opened?: boolean;
fixedInViewport?: boolean;
mobileQuery?: string;
}
export type LanguagesConfig = Record<string, string>;
export interface i18nConfig {
languages?: LanguagesConfig;
defaultLanguage?: string;
}
export interface Oauth2Config {
profileUrl?: string;
}
export interface Config {
navigation?: NavigationConfig;
logo?: LogoConfig;
i18n?: i18nConfig;
oauth2?: Oauth2Config;
}