mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
refactor(app): rename components
This commit is contained in:
parent
afc24fe88f
commit
4fe5c69d8e
10 changed files with 17 additions and 17 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'base-footer',
|
selector: 'footer',
|
||||||
styleUrls: ['./base-footer.component.scss'],
|
styleUrls: ['./footer.component.scss'],
|
||||||
template: `
|
template: `
|
||||||
<span class="created-by">Created with ♥ by <b><a href="https://akveo.com" target="_blank">Akveo</a></b> 2017</span>
|
<span class="created-by">Created with ♥ by <b><a href="https://akveo.com" target="_blank">Akveo</a></b> 2017</span>
|
||||||
<div class="socials">
|
<div class="socials">
|
||||||
|
|
@ -13,5 +13,5 @@ import { Component } from '@angular/core';
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
})
|
})
|
||||||
export class BaseFooterComponent {
|
export class FooterComponent {
|
||||||
}
|
}
|
||||||
|
|
@ -4,8 +4,8 @@ import { NgaSidebarService, NgaMenuService } from '@nga/theme';
|
||||||
import { NgaThemeService } from '@nga/theme/services/theme.service';
|
import { NgaThemeService } from '@nga/theme/services/theme.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'base-header',
|
selector: 'header',
|
||||||
styleUrls: ['./base-header.component.scss'],
|
styleUrls: ['./header.component.scss'],
|
||||||
template: `
|
template: `
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<i class="control-icon ion ion-navicon" (click)="toggleSidebar()"></i>
|
<i class="control-icon ion ion-navicon" (click)="toggleSidebar()"></i>
|
||||||
|
|
@ -21,7 +21,7 @@ import { NgaThemeService } from '@nga/theme/services/theme.service';
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
})
|
})
|
||||||
export class BaseHeaderComponent {
|
export class HeaderComponent {
|
||||||
constructor(private sidebarService: NgaSidebarService,
|
constructor(private sidebarService: NgaSidebarService,
|
||||||
private menuService: NgaMenuService,
|
private menuService: NgaMenuService,
|
||||||
private themeService: NgaThemeService) {
|
private themeService: NgaThemeService) {
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
export * from '../components/base-header/base-header.component';
|
export * from './header/header.component';
|
||||||
export * from '../components/base-footer/base-footer.component';
|
export * from './footer/footer.component';
|
||||||
export * from '../components/search-input/search-input.component';
|
export * from '../components/search-input/search-input.component';
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { Component } from '@angular/core';
|
||||||
template: `
|
template: `
|
||||||
<nga-layout>
|
<nga-layout>
|
||||||
<nga-layout-header fixed>
|
<nga-layout-header fixed>
|
||||||
<base-header></base-header>
|
<header></header>
|
||||||
</nga-layout-header>
|
</nga-layout-header>
|
||||||
|
|
||||||
<nga-sidebar>
|
<nga-sidebar>
|
||||||
|
|
@ -17,7 +17,7 @@ import { Component } from '@angular/core';
|
||||||
</nga-layout-column>
|
</nga-layout-column>
|
||||||
|
|
||||||
<nga-layout-footer fixed>
|
<nga-layout-footer fixed>
|
||||||
<base-footer></base-footer>
|
<footer></footer>
|
||||||
</nga-layout-footer>
|
</nga-layout-footer>
|
||||||
</nga-layout>
|
</nga-layout>
|
||||||
`,
|
`,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
@import '../components/base-header/base-header.component.theme';
|
@import '../components/header/header.component.theme';
|
||||||
@import '../components/search-input/search-input.component.theme';
|
@import '../components/search-input/search-input.component.theme';
|
||||||
@import '../components/base-footer/base-footer.component.theme';
|
@import '../components/footer/footer.component.theme';
|
||||||
|
|
||||||
// TODO: probably move this file into the components folder?
|
// TODO: probably move this file into the components folder?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import {
|
||||||
NgaUserModule,
|
NgaUserModule,
|
||||||
} from '@nga/theme';
|
} from '@nga/theme';
|
||||||
|
|
||||||
import { SearchInputComponent, BaseHeaderComponent, BaseFooterComponent } from './components';
|
import { SearchInputComponent, HeaderComponent, FooterComponent } from './components';
|
||||||
import { OneColumnLayoutComponent } from './layouts';
|
import { OneColumnLayoutComponent } from './layouts';
|
||||||
|
|
||||||
const BASE_MODULES = [
|
const BASE_MODULES = [
|
||||||
|
|
@ -31,15 +31,15 @@ const NGA_MODULES = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const COMPONENTS = [
|
const COMPONENTS = [
|
||||||
BaseHeaderComponent,
|
HeaderComponent,
|
||||||
BaseFooterComponent,
|
FooterComponent,
|
||||||
SearchInputComponent,
|
SearchInputComponent,
|
||||||
];
|
];
|
||||||
|
|
||||||
const LAYOUTS = [
|
const LAYOUTS = [
|
||||||
OneColumnLayoutComponent,
|
OneColumnLayoutComponent,
|
||||||
BaseHeaderComponent,
|
HeaderComponent,
|
||||||
BaseFooterComponent,
|
FooterComponent,
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue