mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43:03 -05:00
feat: migrate to nx 19 and angular 18
This commit is contained in:
@@ -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()],
|
||||
};
|
||||
|
||||
@@ -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(),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -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()],
|
||||
};
|
||||
|
||||
@@ -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(),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -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(),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user