From 1f99cfb53c6336d755c2f492bc704d24c48c0c5e Mon Sep 17 00:00:00 2001 From: Flo Date: Sun, 1 Sep 2024 20:13:57 +0000 Subject: [PATCH] changes --- src/app/app.component.ts | 8 +- src/app/core/auth/auth.module.ts | 2 + .../confirm-registration.component.html | 41 ++----- .../confirm-registration.component.ts | 2 + .../forgot-password.component.html | 26 +---- .../components/login/login.component.html | 53 +++------ .../registration/registration.component.html | 49 +++----- .../reset-password.component.html | 41 ++----- .../navigation/navigation.component.html | 42 +++++-- .../navigation/navigation.component.ts | 24 ++-- .../notification-bar.component.html | 2 +- .../settings/settings.component.html | 56 ++++----- .../components/settings/settings.component.ts | 12 +- .../tab-profile/tab-profile.component.html | 2 + .../tabs/tab-profile/tab-profile.component.ts | 87 +++++++++++++- .../tab-security/tab-security.component.html | 110 ++++++------------ .../tab-security/tab-security.component.ts | 8 ++ .../components/input/input.component.html | 27 +++++ .../components/input/input.component.scss | 0 .../components/input/input.component.ts | 21 ++++ .../components/submit/submit.component.html | 8 ++ .../components/submit/submit.component.scss | 0 .../components/submit/submit.component.ts | 34 ++++++ .../tab-control/tab-control.component.html | 28 +++++ .../tab-control/tab-control.component.scss | 0 .../tab-control/tab-control.component.ts | 16 +++ .../components/table/table.component.html | 62 +++++----- .../components/table/table.component.ts | 34 +++++- src/app/shared/models/tab-item.model.ts | 4 +- src/app/shared/shared.module.ts | 32 ++++- src/assets/i18n/de.json | 10 +- src/assets/i18n/en.json | 8 ++ src/styles.scss | 37 ++++-- tailwind.config.js | 10 +- 34 files changed, 551 insertions(+), 345 deletions(-) create mode 100644 src/app/shared/components/input/input.component.html create mode 100644 src/app/shared/components/input/input.component.scss create mode 100644 src/app/shared/components/input/input.component.ts create mode 100644 src/app/shared/components/submit/submit.component.html create mode 100644 src/app/shared/components/submit/submit.component.scss create mode 100644 src/app/shared/components/submit/submit.component.ts create mode 100644 src/app/shared/components/tab-control/tab-control.component.html create mode 100644 src/app/shared/components/tab-control/tab-control.component.scss create mode 100644 src/app/shared/components/tab-control/tab-control.component.ts diff --git a/src/app/app.component.ts b/src/app/app.component.ts index fbd6b2a..cbc489e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -15,8 +15,12 @@ export class AppComponent implements OnInit { ) { var language = navigator.language; - translate.setDefaultLang(language); - translate.use(language); + this.translate.setDefaultLang(language); + this.translate.use(language); + + this.translate.onLangChange.subscribe(() => { + document.title = this.translate.instant("title"); + }); } ngOnInit(): void { diff --git a/src/app/core/auth/auth.module.ts b/src/app/core/auth/auth.module.ts index 507dce8..9a4e968 100644 --- a/src/app/core/auth/auth.module.ts +++ b/src/app/core/auth/auth.module.ts @@ -8,6 +8,7 @@ import { ReactiveFormsModule } from "@angular/forms"; import { ForgotPasswordComponent } from "./components/forgot-password/forgot-password.component"; import { ResetPasswordComponent } from "./components/reset-password/reset-password.component"; import { TranslateModule } from "@ngx-translate/core"; +import { SharedModule } from "src/app/shared/shared.module"; const routes: Routes = [ { path: "login", component: LoginComponent }, @@ -44,6 +45,7 @@ const routes: Routes = [ CommonModule, ReactiveFormsModule, TranslateModule, + SharedModule, ], }) export class AuthModule {} diff --git a/src/app/core/auth/components/confirm-registration/confirm-registration.component.html b/src/app/core/auth/components/confirm-registration/confirm-registration.component.html index 72da839..2d7702d 100644 --- a/src/app/core/auth/components/confirm-registration/confirm-registration.component.html +++ b/src/app/core/auth/components/confirm-registration/confirm-registration.component.html @@ -11,39 +11,20 @@
- -
- -
- + diff --git a/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts b/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts index d15379f..a8d4860 100644 --- a/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts +++ b/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts @@ -40,5 +40,7 @@ export class ConfirmRegistrationComponent { passwordConfirmation: this.confirmRegistrationForm.value.passwordConfirmation!, }); + + this.router.navigateByUrl("/auth/login"); } } diff --git a/src/app/core/auth/components/forgot-password/forgot-password.component.html b/src/app/core/auth/components/forgot-password/forgot-password.component.html index f188e68..f313f67 100644 --- a/src/app/core/auth/components/forgot-password/forgot-password.component.html +++ b/src/app/core/auth/components/forgot-password/forgot-password.component.html @@ -11,26 +11,12 @@
- -
- + diff --git a/src/app/core/auth/components/login/login.component.html b/src/app/core/auth/components/login/login.component.html index e8d37b0..34d454c 100644 --- a/src/app/core/auth/components/login/login.component.html +++ b/src/app/core/auth/components/login/login.component.html @@ -11,23 +11,13 @@
- - -

+

{{ "auth.not-yet-registered" | translate }}

- + + diff --git a/src/app/core/auth/components/registration/registration.component.html b/src/app/core/auth/components/registration/registration.component.html index 15fa994..838630b 100644 --- a/src/app/core/auth/components/registration/registration.component.html +++ b/src/app/core/auth/components/registration/registration.component.html @@ -11,34 +11,12 @@
- - -
-
- -

- +
+ +
+ diff --git a/src/app/core/auth/components/reset-password/reset-password.component.html b/src/app/core/auth/components/reset-password/reset-password.component.html index ec0160b..8fe0abe 100644 --- a/src/app/core/auth/components/reset-password/reset-password.component.html +++ b/src/app/core/auth/components/reset-password/reset-password.component.html @@ -11,39 +11,20 @@
- -
- -
- + diff --git a/src/app/core/components/navigation/navigation.component.html b/src/app/core/components/navigation/navigation.component.html index 7296a90..67b7bfc 100644 --- a/src/app/core/components/navigation/navigation.component.html +++ b/src/app/core/components/navigation/navigation.component.html @@ -21,18 +21,27 @@ -
- Beekeeper Logo - {{ "title" | translate }} + {{ "title" | translate }} + + + {{ + "title" | translate + }} - -
-