mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
refactor(app): make a bit more neat structure
This commit is contained in:
parent
91c780c256
commit
44f2f562a9
20 changed files with 24 additions and 17 deletions
0
src/app/@core/data/.gitkeep
Normal file
0
src/app/@core/data/.gitkeep
Normal file
1
src/app/@core/data/README.md
Normal file
1
src/app/@core/data/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
Application-wise data providers.
|
||||
0
src/app/@core/utils/.gitkeep
Normal file
0
src/app/@core/utils/.gitkeep
Normal file
3
src/app/@theme/components/index.ts
Normal file
3
src/app/@theme/components/index.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export * from '../components/base-header/base-header.component';
|
||||
export * from '../components/base-footer/base-footer.component';
|
||||
export * from '../components/search-input/search-input.component';
|
||||
0
src/app/@theme/directives/.gitkeep
Normal file
0
src/app/@theme/directives/.gitkeep
Normal file
|
|
@ -1,2 +1 @@
|
|||
export * from './base-header/base-header.component';
|
||||
export * from './one-coll-layout/one-coll.layout';
|
||||
export * from './one-column/one-column.layout';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'one-coll-layout',
|
||||
selector: 'one-column-layout',
|
||||
template: `
|
||||
<nga-layout>
|
||||
<nga-layout-header fixed>
|
||||
|
|
@ -22,5 +22,5 @@ import { Component } from '@angular/core';
|
|||
</nga-layout>
|
||||
`,
|
||||
})
|
||||
export class OneCollLayoutComponent {
|
||||
export class OneColumnLayoutComponent {
|
||||
}
|
||||
0
src/app/@theme/pipes/.gitkeep
Normal file
0
src/app/@theme/pipes/.gitkeep
Normal file
|
|
@ -1,9 +1,9 @@
|
|||
@import '../layouts/base-header/base-header.component.theme';
|
||||
@import '../search-input/search-input.component.theme';
|
||||
@import '../layouts/base-footer/base-footer.component.theme';
|
||||
@import '../components/base-header/base-header.component.theme';
|
||||
@import '../components/search-input/search-input.component.theme';
|
||||
@import '../components/base-footer/base-footer.component.theme';
|
||||
|
||||
@mixin custom-components-theme() {
|
||||
@include base-header-theme();
|
||||
@include base-footer-theme();
|
||||
@include search-input-theme();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,9 +12,8 @@ import {
|
|||
NgaUserModule,
|
||||
} from '@nga/theme';
|
||||
|
||||
import { SearchInputComponent } from './search-input/search-input.component';
|
||||
import { OneCollLayoutComponent, BaseHeaderComponent } from './layouts';
|
||||
import { BaseFooterComponent } from './layouts/base-footer/base-footer.component';
|
||||
import { SearchInputComponent, BaseHeaderComponent, BaseFooterComponent } from './components';
|
||||
import { OneColumnLayoutComponent } from './layouts';
|
||||
|
||||
const BASE_MODULES = [
|
||||
CommonModule,
|
||||
|
|
@ -31,8 +30,14 @@ const NGA_MODULES = [
|
|||
NgaUserModule,
|
||||
];
|
||||
|
||||
const COMPONENTS = [
|
||||
BaseHeaderComponent,
|
||||
BaseFooterComponent,
|
||||
SearchInputComponent,
|
||||
];
|
||||
|
||||
const LAYOUTS = [
|
||||
OneCollLayoutComponent,
|
||||
OneColumnLayoutComponent,
|
||||
BaseHeaderComponent,
|
||||
BaseFooterComponent,
|
||||
];
|
||||
|
|
@ -46,13 +51,12 @@ const LAYOUTS = [
|
|||
exports: [
|
||||
...BASE_MODULES,
|
||||
...NGA_MODULES,
|
||||
...COMPONENTS,
|
||||
...LAYOUTS,
|
||||
SearchInputComponent,
|
||||
],
|
||||
declarations: [
|
||||
...COMPONENTS,
|
||||
...LAYOUTS,
|
||||
SearchInputComponent,
|
||||
BaseFooterComponent,
|
||||
],
|
||||
})
|
||||
export class ThemeModule {
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import { Component } from '@angular/core';
|
|||
'../@theme/styles/pure/pure.theme.scss',
|
||||
],
|
||||
template: `
|
||||
<one-coll-layout>
|
||||
<one-column-layout>
|
||||
<nga-menu></nga-menu>
|
||||
<router-outlet></router-outlet>
|
||||
</one-coll-layout>
|
||||
</one-column-layout>
|
||||
`,
|
||||
})
|
||||
export class PagesComponent {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue