From 58440b63a76ac453ffd941e0171588f02ff27a93 Mon Sep 17 00:00:00 2001 From: sercan Date: Fri, 9 Jul 2021 11:12:07 +0300 Subject: [PATCH] (ui/material-components) Renamed the component --- src/app/app.routing.ts | 4 ++-- src/app/mock-api/common/navigation/data.ts | 2 +- .../material-components.component.html} | 0 .../material-components.component.ts} | 6 +++--- .../material-components.module.ts} | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) rename src/app/modules/admin/ui/{angular-material/angular-material.component.html => material-components/material-components.component.html} (100%) rename src/app/modules/admin/ui/{angular-material/angular-material.component.ts => material-components/material-components.component.ts} (99%) rename src/app/modules/admin/ui/{angular-material/angular-material.module.ts => material-components/material-components.module.ts} (68%) diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index 0cccfb93..35d71c28 100644 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -143,8 +143,8 @@ export const appRoutes: Route[] = [ // User interface {path: 'ui', children: [ - // Angular Material - {path: 'angular-material', loadChildren: () => import('app/modules/admin/ui/angular-material/angular-material.module').then(m => m.AngularMaterialModule)}, + // Material components + {path: 'material-components', loadChildren: () => import('app/modules/admin/ui/material-components/material-components.module').then(m => m.MaterialComponentsModule)}, // TailwindCSS {path: 'tailwindcss', loadChildren: () => import('app/modules/admin/ui/tailwindcss/tailwindcss.module').then(m => m.TailwindCSSModule)}, diff --git a/src/app/mock-api/common/navigation/data.ts b/src/app/mock-api/common/navigation/data.ts index 2f2f5510..a6fd08ca 100644 --- a/src/app/mock-api/common/navigation/data.ts +++ b/src/app/mock-api/common/navigation/data.ts @@ -686,7 +686,7 @@ export const defaultNavigation: FuseNavigationItem[] = [ title: 'Material components', type : 'basic', icon : 'heroicons_outline:chip', - link : '/ui/angular-material' + link : '/ui/material-components' }, { id : 'user-interface.tailwindcss', diff --git a/src/app/modules/admin/ui/angular-material/angular-material.component.html b/src/app/modules/admin/ui/material-components/material-components.component.html similarity index 100% rename from src/app/modules/admin/ui/angular-material/angular-material.component.html rename to src/app/modules/admin/ui/material-components/material-components.component.html diff --git a/src/app/modules/admin/ui/angular-material/angular-material.component.ts b/src/app/modules/admin/ui/material-components/material-components.component.ts similarity index 99% rename from src/app/modules/admin/ui/angular-material/angular-material.component.ts rename to src/app/modules/admin/ui/material-components/material-components.component.ts index 7018211f..886afec7 100644 --- a/src/app/modules/admin/ui/angular-material/angular-material.component.ts +++ b/src/app/modules/admin/ui/material-components/material-components.component.ts @@ -1,11 +1,11 @@ import { Component, ViewEncapsulation } from '@angular/core'; @Component({ - selector : 'angular-material', - templateUrl : './angular-material.component.html', + selector : 'material-components', + templateUrl : './material-components.component.html', encapsulation: ViewEncapsulation.None }) -export class AngularMaterialComponent +export class MaterialComponentsComponent { components: any[]; diff --git a/src/app/modules/admin/ui/angular-material/angular-material.module.ts b/src/app/modules/admin/ui/material-components/material-components.module.ts similarity index 68% rename from src/app/modules/admin/ui/angular-material/angular-material.module.ts rename to src/app/modules/admin/ui/material-components/material-components.module.ts index 795eb091..d0776a5c 100644 --- a/src/app/modules/admin/ui/angular-material/angular-material.module.ts +++ b/src/app/modules/admin/ui/material-components/material-components.module.ts @@ -3,18 +3,18 @@ import { Route, RouterModule } from '@angular/router'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; import { SharedModule } from 'app/shared/shared.module'; -import { AngularMaterialComponent } from 'app/modules/admin/ui/angular-material/angular-material.component'; +import { MaterialComponentsComponent } from 'app/modules/admin/ui/material-components/material-components.component'; export const routes: Route[] = [ { path : '', - component: AngularMaterialComponent + component: MaterialComponentsComponent } ]; @NgModule({ declarations: [ - AngularMaterialComponent + MaterialComponentsComponent ], imports : [ RouterModule.forChild(routes), @@ -23,6 +23,6 @@ export const routes: Route[] = [ SharedModule ] }) -export class AngularMaterialModule +export class MaterialComponentsModule { }