2019-11-01 19:30:11 +01:00
|
|
|
export class Header {
|
|
|
|
name: string;
|
|
|
|
dashboard: string;
|
|
|
|
logoUrl: string;
|
|
|
|
|
|
|
|
constructor(name: string, dashboard: string, logoUrl: string = null) {
|
|
|
|
this.name = name;
|
|
|
|
this.dashboard = dashboard;
|
|
|
|
this.logoUrl = logoUrl
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-25 15:22:04 +02:00
|
|
|
export class Item {
|
2019-12-04 12:47:20 +01:00
|
|
|
id: string;
|
2019-10-25 15:22:04 +02:00
|
|
|
name: string;
|
|
|
|
route: string;
|
|
|
|
items: Item[];
|
|
|
|
icon: string;
|
|
|
|
open: boolean;
|
|
|
|
|
2019-12-04 12:47:20 +01:00
|
|
|
constructor(id: string, name: string, route: string, items: Item[], icon, open: boolean) {
|
|
|
|
this.id = id;
|
2019-10-25 15:22:04 +02:00
|
|
|
this.name = name;
|
|
|
|
this.route = route;
|
|
|
|
this.items = items;
|
|
|
|
this.icon = icon;
|
|
|
|
this.open = open;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Sidebar {
|
|
|
|
items: Item[];
|
2019-11-01 19:30:11 +01:00
|
|
|
header: Header;
|
2019-10-25 15:22:04 +02:00
|
|
|
|
2019-11-01 19:30:11 +01:00
|
|
|
constructor(items: Item[], header: Header) {
|
2019-10-25 15:22:04 +02:00
|
|
|
this.items = items;
|
2019-11-01 19:30:11 +01:00
|
|
|
this.header = header;
|
2019-10-25 15:22:04 +02:00
|
|
|
}
|
|
|
|
}
|