Re-run linter

This commit is contained in:
Evert Prants 2025-02-22 09:50:27 +02:00
parent ccfcdc75f4
commit fd3f3f26af
Signed by: evert
GPG Key ID: 0960A17F9F40237D
4 changed files with 39 additions and 36 deletions

View File

@ -7,8 +7,9 @@
}
:root {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
'Helvetica Neue', sans-serif;
color: var(--in-text-color);
}

View File

@ -28,7 +28,9 @@
}
];
let entries = $derived(links.filter((link) => hasPrivileges(user.privileges || [], link.privileges)));
let entries = $derived(
links.filter((link) => hasPrivileges(user.privileges || [], link.privileges))
);
</script>
<aside class="admin-sidebar">

View File

@ -1,32 +1,32 @@
{
"authorize": {
"title": "Authorize application",
"errorPage": "The authorization URL provided is invalid or malformed. Please forward this message to the developers of the application you came here from:",
"authorize": "Authorize the application",
"reject": "Reject",
"allowed": "This application will have access to..",
"disallowed": "This application will NOT have access to..",
"scope": {
"profile": "Your username and display name",
"email": "Your email address",
"picture": "Your profile picture",
"account": "Changing your password or other account settings",
"management": "Commit administrative actions to the extent of your user privileges"
},
"link": {
"website": "Website",
"privacy": "Privacy policy",
"terms": "Terms of Service"
}
},
"device": {
"title": "Authorize device",
"description": "Please enter the code displayed on your device to proceed.",
"deviceCode": "Device code",
"success": "Success! Please check back to your device for further instructions. You may now close this window."
},
"errors": {
"noCode": "Please enter a code.",
"invalidCode": "The provided code is invalid or it has expired"
}
"authorize": {
"title": "Authorize application",
"errorPage": "The authorization URL provided is invalid or malformed. Please forward this message to the developers of the application you came here from:",
"authorize": "Authorize the application",
"reject": "Reject",
"allowed": "This application will have access to..",
"disallowed": "This application will NOT have access to..",
"scope": {
"profile": "Your username and display name",
"email": "Your email address",
"picture": "Your profile picture",
"account": "Changing your password or other account settings",
"management": "Commit administrative actions to the extent of your user privileges"
},
"link": {
"website": "Website",
"privacy": "Privacy policy",
"terms": "Terms of Service"
}
},
"device": {
"title": "Authorize device",
"description": "Please enter the code displayed on your device to proceed.",
"deviceCode": "Device code",
"success": "Success! Please check back to your device for further instructions. You may now close this window."
},
"errors": {
"noCode": "Please enter a code.",
"invalidCode": "The provided code is invalid or it has expired"
}
}

View File

@ -23,9 +23,9 @@
let internalErrors: string[] = $state([]);
let submitted = $state(false);
let errors = $derived([...internalErrors, ...(form?.errors?.length ? form.errors : [])]);
let actionUrl = $derived(data.setter
? `?/setPassword&token=${$page.url.searchParams.get('token')}`
: '?/sendEmail');
let actionUrl = $derived(
data.setter ? `?/setPassword&token=${$page.url.searchParams.get('token')}` : '?/sendEmail'
);
let pageTitle = $derived(data.setter ? 'setNewPassword' : 'resetPassword');
const enhanceFn: SubmitFunction = ({ formData, cancel }) => {