Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 20e798a

Browse files
committed
chore(package): Publish Angular MDC v0.42.0
1 parent e480b53 commit 20e798a

File tree

6 files changed

+28
-14
lines changed

6 files changed

+28
-14
lines changed

demos/src/app/app.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Component, OnInit } from '@angular/core';
22
import { Router, NavigationEnd } from '@angular/router';
3+
import { environment } from '../environments/environment';
34

45
@Component({
56
selector: 'app-root',
@@ -12,8 +13,10 @@ export class AppComponent implements OnInit {
1213
this._router.events.subscribe(event => {
1314
if (this._router.url !== '/') {
1415
if (event instanceof NavigationEnd) {
15-
// (<any>window).ga('set', 'page', event.urlAfterRedirects);
16-
// (<any>window).ga('send', 'pageview');
16+
if (environment.production) {
17+
(<any>window).ga('set', 'page', event.urlAfterRedirects);
18+
(<any>window).ga('send', 'pageview');
19+
}
1720
}
1821
}
1922
});

demos/src/app/typings.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
declare module 'highlight.js/lib/languages/shell';
22
declare module 'highlight.js/lib/languages/scss';
33
declare module 'highlight.js/lib/languages/typescript';
4+
5+
interface window {
6+
ga: any;
7+
}

demos/src/index.html

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<title>Angular MDC</title>
6-
<base href="/">
4+
<meta charset="utf-8">
5+
<title>Angular MDC</title>
6+
<base href="/angular-mdc-web/">
77

8-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
9-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
10-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
8+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
9+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
1111

12-
<meta name="viewport" content="width=device-width, initial-scale=1">
13-
<link rel="icon" href="favicon.png">
12+
<meta name="viewport" content="width=device-width, initial-scale=1">
13+
<link rel="icon" href="favicon.png">
1414
</head>
1515
<body class="mdc-typography">
1616
<app-root></app-root>
17-
</body>
17+
<script>
18+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
19+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
20+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
21+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
22+
ga('create', 'UA-100407098-1', 'auto');
23+
</script>
24+
</body>
1825
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/trimox/angular-mdc-web.git"
99
},
1010
"license": "MIT",
11-
"version": "0.41.4",
11+
"version": "0.42.0",
1212
"engines": {
1313
"node": ">= 9.11.1"
1414
},

packages/material-components-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "https://github.com/trimox/angular-mdc-web.git"
99
},
10-
"version": "0.41.4",
10+
"version": "0.42.0",
1111
"license": "MIT",
1212
"keywords": [
1313
"angular-mdc",

packages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"typings": "./web.d.ts",
2323
"private": false,
2424
"dependencies": {
25-
"@angular-mdc/theme": "0.41.4"
25+
"@angular-mdc/theme": "0.42.0"
2626
},
2727
"peerDependencies": {
2828
"@angular/core": "0.0.0-NG",

0 commit comments

Comments
 (0)