diff --git a/apps/client-asset-sg/project.json b/apps/client-asset-sg/project.json
index 1ce5ea48..acc6be8d 100644
--- a/apps/client-asset-sg/project.json
+++ b/apps/client-asset-sg/project.json
@@ -43,14 +43,6 @@
}
]
},
- "int": {
- "fileReplacements": [
- {
- "replace": "apps/client-asset-sg/src/environments/environment.ts",
- "with": "apps/client-asset-sg/src/environments/environment.int.ts"
- }
- ]
- },
"development": {
"buildOptimizer": false,
"optimization": false,
@@ -68,9 +60,6 @@
"production": {
"buildTarget": "client-asset-sg:build:production"
},
- "int": {
- "buildTarget": "client-asset-sg:build:int"
- },
"development": {
"buildTarget": "client-asset-sg:build:development"
}
diff --git a/apps/client-asset-sg/src/app/app.component.ts b/apps/client-asset-sg/src/app/app.component.ts
index 0b1ac07a..d8498673 100644
--- a/apps/client-asset-sg/src/app/app.component.ts
+++ b/apps/client-asset-sg/src/app/app.component.ts
@@ -1,12 +1,13 @@
import { HttpClient } from '@angular/common/http';
import { Component, inject } from '@angular/core';
-import { AuthService, AuthState, ErrorService } from '@asset-sg/auth';
import { AppPortalService, appSharedStateActions, setCssCustomProperties } from '@asset-sg/client-shared';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
import { Store } from '@ngrx/store';
import { WINDOW } from 'ngx-window-token';
import { debounceTime, fromEvent, startWith, switchMap } from 'rxjs';
import { assert } from 'tsafe';
+import { AuthService, AuthState } from './features/auth/auth.service';
+import { ErrorService } from './features/auth/error.service';
import { AppState } from './state/app-state';
const fullHdWidth = 1920;
diff --git a/apps/client-asset-sg/src/app/app.module.ts b/apps/client-asset-sg/src/app/app.module.ts
index 87ca5cd0..2c9b146a 100644
--- a/apps/client-asset-sg/src/app/app.module.ts
+++ b/apps/client-asset-sg/src/app/app.module.ts
@@ -5,6 +5,8 @@ import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import locale_deCH from '@angular/common/locales/de-CH';
import { inject, NgModule } from '@angular/core';
import { MatButton } from '@angular/material/button';
+import { MatDialogActions, MatDialogContent } from '@angular/material/dialog';
+import { MatDivider } from '@angular/material/divider';
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
@@ -12,7 +14,6 @@ import { MatTooltip } from '@angular/material/tooltip';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule } from '@angular/router';
-import { AuthInterceptor, AuthModule, ErrorService } from '@asset-sg/auth';
import {
AdminOnlyDirective,
AlertModule,
@@ -23,6 +24,7 @@ import {
CURRENT_LANG,
currentLangFactory,
icons,
+ LanguageSelectorComponent,
TranslateTsLoader,
} from '@asset-sg/client-shared';
import { storeLogger } from '@asset-sg/core';
@@ -34,15 +36,18 @@ import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-transla
import { ForModule } from '@rx-angular/template/for';
import { LetModule } from '@rx-angular/template/let';
import { PushModule } from '@rx-angular/template/push';
-
import { environment } from '../environments/environment';
import { adminGuard } from './app-guards';
import { AppComponent } from './app.component';
import { AppBarComponent, MenuBarComponent, NotFoundComponent, RedirectToLangComponent } from './components';
+import { DisclaimerDialogComponent } from './components/disclaimer-dialog/disclaimer-dialog.component';
import { MenuBarItemComponent } from './components/menu-bar-item/menu-bar-item.component';
import { SplashScreenComponent } from './components/splash-screen/splash-screen.component';
+import { AuthModule } from './features/auth/auth.module';
+import { ErrorService } from './features/auth/error.service';
import { appTranslations } from './i18n';
+import { HttpInterceptor } from './services/http.interceptor';
import { AppSharedStateEffects } from './state';
import { appSharedStateReducer } from './state/app-shared.reducer';
@@ -57,10 +62,12 @@ registerLocaleData(locale_deCH, 'de-CH');
MenuBarComponent,
MenuBarItemComponent,
SplashScreenComponent,
+ DisclaimerDialogComponent,
],
imports: [
CommonModule,
BrowserModule,
+ AuthModule,
BrowserAnimationsModule,
HttpClientModule,
RouterModule.forRoot([
@@ -120,11 +127,15 @@ registerLocaleData(locale_deCH, 'de-CH');
MatButton,
MatMenuTrigger,
MatMenu,
+ LanguageSelectorComponent,
+ MatDivider,
+ MatDialogContent,
+ MatDialogActions,
],
providers: [
provideSvgIcons(icons),
ErrorService,
- { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
+ { provide: HTTP_INTERCEPTORS, useClass: HttpInterceptor, multi: true },
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'fill', floatLabel: 'auto' } },
{ provide: CURRENT_LANG, useFactory: currentLangFactory },
],
diff --git a/apps/client-asset-sg/src/app/components/app-bar/app-bar.component.html b/apps/client-asset-sg/src/app/components/app-bar/app-bar.component.html
index f835fe89..53eb8a91 100644
--- a/apps/client-asset-sg/src/app/components/app-bar/app-bar.component.html
+++ b/apps/client-asset-sg/src/app/components/app-bar/app-bar.component.html
@@ -5,31 +5,7 @@
{{ version }}
-
-
-
- @for (language of languages; track language.lang) {
-
-
-
-
-
- {{ language.lang }}
-
-
- }
-
-
+