diff --git a/package-lock.json b/package-lock.json index a0e82c1..69dbc9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,10 +12,8 @@ "@angular/common": "^14.2.10", "@angular/compiler": "^14.2.10", "@angular/core": "^14.2.10", - "@angular/forms": "^14.2.10", "@angular/platform-browser": "^14.2.10", "@angular/platform-browser-dynamic": "^14.2.10", - "@angular/router": "^14.2.10", "luxon": "^2.5.0", "rxjs": "~7.4.0", "tslib": "^2.4.1", @@ -537,23 +535,6 @@ "zone.js": "~0.11.4 || ~0.12.0" } }, - "node_modules/@angular/forms": { - "version": "14.2.10", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-14.2.10.tgz", - "integrity": "sha512-6Wa7Knx+dbVS9+Z05m86pErRb1f3uG9gQ30+nRenjJW1d3HCyFPj6gteqQPUAOhtc4zN4L33pR52UuKoHUYJOQ==", - "dependencies": { - "tslib": "^2.3.0" - }, - "engines": { - "node": "^14.15.0 || >=16.10.0" - }, - "peerDependencies": { - "@angular/common": "14.2.10", - "@angular/core": "14.2.10", - "@angular/platform-browser": "14.2.10", - "rxjs": "^6.5.3 || ^7.4.0" - } - }, "node_modules/@angular/platform-browser": { "version": "14.2.10", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-14.2.10.tgz", @@ -592,23 +573,6 @@ "@angular/platform-browser": "14.2.10" } }, - "node_modules/@angular/router": { - "version": "14.2.10", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-14.2.10.tgz", - "integrity": "sha512-Pnyy+j6WGh+VlvdsfqWCumlwCrYH5HgcJcrvmjhohTf/dtexfwTGmuqFU+6/d4vRugG84xsLH3wIlnW6P7WEXw==", - "dependencies": { - "tslib": "^2.3.0" - }, - "engines": { - "node": "^14.15.0 || >=16.10.0" - }, - "peerDependencies": { - "@angular/common": "14.2.10", - "@angular/core": "14.2.10", - "@angular/platform-browser": "14.2.10", - "rxjs": "^6.5.3 || ^7.4.0" - } - }, "node_modules/@assemblyscript/loader": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", @@ -12206,14 +12170,6 @@ "tslib": "^2.3.0" } }, - "@angular/forms": { - "version": "14.2.10", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-14.2.10.tgz", - "integrity": "sha512-6Wa7Knx+dbVS9+Z05m86pErRb1f3uG9gQ30+nRenjJW1d3HCyFPj6gteqQPUAOhtc4zN4L33pR52UuKoHUYJOQ==", - "requires": { - "tslib": "^2.3.0" - } - }, "@angular/platform-browser": { "version": "14.2.10", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-14.2.10.tgz", @@ -12230,14 +12186,6 @@ "tslib": "^2.3.0" } }, - "@angular/router": { - "version": "14.2.10", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-14.2.10.tgz", - "integrity": "sha512-Pnyy+j6WGh+VlvdsfqWCumlwCrYH5HgcJcrvmjhohTf/dtexfwTGmuqFU+6/d4vRugG84xsLH3wIlnW6P7WEXw==", - "requires": { - "tslib": "^2.3.0" - } - }, "@assemblyscript/loader": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz", diff --git a/package.json b/package.json index 0d1b476..e3eb584 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,8 @@ "@angular/common": "^14.2.10", "@angular/compiler": "^14.2.10", "@angular/core": "^14.2.10", - "@angular/forms": "^14.2.10", "@angular/platform-browser": "^14.2.10", "@angular/platform-browser-dynamic": "^14.2.10", - "@angular/router": "^14.2.10", "luxon": "^2.5.0", "rxjs": "~7.4.0", "tslib": "^2.4.1", diff --git a/src/app/app.component.ts b/src/app/app.component.ts index b2f5015..ab4b2c1 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,5 +1,4 @@ import { Component } from '@angular/core'; -import { NavigationEnd, Router } from '@angular/router'; import { interval, startWith } from 'rxjs'; import { GoogleAnalyticsService } from './services/google-analytics.service'; import { Timezone, GetClosestTimezoneFrom } from './timezone/models/timezone.model'; @@ -23,15 +22,7 @@ export class AppComponent { constructor( private timezoneService: TimezoneService, private googleAnalyticsService: GoogleAnalyticsService, - private router:Router ){ - this.router.events.subscribe(event => { - if (event instanceof NavigationEnd) { - gtag('config', 'G-48B6CKS0V6',{ - 'page_path': event.urlAfterRedirects - }); - } - }) this.timezones = this.timezoneService.getTimezones() var second = interval(1000).pipe(startWith(0)) @@ -47,7 +38,11 @@ export class AppComponent { } - ngOnInit(): void { } + ngOnInit(): void { + gtag('config', 'G-48B6CKS0V6',{ + 'page_path': '/' + }); + } toggleView(){ if(this.showAll){ diff --git a/src/app/timezone/components/timezone-list/timezone-list.component.spec.ts b/src/app/timezone/components/timezone-list/timezone-list.component.spec.ts index e02259e..301adbd 100644 --- a/src/app/timezone/components/timezone-list/timezone-list.component.spec.ts +++ b/src/app/timezone/components/timezone-list/timezone-list.component.spec.ts @@ -1,4 +1,5 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { TimezoneListComponent } from './timezone-list.component'; @@ -8,6 +9,7 @@ describe('TimezoneListComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ + imports: [ BrowserAnimationsModule ], declarations: [ TimezoneListComponent ] }) .compileComponents();