mirror of
https://github.com/jwetzell/itsfiveoclockwhere.git
synced 2026-08-17 21:13:58 +00:00
update to angular 21
This commit is contained in:
Generated
+2052
-2355
File diff suppressed because it is too large
Load Diff
+10
-10
@@ -9,24 +9,24 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "20.3.4",
|
"@angular/animations": "21.2.0",
|
||||||
"@angular/common": "20.3.4",
|
"@angular/common": "21.2.0",
|
||||||
"@angular/compiler": "20.3.4",
|
"@angular/compiler": "21.2.0",
|
||||||
"@angular/core": "20.3.4",
|
"@angular/core": "21.2.0",
|
||||||
"@angular/platform-browser": "20.3.4",
|
"@angular/platform-browser": "21.2.0",
|
||||||
"@angular/platform-browser-dynamic": "20.3.4",
|
"@angular/platform-browser-dynamic": "21.2.0",
|
||||||
"luxon": "3.7.2",
|
"luxon": "3.7.2",
|
||||||
"rxjs": "7.8.2",
|
"rxjs": "7.8.2",
|
||||||
"tslib": "2.8.1",
|
"tslib": "2.8.1",
|
||||||
"zone.js": "0.15.1"
|
"zone.js": "0.15.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "20.3.5",
|
"@angular/build": "^21.2.0",
|
||||||
"@angular/cli": "20.3.5",
|
"@angular/cli": "21.2.0",
|
||||||
"@angular/compiler-cli": "20.3.4",
|
"@angular/compiler-cli": "21.2.0",
|
||||||
"@types/luxon": "3.7.1",
|
"@types/luxon": "3.7.1",
|
||||||
"@types/node": "22.16.5",
|
"@types/node": "22.16.5",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
"typescript": "5.9.3"
|
"typescript": "5.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
<app-timezone-list
|
@if (fiveOclocks) {
|
||||||
*ngIf="fiveOclocks"
|
<app-timezone-list [timezones]="fiveOclocks" [closest]="fiveOclock" [showAll]="showAll" (click)="toggleView()">
|
||||||
[timezones]="fiveOclocks"
|
</app-timezone-list>
|
||||||
[closest]="fiveOclock"
|
}
|
||||||
[showAll]="showAll"
|
|
||||||
(click)="toggleView()">
|
|
||||||
</app-timezone-list>
|
|
||||||
|
|||||||
@@ -3,19 +3,19 @@
|
|||||||
[@displayState]="state"
|
[@displayState]="state"
|
||||||
(@displayState.start)="animationEvent($event)"
|
(@displayState.start)="animationEvent($event)"
|
||||||
(@displayState.done)="animationEvent($event)">
|
(@displayState.done)="animationEvent($event)">
|
||||||
<ng-container *ngIf="showAllItems; else single">
|
@if (showAllItems) {
|
||||||
<div
|
@for (timezone of timezones; track timezone) {
|
||||||
*ngFor="let timezone of timezones"
|
<div class="container" [ngStyle]="{ height: timezones.length == 1 ? '100%' : 'auto' }">
|
||||||
class="container"
|
<h1 class="timezone">{{ timezone.name.replace('_', ' ') }}</h1>
|
||||||
[ngStyle]="{ height: timezones.length == 1 ? '100%' : 'auto' }">
|
<h2 class="time">{{ timezone.time?.toFormat('tt') }}</h2>
|
||||||
<h1 class="timezone">{{ timezone.name.replace('_', ' ') }}</h1>
|
</div>
|
||||||
<h2 class="time">{{ timezone.time?.toFormat('tt') }}</h2>
|
}
|
||||||
</div>
|
} @else {
|
||||||
</ng-container>
|
@if (closest) {
|
||||||
<ng-template #single>
|
<div class="single-container">
|
||||||
<div *ngIf="closest" class="single-container">
|
<h1 class="timezone">{{ closest.name.replace('_', ' ') }}</h1>
|
||||||
<h1 class="timezone">{{ closest.name.replace('_', ' ') }}</h1>
|
<h2 class="time">{{ closest.time?.toFormat('tt') }}</h2>
|
||||||
<h2 class="time">{{ closest.time?.toFormat('tt') }}</h2>
|
</div>
|
||||||
</div>
|
}
|
||||||
</ng-template>
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
import { enableProdMode } from '@angular/core';
|
import { enableProdMode, provideZoneChangeDetection } from '@angular/core';
|
||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
import { AppModule } from './app/app.module';
|
import { AppModule } from './app/app.module';
|
||||||
@@ -9,5 +9,5 @@ if (environment.production) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic()
|
platformBrowserDynamic()
|
||||||
.bootstrapModule(AppModule)
|
.bootstrapModule(AppModule, { applicationProviders: [provideZoneChangeDetection()] })
|
||||||
.catch((err) => console.error(err));
|
.catch((err) => console.error(err));
|
||||||
|
|||||||
@@ -18,10 +18,6 @@
|
|||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"lib": [
|
|
||||||
"es2020",
|
|
||||||
"dom"
|
|
||||||
],
|
|
||||||
"useDefineForClassFields": false
|
"useDefineForClassFields": false
|
||||||
},
|
},
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
|
|||||||
Reference in New Issue
Block a user