mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-23 09:46:10 +01:00
chore: base layout
This commit is contained in:
parent
1fb884a633
commit
d82d691681
19 changed files with 195 additions and 44 deletions
1
src/app/@theme/layouts/index.ts
Normal file
1
src/app/@theme/layouts/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './one-coll-layout/one-coll.layout';
|
||||
18
src/app/@theme/layouts/one-coll-layout/one-coll.layout.ts
Normal file
18
src/app/@theme/layouts/one-coll-layout/one-coll.layout.ts
Normal 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() { }
|
||||
}
|
||||
3
src/app/@theme/styles/default.theme.scss
Normal file
3
src/app/@theme/styles/default.theme.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@import '~@nga/theme/styles/themes/nga.theme.default';
|
||||
|
||||
@include nga-theme();
|
||||
1
src/app/@theme/styles/styles.scss
Normal file
1
src/app/@theme/styles/styles.scss
Normal file
|
|
@ -0,0 +1 @@
|
|||
@import "default.theme";
|
||||
50
src/app/@theme/theme.module.ts
Normal file
50
src/app/@theme/theme.module.ts
Normal 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 {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue