Merge branch 'dev' of https://github.com/AlineRinquin/organizee-front into dev
This commit is contained in:
commit
bc51469588
|
@ -13,12 +13,14 @@ import { PageForgotPasswordComponent } from './pages/page-forgot-password/page-f
|
||||||
import { PageMenuSemaineComponent } from './pages/page-menu-semaine/page-menu-semaine.component';
|
import { PageMenuSemaineComponent } from './pages/page-menu-semaine/page-menu-semaine.component';
|
||||||
import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component';
|
import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component';
|
||||||
import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component';
|
import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component';
|
||||||
|
import { PageHumeurComponent} from './pages/page-humeur/page-humeur.component';
|
||||||
import { PageRepertoireComponent } from './pages/page-repertoire/page-repertoire.component';
|
import { PageRepertoireComponent } from './pages/page-repertoire/page-repertoire.component';
|
||||||
import { PageResetPasswordComponent } from './pages/page-reset-password/page-reset-password.component';
|
import { PageResetPasswordComponent } from './pages/page-reset-password/page-reset-password.component';
|
||||||
import { PageSignupComponent } from './pages/page-signup/page-signup.component';
|
import { PageSignupComponent } from './pages/page-signup/page-signup.component';
|
||||||
import { PageToDoListComponent } from './pages/page-to-do-list/page-to-do-list.component';
|
import { PageToDoListComponent } from './pages/page-to-do-list/page-to-do-list.component';
|
||||||
import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component';
|
import { PageUpdateAccountComponent } from './pages/page-update-account/page-update-account.component';
|
||||||
import { PageUpdateMemberComponent } from './pages/page-update-member/page-update-member.component';
|
import { PageUpdateMemberComponent } from './pages/page-update-member/page-update-member.component';
|
||||||
|
import { FooterComponent } from './components/footer/footer.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: '', redirectTo: 'accueil', pathMatch: 'full' },
|
{ path: '', redirectTo: 'accueil', pathMatch: 'full' },
|
||||||
|
@ -40,6 +42,8 @@ const routes: Routes = [
|
||||||
{ path: 'modifier-compte', component: PageUpdateAccountComponent },
|
{ path: 'modifier-compte', component: PageUpdateAccountComponent },
|
||||||
{ path: 'ajouter-contact', component: PageAjoutContactComponent },
|
{ path: 'ajouter-contact', component: PageAjoutContactComponent },
|
||||||
{ path: 'creation-team', component: PageCreationTeamComponent },
|
{ path: 'creation-team', component: PageCreationTeamComponent },
|
||||||
|
{ path: 'humeur', component: PageHumeurComponent },
|
||||||
|
{ path: 'footer', component: FooterComponent},
|
||||||
{ path: '**', component: PageNotFoundComponent },
|
{ path: '**', component: PageNotFoundComponent },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ import { PageUpdateMemberComponent } from './pages/page-update-member/page-updat
|
||||||
import { SigninComponent } from './components/signin/signin.component';
|
import { SigninComponent } from './components/signin/signin.component';
|
||||||
import { PageDashboardComponent } from './pages/page-dashboard/page-dashboard.component';
|
import { PageDashboardComponent } from './pages/page-dashboard/page-dashboard.component';
|
||||||
import { MeteoComponent } from './components/meteo/meteo.component';
|
import { MeteoComponent } from './components/meteo/meteo.component';
|
||||||
import { HumeurComponent } from './components/humeur/humeur.component';
|
|
||||||
import { CalendrierComponent } from './components/calendrier/calendrier.component';
|
import { CalendrierComponent } from './components/calendrier/calendrier.component';
|
||||||
import { CardMemberComponent } from './components/card-member/card-member.component';
|
import { CardMemberComponent } from './components/card-member/card-member.component';
|
||||||
import { ToDoListComponent } from './components/to-do-list/to-do-list.component';
|
import { ToDoListComponent } from './components/to-do-list/to-do-list.component';
|
||||||
|
@ -36,6 +35,8 @@ import { PageAjoutContactComponent } from './pages/page-ajout-contact/page-ajout
|
||||||
import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component';
|
import { PageModifierContactComponent } from './pages/page-modifier-contact/page-modifier-contact.component';
|
||||||
import { PageCreationTeamComponent } from './pages/page-creation-team/page-creation-team.component';
|
import { PageCreationTeamComponent } from './pages/page-creation-team/page-creation-team.component';
|
||||||
import { AutofocusFixModule } from 'ngx-autofocus-fix';
|
import { AutofocusFixModule } from 'ngx-autofocus-fix';
|
||||||
|
import { PageHumeurComponent } from './pages/page-humeur/page-humeur.component';
|
||||||
|
import { FooterComponent } from './components/footer/footer.component';
|
||||||
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';
|
import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||||
|
@ -63,7 +64,7 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||||
SigninComponent,
|
SigninComponent,
|
||||||
PageDashboardComponent,
|
PageDashboardComponent,
|
||||||
MeteoComponent,
|
MeteoComponent,
|
||||||
HumeurComponent,
|
PageHumeurComponent,
|
||||||
CalendrierComponent,
|
CalendrierComponent,
|
||||||
CardMemberComponent,
|
CardMemberComponent,
|
||||||
ToDoListComponent,
|
ToDoListComponent,
|
||||||
|
@ -75,6 +76,8 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||||
PageAjoutContactComponent,
|
PageAjoutContactComponent,
|
||||||
PageModifierContactComponent,
|
PageModifierContactComponent,
|
||||||
PageCreationTeamComponent,
|
PageCreationTeamComponent,
|
||||||
|
PageHumeurComponent,
|
||||||
|
FooterComponent,
|
||||||
PageDeleteAccountComponent,
|
PageDeleteAccountComponent,
|
||||||
PageUpdateAccountComponent,
|
PageUpdateAccountComponent,
|
||||||
EmoticonComponent,
|
EmoticonComponent,
|
||||||
|
@ -85,7 +88,7 @@ import { EmoticonComponent } from './emoticon/emoticon.component';
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
AutofocusFixModule.forRoot(),
|
// AutofocusFixModule.forRoot(),
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>footer works!</p>
|
||||||
|
<h2>PLAN DU SITE</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a routerLink="../accueil" routerLinkActive="active-custom" class="nav-link">Page d'accueil</a>
|
||||||
|
<a routerLink="../compte" routerLinkActive="active-custom" class="nav-link">Ma Team</a>
|
||||||
|
<a routerLink="../repertoire" routerLinkActive="active-custom" class="nav-link">Répertoire</a>
|
||||||
|
<a routerLink="../to-do-list" routerLinkActive="active-custom" class="nav-link">To-Do-List</a>
|
||||||
|
<a routerLink="../menu" routerLinkActive="active-custom" class="nav-link">Menus</a>
|
||||||
|
<a routerLink="../compte" routerLinkActive="active-custom" class="nav-link">Ma Team</a>
|
||||||
|
<a routerLink="../repertoire" routerLinkActive="active-custom" class="nav-link">Répertoire</a>
|
||||||
|
<a routerLink="../to-do-list" routerLinkActive="active-custom" class="nav-link">To-Do-List</a>
|
||||||
|
<a routerLink="../menu" routerLinkActive="active-custom" class="nav-link">Menus</a>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
|
@ -0,0 +1,7 @@
|
||||||
|
body {
|
||||||
|
background-color: pink;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
color : blue
|
||||||
|
}
|
|
@ -1,20 +1,20 @@
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { HumeurComponent } from './humeur.component';
|
import { FooterComponent } from './footer.component';
|
||||||
|
|
||||||
describe('HumeurComponent', () => {
|
describe('FooterComponent', () => {
|
||||||
let component: HumeurComponent;
|
let component: FooterComponent;
|
||||||
let fixture: ComponentFixture<HumeurComponent>;
|
let fixture: ComponentFixture<FooterComponent>;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [ HumeurComponent ]
|
declarations: [ FooterComponent ]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(HumeurComponent);
|
fixture = TestBed.createComponent(FooterComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-footer',
|
||||||
|
templateUrl: './footer.component.html',
|
||||||
|
styleUrls: ['./footer.component.scss']
|
||||||
|
})
|
||||||
|
export class FooterComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +0,0 @@
|
||||||
<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>
|
|
|
@ -1,29 +0,0 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-humeur',
|
|
||||||
templateUrl: './humeur.component.html',
|
|
||||||
styleUrls: ['./humeur.component.scss']
|
|
||||||
})
|
|
||||||
export class HumeurComponent implements OnInit {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
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)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -6,5 +6,6 @@ export interface Membre {
|
||||||
dateNaissance: Date;
|
dateNaissance: Date;
|
||||||
couleur: string;
|
couleur: string;
|
||||||
passwordConfirm: string;
|
passwordConfirm: string;
|
||||||
|
// smiley: string;
|
||||||
roleList: string[];
|
roleList: string[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h2>Mon humeur :</h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p><img src="{{monHumeurLien}}" *ngIf="monHumeurLien" ></p>
|
||||||
|
|
||||||
|
<p>Je modifie mon avatar :</p>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="humeur" *ngFor="let humor of tabHumeur; let i=index">
|
||||||
|
<img src="{{humor.lien}}" alt="{{humor.title}}" (click)="onChoixHumeur(i)">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div >
|
||||||
|
|
||||||
|
|
||||||
|
</div> </body>
|
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
p>img {
|
||||||
|
width: 85px;
|
||||||
|
height: 85px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.humeur {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: grey;
|
||||||
|
text-align: center;
|
||||||
|
}
|
|
@ -1,20 +1,20 @@
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { EmoticonComponent } from './emoticon.component';
|
import { PageHumeurComponent } from './page-humeur.component';
|
||||||
|
|
||||||
describe('EmoticonComponent', () => {
|
describe('PageHumeurComponent', () => {
|
||||||
let component: EmoticonComponent;
|
let component: PageHumeurComponent;
|
||||||
let fixture: ComponentFixture<EmoticonComponent>;
|
let fixture: ComponentFixture<PageHumeurComponent>;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [ EmoticonComponent ]
|
declarations: [ PageHumeurComponent ]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(EmoticonComponent);
|
fixture = TestBed.createComponent(PageHumeurComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
|
@ -0,0 +1,39 @@
|
||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-page-humeur',
|
||||||
|
templateUrl: './page-humeur.component.html',
|
||||||
|
styleUrls: ['./page-humeur.component.scss']
|
||||||
|
})
|
||||||
|
|
||||||
|
export class PageHumeurComponent implements OnInit {
|
||||||
|
|
||||||
|
monHumeurLien! : string[];
|
||||||
|
monHumeurTitle! : string[] ;
|
||||||
|
|
||||||
|
|
||||||
|
tabHumeur= [
|
||||||
|
{ title : "Je vais bien", lien : "assets/images/emoticon-heureux.png"},
|
||||||
|
{ title : "Je pleure", lien : "assets/images/emoticon-pleurer.png"},
|
||||||
|
{ title : "Je suis fatigué", lien : "assets/images/emoticon-fatigue.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 { }
|
||||||
|
|
||||||
|
onChoixHumeur(numero: number){
|
||||||
|
this.monHumeurTitle= [this.tabHumeur[numero].title];
|
||||||
|
this.monHumeurLien= [this.tabHumeur[numero].lien];
|
||||||
|
|
||||||
|
console.log("humeur titre est : ", this.monHumeurTitle);
|
||||||
|
console.log("humeur lien est : ", this.monHumeurLien);
|
||||||
|
console.log("index humeur est : ", numero );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -4,12 +4,16 @@
|
||||||
|
|
||||||
<div class="ctn-link min-vh-100">
|
<div class="ctn-link min-vh-100">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<p> Page introuvable</p>
|
|
||||||
|
|
||||||
|
|
||||||
<a routerLink="" routerLinkActive="!active">Je retourne à l'accueil</a>
|
<a routerLink="" routerLinkActive="!active">Je retourne à l'accueil</a>
|
||||||
</div>
|
<p></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<img src="/assets/images/404.gif" alt="Page introuvable">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,6 +11,9 @@ p{
|
||||||
|
|
||||||
.min-vh-100 {
|
.min-vh-100 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #e2ebe7, #f8faf5);
|
//background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #e2ebe7, #f8faf5);
|
||||||
//max-width: max-content;
|
//max-width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {justify-content: center;
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
Binary file not shown.
Before Width: | Height: | Size: 52 KiB |
Binary file not shown.
After Width: | Height: | Size: 441 KiB |
Binary file not shown.
After Width: | Height: | Size: 443 KiB |
Loading…
Reference in New Issue