mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02: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';
|
||||
|
||||
@Component({
|
||||
selector: 'base-footer',
|
||||
styleUrls: ['./base-footer.component.scss'],
|
||||
selector: 'footer',
|
||||
styleUrls: ['./footer.component.scss'],
|
||||
template: `
|
||||
<span class="created-by">Created with ♥ by <b><a href="https://akveo.com" target="_blank">Akveo</a></b> 2017</span>
|
||||
<div class="socials">
|
||||
|
@ -13,5 +13,5 @@ import { Component } from '@angular/core';
|
|||
</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';
|
||||
|
||||
@Component({
|
||||
selector: 'base-header',
|
||||
styleUrls: ['./base-header.component.scss'],
|
||||
selector: 'header',
|
||||
styleUrls: ['./header.component.scss'],
|
||||
template: `
|
||||
<div class="left">
|
||||
<i class="control-icon ion ion-navicon" (click)="toggleSidebar()"></i>
|
||||
|
@ -21,7 +21,7 @@ import { NgaThemeService } from '@nga/theme/services/theme.service';
|
|||
</div>
|
||||
`,
|
||||
})
|
||||
export class BaseHeaderComponent {
|
||||
export class HeaderComponent {
|
||||
constructor(private sidebarService: NgaSidebarService,
|
||||
private menuService: NgaMenuService,
|
||||
private themeService: NgaThemeService) {
|
|
@ -1,3 +1,3 @@
|
|||
export * from '../components/base-header/base-header.component';
|
||||
export * from '../components/base-footer/base-footer.component';
|
||||
export * from './header/header.component';
|
||||
export * from './footer/footer.component';
|
||||
export * from '../components/search-input/search-input.component';
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Component } from '@angular/core';
|
|||
template: `
|
||||
<nga-layout>
|
||||
<nga-layout-header fixed>
|
||||
<base-header></base-header>
|
||||
<header></header>
|
||||
</nga-layout-header>
|
||||
|
||||
<nga-sidebar>
|
||||
|
@ -17,7 +17,7 @@ import { Component } from '@angular/core';
|
|||
</nga-layout-column>
|
||||
|
||||
<nga-layout-footer fixed>
|
||||
<base-footer></base-footer>
|
||||
<footer></footer>
|
||||
</nga-layout-footer>
|
||||
</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/base-footer/base-footer.component.theme';
|
||||
@import '../components/footer/footer.component.theme';
|
||||
|
||||
// TODO: probably move this file into the components folder?
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
NgaUserModule,
|
||||
} from '@nga/theme';
|
||||
|
||||
import { SearchInputComponent, BaseHeaderComponent, BaseFooterComponent } from './components';
|
||||
import { SearchInputComponent, HeaderComponent, FooterComponent } from './components';
|
||||
import { OneColumnLayoutComponent } from './layouts';
|
||||
|
||||
const BASE_MODULES = [
|
||||
|
@ -31,15 +31,15 @@ const NGA_MODULES = [
|
|||
];
|
||||
|
||||
const COMPONENTS = [
|
||||
BaseHeaderComponent,
|
||||
BaseFooterComponent,
|
||||
HeaderComponent,
|
||||
FooterComponent,
|
||||
SearchInputComponent,
|
||||
];
|
||||
|
||||
const LAYOUTS = [
|
||||
OneColumnLayoutComponent,
|
||||
BaseHeaderComponent,
|
||||
BaseFooterComponent,
|
||||
HeaderComponent,
|
||||
FooterComponent,
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue