Upgrade Angular and fix

This commit is contained in:
2023-04-14 12:48:22 +02:00
parent 9b914b211d
commit 4f42243f20
8 changed files with 40 additions and 51 deletions

View File

@@ -148,7 +148,8 @@ export function initConfig(configService: ConfigurationHelper) {
imports: [
RouterModule.forRoot(
appRoutes,
{ enableTracing: !environment.production, relativeLinkResolution: 'legacy' } // <-- debugging purposes only
{ enableTracing: !environment.production } // <-- debugging purposes only
// { enableTracing: !environment.production, relativeLinkResolution: 'legacy' } // <-- debugging purposes only
),
TranslateModule.forRoot({
loader: {

View File

@@ -6,7 +6,7 @@ import { trigger,state, style } from '@angular/animations';
import { ImageService } from '../../services/image.service';
import { ServiceComm } from '../../services/service-comm.service';
import { ImageResp } from '../../models/Image';
import { ImageResp } from '../../models/image';
import { AddAction } from '../../models/add-action.enum';
@Component({

View File

@@ -3,8 +3,8 @@
* https://materialtheme.arcsine.dev
*/
@use '~@angular/material' as mat;
@import '~@angular/material/theming';
@use '@angular/material' as mat;
@import '@angular/material/theming';
// Include the common styles for Angular Material. We include this here so that you only
// have to load a single css file for Angular Material in your app.
@@ -30,6 +30,10 @@ $fontConfig: (
input: mat.define-typography-level(inherit, 1.125, 400, 'Roboto', 1.5px)
);
// Compute font config
@include mat.core();
// Foreground Elements
// Light Theme Text
@@ -144,9 +148,6 @@ mat.$dark-theme-background-palette: (
disabled-list-option: $dark-bg-lighter-10,
);
// Compute font config
@include mat.core($fontConfig);
// Theme Config
body {

View File

@@ -3,8 +3,8 @@
* https://materialtheme.arcsine.dev
*/
@use '~@angular/material' as mat;
@import '~@angular/material/theming';
@use '@angular/material' as mat;
@import '@angular/material/theming';
// Include the common styles for Angular Material. We include this here so that you only
// have to load a single css file for Angular Material in your app.

View File

@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { ImageResp, ImageReq } from '../models/Image';
import { ImageResp, ImageReq } from '../models/image';
import { BaseService } from './base.service';

View File

@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { CacheApiKey } from '../models/cache-api-key.enum';
import { of } from 'rxjs';