chore: updates angular to v18
This commit is contained in:
19
angular.json
19
angular.json
@@ -11,12 +11,15 @@
|
|||||||
"prefix": "app",
|
"prefix": "app",
|
||||||
"architect": {
|
"architect": {
|
||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
"builder": "@angular-devkit/build-angular:application",
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "dist/frontend-hideyoshi.com",
|
"outputPath": {
|
||||||
|
"base": "dist/frontend-hideyoshi.com"
|
||||||
|
},
|
||||||
"index": "src/index.html",
|
"index": "src/index.html",
|
||||||
"main": "src/main.ts",
|
"polyfills": [
|
||||||
"polyfills": "src/polyfills.ts",
|
"src/polyfills.ts"
|
||||||
|
],
|
||||||
"tsConfig": "tsconfig.app.json",
|
"tsConfig": "tsconfig.app.json",
|
||||||
"allowedCommonJsDependencies": [
|
"allowedCommonJsDependencies": [
|
||||||
"ts-interface-checker",
|
"ts-interface-checker",
|
||||||
@@ -39,8 +42,8 @@
|
|||||||
"node_modules/bootstrap/dist/js/bootstrap.bundle.js",
|
"node_modules/bootstrap/dist/js/bootstrap.bundle.js",
|
||||||
"node_modules/cookieconsent/build/cookieconsent.min.js"
|
"node_modules/cookieconsent/build/cookieconsent.min.js"
|
||||||
],
|
],
|
||||||
"serviceWorker": true,
|
"serviceWorker": "ngsw-config.json",
|
||||||
"ngswConfigPath": "ngsw-config.json"
|
"browser": "src/main.ts"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
@@ -66,9 +69,7 @@
|
|||||||
"serviceWorker": true
|
"serviceWorker": true
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"buildOptimizer": false,
|
"optimization": false,
|
||||||
"optimization": false,
|
|
||||||
"vendorChunk": true,
|
|
||||||
"extractLicenses": false,
|
"extractLicenses": false,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"namedChunks": true
|
"namedChunks": true
|
||||||
|
|||||||
3786
package-lock.json
generated
3786
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@@ -16,17 +16,17 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^17.3.12",
|
"@angular/animations": "^18.2.14",
|
||||||
"@angular/cdk": "^16.2.1",
|
"@angular/cdk": "^16.2.1",
|
||||||
"@angular/common": "^17.3.12",
|
"@angular/common": "^18.2.14",
|
||||||
"@angular/compiler": "^17.3.12",
|
"@angular/compiler": "^18.2.14",
|
||||||
"@angular/core": "^17.3.12",
|
"@angular/core": "^18.2.14",
|
||||||
"@angular/forms": "^17.3.12",
|
"@angular/forms": "^18.2.14",
|
||||||
"@angular/material": "^16.2.1",
|
"@angular/material": "^16.2.1",
|
||||||
"@angular/platform-browser": "^17.3.12",
|
"@angular/platform-browser": "^18.2.14",
|
||||||
"@angular/platform-browser-dynamic": "^17.3.12",
|
"@angular/platform-browser-dynamic": "^18.2.14",
|
||||||
"@angular/router": "^17.3.12",
|
"@angular/router": "^18.2.14",
|
||||||
"@angular/service-worker": "^17.3.12",
|
"@angular/service-worker": "^18.2.14",
|
||||||
"@fortawesome/angular-fontawesome": "^0.13.0",
|
"@fortawesome/angular-fontawesome": "^0.13.0",
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
"@fortawesome/fontawesome-svg-core": "^6.1.1",
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.1.1",
|
"@fortawesome/free-brands-svg-icons": "^6.1.1",
|
||||||
@@ -52,14 +52,14 @@
|
|||||||
"zone.js": "~0.14.10"
|
"zone.js": "~0.14.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^17.3.17",
|
"@angular-devkit/build-angular": "^18.2.21",
|
||||||
"@angular-eslint/builder": "^16.1.1",
|
"@angular-eslint/builder": "^16.1.1",
|
||||||
"@angular-eslint/eslint-plugin": "16.1.1",
|
"@angular-eslint/eslint-plugin": "16.1.1",
|
||||||
"@angular-eslint/eslint-plugin-template": "16.1.1",
|
"@angular-eslint/eslint-plugin-template": "16.1.1",
|
||||||
"@angular-eslint/schematics": "^20.5.0",
|
"@angular-eslint/schematics": "^20.5.0",
|
||||||
"@angular-eslint/template-parser": "16.1.1",
|
"@angular-eslint/template-parser": "16.1.1",
|
||||||
"@angular/cli": "^17.3.17",
|
"@angular/cli": "^18.2.21",
|
||||||
"@angular/compiler-cli": "^17.3.12",
|
"@angular/compiler-cli": "^18.2.14",
|
||||||
"@types/jasmine": "~4.0.0",
|
"@types/jasmine": "~4.0.0",
|
||||||
"@types/node": "^18.11.19",
|
"@types/node": "^18.11.19",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
|
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {first, map, Observable, of, Subject,} from 'rxjs';
|
import {first, map, Observable, of, Subject,} from 'rxjs';
|
||||||
import {catchError} from 'rxjs/operators';
|
import {catchError} from 'rxjs/operators';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {Language, Project} from "../model/project/project.model";
|
import {Language, Project} from "../model/project/project.model";
|
||||||
import {HttpClient} from "@angular/common/http";
|
import { HttpClient } from "@angular/common/http";
|
||||||
import {map, Observable, switchMap, tap} from 'rxjs';
|
import {map, Observable, switchMap, tap} from 'rxjs';
|
||||||
import {environment} from 'src/environments/environment';
|
import {environment} from 'src/environments/environment';
|
||||||
|
|
||||||
|
|||||||
@@ -3,24 +3,18 @@ import {CommonModule} from '@angular/common';
|
|||||||
import {ClickedOutsideDirective} from './directive/clicked-outside/clicked-outside.directive';
|
import {ClickedOutsideDirective} from './directive/clicked-outside/clicked-outside.directive';
|
||||||
import {SliderItemComponent} from './components/slider-item/slider-item.component';
|
import {SliderItemComponent} from './components/slider-item/slider-item.component';
|
||||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||||
import {HttpClientModule} from '@angular/common/http';
|
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
||||||
import {PopupComponent} from './components/popup/popup.component';
|
import {PopupComponent} from './components/popup/popup.component';
|
||||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||||
import {CookieConsentModule} from './cookie-consent/cookie-consent.module';
|
import {CookieConsentModule} from './cookie-consent/cookie-consent.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({ declarations: [
|
||||||
declarations: [
|
|
||||||
ClickedOutsideDirective,
|
ClickedOutsideDirective,
|
||||||
SliderItemComponent,
|
SliderItemComponent,
|
||||||
PopupComponent,
|
PopupComponent,
|
||||||
],
|
],
|
||||||
imports: [
|
exports: [ClickedOutsideDirective, SliderItemComponent, PopupComponent], imports: [CommonModule,
|
||||||
CommonModule,
|
|
||||||
HttpClientModule,
|
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
CookieConsentModule,
|
CookieConsentModule], providers: [provideHttpClient(withInterceptorsFromDi())] })
|
||||||
],
|
|
||||||
exports: [ClickedOutsideDirective, SliderItemComponent, PopupComponent],
|
|
||||||
})
|
|
||||||
export class SharedModule {}
|
export class SharedModule {}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"outDir": "./dist/out-tsc",
|
"outDir": "./dist/out-tsc",
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"noPropertyAccessFromIndexSignature": true,
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
@@ -12,7 +13,6 @@
|
|||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"downlevelIteration": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user