diff --git a/client/package-lock.json b/client/package-lock.json index 7280639..f86236d 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -522,6 +522,14 @@ "moment": "2.21.0" } }, + "angulartics2": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/angulartics2/-/angulartics2-5.1.2.tgz", + "integrity": "sha512-ZTmSXH6t7Set8TT4oY6HcCLr7bIbK56oJnUVlDJNXSnCTS2DeZW0lP/4pcGpdELCTAF5xfosjar+DM+7kqWiPQ==", + "requires": { + "tslib": "1.9.0" + } + }, "ansi-html": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", diff --git a/client/package.json b/client/package.json index 356b4e5..b9cc52e 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "pod-noms.web", - "version": "0.13.0", + "version": "0.14.0", "license": "MIT", "scripts": { "ng": "ng", diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 8f7060b..0a23796 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -2,6 +2,7 @@ import { GlobalsService } from './services/globals.service'; import { Component, HostBinding } from '@angular/core'; import { Store } from '@ngrx/store'; import { AuthService } from 'app/services/auth.service'; +import { Angulartics2GoogleAnalytics } from 'angulartics2/ga'; @Component({ selector: 'app-root', @@ -9,12 +10,10 @@ import { AuthService } from 'app/services/auth.service'; styleUrls: ['./app.component.css'] }) export class AppComponent { - - constructor(private _authService: AuthService, _globals: GlobalsService) { + constructor(private _authService: AuthService) { _authService.handleAuthentication(); _authService.scheduleRenewal(); } - loggedIn() { return this._authService.isAuthenticated(); } diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index c7c74ad..8d9fa91 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -97,9 +97,14 @@ export function authHttpServiceFactory(http: Http, options: RequestOptions) { ToastyModule.forRoot(), DropzoneModule, ClipboardModule, + StoreModule.forRoot(reducers), - EffectsModule.forRoot([PodcastsEffects, EntriesEffects, ProfileEffects]), + EffectsModule.forRoot([ + PodcastsEffects, + EntriesEffects, + ProfileEffects + ]), StoreDevtoolsModule.instrument({ maxAge: 25 // Retains last 25 states }) diff --git a/client/src/index.html b/client/src/index.html index 742a9b2..66ce69e 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -2,6 +2,19 @@
+ + +