mirror of
https://github.com/jwetzell/itsfiveoclockwhere.git
synced 2026-08-25 00:39:00 +00:00
Compare commits
11 Commits
32f2f90e66
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| f38af9c8e3 | |||
| 4e9c7f2697 | |||
| 959c465a26 | |||
| 558353465c | |||
| 2181bddb9d | |||
| acd4e490fe | |||
| 94b1e3024c | |||
| bfa408d280 | |||
| d30603b11d | |||
| 02c44549ae | |||
| 2bb71b79be |
Generated
+1444
-1432
File diff suppressed because it is too large
Load Diff
+13
-13
@@ -9,24 +9,24 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "21.2.6",
|
"@angular/animations": "22.0.1",
|
||||||
"@angular/common": "21.2.6",
|
"@angular/common": "22.0.1",
|
||||||
"@angular/compiler": "21.2.6",
|
"@angular/compiler": "22.0.1",
|
||||||
"@angular/core": "21.2.6",
|
"@angular/core": "22.0.1",
|
||||||
"@angular/platform-browser": "21.2.6",
|
"@angular/platform-browser": "22.0.1",
|
||||||
"@angular/platform-browser-dynamic": "21.2.6",
|
"@angular/platform-browser-dynamic": "22.0.1",
|
||||||
"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.16.1"
|
"zone.js": "0.16.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "^21.2.5",
|
"@angular/build": "22.0.1",
|
||||||
"@angular/cli": "21.2.5",
|
"@angular/cli": "22.0.1",
|
||||||
"@angular/compiler-cli": "21.2.6",
|
"@angular/compiler-cli": "22.0.1",
|
||||||
"@types/luxon": "3.7.1",
|
"@types/luxon": "3.7.1",
|
||||||
"@types/node": "22.16.5",
|
"@types/node": "24.1.0",
|
||||||
"prettier": "3.8.3",
|
"prettier": "3.8.4",
|
||||||
"typescript": "5.9.3"
|
"typescript": "6.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { interval, startWith } from 'rxjs';
|
import { interval, startWith } from 'rxjs';
|
||||||
import { GetClosestTimezoneFrom, Timezone } from './timezone/models/timezone.model';
|
import { GetClosestTimezoneFrom, Timezone } from './timezone/models/timezone.model';
|
||||||
import { TimezoneService } from './timezone/services/timezone.service';
|
import { TimezoneService } from './timezone/services/timezone.service';
|
||||||
@@ -7,6 +7,7 @@ import { TimezoneService } from './timezone/services/timezone.service';
|
|||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrls: ['./app.component.scss'],
|
styleUrls: ['./app.component.scss'],
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
@@ -17,9 +18,7 @@ export class AppComponent {
|
|||||||
|
|
||||||
timezones: string[] = [];
|
timezones: string[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(private timezoneService: TimezoneService) {
|
||||||
private timezoneService: TimezoneService,
|
|
||||||
) {
|
|
||||||
const currentTimezone = this.timezoneService.getCurrentTimezone();
|
const currentTimezone = this.timezoneService.getCurrentTimezone();
|
||||||
if (currentTimezone) {
|
if (currentTimezone) {
|
||||||
this.timezones = this.timezoneService.getTimezones();
|
this.timezones = this.timezoneService.getTimezones();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { animate, state, style, transition, trigger } from '@angular/animations';
|
import { animate, state, style, transition, trigger } from '@angular/animations';
|
||||||
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
import { Component, Input, OnChanges, OnInit, SimpleChanges, ChangeDetectionStrategy } from '@angular/core';
|
||||||
import { Timezone } from '../../models/timezone.model';
|
import { Timezone } from '../../models/timezone.model';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -24,6 +24,7 @@ import { Timezone } from '../../models/timezone.model';
|
|||||||
transition('hide=>show', animate('450ms ease-in')),
|
transition('hide=>show', animate('450ms ease-in')),
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
|
changeDetection: ChangeDetectionStrategy.Eager,
|
||||||
standalone: false,
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class TimezoneListComponent implements OnInit, OnChanges {
|
export class TimezoneListComponent implements OnInit, OnChanges {
|
||||||
|
|||||||
+9
-1
@@ -6,5 +6,13 @@
|
|||||||
"types": []
|
"types": []
|
||||||
},
|
},
|
||||||
"files": ["src/main.ts", "src/polyfills.ts"],
|
"files": ["src/main.ts", "src/polyfills.ts"],
|
||||||
"include": ["src/**/*.d.ts"]
|
"include": ["src/**/*.d.ts"],
|
||||||
|
"angularCompilerOptions": {
|
||||||
|
"extendedDiagnostics": {
|
||||||
|
"checks": {
|
||||||
|
"nullishCoalescingNotNullable": "suppress",
|
||||||
|
"optionalChainNotNullable": "suppress"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
{
|
{
|
||||||
"compileOnSave": false,
|
"compileOnSave": false,
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "./",
|
|
||||||
"outDir": "./dist/out-tsc",
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user