Skip to content

Commit 9f6293c

Browse files
committed
fix(package): added catch for fetching link and fixed broken images and content #16
1 parent 3e44a8f commit 9f6293c

File tree

12 files changed

+292
-237
lines changed

12 files changed

+292
-237
lines changed

demo/package-lock.json

Lines changed: 119 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
},
1616
"private": true,
1717
"dependencies": {
18-
"@angular/animations": "^6.1.0",
18+
"@angular/animations": "^6.1.1",
1919
"@angular/cdk": "^6.4.2",
20-
"@angular/common": "^6.1.0",
21-
"@angular/compiler": "^6.1.0",
22-
"@angular/core": "^6.1.0",
20+
"@angular/common": "^6.1.1",
21+
"@angular/compiler": "^6.1.1",
22+
"@angular/core": "^6.1.1",
2323
"@angular/flex-layout": "^6.0.0-beta.17",
24-
"@angular/forms": "^6.1.0",
25-
"@angular/http": "^6.1.0",
24+
"@angular/forms": "^6.1.1",
25+
"@angular/http": "^6.1.1",
2626
"@angular/material": "^6.4.2",
27-
"@angular/platform-browser": "^6.1.0",
28-
"@angular/platform-browser-dynamic": "^6.1.0",
29-
"@angular/platform-server": "^6.1.0",
30-
"@angular/router": "^6.1.0",
31-
"@ng-bootstrap/ng-bootstrap": "^2.2.1",
27+
"@angular/platform-browser": "^6.1.1",
28+
"@angular/platform-browser-dynamic": "^6.1.1",
29+
"@angular/platform-server": "^6.1.1",
30+
"@angular/router": "^6.1.1",
31+
"@ng-bootstrap/ng-bootstrap": "^2.2.2",
3232
"@stackblitz/sdk": "^1.2.0",
3333
"bootstrap": "^4.1.3",
3434
"core-js": "^2.5.4",
@@ -38,21 +38,21 @@
3838
"zone.js": "^0.8.26"
3939
},
4040
"devDependencies": {
41-
"@angular-devkit/build-angular": "~0.7.1",
42-
"@angular-devkit/schematics": "^0.7.1",
41+
"@angular-devkit/build-angular": "^0.7.2",
42+
"@angular-devkit/schematics": "^0.7.2",
4343
"@angular/cli": "~6.1.2",
44-
"@angular/compiler-cli": "^6.1.0",
45-
"@angular/language-service": "^6.1.0",
44+
"@angular/compiler-cli": "^6.1.1",
45+
"@angular/language-service": "^6.1.1",
4646
"@angularclass/hmr": "~2.1.3",
4747
"@compodoc/gulp-compodoc": "0.0.9",
4848
"@nguniversal/common": "^6.0.0",
4949
"@nguniversal/express-engine": "^6.0.0",
5050
"@nguniversal/module-map-ngfactory-loader": "^6.0.0",
5151
"@types/jest": "^23.3.1",
52-
"@types/node": "~6.0.60",
52+
"@types/node": "^6.0.115",
5353
"angular-cli-ghpages": "0.5.2",
5454
"ansi-colors": "2.0.5",
55-
"codelyzer": "^4.0.1",
55+
"codelyzer": "^4.4.3",
5656
"commitplease": "3.2.0",
5757
"conventional-github-releaser": "2.0.2",
5858
"del": "3.0.0",

demo/src/app/home/home.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
margin-top: 1.0rem;
99
}
1010

11+
h1 {
12+
word-wrap: break-word;
13+
white-space: inherit;
14+
}
15+
1116
mat-link-preview-container {
1217
margin-top: 2rem;
1318
}
19+
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
21
<div class="container" style="padding-left: 0; padding-right: 0;">
32
<header class="navbar navbar-light navbar-fixed-top navbar-expand-lg">
43

5-
<a class="navbar-brand" routerLink="/home" (click)="navbarCollapsed = true">@angular-material-extensions/link-preview</a>
4+
<a class="navbar-brand" routerLink="/home" (click)="navbarCollapsed = true">@angular-material-extensions/link-preview</a>
65

76
<button class="navbar-toggler navbar-toggler-right" type="button" (click)="navbarCollapsed = !navbarCollapsed"
8-
[attr.aria-expanded]="!navbarCollapsed" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
7+
[attr.aria-expanded]="!navbarCollapsed" aria-controls="navbarContent" aria-expanded="false"
8+
aria-label="Toggle navigation">
99
<span class="navbar-toggler-icon"></span>
1010
</button>
1111

@@ -17,4 +17,4 @@
1717
</ul>
1818
</div>
1919
</header>
20-
</div>
20+
</div>
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
.navbar {
2-
background: hsla(0,0%,100%,.95)
2+
background: hsla(0, 0%, 100%, .95);
3+
}
4+
5+
a {
6+
word-wrap: break-word;
7+
white-space: inherit;
8+
}
9+
10+
.cut-text {
11+
text-overflow: ellipsis;
12+
overflow: hidden;
13+
width: 160px;
14+
height: 1.2em;
15+
white-space: nowrap;
316
}

demo/src/index.html

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@angular-material-extensions/link-preview
88
</title>
99
<base href=".">
10-
<meta name="description" content="Angular open source UI library to preview web links" />
10+
<meta name="description" content="Angular open source UI library to preview web links"/>
1111

1212
<!-- Twitter Card data -->
1313
<meta name="twitter:card" content="summary">
@@ -20,21 +20,36 @@
2020
<meta name="twitter:image" content="https://angular-material-extensions.github.io/link-preview/assets/logo.svg">
2121

2222
<!-- Open Graph data -->
23-
<meta property="og:title" content="@angular-material-extensions/link-preview" />
24-
<meta property="og:type" content="article" />
25-
<meta property="og:url" content="https://angular-material-extensions.github.io/link-preview" />
26-
<meta property="og:image" content="https://angular-material-extensions.github.io/link-preview/assets/logo.svg" />
27-
<meta property="og:description" content="Angular open source UI library to preview web links" />
28-
<meta property="og:site_name" content="@angular-material-extensions/link-preview" />
23+
<meta property="og:title" content="@angular-material-extensions/link-preview"/>
24+
<meta property="og:type" content="article"/>
25+
<meta property="og:url" content="https://angular-material-extensions.github.io/link-preview"/>
26+
<meta property="og:image" content="https://angular-material-extensions.github.io/link-preview/assets/logo.svg"/>
27+
<meta property="og:description" content="Angular open source UI library to preview web links"/>
28+
<meta property="og:site_name" content="@angular-material-extensions/link-preview"/>
2929

3030
<meta charset="utf-8">
3131
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
3232
<meta http-equiv="x-ua-compatible" content="ie=edge">
3333
<link rel="icon" type="image/x-icon" href="favicon.ico">
34+
35+
<!-- Global site tag (gtag.js) - Google Analytics -->
36+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-114342493-8"></script>
37+
<script>
38+
window.dataLayer = window.dataLayer || [];
39+
40+
function gtag() {
41+
dataLayer.push(arguments);
42+
}
43+
44+
gtag('js', new Date());
45+
46+
gtag('config', 'UA-114342493-8');
47+
</script>
48+
3449
</head>
3550

3651
<body>
37-
<app-root>Loading...</app-root>
52+
<app-root>Loading...</app-root>
3853
</body>
3954

4055
</html>

0 commit comments

Comments
 (0)