chore: update project to Angular 18
This commit is contained in:
parent
e6a8463e1c
commit
d97579b97e
3 changed files with 2849 additions and 1088 deletions
3895
package-lock.json
generated
3895
package-lock.json
generated
File diff suppressed because it is too large
Load diff
24
package.json
24
package.json
|
|
@ -10,15 +10,15 @@
|
|||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^17.2.0",
|
||||
"@angular/common": "^17.2.0",
|
||||
"@angular/compiler": "^17.2.0",
|
||||
"@angular/core": "^17.2.0",
|
||||
"@angular/animations": "^18.2.13",
|
||||
"@angular/common": "^18.2.13",
|
||||
"@angular/compiler": "^18.2.13",
|
||||
"@angular/core": "^18.2.13",
|
||||
"@angular/fire": "^17.0.1",
|
||||
"@angular/forms": "^17.2.0",
|
||||
"@angular/platform-browser": "^17.2.0",
|
||||
"@angular/platform-browser-dynamic": "^17.2.0",
|
||||
"@angular/router": "^17.2.0",
|
||||
"@angular/forms": "^18.2.13",
|
||||
"@angular/platform-browser": "^18.2.13",
|
||||
"@angular/platform-browser-dynamic": "^18.2.13",
|
||||
"@angular/router": "^18.2.13",
|
||||
"@ngx-translate/core": "^15.0.0",
|
||||
"@ngx-translate/http-loader": "^8.0.0",
|
||||
"@sentry/angular": "^8.30.0",
|
||||
|
|
@ -29,9 +29,9 @@
|
|||
"zone.js": "~0.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^17.3.13",
|
||||
"@angular/cli": "^17.2.1",
|
||||
"@angular/compiler-cli": "^17.2.0",
|
||||
"@angular-devkit/build-angular": "^18.2.15",
|
||||
"@angular/cli": "^18.2.15",
|
||||
"@angular/compiler-cli": "^18.2.13",
|
||||
"@types/jasmine": "~5.1.0",
|
||||
"jasmine-core": "~5.1.0",
|
||||
"karma": "~6.4.0",
|
||||
|
|
@ -39,6 +39,6 @@
|
|||
"karma-coverage": "~2.2.0",
|
||||
"karma-jasmine": "~5.1.0",
|
||||
"karma-jasmine-html-reporter": "~2.1.0",
|
||||
"typescript": "~5.3.2"
|
||||
"typescript": "~5.5.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,15 +4,12 @@ import {
|
|||
ErrorHandler,
|
||||
importProvidersFrom,
|
||||
} from '@angular/core';
|
||||
import { withInterceptorsFromDi } from '@angular/common/http';
|
||||
import { provideRouter, Router, withViewTransitions } from '@angular/router';
|
||||
import { routes } from './app.routes';
|
||||
import { initializeApp, provideFirebaseApp } from '@angular/fire/app';
|
||||
import { getFirestore, provideFirestore } from '@angular/fire/firestore';
|
||||
import {
|
||||
HttpClient,
|
||||
HttpClientModule,
|
||||
provideHttpClient,
|
||||
} from '@angular/common/http';
|
||||
import { HttpClient, provideHttpClient } from '@angular/common/http';
|
||||
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
||||
import { IMAGE_CONFIG } from '@angular/common';
|
||||
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
||||
|
|
@ -26,7 +23,6 @@ export function createTranslateLoader(http: HttpClient) {
|
|||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
importProvidersFrom(
|
||||
HttpClientModule,
|
||||
TranslateModule.forRoot({
|
||||
defaultLanguage: 'en',
|
||||
loader: {
|
||||
|
|
@ -36,12 +32,10 @@ export const appConfig: ApplicationConfig = {
|
|||
},
|
||||
})
|
||||
),
|
||||
provideHttpClient(),
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideRouter(routes, withViewTransitions()),
|
||||
importProvidersFrom(
|
||||
provideFirebaseApp(() => initializeApp(firebaseConfig))
|
||||
),
|
||||
importProvidersFrom(provideFirestore(() => getFirestore())),
|
||||
provideFirebaseApp(() => initializeApp(firebaseConfig)),
|
||||
provideFirestore(() => getFirestore()),
|
||||
{
|
||||
provide: IMAGE_CONFIG,
|
||||
useValue: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue