UNPKG

@yelon/theme

Version:

ng-yunzai theme system library.

35 lines (34 loc) 827 B
import { Direction } from '@angular/cdk/bidi'; export interface App { [key: string]: any; /** Name for app */ name?: string; /** Description for app */ description?: string; } export interface User { [key: string]: any; /** Name for current user */ name?: string; /** Avatar for current user */ avatar?: string; /** Email for current user */ email?: string; } export interface Layout { [key: string]: any; /** Whether to fold menu */ collapsed: boolean; /** Current language */ lang: string; /** Color weak */ colorWeak: boolean; /** Direction of the text */ direction: Direction; } export interface SettingsNotify { type: 'layout' | 'app' | 'user'; /** Update `key` name, limited `layout` type */ name?: string; value: any; }