suppression qrcode et de la librairie

This commit is contained in:
styve Lioumba
2025-11-14 20:20:29 +01:00
parent ff0e29c148
commit 0301a75e4d
5 changed files with 18 additions and 151 deletions

View File

@@ -124,20 +124,6 @@
</div>
}
</div>
<a
[href]="qrCodeDownloadLink"
download="qrcode"
class="w-full flex items-center justify-center sm:pr-8 sm:py-8"
>
<qrcode
(qrCodeURL)="onChangeURL($event)"
[qrdata]="myProfileQrCode"
[width]="128"
[elementType]="'url'"
[errorCorrectionLevel]="'M'"
class="mx-auto"
></qrcode>
</a>
}
@if (isEditMode()) {

View File

@@ -3,8 +3,6 @@ import { ActivatedRoute, RouterLink, RouterOutlet } from '@angular/router';
import { User } from '@app/shared/models/user';
import { Location, NgClass } from '@angular/common';
import { UntilDestroy } from '@ngneat/until-destroy';
import { SafeUrl } from '@angular/platform-browser';
import { QRCodeModule } from 'angularx-qrcode';
import { environment } from '@env/environment';
import { ChipsComponent } from '@app/shared/components/chips/chips.component';
import { ReseauxComponent } from '@app/shared/components/reseaux/reseaux.component';
@@ -20,7 +18,6 @@ import { ProfileFacade } from '@app/ui/profiles/profile.facade';
standalone: true,
imports: [
RouterLink,
QRCodeModule,
ChipsComponent,
ReseauxComponent,
UpdateUserComponent,
@@ -40,7 +37,6 @@ export class MyProfileComponent implements OnInit {
protected menu = signal<string>('home');
protected myProfileQrCode = `${environment.production}`;
protected qrCodeDownloadLink: SafeUrl = `${environment.production}`;
protected location = inject(Location);
protected readonly route = inject(ActivatedRoute);
@@ -54,9 +50,6 @@ export class MyProfileComponent implements OnInit {
protected isEditMode = signal<boolean>(false);
onChangeURL(url: SafeUrl) {
this.qrCodeDownloadLink = url;
}
onCancelEditMode($event: boolean) {
this.isEditMode.set(!$event);

View File

@@ -1,7 +1,6 @@
import { Component, computed, inject } from '@angular/core';
import { ActivatedRoute, RouterLink } from '@angular/router';
import { QRCodeModule } from 'angularx-qrcode';
import { UpperCasePipe } from '@angular/common';
import {NgOptimizedImage, UpperCasePipe} from '@angular/common';
import { User } from '@app/shared/models/user';
import { ChipsComponent } from '@app/shared/components/chips/chips.component';
import { ReseauxComponent } from '@app/shared/components/reseaux/reseaux.component';
@@ -14,12 +13,12 @@ import { Profile } from '@app/domain/profiles/profile.model';
selector: 'app-profile-detail',
standalone: true,
imports: [
QRCodeModule,
ChipsComponent,
ReseauxComponent,
RouterLink,
UpperCasePipe,
ProjectListComponent,
NgOptimizedImage,
],
templateUrl: './profile-detail.component.html',
styleUrl: './profile-detail.component.scss',