Refactor icons & tailwindcss plugins #21

Merged
glazk0 merged 6 commits from dev into main 2024-04-06 19:49:21 +02:00
Showing only changes of commit fadf1f4176 - Show all commits

View file

@ -18,6 +18,7 @@
logged: boolean; logged: boolean;
type: string; type: string;
pseudo?: string; pseudo?: string;
createdAt: Date;
}; };
const stateStore = createStateStore<Log>(); const stateStore = createStateStore<Log>();
@ -31,7 +32,10 @@
(acc, log) => { (acc, log) => {
const key = log.pseudo || 'Unknown'; const key = log.pseudo || 'Unknown';
if (!acc[key]) acc[key] = []; if (!acc[key]) acc[key] = [];
acc[key].unshift(log); acc[key].unshift({
...log,
createdAt: new Date()
});
return acc; return acc;
}, },
{} as Record<string, Log[]> {} as Record<string, Log[]>
@ -104,6 +108,11 @@
Pseudo: <span class="font-normal text-foreground">{log.pseudo}</span> Pseudo: <span class="font-normal text-foreground">{log.pseudo}</span>
</p> </p>
{/if} {/if}
<p class="text-sm font-medium text-muted-foreground">
Date:
<span class="font-normal text-foreground">
{log.createdAt.toLocaleString()}
</span>
</div> </div>
</div> </div>
{/each} {/each}