From 1c2eb7afa56770f94bfa6ad7f1aa75ebd56098e6 Mon Sep 17 00:00:00 2001 From: Romain Verger Date: Wed, 9 Mar 2022 16:05:21 +0100 Subject: [PATCH] ajout page denied --- src/app/app.module.ts | 4 ++- .../page-acces-denied.component.html | 3 +++ .../page-acces-denied.component.scss | 0 .../page-acces-denied.component.spec.ts | 25 +++++++++++++++++++ .../page-acces-denied.component.ts | 15 +++++++++++ 5 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 src/app/pages/page-acces-denied/page-acces-denied.component.html create mode 100644 src/app/pages/page-acces-denied/page-acces-denied.component.scss create mode 100644 src/app/pages/page-acces-denied/page-acces-denied.component.spec.ts create mode 100644 src/app/pages/page-acces-denied/page-acces-denied.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index de864a8..1bf74dd 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -26,6 +26,7 @@ import { AuthInterceptor } from './services/auth.interceptor'; import { FavorisUserComponent } from './pages/favoris-user/favoris-user.component'; import { SignupComponent } from './pages/signup/signup.component'; import { PageAccountComponent } from './pages/page-account/page-account.component'; +import { PageAccesDeniedComponent } from './pages/page-acces-denied/page-acces-denied.component'; @NgModule({ declarations: [ @@ -50,7 +51,8 @@ import { PageAccountComponent } from './pages/page-account/page-account.componen HeaderLogoComponent, FavorisUserComponent, SignupComponent, - PageAccountComponent + PageAccountComponent, + PageAccesDeniedComponent ], imports: [ BrowserModule, diff --git a/src/app/pages/page-acces-denied/page-acces-denied.component.html b/src/app/pages/page-acces-denied/page-acces-denied.component.html new file mode 100644 index 0000000..1089b1c --- /dev/null +++ b/src/app/pages/page-acces-denied/page-acces-denied.component.html @@ -0,0 +1,3 @@ +
+

test

+
\ No newline at end of file diff --git a/src/app/pages/page-acces-denied/page-acces-denied.component.scss b/src/app/pages/page-acces-denied/page-acces-denied.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/page-acces-denied/page-acces-denied.component.spec.ts b/src/app/pages/page-acces-denied/page-acces-denied.component.spec.ts new file mode 100644 index 0000000..11c6866 --- /dev/null +++ b/src/app/pages/page-acces-denied/page-acces-denied.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PageAccesDeniedComponent } from './page-acces-denied.component'; + +describe('PageAccesDeniedComponent', () => { + let component: PageAccesDeniedComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ PageAccesDeniedComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(PageAccesDeniedComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/page-acces-denied/page-acces-denied.component.ts b/src/app/pages/page-acces-denied/page-acces-denied.component.ts new file mode 100644 index 0000000..fcad28c --- /dev/null +++ b/src/app/pages/page-acces-denied/page-acces-denied.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-page-acces-denied', + templateUrl: './page-acces-denied.component.html', + styleUrls: ['./page-acces-denied.component.scss'] +}) +export class PageAccesDeniedComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}