Skip to content

Commit fe34641

Browse files
committed
Add github-repo, nuget-package & stack-overflow urls.
1 parent 75441f3 commit fe34641

8 files changed

Lines changed: 22 additions & 9 deletions

File tree

src/app/root/components/footer/footer.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
</div>
1111
<div class="nav-item">
1212
<span class="nav-link section-title">Community</span>
13-
<a routerLink="/" class="nav-link">
13+
<a href="{{settings.stackOverflow}}" target="blank" class="nav-link">
1414
<i class="fa fa-stack-overflow"></i>
15-
Stack Overflow
15+
StackOverflow
1616
</a>
1717
</div>
1818
<div class="nav-item">
1919
<span class="nav-link section-title">More</span>
20-
<a routerLink="/" class="nav-link">
20+
<a href="{{settings.gitHubRepo}}" target="blank" class="nav-link">
2121
<i class="fa fa-github"></i>
2222
GitHub
2323
</a>
24-
<a routerLink="/" class="nav-link">
24+
<a href="{{settings.nugetPackage}}" target="blank" class="nav-link">
2525
<i class="fa fa-download"></i>
2626
Nuget
2727
</a>

src/app/root/components/footer/footer.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {Component} from "@angular/core";
2+
import {environment} from "../../../../environments/environment";
23

34
@Component({
45
selector: "app-footer",
@@ -8,4 +9,5 @@ import {Component} from "@angular/core";
89
export class FooterComponent {
910

1011
year: number = new Date().getFullYear();
12+
settings = environment;
1113
}

src/app/root/components/top-nav/top-nav.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<a routerLink="/versions" class="version">{{ version$ | async}}</a>
99
</div>
1010
<div class="navbar-nav">
11-
<a routerLink="" class="nav-link">
11+
<a href="{{settings.gitHubRepo}}" target="blank" class="nav-link">
1212
<i class="fa fa-github"></i>
1313
GitHub
1414
</a>
15-
<a routerLink="" class="nav-link">
15+
<a href="{{settings.nugetPackage}}" target="blank" class="nav-link">
1616
<i class="fa fa-download"></i>
1717
Download
1818
</a>

src/app/root/components/top-nav/top-nav.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {Component, OnInit} from "@angular/core";
22
import {GlobalService} from "../../services";
33
import {Observable} from "rxjs";
4+
import {environment} from "../../../../environments/environment";
45

56
@Component({
67
selector: "app-top-nav",
@@ -9,6 +10,8 @@ import {Observable} from "rxjs";
910
})
1011
export class TopNavComponent implements OnInit {
1112

13+
settings = environment;
14+
1215
version$: Observable<string>;
1316

1417
constructor (private globalService: GlobalService) {}

src/app/shared/components/post-header/post-header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<header class="post-header">
22
<h1 class="post-header-text">{{title}}</h1>
3-
<a class="edit-button button btn btn-sm" routerLink="/">
3+
<a class="edit-button button btn btn-sm" href="{{settings.gitHubRepo}}" target="blank">
44
<i class="fa fa-pencil"></i>
55
Edit
66
</a>

src/app/shared/components/post-header/post-header.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {Component, Input} from "@angular/core";
2+
import {environment} from "../../../../environments/environment";
23

34
@Component({
45
selector: "app-post-header",
@@ -7,4 +8,5 @@ import {Component, Input} from "@angular/core";
78
})
89
export class PostHeaderComponent {
910
@Input() title: string;
11+
settings = environment;
1012
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export const environment = {
2-
production: true
2+
production: true,
3+
gitHubRepo: "https://github.com/dotnet-validator/lib",
4+
nugetPackage: "https://www.nuget.org/packages/DotNetValidator/",
5+
stackOverflow: "https://stackoverflow.com/questions/tagged/dotnet-validator",
36
};

src/environments/environment.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
// The list of file replacements can be found in `angular.json`.
44

55
export const environment = {
6-
production: false
6+
production: false,
7+
gitHubRepo: "https://github.com/dotnet-validator/lib",
8+
nugetPackage: "https://www.nuget.org/packages/DotNetValidator/",
9+
stackOverflow: "https://stackoverflow.com/questions/tagged/dotnet-validator",
710
};
811

912
/*

0 commit comments

Comments
 (0)