Merge branch 'dev' into sana

This commit is contained in:
AlineRinquin 2022-02-14 16:38:15 +01:00 committed by GitHub
commit 42b5ac19ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 11717 additions and 93 deletions

11606
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@ import { PageCreationTeamComponent } from './pages/page-creation-team/page-creat
import { AutofocusFixModule } from 'ngx-autofocus-fix'; import { AutofocusFixModule } from 'ngx-autofocus-fix';
import { PageDeleteAccountComponent } from './pages/page-delete-account/page-delete-account.component'; import { PageDeleteAccountComponent } from './pages/page-delete-account/page-delete-account.component';
import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component'; import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component';
import { EmoticonComponent } from './emoticon/emoticon.component';
@ -79,6 +79,7 @@ import { PageUpdateAccountComponent } from './pages/page-update-account/page-upd
PageCreationTeamComponent, PageCreationTeamComponent,
PageDeleteAccountComponent, PageDeleteAccountComponent,
PageUpdateAccountComponent, PageUpdateAccountComponent,
EmoticonComponent,
], ],
imports: [ imports: [
BrowserModule, BrowserModule,

View File

@ -6,7 +6,7 @@
</button> </button>
</div> </div>
<div class="col-sm"> <div class="col-sm">
<button class="w-100 btn btn-lg btn-rounded btn-secondary"> <button class="w-100 btn btn-lg btn-rounded btn-secondary" (click)="onClickDelete(personne.id)">
Supprimer Supprimer
</button> </button>
</div> </div>

View File

@ -1,4 +1,4 @@
import { Component, Input, OnInit } from '@angular/core'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
@Component({ @Component({
selector: 'app-fiche-contact', selector: 'app-fiche-contact',
@ -7,8 +7,13 @@ import { Component, Input, OnInit } from '@angular/core';
}) })
export class FicheContactComponent implements OnInit { export class FicheContactComponent implements OnInit {
@Input() personne: any; @Input() personne: any;
@Output() clickDelete = new EventEmitter();
constructor() {} constructor() {}
ngOnInit(): void {} ngOnInit(): void {}
onClickDelete(numPerson: number){
this.clickDelete.emit(numPerson);
}
} }

View File

@ -1 +1,6 @@
<p>humeur works!</p> <p>Mon humeur est :</p>
<p>Affichage des items du tableau des humeurs</p>
<app-emoticon> *ngFor ="let tabHumeur of tabHumeur"
[tabHumeur]="tabHumeur"></app-emoticon>

View File

@ -7,9 +7,23 @@ import { Component, OnInit } from '@angular/core';
}) })
export class HumeurComponent implements OnInit { export class HumeurComponent implements OnInit {
constructor() { }
constructor() {
}
ngOnInit(): void { ngOnInit(): void {
} }
} }

View File

@ -1,7 +1,4 @@
<div class="meteo"> <div class="meteo">
<input type="text" id="ville"> <iframe id="widget_autocomplete_preview" width="400" height="150" frameborder="1" border-radius="5"
<label for="ville">Entrez votre code postal</label>
<button id="meteo-button">Ok !</button>
<iframe id="widget_autocomplete_preview" width="150" height="300" frameborder="0"
src="https://meteofrance.com/widget/prevision/751010"> </iframe> src="https://meteofrance.com/widget/prevision/751010"> </iframe>
</div> </div>

View File

@ -0,0 +1,6 @@
<p>emoticon des humeurs</p>
<div *ngFor="let humor of tabHumeur">{{humor.title}}</div>
<div *ngFor="let humor of tabHumeur"> <img src="{{humor.lien}}" alt="{{humor.title}}"></div>

View File

View File

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EmoticonComponent } from './emoticon.component';
describe('EmoticonComponent', () => {
let component: EmoticonComponent;
let fixture: ComponentFixture<EmoticonComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ EmoticonComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(EmoticonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,26 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-emoticon',
templateUrl: './emoticon.component.html',
styleUrls: ['./emoticon.component.scss']
})
export class EmoticonComponent implements OnInit {
//declaration du tableau
tabHumeur= [
{ title : "Je pleure", lien : "../../../assets/images/emoticon-pleurer.png"},
{ title : "Je suis en colère", lien : "../../../assets/images/emoticon-insulter.png"},
{ title : "Je suis malade", lien : "../../../assets/images/emoticon-vomir.png"}
]
constructor() { }
ngOnInit(): void {
console.log("tab humeurs ==>", this.tabHumeur)
}
}

View File

@ -38,4 +38,3 @@
</div> </div>
</main> </main>
</div> </div>
</div>

View File

@ -1,5 +1,6 @@
<app-header></app-header> <app-header></app-header>
<body> <body>
<div class="container">
<div class="bienvenue"> <div class="bienvenue">
<h2 class="titre">BIENVENUE</h2> <h2 class="titre">BIENVENUE</h2>
<p> <p>
@ -13,6 +14,7 @@ lu, nous sommes là pour vous aider !</p>
<div class="connexion"> <div class="connexion">
<app-signin></app-signin> <app-signin></app-signin>
</div> </div>
</div>
<div class="pub"> <div class="pub">
<img src="../../../assets/images/menu.png" /> <img src="../../../assets/images/menu.png" />
<img src="../../../assets/images/repertoire.png" /> <img src="../../../assets/images/repertoire.png" />

View File

@ -1,10 +1,15 @@
.container {
display: flex;
}
.bienvenue { .bienvenue {
float: left; float: left;
display: inline; // display: inline-block;
// height: 300px;
border: 4px solid #5d5fef; border: 4px solid #5d5fef;
border-radius: 10px; border-radius: 10px;
margin-top: 50px; margin-top: 50px;
margin-left: 200px; // margin-left: 200px;
padding-right: 10px; padding-right: 10px;
padding-left: 10px; padding-left: 10px;
} }
@ -18,17 +23,20 @@ p {
line-height: 2em; line-height: 2em;
} }
.connexion { .connexion {
float: right; // float: right;
height: 350px;
display: inline; display: inline;
margin-top: -40px; margin-top: -40px;
margin-right: 200px; margin-left: 10px;
// margin-right: 200px;
} }
.pub { .pub {
padding-top: 100px;
padding-right: 100px;
padding-left: 200px;
display: flex; display: flex;
flex-wrap: wrap;
padding-top: 100px;
padding-right: 200px;
padding-left: 200px;
justify-content: space-between; justify-content: space-between;
} }

View File

@ -13,10 +13,10 @@
routerLinkActive="active-custom">Ré-initialiser mon mot de passe</button> routerLinkActive="active-custom">Ré-initialiser mon mot de passe</button>
</form> </form>
<!--
<div *ngIf="errorForm"> <div *ngIf="errorForm">
<p class="text-danger">Il manque des informations dans le formulaire...</p> <p class="text-danger">Il manque des informations dans le formulaire...</p>
</div> </div> -->
</main> </main>
</div> </div>

View File

@ -14,25 +14,20 @@ import {
styleUrls: ['./page-forgot-password.component.scss'] styleUrls: ['./page-forgot-password.component.scss']
}) })
export class PageForgotPasswordComponent implements OnInit { export class PageForgotPasswordComponent implements OnInit {
public errorForm: boolean;
constructor(private authService: AuthService, private router: Router) { constructor(private authService: AuthService, private router: Router) {
this.errorForm = false;
} }
ngOnInit(): void {} ngOnInit(): void {}
public onSubmit(submittedForm: any): void {
public onSubmit(submittedForm: any): void {
console.log(submittedForm.form.value); console.log(submittedForm.form.value);
const email = submittedForm.form.value['email'];
if (email !== '') { // const email = submittedForm.form.value['email'];
this.authService.forgotPassword(email).subscribe((resp) => { // console.log(email);
console.log('Component : PageForgotPassword ', resp); window.alert("Vous allez recevoir un email pour re-initialiser votre mot de passe !")
this.router.navigate(['reinitialisation-password']); // this.router.navigate(['reinitialisation-password']);
});
} else { }
// afficher une erreur à l'utilisateur
this.errorForm = true;
}
} }
}

View File

@ -2,11 +2,15 @@
<app-side-bar></app-side-bar> <app-side-bar></app-side-bar>
<div> <div>
<p> Page introuvable</p> <div class="ctn-link min-vh-100">
<a routerLink="" routerLinkActive="!active"><br><br> <div class="text-center">
Je retourne à l'accueil<br><br><br><br><br><br><br><br><br><br><br><br></a> <p> Page introuvable</p>
<a routerLink="" routerLinkActive="!active">Je retourne à l'accueil</a>
</div>
</div>
</div> </div>

View File

@ -1,25 +1,16 @@
a.hover { p{
color: rgb(219, 200, 28); color: black;
text-align: center;
} }
a {
color: rgb(32, 114, 45); .ctn-link > div {
padding-top: 7em;
} }
div {
text-align: center;
font-weight: bold;
// si on préfère une image en fond .min-vh-100 {
// background-image: url("../../../assets/images/404.jpg"); font-weight: bold;
// background-size: cover; background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #e2ebe7, #f8faf5);
//max-width: max-content;
background-image: linear-gradient(
to left top,
#051937,
#004d7a,
#008793,
#e2ebe7,
#f8faf5
);
} }

View File

@ -26,6 +26,6 @@
<img style="max-height: 12% ; max-width: 12%" src="../../../assets/images/contact-1.png"/> <img style="max-height: 12% ; max-width: 12%" src="../../../assets/images/contact-1.png"/>
<p class="fiche-contact" >{{ personne.prenom }} {{ personne.nom }}</p> <p class="fiche-contact" >{{ personne.prenom }} {{ personne.nom }}</p>
</div> </div>
<div *ngIf="openDetails"><app-fiche-contact [personne]="openDetails"></app-fiche-contact></div> <div *ngIf="openDetails"><app-fiche-contact [personne]="openDetails" (clickDelete)="onClickDelete($event)"></app-fiche-contact></div>
</div> </div>

View File

@ -69,7 +69,10 @@ export class PageRepertoireComponent implements OnInit {
this.openDetails = personne; this.openDetails = personne;
} }
// this.repertoireService.deleteContact(contact).subscribe((resp) => {
// this.router.navigate(['repertoire/']); onClickDelete(contact: Contact){
// }); this.repertoireService.deleteContact(contact).subscribe((resp) => {
this.router.navigate(['repertoire/']);
});
}
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB