From d35e03f0b07d1af3fecd51cd4ca42a76c300db23 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 5 Aug 2026 11:58:50 +0200 Subject: format: run prettier --- src/utils-common.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/utils-common.ts') diff --git a/src/utils-common.ts b/src/utils-common.ts index f3ad944..8053043 100644 --- a/src/utils-common.ts +++ b/src/utils-common.ts @@ -1,8 +1,18 @@ "use strict"; -export const DATE_FMT = new Intl.DateTimeFormat("de-DE", { month: "numeric", day: "numeric", year: "numeric"}); +export const DATE_FMT = new Intl.DateTimeFormat("de-DE", { + month: "numeric", + day: "numeric", + year: "numeric", +}); -export const DATETIME_FMT = new Intl.DateTimeFormat("de-DE", { month: "numeric", day: "numeric", year: "numeric", hour: "numeric", minute: "numeric" }); +export const DATETIME_FMT = new Intl.DateTimeFormat("de-DE", { + month: "numeric", + day: "numeric", + year: "numeric", + hour: "numeric", + minute: "numeric", +}); export function dateStringNow() { return DATE_FMT.format(new Date()); @@ -14,8 +24,8 @@ export function datetimeStringNow() { // TODO(muhq): Cache the retrieved URL export async function getUserIconUrl(userId: number): Promise { - const userRes = await fetch(`https://lernplattform.bycs.de/user/profile.php?id=${userId}`) - const userDoc = new DOMParser().parseFromString(await userRes.text(), 'text/html') + const userRes = await fetch(`https://lernplattform.bycs.de/user/profile.php?id=${userId}`); + const userDoc = new DOMParser().parseFromString(await userRes.text(), "text/html"); const userpicture = userDoc.querySelector(".userpicture"); if (userpicture === null) { return ""; -- cgit v1.2.3