ngx-admin/src/app/pages/pages.component.ts

83 lines
1.9 KiB
TypeScript
Raw Normal View History

2016-05-11 17:38:01 +03:00
import {Component, ViewEncapsulation} from '@angular/core';
import {RouteConfig} from '@angular/router-deprecated';
2016-05-18 17:19:24 +03:00
import {BaPageTop, BaContentTop, Sidebar, BaBackTop} 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-05-13 11:01:25 +03:00
import {Forms} from './forms';
2016-05-13 18:18:11 +03:00
import {Tables} from './tables';
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-18 17:19:24 +03:00
directives: [BaPageTop, Sidebar, BaContentTop, BaBackTop],
2016-05-02 14:08:32 +03:00
template: `
<sidebar></sidebar>
2016-05-18 17:19:24 +03:00
<ba-page-top></ba-page-top>
2016-05-02 14:08:32 +03:00
<div class="al-main">
<div class="al-content">
2016-05-18 17:04:35 +03:00
<ba-content-top></ba-content-top>
2016-05-02 14:08:32 +03:00
<router-outlet></router-outlet>
</div>
2016-05-13 17:19:15 +03:00
</div>
<footer class="al-footer clearfix">
<div class="al-footer-right">Created with <i class="ion-heart"></i></div>
<div class="al-footer-main clearfix">
<div class="al-copy">Blur Admin 2016</div>
<ul class="al-share clearfix">
<li><i class="socicon socicon-facebook"></i></li>
<li><i class="socicon socicon-twitter"></i></li>
<li><i class="socicon socicon-google"></i></li>
<li><i class="socicon socicon-github"></i></li>
</ul>
</div>
</footer>
2016-05-13 17:49:28 +03:00
<ba-back-top position="200"></ba-back-top>
2016-05-13 17:19:15 +03:00
`
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-05-13 11:01:25 +03:00
{
name: 'Forms',
component: Forms,
path: '/forms/...',
},
2016-05-13 18:18:11 +03:00
{
name: 'Tables',
component: Tables,
path: '/tables/...',
}
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
}