File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11import { 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";
89export class FooterComponent {
910
1011 year : number = new Date ( ) . getFullYear ( ) ;
12+ settings = environment ;
1113}
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11import { Component , OnInit } from "@angular/core" ;
22import { GlobalService } from "../../services" ;
33import { 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} )
1011export class TopNavComponent implements OnInit {
1112
13+ settings = environment ;
14+
1215 version$ : Observable < string > ;
1316
1417 constructor ( private globalService : GlobalService ) { }
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11import { 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} )
89export class PostHeaderComponent {
910 @Input ( ) title : string ;
11+ settings = environment ;
1012}
Original file line number Diff line number Diff line change 11export 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} ;
Original file line number Diff line number Diff line change 33// The list of file replacements can be found in `angular.json`.
44
55export 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/*
You can’t perform that action at this time.
0 commit comments