Display the list of uploaded disk images

This commit is contained in:
2025-05-29 08:33:19 +02:00
parent 20de618568
commit 615dc1ed83
2 changed files with 80 additions and 15 deletions

View File

@ -0,0 +1,13 @@
export function DateWidget(p: { time: number }): React.ReactElement {
const date = new Date(p.time * 1000);
return (
<>
{pad(date.getDate())}/{pad(date.getMonth() + 1)}/{date.getFullYear()}
</>
);
}
function pad(num: number): string {
return num.toString().padStart(2, "0");
}