From 4bb6886d28cc5333bbe1523674bf5db141af456f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 Apr 2018 16:16:05 +0200 Subject: [PATCH] Rename account module to my-account --- .../account-change-password/index.ts | 1 - .../account-settings/account-details/index.ts | 1 - client/src/app/account/account.component.html | 11 ------- client/src/app/account/account.component.scss | 0 client/src/app/account/account.component.ts | 8 ----- client/src/app/account/account.module.ts | 30 ------------------- client/src/app/account/index.ts | 3 -- client/src/app/app.module.ts | 4 +-- client/src/app/menu/menu.component.html | 4 +-- client/src/app/my-account/index.ts | 3 ++ .../my-account-routing.module.ts} | 22 +++++++------- .../my-account-change-password/index.ts | 1 + ...my-account-change-password.component.html} | 0 ...my-account-change-password.component.scss} | 0 .../my-account-change-password.component.ts} | 6 ++-- .../my-account-details/index.ts | 1 + .../my-account-details.component.html} | 0 .../my-account-details.component.scss} | 0 .../my-account-details.component.ts} | 7 ++--- .../my-account-settings.component.html} | 0 .../my-account-settings.component.scss} | 0 .../my-account-settings.component.ts} | 6 ++-- .../my-account-videos.component.html} | 0 .../my-account-videos.component.scss} | 0 .../my-account-videos.component.ts} | 8 ++--- .../app/my-account/my-account.component.html | 11 +++++++ .../app/my-account/my-account.component.ts | 7 +++++ .../src/app/my-account/my-account.module.ts | 30 +++++++++++++++++++ 28 files changed, 80 insertions(+), 84 deletions(-) delete mode 100644 client/src/app/account/account-settings/account-change-password/index.ts delete mode 100644 client/src/app/account/account-settings/account-details/index.ts delete mode 100644 client/src/app/account/account.component.html delete mode 100644 client/src/app/account/account.component.scss delete mode 100644 client/src/app/account/account.component.ts delete mode 100644 client/src/app/account/account.module.ts delete mode 100644 client/src/app/account/index.ts create mode 100644 client/src/app/my-account/index.ts rename client/src/app/{account/account-routing.module.ts => my-account/my-account-routing.module.ts} (52%) create mode 100644 client/src/app/my-account/my-account-settings/my-account-change-password/index.ts rename client/src/app/{account/account-settings/account-change-password/account-change-password.component.html => my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html} (100%) rename client/src/app/{account/account-settings/account-change-password/account-change-password.component.scss => my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss} (100%) rename client/src/app/{account/account-settings/account-change-password/account-change-password.component.ts => my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts} (87%) create mode 100644 client/src/app/my-account/my-account-settings/my-account-details/index.ts rename client/src/app/{account/account-settings/account-details/account-details.component.html => my-account/my-account-settings/my-account-details/my-account-details.component.html} (100%) rename client/src/app/{account/account-settings/account-details/account-details.component.scss => my-account/my-account-settings/my-account-details/my-account-details.component.scss} (100%) rename client/src/app/{account/account-settings/account-details/account-details.component.ts => my-account/my-account-settings/my-account-details/my-account-details.component.ts} (88%) rename client/src/app/{account/account-settings/account-settings.component.html => my-account/my-account-settings/my-account-settings.component.html} (100%) rename client/src/app/{account/account-settings/account-settings.component.scss => my-account/my-account-settings/my-account-settings.component.scss} (100%) rename client/src/app/{account/account-settings/account-settings.component.ts => my-account/my-account-settings/my-account-settings.component.ts} (91%) rename client/src/app/{account/account-videos/account-videos.component.html => my-account/my-account-videos/my-account-videos.component.html} (100%) rename client/src/app/{account/account-videos/account-videos.component.scss => my-account/my-account-videos/my-account-videos.component.scss} (100%) rename client/src/app/{account/account-videos/account-videos.component.ts => my-account/my-account-videos/my-account-videos.component.ts} (94%) create mode 100644 client/src/app/my-account/my-account.component.html create mode 100644 client/src/app/my-account/my-account.component.ts create mode 100644 client/src/app/my-account/my-account.module.ts diff --git a/client/src/app/account/account-settings/account-change-password/index.ts b/client/src/app/account/account-settings/account-change-password/index.ts deleted file mode 100644 index 44c330b66..000000000 --- a/client/src/app/account/account-settings/account-change-password/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './account-change-password.component' diff --git a/client/src/app/account/account-settings/account-details/index.ts b/client/src/app/account/account-settings/account-details/index.ts deleted file mode 100644 index 4829f608a..000000000 --- a/client/src/app/account/account-settings/account-details/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './account-details.component' diff --git a/client/src/app/account/account.component.html b/client/src/app/account/account.component.html deleted file mode 100644 index d82a4ca4d..000000000 --- a/client/src/app/account/account.component.html +++ /dev/null @@ -1,11 +0,0 @@ -
- - -
- -
-
diff --git a/client/src/app/account/account.component.scss b/client/src/app/account/account.component.scss deleted file mode 100644 index e69de29bb..000000000 diff --git a/client/src/app/account/account.component.ts b/client/src/app/account/account.component.ts deleted file mode 100644 index 3d3677ab0..000000000 --- a/client/src/app/account/account.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core' - -@Component({ - selector: 'my-account', - templateUrl: './account.component.html', - styleUrls: [ './account.component.scss' ] -}) -export class AccountComponent {} diff --git a/client/src/app/account/account.module.ts b/client/src/app/account/account.module.ts deleted file mode 100644 index 2299c1919..000000000 --- a/client/src/app/account/account.module.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { NgModule } from '@angular/core' -import { SharedModule } from '../shared' -import { AccountRoutingModule } from './account-routing.module' -import { AccountChangePasswordComponent } from './account-settings/account-change-password/account-change-password.component' -import { AccountDetailsComponent } from './account-settings/account-details/account-details.component' -import { AccountSettingsComponent } from './account-settings/account-settings.component' -import { AccountComponent } from './account.component' -import { AccountVideosComponent } from './account-videos/account-videos.component' - -@NgModule({ - imports: [ - AccountRoutingModule, - SharedModule - ], - - declarations: [ - AccountComponent, - AccountSettingsComponent, - AccountChangePasswordComponent, - AccountDetailsComponent, - AccountVideosComponent - ], - - exports: [ - AccountComponent - ], - - providers: [] -}) -export class AccountModule { } diff --git a/client/src/app/account/index.ts b/client/src/app/account/index.ts deleted file mode 100644 index dc56ffdbd..000000000 --- a/client/src/app/account/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './account-routing.module' -export * from './account.component' -export * from './account.module' diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 77d68a4ec..c22632fb8 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -6,7 +6,7 @@ import { ResetPasswordModule } from '@app/reset-password' import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' -import { AccountModule } from './account' +import { MyAccountModule } from './my-account' import { AppRoutingModule } from './app-routing.module' import { AppComponent } from './app.component' @@ -46,7 +46,7 @@ export function metaFactory (serverService: ServerService): MetaLoader { AppRoutingModule, - AccountModule, + MyAccountModule, CoreModule, LoginModule, ResetPasswordModule, diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index d827a4dd4..832cd9e78 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -5,7 +5,7 @@
- {{ user.username }} + {{ user.username }}
{{ user.email }}
@@ -14,7 +14,7 @@