Refactor icons & tailwindcss plugins #21
1 changed files with 10 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Add table
Reference in a new issue