mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
Update generate-packages-index.ts
This commit is contained in:
parent
eb2ec70ad9
commit
3bf4e37b22
@ -138,7 +138,13 @@ function indexLayout(prefix: string, files: _Object[], dirs: string[]): string {
|
|||||||
${rows.map(([link, name, size, date]) => `<tr>
|
${rows.map(([link, name, size, date]) => `<tr>
|
||||||
<td class="link"><a href="${link}">${name}</a></td>
|
<td class="link"><a href="${link}">${name}</a></td>
|
||||||
<td class="size">${size ? humanFileSize(size) : "-"}</td>
|
<td class="size">${size ? humanFileSize(size) : "-"}</td>
|
||||||
<td class="date">${date?.toLocaleString() ?? "-"}</td>
|
<td class="date">${date?.toLocaleString("en-GB", {
|
||||||
|
year: "numeric",
|
||||||
|
month: "short",
|
||||||
|
day: "2-digit",
|
||||||
|
hour: "2-digit",
|
||||||
|
minute: "numeric",
|
||||||
|
}) ?? "-"}</td>
|
||||||
</tr>`).join("")}
|
</tr>`).join("")}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user