refacto page mon profile

This commit is contained in:
styve Lioumba
2025-11-15 17:30:09 +01:00
parent 620b781219
commit b669190bce
29 changed files with 1702 additions and 743 deletions

View File

@@ -1,14 +1,13 @@
import { Component, computed, inject, OnInit, signal } from '@angular/core';
import { ActivatedRoute, RouterLink, RouterOutlet } from '@angular/router';
import { ActivatedRoute, RouterOutlet } from '@angular/router';
import { User } from '@app/shared/models/user';
import { Location, NgClass } from '@angular/common';
import { Location, UpperCasePipe } from '@angular/common';
import { UntilDestroy } from '@ngneat/until-destroy';
import { environment } from '@env/environment';
import { ChipsComponent } from '@app/shared/components/chips/chips.component';
import { ReseauxComponent } from '@app/shared/components/reseaux/reseaux.component';
import { UpdateUserComponent } from '@app/shared/features/update-user/update-user.component';
import { MyProfileProjectListComponent } from '@app/shared/components/my-profile-project-list/my-profile-project-list.component';
import { MyHomeProfileComponent } from '@app/shared/components/my-home-profile/my-home-profile.component';
import { MyProfileUpdateFormComponent } from '@app/shared/components/my-profile-update-form/my-profile-update-form.component';
import { PdfViewerComponent } from '@app/shared/features/pdf-viewer/pdf-viewer.component';
import { ProfileFacade } from '@app/ui/profiles/profile.facade';
@@ -17,16 +16,14 @@ import { ProfileFacade } from '@app/ui/profiles/profile.facade';
selector: 'app-my-profile',
standalone: true,
imports: [
RouterLink,
ChipsComponent,
ReseauxComponent,
UpdateUserComponent,
MyProfileProjectListComponent,
RouterOutlet,
MyHomeProfileComponent,
MyProfileUpdateFormComponent,
NgClass,
PdfViewerComponent,
UpperCasePipe,
],
templateUrl: './my-profile.component.html',
styleUrl: './my-profile.component.scss',
@@ -48,13 +45,6 @@ export class MyProfileComponent implements OnInit {
return {} as User;
});
protected isEditMode = signal<boolean>(false);
onCancelEditMode($event: boolean) {
this.isEditMode.set(!$event);
}
private readonly profileFacade = new ProfileFacade();
protected profile = this.profileFacade.profile;
protected readonly loading = this.profileFacade.loading;