From a9faab683321bd7ceef76bf9cee740f8460bff36 Mon Sep 17 00:00:00 2001 From: William Welling Date: Wed, 4 Oct 2017 10:51:48 -0500 Subject: [PATCH] refactor home to home-page --- .../home-news/home-news.component.html | 0 .../home-news/home-news.component.scss | 0 .../home-news/home-news.component.ts | 0 src/app/+home-page/home-page-routing.module.ts | 13 +++++++++++++ .../home-page.component.html} | 0 .../home-page.component.scss} | 0 src/app/+home-page/home-page.component.ts | 10 ++++++++++ .../home-page.module.ts} | 10 +++++----- .../top-level-community-list.component.html | 0 .../top-level-community-list.component.scss | 0 .../top-level-community-list.component.ts | 0 src/app/+home/home-routing.module.ts | 13 ------------- src/app/+home/home.component.ts | 10 ---------- src/app/app-routing.module.ts | 2 +- 14 files changed, 29 insertions(+), 29 deletions(-) rename src/app/{+home => +home-page}/home-news/home-news.component.html (100%) rename src/app/{+home => +home-page}/home-news/home-news.component.scss (100%) rename src/app/{+home => +home-page}/home-news/home-news.component.ts (100%) create mode 100644 src/app/+home-page/home-page-routing.module.ts rename src/app/{+home/home.component.html => +home-page/home-page.component.html} (100%) rename src/app/{+home/home.component.scss => +home-page/home-page.component.scss} (100%) create mode 100644 src/app/+home-page/home-page.component.ts rename src/app/{+home/home.module.ts => +home-page/home-page.module.ts} (70%) rename src/app/{+home => +home-page}/top-level-community-list/top-level-community-list.component.html (100%) rename src/app/{+home => +home-page}/top-level-community-list/top-level-community-list.component.scss (100%) rename src/app/{+home => +home-page}/top-level-community-list/top-level-community-list.component.ts (100%) delete mode 100644 src/app/+home/home-routing.module.ts delete mode 100644 src/app/+home/home.component.ts diff --git a/src/app/+home/home-news/home-news.component.html b/src/app/+home-page/home-news/home-news.component.html similarity index 100% rename from src/app/+home/home-news/home-news.component.html rename to src/app/+home-page/home-news/home-news.component.html diff --git a/src/app/+home/home-news/home-news.component.scss b/src/app/+home-page/home-news/home-news.component.scss similarity index 100% rename from src/app/+home/home-news/home-news.component.scss rename to src/app/+home-page/home-news/home-news.component.scss diff --git a/src/app/+home/home-news/home-news.component.ts b/src/app/+home-page/home-news/home-news.component.ts similarity index 100% rename from src/app/+home/home-news/home-news.component.ts rename to src/app/+home-page/home-news/home-news.component.ts diff --git a/src/app/+home-page/home-page-routing.module.ts b/src/app/+home-page/home-page-routing.module.ts new file mode 100644 index 0000000000..e68b633a6d --- /dev/null +++ b/src/app/+home-page/home-page-routing.module.ts @@ -0,0 +1,13 @@ +import { NgModule } from '@angular/core'; +import { RouterModule } from '@angular/router'; + +import { HomePageComponent } from './home-page.component'; + +@NgModule({ + imports: [ + RouterModule.forChild([ + { path: '', component: HomePageComponent, pathMatch: 'full' } + ]) + ] +}) +export class HomePageRoutingModule { } diff --git a/src/app/+home/home.component.html b/src/app/+home-page/home-page.component.html similarity index 100% rename from src/app/+home/home.component.html rename to src/app/+home-page/home-page.component.html diff --git a/src/app/+home/home.component.scss b/src/app/+home-page/home-page.component.scss similarity index 100% rename from src/app/+home/home.component.scss rename to src/app/+home-page/home-page.component.scss diff --git a/src/app/+home-page/home-page.component.ts b/src/app/+home-page/home-page.component.ts new file mode 100644 index 0000000000..ad25ec0155 --- /dev/null +++ b/src/app/+home-page/home-page.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'ds-home-page', + styleUrls: ['./home-page.component.scss'], + templateUrl: './home-page.component.html' +}) +export class HomePageComponent { + +} diff --git a/src/app/+home/home.module.ts b/src/app/+home-page/home-page.module.ts similarity index 70% rename from src/app/+home/home.module.ts rename to src/app/+home-page/home-page.module.ts index 7a68629deb..45c460c89c 100644 --- a/src/app/+home/home.module.ts +++ b/src/app/+home-page/home-page.module.ts @@ -2,8 +2,8 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SharedModule } from '../shared/shared.module'; -import { HomeComponent } from './home.component'; -import { HomeRoutingModule } from './home-routing.module'; +import { HomePageComponent } from './home-page.component'; +import { HomePageRoutingModule } from './home-page-routing.module'; import { TopLevelCommunityListComponent } from './top-level-community-list/top-level-community-list.component'; import { HomeNewsComponent } from './home-news/home-news.component'; @@ -11,14 +11,14 @@ import { HomeNewsComponent } from './home-news/home-news.component'; imports: [ CommonModule, SharedModule, - HomeRoutingModule + HomePageRoutingModule ], declarations: [ - HomeComponent, + HomePageComponent, TopLevelCommunityListComponent, HomeNewsComponent ] }) -export class HomeModule { +export class HomePageModule { } diff --git a/src/app/+home/top-level-community-list/top-level-community-list.component.html b/src/app/+home-page/top-level-community-list/top-level-community-list.component.html similarity index 100% rename from src/app/+home/top-level-community-list/top-level-community-list.component.html rename to src/app/+home-page/top-level-community-list/top-level-community-list.component.html diff --git a/src/app/+home/top-level-community-list/top-level-community-list.component.scss b/src/app/+home-page/top-level-community-list/top-level-community-list.component.scss similarity index 100% rename from src/app/+home/top-level-community-list/top-level-community-list.component.scss rename to src/app/+home-page/top-level-community-list/top-level-community-list.component.scss diff --git a/src/app/+home/top-level-community-list/top-level-community-list.component.ts b/src/app/+home-page/top-level-community-list/top-level-community-list.component.ts similarity index 100% rename from src/app/+home/top-level-community-list/top-level-community-list.component.ts rename to src/app/+home-page/top-level-community-list/top-level-community-list.component.ts diff --git a/src/app/+home/home-routing.module.ts b/src/app/+home/home-routing.module.ts deleted file mode 100644 index 9bc4619f74..0000000000 --- a/src/app/+home/home-routing.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { HomeComponent } from './home.component'; - -@NgModule({ - imports: [ - RouterModule.forChild([ - { path: '', component: HomeComponent, pathMatch: 'full' } - ]) - ] -}) -export class HomeRoutingModule { } diff --git a/src/app/+home/home.component.ts b/src/app/+home/home.component.ts deleted file mode 100644 index d1222b8ae0..0000000000 --- a/src/app/+home/home.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'ds-home', - styleUrls: ['./home.component.scss'], - templateUrl: './home.component.html' -}) -export class HomeComponent { - -} diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index fb793df7dc..b3b8eacfce 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -7,7 +7,7 @@ import { PageNotFoundComponent } from './pagenotfound/pagenotfound.component'; imports: [ RouterModule.forRoot([ { path: '', redirectTo: '/home', pathMatch: 'full' }, - { path: 'home', loadChildren: './+home/home.module#HomeModule' }, + { path: 'home', loadChildren: './+home-page/home-page.module#HomePageModule' }, { path: 'communities', loadChildren: './+community-page/community-page.module#CommunityPageModule' }, { path: 'collections', loadChildren: './+collection-page/collection-page.module#CollectionPageModule' }, { path: 'items', loadChildren: './+item-page/item-page.module#ItemPageModule' },