-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f7803b
commit b1ffe91
Showing
14 changed files
with
284 additions
and
8 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
94 changes: 94 additions & 0 deletions
94
VideoWeb/VideoWeb/ClientApp/src/app/shared/cookies/cookies.component.html
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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<div class="govuk-grid-row govuk-!-margin-top-5"> | ||
<div class="govuk-grid-column-full"> | ||
<h1 class="govuk-heading-xl govuk-!-padding-top-5">{{ 'cookies.title' | translate }}</h1> | ||
<p class="govuk-body"> | ||
{{ 'cookies.intro' | translate }} | ||
</p> | ||
<p class="govuk-body">{{ 'cookies.uses' | translate }}</p> | ||
<ul class="govuk-list govuk-list--bullet"> | ||
<li>{{ 'cookies.usesList.item1' | translate }}</li> | ||
<li>{{ 'cookies.usesList.item2' | translate }}</li> | ||
</ul> | ||
|
||
<h2 class="govuk-heading-m">{{ 'cookies.essentialCookiesTitle' | translate }}</h2> | ||
<p class="govuk-body"> | ||
{{ 'cookies.essentialCookiesDesc' | translate }} | ||
</p> | ||
<p class="govuk-body"> | ||
{{ 'cookies.manageCookiesStart' | translate }} | ||
<a target="_blank" href="http://www.aboutcookies.org/" rel="noopener noreferrer">{{ 'cookies.manageCookiesEnd' | translate }}</a | ||
>. | ||
</p> | ||
|
||
<h2 id="how-cookies-are-used-in-this-service" class="govuk-heading-l">{{ 'cookies.usageTitle' | translate }}</h2> | ||
<h3 class="govuk-heading-m">{{ 'cookies.usageMeasureTitle' | translate }}</h3> | ||
<p id="usage-description" class="govuk-body">{{ 'cookies.usageMeasureDesc' | translate }}</p> | ||
|
||
<table id="essential-uses-table" class="govuk-table" aria-describedby="usage-description"> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.usageTable.headers.name' | translate }}</th> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.usageTable.headers.purpose' | translate }}</th> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.usageTable.headers.expires' | translate }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr scope="col" class="govuk-table__row"> | ||
<td class="govuk-table__cell">ai_session</td> | ||
<td class="govuk-table__cell">{{ 'cookies.usageTable.row1.purpose' | translate }}</td> | ||
<td class="govuk-table__cell">{{ 'cookies.usageTable.row1.expires' | translate }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<h3 class="govuk-heading-m">{{ 'cookies.identifyTitle' | translate }}</h3> | ||
<p id="identify-desc">{{ 'cookies.identifyDesc' | translate }}</p> | ||
<table id="authentication-uses-table" class="govuk-table" aria-describedby="identify-desc"> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.identifyTable.headers.name' | translate }}</th> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.identifyTable.headers.purpose' | translate }}</th> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.identifyTable.headers.expires' | translate }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="govuk-table__row"> | ||
<td class="govuk-table__cell">__userid__</td> | ||
<td class="govuk-table__cell">{{ 'cookies.identifyTable.row1.purpose' | translate }}</td> | ||
<td class="govuk-table__cell">{{ 'cookies.identifyTable.row1.expires' | translate }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<h3 class="govuk-heading-m">{{ 'cookies.securityTitle' | translate }}</h3> | ||
<p id="security-desc"> | ||
{{ 'cookies.securityDesc' | translate }} | ||
</p> | ||
<table id="security-table" class="govuk-table" aria-describedby="security-desc"> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.securityTable.headers.name' | translate }}</th> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.securityTable.headers.purpose' | translate }}</th> | ||
<th scope="col" class="govuk-table__header">{{ 'cookies.securityTable.headers.expires' | translate }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="govuk-table__row"> | ||
<td class="govuk-table__cell">vhaad</td> | ||
<td class="govuk-table__cell">{{ 'cookies.securityTable.row1.purpose' | translate }}</td> | ||
<td class="govuk-table__cell">{{ 'cookies.securityTable.row1.expires' | translate }}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<td class="govuk-table__cell">ejud</td> | ||
<td class="govuk-table__cell">{{ 'cookies.securityTable.row2.purpose' | translate }}</td> | ||
<td class="govuk-table__cell">{{ 'cookies.securityTable.row2.expires' | translate }}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<td class="govuk-table__cell">dom1</td> | ||
<td class="govuk-table__cell">{{ 'cookies.securityTable.row3.purpose' | translate }}</td> | ||
<td class="govuk-table__cell">{{ 'cookies.securityTable.row3.expires' | translate }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
VideoWeb/VideoWeb/ClientApp/src/app/shared/cookies/cookies.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { CookiesComponent } from './cookies.component'; | ||
import { TranslatePipeMock } from 'src/app/testing/mocks/mock-translation-pipe'; | ||
|
||
describe('CookiesComponent', () => { | ||
let component: CookiesComponent; | ||
let fixture: ComponentFixture<CookiesComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [CookiesComponent, TranslatePipeMock] | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(CookiesComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
7 changes: 7 additions & 0 deletions
7
VideoWeb/VideoWeb/ClientApp/src/app/shared/cookies/cookies.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-cookies', | ||
templateUrl: './cookies.component.html' | ||
}) | ||
export class CookiesComponent {} |
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
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
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
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.