2017-04-13 14:24:23 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
NgaCardModule,
|
|
|
|
|
NgaLayoutModule,
|
|
|
|
|
NgaTabsetModule,
|
|
|
|
|
NgaRouteTabsetModule,
|
|
|
|
|
NgaSidebarModule,
|
2017-04-14 18:28:27 +03:00
|
|
|
NgaMenuModule,
|
2017-04-21 17:23:44 +03:00
|
|
|
NgaUserModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
} from '@nga/theme';
|
|
|
|
|
|
2017-04-28 14:59:24 +03:00
|
|
|
import { SearchInputComponent, BaseHeaderComponent, BaseFooterComponent } from './components';
|
|
|
|
|
import { OneColumnLayoutComponent } from './layouts';
|
2017-04-13 14:24:23 +03:00
|
|
|
|
|
|
|
|
const BASE_MODULES = [
|
|
|
|
|
CommonModule,
|
|
|
|
|
FormsModule,
|
2017-04-21 17:23:44 +03:00
|
|
|
ReactiveFormsModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const NGA_MODULES = [
|
|
|
|
|
NgaCardModule,
|
|
|
|
|
NgaLayoutModule,
|
|
|
|
|
NgaTabsetModule,
|
|
|
|
|
NgaRouteTabsetModule,
|
2017-04-14 18:28:27 +03:00
|
|
|
NgaMenuModule,
|
2017-04-21 17:23:44 +03:00
|
|
|
NgaUserModule,
|
2017-04-13 14:24:23 +03:00
|
|
|
];
|
|
|
|
|
|
2017-04-28 14:59:24 +03:00
|
|
|
const COMPONENTS = [
|
|
|
|
|
BaseHeaderComponent,
|
|
|
|
|
BaseFooterComponent,
|
|
|
|
|
SearchInputComponent,
|
|
|
|
|
];
|
|
|
|
|
|
2017-04-18 19:12:29 +03:00
|
|
|
const LAYOUTS = [
|
2017-04-28 14:59:24 +03:00
|
|
|
OneColumnLayoutComponent,
|
2017-04-18 20:29:57 +03:00
|
|
|
BaseHeaderComponent,
|
2017-04-21 17:23:44 +03:00
|
|
|
BaseFooterComponent,
|
2017-04-13 14:24:23 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
...BASE_MODULES,
|
|
|
|
|
...NGA_MODULES,
|
2017-04-17 08:28:11 +03:00
|
|
|
NgaSidebarModule.forRoot(),
|
2017-04-13 14:24:23 +03:00
|
|
|
],
|
|
|
|
|
exports: [
|
|
|
|
|
...BASE_MODULES,
|
|
|
|
|
...NGA_MODULES,
|
2017-04-28 14:59:24 +03:00
|
|
|
...COMPONENTS,
|
2017-04-18 19:12:29 +03:00
|
|
|
...LAYOUTS,
|
2017-04-13 14:24:23 +03:00
|
|
|
],
|
|
|
|
|
declarations: [
|
2017-04-28 14:59:24 +03:00
|
|
|
...COMPONENTS,
|
2017-04-18 19:12:29 +03:00
|
|
|
...LAYOUTS,
|
2017-04-21 17:23:44 +03:00
|
|
|
],
|
2017-04-13 14:24:23 +03:00
|
|
|
})
|
|
|
|
|
export class ThemeModule {
|
|
|
|
|
}
|