2016-05-11 17:38:01 +03:00
|
|
|
import {Component, ViewEncapsulation} from '@angular/core';
|
|
|
|
|
import {RouteConfig} from '@angular/router-deprecated';
|
2016-05-04 11:49:36 +03:00
|
|
|
|
|
|
|
|
import {PageTop, ContentTop, Sidebar} from '../theme/components';
|
2016-04-21 20:34:07 +03:00
|
|
|
|
|
|
|
|
import {Dashboard} from './dashboard';
|
2016-04-29 20:07:25 +03:00
|
|
|
import {Ui} from './ui';
|
2016-05-02 16:55:58 +03:00
|
|
|
import {Maps} from './maps';
|
2016-05-03 14:33:28 +03:00
|
|
|
import {Charts} from './charts';
|
2016-04-21 20:34:07 +03:00
|
|
|
|
|
|
|
|
@Component({
|
2016-04-29 17:08:05 +03:00
|
|
|
selector: 'pages',
|
|
|
|
|
encapsulation: ViewEncapsulation.None,
|
|
|
|
|
styles: [],
|
2016-05-02 14:49:35 +03:00
|
|
|
directives: [PageTop, Sidebar, ContentTop],
|
2016-05-02 14:08:32 +03:00
|
|
|
template: `
|
|
|
|
|
<sidebar></sidebar>
|
|
|
|
|
<page-top></page-top>
|
|
|
|
|
<div class="al-main">
|
|
|
|
|
<div class="al-content">
|
|
|
|
|
<content-top></content-top>
|
|
|
|
|
<router-outlet></router-outlet>
|
|
|
|
|
</div>
|
|
|
|
|
</div>`
|
2016-04-21 20:34:07 +03:00
|
|
|
})
|
|
|
|
|
@RouteConfig([
|
2016-04-29 17:08:05 +03:00
|
|
|
{
|
|
|
|
|
name: 'Dashboard',
|
|
|
|
|
component: Dashboard,
|
2016-04-29 20:07:25 +03:00
|
|
|
path: '/dashboard',
|
2016-04-29 17:08:05 +03:00
|
|
|
useAsDefault: true,
|
|
|
|
|
},
|
2016-04-29 20:07:25 +03:00
|
|
|
{
|
|
|
|
|
name: 'Ui',
|
|
|
|
|
component: Ui,
|
|
|
|
|
path: '/ui/...',
|
|
|
|
|
},
|
2016-05-02 16:55:58 +03:00
|
|
|
{
|
|
|
|
|
name: 'Maps',
|
|
|
|
|
component: Maps,
|
|
|
|
|
path: '/maps/...',
|
|
|
|
|
},
|
2016-05-03 14:33:28 +03:00
|
|
|
{
|
|
|
|
|
name: 'Charts',
|
|
|
|
|
component: Charts,
|
|
|
|
|
path: '/charts/...',
|
|
|
|
|
},
|
2016-04-21 20:34:07 +03:00
|
|
|
])
|
|
|
|
|
export class Pages {
|
|
|
|
|
|
2016-05-02 12:45:56 +03:00
|
|
|
constructor() {
|
2016-04-29 17:27:19 +03:00
|
|
|
}
|
2016-04-29 17:08:05 +03:00
|
|
|
|
2016-04-29 17:27:19 +03:00
|
|
|
ngOnInit() {
|
|
|
|
|
}
|
2016-04-27 13:17:51 +03:00
|
|
|
}
|