mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
fix(demo): remove demo links from the repo
This commit is contained in:
parent
ad145a67d8
commit
0235b61d9c
7 changed files with 19 additions and 30 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ import { Component } from '@angular/core';
|
|||
template: `
|
||||
<span class="created-by">Created with ♥ by <b><a href="https://akveo.com" target="_blank">Akveo</a></b> 2017</span>
|
||||
<div class="socials">
|
||||
<a href="https://github.com/akveo" target="_blank" class="ion ion-social-github"></a>
|
||||
<a href="https://www.facebook.com/akveo" target="_blank" class="ion ion-social-facebook"></a>
|
||||
<a href="https://twitter.com/akveo_inc" target="_blank" class="ion ion-social-twitter"></a>
|
||||
<a href="https://www.linkedin.com/company/akveo" target="_blank" class="ion ion-social-linkedin"></a>
|
||||
<a href="#" target="_blank" class="ion ion-social-github"></a>
|
||||
<a href="#" target="_blank" class="ion ion-social-facebook"></a>
|
||||
<a href="#" target="_blank" class="ion ion-social-twitter"></a>
|
||||
<a href="#" target="_blank" class="ion ion-social-linkedin"></a>
|
||||
</div>
|
||||
`,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { Component } from '@angular/core';
|
|||
|
||||
<nb-sidebar class="menu-sidebar" tag="menu-sidebar" responsive>
|
||||
<nb-sidebar-header>
|
||||
<a href="https://github.com/akveo/nebular" target="_blank" class="btn btn-hero-success main-btn">
|
||||
<a href="#" class="btn btn-hero-success main-btn">
|
||||
<i class="ion ion-social-github"></i> <span>Support Us</span>
|
||||
</a>
|
||||
</nb-sidebar-header>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import 'rxjs/add/operator/delay';
|
|||
responsive
|
||||
[right]="sidebar.id === 'right'">
|
||||
<nb-sidebar-header>
|
||||
<a href="https://github.com/akveo/nebular" target="_blank" class="btn btn-hero-success main-btn">
|
||||
<a href="#" class="btn btn-hero-success main-btn">
|
||||
<i class="ion ion-social-github"></i> <span>Support Us</span>
|
||||
</a>
|
||||
</nb-sidebar-header>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { Component } from '@angular/core';
|
|||
|
||||
<nb-sidebar class="menu-sidebar" tag="menu-sidebar" responsive >
|
||||
<nb-sidebar-header>
|
||||
<a href="https://github.com/akveo/nebular" target="_blank" class="btn btn-hero-success main-btn">
|
||||
<a href="#" class="btn btn-hero-success main-btn">
|
||||
<i class="ion ion-social-github"></i> <span>Support Us</span>
|
||||
</a>
|
||||
</nb-sidebar-header>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { Component } from '@angular/core';
|
|||
|
||||
<nb-sidebar class="menu-sidebar" tag="menu-sidebar" responsive >
|
||||
<nb-sidebar-header>
|
||||
<a href="https://github.com/akveo/nebular" target="_blank" class="btn btn-hero-success main-btn">
|
||||
<a href="#" class="btn btn-hero-success main-btn">
|
||||
<i class="ion ion-social-github"></i> <span>Support Us</span>
|
||||
</a>
|
||||
</nb-sidebar-header>
|
||||
|
|
|
|||
|
|
@ -7,17 +7,6 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/png" href="favicon.png">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
|
||||
<!-- Global Site Tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-102084081-3"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments)};
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-102084081-3');
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<ngx-app>Loading...</ngx-app>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue