chore: base layout

This commit is contained in:
tibing 2017-04-13 14:24:23 +03:00
parent 1fb884a633
commit d82d691681
19 changed files with 195 additions and 44 deletions

View file

@ -0,0 +1 @@
export * from './one-coll-layout/one-coll.layout';

View file

@ -0,0 +1,18 @@
import { Component } from '@angular/core';
@Component({
selector: 'one-coll-layout',
template: `
<nga-layout>
<nga-layout-header fixed></nga-layout-header>
<nga-sidebar fixed></nga-sidebar>
<nga-layout-column>
<ng-content></ng-content>
</nga-layout-column>
<nga-layout-footer fixed></nga-layout-footer>
</nga-layout>
`,
})
export class RootLayoutComponent {
constructor() { }
}

View file

@ -0,0 +1,3 @@
@import '~@nga/theme/styles/themes/nga.theme.default';
@include nga-theme();

View file

@ -0,0 +1 @@
@import "default.theme";

View file

@ -0,0 +1,50 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import {
NgaCardModule,
NgaLayoutModule,
NgaTabsetModule,
NgaRouteTabsetModule,
NgaSidebarModule,
NgaMenuModule
} from '@nga/theme';
import { RootLayoutComponent } from './layouts';
const BASE_MODULES = [
CommonModule,
FormsModule,
ReactiveFormsModule
];
const NGA_MODULES = [
NgaCardModule,
NgaLayoutModule,
NgaTabsetModule,
NgaRouteTabsetModule,
NgaSidebarModule,
NgaMenuModule
];
const LAYOUT_COMPONENTS = [
RootLayoutComponent
];
@NgModule({
imports: [
...BASE_MODULES,
...NGA_MODULES,
],
exports: [
...BASE_MODULES,
...NGA_MODULES,
...LAYOUT_COMPONENTS
],
declarations: [
...LAYOUT_COMPONENTS
]
})
export class ThemeModule {
}