From fde67090a545f5d86e60e63bc96db94d768185c0 Mon Sep 17 00:00:00 2001 From: Adwaith Rao Date: Wed, 24 Nov 2021 18:35:51 +0530 Subject: [PATCH] Divide components into cohesive blocks --- src/app/app-routing.module.ts | 8 ++++---- src/app/app.module.ts | 10 +++++----- .../notifications/notifications.component.html | 0 .../notifications/notifications.component.scss | 0 .../notifications/notifications.component.spec.ts | 0 .../notifications/notifications.component.ts | 0 src/app/{ => layout}/tabs/tabs.component.html | 0 src/app/{ => layout}/tabs/tabs.component.scss | 0 src/app/{ => layout}/tabs/tabs.component.spec.ts | 0 src/app/{ => layout}/tabs/tabs.component.ts | 0 .../e-services/e-services.component.html | 0 .../e-services/e-services.component.scss | 0 .../e-services/e-services.component.spec.ts | 0 .../e-services/e-services.component.ts | 0 .../{components => pages}/login/login.component.html | 0 .../{components => pages}/login/login.component.scss | 0 .../login/login.component.spec.ts | 0 src/app/{components => pages}/login/login.component.ts | 0 .../register-business/register-business.component.html | 0 .../register-business/register-business.component.scss | 0 .../register-business.component.spec.ts | 0 .../register-business/register-business.component.ts | 0 22 files changed, 9 insertions(+), 9 deletions(-) rename src/app/{components => layout}/notifications/notifications.component.html (100%) rename src/app/{components => layout}/notifications/notifications.component.scss (100%) rename src/app/{components => layout}/notifications/notifications.component.spec.ts (100%) rename src/app/{components => layout}/notifications/notifications.component.ts (100%) rename src/app/{ => layout}/tabs/tabs.component.html (100%) rename src/app/{ => layout}/tabs/tabs.component.scss (100%) rename src/app/{ => layout}/tabs/tabs.component.spec.ts (100%) rename src/app/{ => layout}/tabs/tabs.component.ts (100%) rename src/app/{components => pages}/e-services/e-services.component.html (100%) rename src/app/{components => pages}/e-services/e-services.component.scss (100%) rename src/app/{components => pages}/e-services/e-services.component.spec.ts (100%) rename src/app/{components => pages}/e-services/e-services.component.ts (100%) rename src/app/{components => pages}/login/login.component.html (100%) rename src/app/{components => pages}/login/login.component.scss (100%) rename src/app/{components => pages}/login/login.component.spec.ts (100%) rename src/app/{components => pages}/login/login.component.ts (100%) rename src/app/{components => pages}/register-business/register-business.component.html (100%) rename src/app/{components => pages}/register-business/register-business.component.scss (100%) rename src/app/{components => pages}/register-business/register-business.component.spec.ts (100%) rename src/app/{components => pages}/register-business/register-business.component.ts (100%) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 4e4a82b..f3dfff8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,11 +2,11 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { CheckStatusComponent } from './widgets/check-status/check-status.component'; import { CreateCommitteeComponent } from './widgets/create-committee/create-committee.component'; -import { EServicesComponent } from './components/e-services/e-services.component'; -import { LoginComponent } from './components/login/login.component'; +import { EServicesComponent } from './pages/e-services/e-services.component'; +import { LoginComponent } from './pages/login/login.component'; import { MockComponent } from './widgets/mock/mock.component'; -import { RegisterBusinessComponent } from './components/register-business/register-business.component'; -import { TabsComponent } from './tabs/tabs.component'; +import { RegisterBusinessComponent } from './pages/register-business/register-business.component'; +import { TabsComponent } from './layout/tabs/tabs.component'; const routes: Routes = [ { path: '', pathMatch: 'full', redirectTo: 'login' }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 15f33ab..7243e3c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -3,13 +3,13 @@ import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; -import { LoginComponent } from './components/login/login.component'; -import { TabsComponent } from './tabs/tabs.component'; -import { RegisterBusinessComponent } from './components/register-business/register-business.component'; +import { LoginComponent } from './pages/login/login.component'; +import { TabsComponent } from './layout/tabs/tabs.component'; +import { RegisterBusinessComponent } from './pages/register-business/register-business.component'; import { FormsModule } from '@angular/forms'; import { MockComponent } from './widgets/mock/mock.component'; -import { EServicesComponent } from './components/e-services/e-services.component'; -import { NotificationsComponent } from './components/notifications/notifications.component'; +import { EServicesComponent } from './pages/e-services/e-services.component'; +import { NotificationsComponent } from './layout/notifications/notifications.component'; import { CreateCommitteeComponent } from './widgets/create-committee/create-committee.component'; import { CheckStatusComponent } from './widgets/check-status/check-status.component'; import { TableComponent } from './widgets/table/table.component'; diff --git a/src/app/components/notifications/notifications.component.html b/src/app/layout/notifications/notifications.component.html similarity index 100% rename from src/app/components/notifications/notifications.component.html rename to src/app/layout/notifications/notifications.component.html diff --git a/src/app/components/notifications/notifications.component.scss b/src/app/layout/notifications/notifications.component.scss similarity index 100% rename from src/app/components/notifications/notifications.component.scss rename to src/app/layout/notifications/notifications.component.scss diff --git a/src/app/components/notifications/notifications.component.spec.ts b/src/app/layout/notifications/notifications.component.spec.ts similarity index 100% rename from src/app/components/notifications/notifications.component.spec.ts rename to src/app/layout/notifications/notifications.component.spec.ts diff --git a/src/app/components/notifications/notifications.component.ts b/src/app/layout/notifications/notifications.component.ts similarity index 100% rename from src/app/components/notifications/notifications.component.ts rename to src/app/layout/notifications/notifications.component.ts diff --git a/src/app/tabs/tabs.component.html b/src/app/layout/tabs/tabs.component.html similarity index 100% rename from src/app/tabs/tabs.component.html rename to src/app/layout/tabs/tabs.component.html diff --git a/src/app/tabs/tabs.component.scss b/src/app/layout/tabs/tabs.component.scss similarity index 100% rename from src/app/tabs/tabs.component.scss rename to src/app/layout/tabs/tabs.component.scss diff --git a/src/app/tabs/tabs.component.spec.ts b/src/app/layout/tabs/tabs.component.spec.ts similarity index 100% rename from src/app/tabs/tabs.component.spec.ts rename to src/app/layout/tabs/tabs.component.spec.ts diff --git a/src/app/tabs/tabs.component.ts b/src/app/layout/tabs/tabs.component.ts similarity index 100% rename from src/app/tabs/tabs.component.ts rename to src/app/layout/tabs/tabs.component.ts diff --git a/src/app/components/e-services/e-services.component.html b/src/app/pages/e-services/e-services.component.html similarity index 100% rename from src/app/components/e-services/e-services.component.html rename to src/app/pages/e-services/e-services.component.html diff --git a/src/app/components/e-services/e-services.component.scss b/src/app/pages/e-services/e-services.component.scss similarity index 100% rename from src/app/components/e-services/e-services.component.scss rename to src/app/pages/e-services/e-services.component.scss diff --git a/src/app/components/e-services/e-services.component.spec.ts b/src/app/pages/e-services/e-services.component.spec.ts similarity index 100% rename from src/app/components/e-services/e-services.component.spec.ts rename to src/app/pages/e-services/e-services.component.spec.ts diff --git a/src/app/components/e-services/e-services.component.ts b/src/app/pages/e-services/e-services.component.ts similarity index 100% rename from src/app/components/e-services/e-services.component.ts rename to src/app/pages/e-services/e-services.component.ts diff --git a/src/app/components/login/login.component.html b/src/app/pages/login/login.component.html similarity index 100% rename from src/app/components/login/login.component.html rename to src/app/pages/login/login.component.html diff --git a/src/app/components/login/login.component.scss b/src/app/pages/login/login.component.scss similarity index 100% rename from src/app/components/login/login.component.scss rename to src/app/pages/login/login.component.scss diff --git a/src/app/components/login/login.component.spec.ts b/src/app/pages/login/login.component.spec.ts similarity index 100% rename from src/app/components/login/login.component.spec.ts rename to src/app/pages/login/login.component.spec.ts diff --git a/src/app/components/login/login.component.ts b/src/app/pages/login/login.component.ts similarity index 100% rename from src/app/components/login/login.component.ts rename to src/app/pages/login/login.component.ts diff --git a/src/app/components/register-business/register-business.component.html b/src/app/pages/register-business/register-business.component.html similarity index 100% rename from src/app/components/register-business/register-business.component.html rename to src/app/pages/register-business/register-business.component.html diff --git a/src/app/components/register-business/register-business.component.scss b/src/app/pages/register-business/register-business.component.scss similarity index 100% rename from src/app/components/register-business/register-business.component.scss rename to src/app/pages/register-business/register-business.component.scss diff --git a/src/app/components/register-business/register-business.component.spec.ts b/src/app/pages/register-business/register-business.component.spec.ts similarity index 100% rename from src/app/components/register-business/register-business.component.spec.ts rename to src/app/pages/register-business/register-business.component.spec.ts diff --git a/src/app/components/register-business/register-business.component.ts b/src/app/pages/register-business/register-business.component.ts similarity index 100% rename from src/app/components/register-business/register-business.component.ts rename to src/app/pages/register-business/register-business.component.ts