From 0235b61d9c0bcdb4cd172703ce9c7d5ba287a8e8 Mon Sep 17 00:00:00 2001 From: Dmitry Nehaychik <4dmitr@gmail.com> Date: Fri, 29 Sep 2017 19:34:07 +0300 Subject: [PATCH] fix(demo): remove demo links from the repo --- src/app/@core/utils/analytics.service.ts | 22 +++++++++---------- .../components/footer/footer.component.ts | 8 +++---- .../layouts/one-column/one-column.layout.ts | 2 +- .../@theme/layouts/sample/sample.layout.ts | 2 +- .../three-columns/three-columns.layout.ts | 2 +- .../layouts/two-columns/two-columns.layout.ts | 2 +- src/index.html | 11 ---------- 7 files changed, 19 insertions(+), 30 deletions(-) diff --git a/src/app/@core/utils/analytics.service.ts b/src/app/@core/utils/analytics.service.ts index c964cf7d..73f13325 100644 --- a/src/app/@core/utils/analytics.service.ts +++ b/src/app/@core/utils/analytics.service.ts @@ -1,30 +1,30 @@ -import {Injectable} from '@angular/core'; -import {Router, NavigationEnd} from '@angular/router'; -import {Location} from '@angular/common'; +import { Injectable } from '@angular/core'; +import { NavigationEnd, Router } from '@angular/router'; +import { Location } from '@angular/common'; -import {filter} from 'rxjs/operator/filter'; +import { filter } from 'rxjs/operator/filter'; declare const ga: any; @Injectable() export class AnalyticsService { - private _enabled: boolean; + private enabled: boolean; - constructor(private _location: Location, private _router: Router) { - this._enabled = window.location.href.indexOf('akveo.com') >= 0; + constructor(private location: Location, private router: Router) { + this.enabled = false; } trackPageViews() { - if (this._enabled) { - filter.call(this._router.events, (event) => event instanceof NavigationEnd) + if (this.enabled) { + filter.call(this.router.events, (event) => event instanceof NavigationEnd) .subscribe(() => { - ga('send', {hitType: 'pageview', page: this._location.path()}); + ga('send', {hitType: 'pageview', page: this.location.path()}); }); } } trackEvent(eventName: string) { - if (this._enabled) { + if (this.enabled) { ga('send', 'event', eventName); } } diff --git a/src/app/@theme/components/footer/footer.component.ts b/src/app/@theme/components/footer/footer.component.ts index f16cf965..b1fb1c40 100644 --- a/src/app/@theme/components/footer/footer.component.ts +++ b/src/app/@theme/components/footer/footer.component.ts @@ -6,10 +6,10 @@ import { Component } from '@angular/core'; template: ` Created with ♥ by Akveo 2017
`, }) diff --git a/src/app/@theme/layouts/one-column/one-column.layout.ts b/src/app/@theme/layouts/one-column/one-column.layout.ts index 6675dfda..b4d6e132 100644 --- a/src/app/@theme/layouts/one-column/one-column.layout.ts +++ b/src/app/@theme/layouts/one-column/one-column.layout.ts @@ -12,7 +12,7 @@ import { Component } from '@angular/core';