-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP #8 Added page title to all page components
- #36 Fixed up all service and component tests ready for full implementation
- Loading branch information
Showing
29 changed files
with
230 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
....Web/src/app/components/pages/community-guidelines/community-guidelines.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
src/DNI.Web/src/app/components/pages/community-guidelines/community-guidelines.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
import { SEOService } from 'app/services/seo/seo.service'; | ||
|
||
@Component({ | ||
selector: 'dni-community-guidelines', | ||
templateUrl: './community-guidelines.component.html', | ||
styleUrls: ['./community-guidelines.component.scss'] | ||
}) | ||
export class CommunityGuidelinesComponent implements OnInit { | ||
|
||
constructor() { } | ||
constructor( | ||
private seoService: SEOService | ||
) { } | ||
|
||
ngOnInit() { | ||
this.seoService.setTitle('Community Guidelines'); | ||
} | ||
|
||
} |
23 changes: 21 additions & 2 deletions
23
src/DNI.Web/src/app/components/pages/contact/contact.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
src/DNI.Web/src/app/components/pages/ethics/ethics.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
import { SEOService } from 'app/services/seo/seo.service'; | ||
|
||
@Component({ | ||
selector: 'dni-ethics', | ||
templateUrl: './ethics.component.html', | ||
styleUrls: ['./ethics.component.scss'] | ||
}) | ||
export class EthicsComponent implements OnInit { | ||
|
||
constructor() { } | ||
constructor( | ||
private seoService: SEOService | ||
) { } | ||
|
||
ngOnInit() { | ||
this.seoService.setTitle('Code of Ethics'); | ||
} | ||
|
||
} |
8 changes: 6 additions & 2 deletions
8
src/DNI.Web/src/app/components/pages/faq/faq.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
import { SEOService } from 'app/services/seo/seo.service'; | ||
|
||
@Component({ | ||
selector: 'dni-faq', | ||
templateUrl: './faq.component.html', | ||
styleUrls: ['./faq.component.scss'] | ||
}) | ||
export class FaqComponent implements OnInit { | ||
|
||
constructor() { } | ||
constructor( | ||
private seoService: SEOService | ||
) { } | ||
|
||
ngOnInit() { | ||
this.seoService.setTitle('Frequently Asked Questions'); | ||
} | ||
|
||
} |
22 changes: 19 additions & 3 deletions
22
src/DNI.Web/src/app/components/pages/home/home.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
src/DNI.Web/src/app/components/pages/page-not-found/page-not-found.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
src/DNI.Web/src/app/components/pages/page-not-found/page-not-found.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
import { SEOService } from 'app/services/seo/seo.service'; | ||
|
||
@Component({ | ||
selector: 'dni-page-not-found', | ||
templateUrl: './page-not-found.component.html', | ||
styleUrls: ['./page-not-found.component.scss'] | ||
}) | ||
export class PageNotFoundComponent implements OnInit { | ||
|
||
constructor() { } | ||
constructor( | ||
private seoService: SEOService | ||
) { } | ||
|
||
ngOnInit() { | ||
this.seoService.setTitle('404 Page Not Found'); | ||
} | ||
|
||
} |
9 changes: 6 additions & 3 deletions
9
src/DNI.Web/src/app/components/pages/privacy/privacy.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
import { SEOService } from 'app/services/seo/seo.service'; | ||
|
||
@Component({ | ||
selector: 'dni-privacy', | ||
templateUrl: './privacy.component.html', | ||
styleUrls: ['./privacy.component.scss'] | ||
}) | ||
export class PrivacyComponent implements OnInit { | ||
|
||
constructor() { } | ||
constructor( | ||
private seoService: SEOService | ||
) { } | ||
|
||
ngOnInit() { | ||
this.seoService.setTitle('Cookie and Privacy Policy'); | ||
} | ||
|
||
} |
19 changes: 17 additions & 2 deletions
19
src/DNI.Web/src/app/components/pages/show-archive/show-archive.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.