update angular to v19 (#2)

Co-authored-by: Jan-Marlon Leibl <jleibl@proton.me>
Reviewed-on: #2
This commit is contained in:
Constantin Simonis 2024-12-18 09:04:14 +00:00
parent 05a0b8092a
commit 3595348aee
9 changed files with 40 additions and 13376 deletions

View File

@ -27,6 +27,7 @@
} }
], ],
"styles": [ "styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.css" "src/styles.css"
], ],
"scripts": [] "scripts": []
@ -85,6 +86,7 @@
} }
], ],
"styles": [ "styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.css" "src/styles.css"
], ],
"scripts": [] "scripts": []

BIN
bun.lockb Executable file

Binary file not shown.

13345
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,29 +10,32 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^18.2.0", "@angular/animations": "^19.0.4",
"@angular/common": "^18.2.0", "@angular/cdk": "19.0.3",
"@angular/compiler": "^18.2.0", "@angular/common": "^19.0.4",
"@angular/core": "^18.2.0", "@angular/compiler": "^19.0.4",
"@angular/forms": "^18.2.0", "@angular/core": "^19.0.4",
"@angular/platform-browser": "^18.2.0", "@angular/forms": "^19.0.4",
"@angular/platform-browser-dynamic": "^18.2.0", "@angular/material": "19.0.3",
"@angular/router": "^18.2.0", "@angular/platform-browser": "^19.0.4",
"rxjs": "~7.8.0", "@angular/platform-browser-dynamic": "^19.0.4",
"tslib": "^2.3.0", "@angular/router": "^19.0.4",
"zone.js": "~0.14.10" "rxjs": "~7.8.1",
"tailwind": "4.0.0",
"tslib": "^2.8.1",
"zone.js": "~0.15.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^18.2.2", "@angular-devkit/build-angular": "^19.0.5",
"@angular/cli": "^18.2.2", "@angular/cli": "^19.0.5",
"@angular/compiler-cli": "^18.2.0", "@angular/compiler-cli": "^19.0.4",
"@types/jasmine": "~5.1.0", "@types/jasmine": "~5.1.5",
"jasmine-core": "~5.2.0", "jasmine-core": "~5.2.0",
"karma": "~6.4.0", "karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0", "karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0", "karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0", "karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0", "karma-jasmine-html-reporter": "~2.1.0",
"typescript": "~5.5.2" "typescript": "~5.5.4"
} }
} }

View File

@ -5,7 +5,6 @@ import {EmployeeListComponent} from "./employee-list/employee-list.component";
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
standalone: true,
imports: [CommonModule, EmployeeListComponent], imports: [CommonModule, EmployeeListComponent],
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrl: './app.component.css' styleUrl: './app.component.css'

View File

@ -3,7 +3,8 @@ import { provideRouter } from '@angular/router';
import { routes } from './app.routes'; import { routes } from './app.routes';
import {provideHttpClient, withInterceptorsFromDi} from "@angular/common/http"; import {provideHttpClient, withInterceptorsFromDi} from "@angular/common/http";
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes), provideHttpClient(withInterceptorsFromDi())] providers: [provideRouter(routes), provideHttpClient(withInterceptorsFromDi()), provideAnimationsAsync()]
}; };

View File

@ -6,7 +6,6 @@ import {Employee} from "../Employee";
@Component({ @Component({
selector: 'app-employee-list', selector: 'app-employee-list',
standalone: true,
imports: [CommonModule], imports: [CommonModule],
templateUrl: './employee-list.component.html', templateUrl: './employee-list.component.html',
styleUrl: './employee-list.component.css' styleUrl: './employee-list.component.css'

View File

@ -6,8 +6,10 @@
<base href="/"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head> </head>
<body> <body class="mat-typography">
<app-root></app-root> <app-root></app-root>
</body> </body>
</html> </html>

View File

@ -1 +1,4 @@
/* You can add global styles to this file, and also import other style files */ /* You can add global styles to this file, and also import other style files */
html, body { height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }