feat: migrate to nx 19 and angular 18

This commit is contained in:
thomas
2024-05-26 21:35:28 +02:00
parent 7cc1d2d61c
commit f0abc3ec46
10 changed files with 4375 additions and 2886 deletions

View File

@@ -1,5 +1,6 @@
import { HttpClientModule } from '@angular/common/http';
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideHttpClient } from '@angular/common/http';
import { ApplicationConfig } from '@angular/core';
export const appConfig: ApplicationConfig = {
providers: [importProvidersFrom(HttpClientModule)],
providers: [provideHttpClient()],
};

View File

@@ -4,19 +4,19 @@
@include mat.core();
$theme-primary: mat.define-palette(mat.$indigo-palette);
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
$theme-warn: mat.define-palette(mat.$red-palette);
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
$theme: mat.define-light-theme(
$theme: mat.m2-define-light-theme(
(
color: (
primary: $theme-primary,
accent: $theme-accent,
warn: $theme-warn,
),
typography: mat.define-typography-config(),
typography: mat.m2-define-typography-config(),
)
);

View File

@@ -1,6 +1,6 @@
import { HttpClientModule } from '@angular/common/http';
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideHttpClient } from '@angular/common/http';
import { ApplicationConfig } from '@angular/core';
export const appConfig: ApplicationConfig = {
providers: [importProvidersFrom(HttpClientModule)],
providers: [provideHttpClient()],
};

View File

@@ -8,19 +8,19 @@
@include mat.core();
$theme-primary: mat.define-palette(mat.$indigo-palette);
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
$theme-warn: mat.define-palette(mat.$red-palette);
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
$theme: mat.define-light-theme(
$theme: mat.m2-define-light-theme(
(
color: (
primary: $theme-primary,
accent: $theme-accent,
warn: $theme-warn,
),
typography: mat.define-typography-config(),
typography: mat.m2-define-typography-config(),
)
);

View File

@@ -9,19 +9,19 @@
@include mat.core();
$theme-primary: mat.define-palette(mat.$indigo-palette);
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
$theme-warn: mat.define-palette(mat.$red-palette);
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
$theme: mat.define-light-theme(
$theme: mat.m2-define-light-theme(
(
color: (
primary: $theme-primary,
accent: $theme-accent,
warn: $theme-warn,
),
typography: mat.define-typography-config(),
typography: mat.m2-define-typography-config(),
)
);