+ Please copy your new API token now. For your security, we cannot + show it to you again. If you lose this token, you will need to + delete it and generate a new one. +
+{$_("api-tokens-hint")}
+ {#if data.apiTokens.totalItems == 0} ++ {$_("no-api-tokens")} +
+ {:else} +| {$_("name")} | +{$_("expiration")} | +{$_("last-used")} | ++ |
|---|---|---|---|
| {token.name} | +{token.expiration + ? new Date( + token.expiration, + ).toLocaleDateString(undefined, { + month: "long", + day: "2-digit", + year: "numeric", + timeZone: "UTC", + }) + : $_("never")} | +{token.last_used + ? new Date( + token.last_used, + ).toLocaleTimeString(undefined, { + month: "2-digit", + day: "2-digit", + year: "numeric", + hour: "2-digit", + minute: "2-digit", + }) + : "-"} | ++ |