import { ILoaderService, Menu, Module, User } from "sigma-ng/admin-panel"; import { JDate } from "sigma-ts/jdate"; export class Panel { service: ILoaderService; links: PanelLinks = new PanelLinks; menus: Menu[]; module: Module; user: User; datetime: JDate = JDate.now(); constructor() { setInterval(() => { if(this.datetime) this.datetime.addSeconds(1); },1000); } } export class PanelLinks { logo: string; logout: string; lock: string; setting: string; profile: string; changelog: string; constructor(moduleName: string = '') { this.logo = `/app/${moduleName}/images/logo.png`; this.logout = 'login'; this.lock = 'lock'; this.setting = 'setting'; this.profile = 'profile'; this.changelog = 'changelog'; } }