patch test Signal use
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<div
|
||||
class="relative flex h-[calc(100vh-2rem)] w-full max-w-[20rem] flex-col rounded-xl bg-white bg-clip-border p-4 text-gray-700 shadow-xl shadow-blue-gray-900/5">
|
||||
<div class="p-4 mb-2">
|
||||
<h5 class="block font-sans text-xl antialiased font-semibold leading-snug tracking-normal text-blue-gray-900">
|
||||
YouVideo
|
||||
<div routerLink="/" class="p-4 mb-2">
|
||||
<h5 class="block cursor-pointer font-sans text-xl antialiased font-semibold leading-snug tracking-normal text-blue-gray-900">
|
||||
YouVideo {{ (user$ | async)?.id }}
|
||||
</h5>
|
||||
</div>
|
||||
<nav class="flex min-w-[240px] flex-col gap-1 p-2 font-sans text-base font-normal text-blue-gray-700">
|
||||
<div *ngIf="user.id !== 0" class="relative block w-full">
|
||||
<div *ngIf="(user$ | async)?.id" class="relative block w-full">
|
||||
<div role="button"
|
||||
class="flex items-center w-full p-0 leading-tight transition-all rounded-lg outline-none bg-blue-gray-50/50 text-start text-blue-gray-700 hover:bg-blue-gray-50 hover:bg-opacity-80 hover:text-blue-gray-900 focus:bg-blue-gray-50 focus:bg-opacity-80 focus:text-blue-gray-900 active:bg-blue-gray-50 active:bg-opacity-80 active:text-blue-gray-900">
|
||||
<button type="button"
|
||||
@@ -47,21 +47,11 @@
|
||||
</div>
|
||||
Mes playlists
|
||||
</div>
|
||||
<div role="button"
|
||||
class="flex items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-gray-50 hover:bg-opacity-80 hover:text-blue-gray-900 focus:bg-blue-gray-50 focus:bg-opacity-80 focus:text-blue-gray-900 active:bg-blue-gray-50 active:bg-opacity-80 active:text-blue-gray-900">
|
||||
<div class="grid mr-4 place-items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="3"
|
||||
stroke="currentColor" aria-hidden="true" class="w-5 h-3">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"></path>
|
||||
</svg>
|
||||
</div>
|
||||
Rechercher
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="user.id === 0" routerLink="/login" role="button"
|
||||
<div *ngIf="(user$ | async)?.id" routerLink="/login" role="button"
|
||||
class="flex cursor-pointer items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-gray-50 hover:bg-opacity-80 hover:text-blue-gray-900 focus:bg-blue-gray-50 focus:bg-opacity-80 focus:text-blue-gray-900 active:bg-blue-gray-50 active:bg-opacity-80 active:text-blue-gray-900">
|
||||
<div class="grid mr-4 place-items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"
|
||||
@@ -73,8 +63,8 @@
|
||||
</div>
|
||||
Connexion/Inscription
|
||||
</div>
|
||||
<div *ngIf="user.id !== 0" role="button"
|
||||
class="flex items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-gray-50 hover:bg-opacity-80 hover:text-blue-gray-900 focus:bg-blue-gray-50 focus:bg-opacity-80 focus:text-blue-gray-900 active:bg-blue-gray-50 active:bg-opacity-80 active:text-blue-gray-900">
|
||||
<div *ngIf="(user$ | async)?.id" routerLink="/p" role="button"
|
||||
class="flex cursor-pointer items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-gray-50 hover:bg-opacity-80 hover:text-blue-gray-900 focus:bg-blue-gray-50 focus:bg-opacity-80 focus:text-blue-gray-900 active:bg-blue-gray-50 active:bg-opacity-80 active:text-blue-gray-900">
|
||||
<div class="grid mr-4 place-items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"
|
||||
class="w-5 h-5">
|
||||
@@ -85,7 +75,7 @@
|
||||
</div>
|
||||
Profile
|
||||
</div>
|
||||
<div *ngIf="user.id !== 0" (click)="logout()" role="button"
|
||||
<div *ngIf="(user$ | async)?.id" (click)="logout()" role="button"
|
||||
class="flex cursor-pointer items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-gray-50 hover:bg-opacity-80 hover:text-blue-gray-900 focus:bg-blue-gray-50 focus:bg-opacity-80 focus:text-blue-gray-900 active:bg-blue-gray-50 active:bg-opacity-80 active:text-blue-gray-900">
|
||||
<div class="grid mr-4 place-items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"
|
||||
|
||||
Reference in New Issue
Block a user