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 { :root {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, font-family:
'Open Sans', 'Helvetica Neue', sans-serif; -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
'Helvetica Neue', sans-serif;
color: var(--in-text-color); 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> </script>
<aside class="admin-sidebar"> <aside class="admin-sidebar">

View File

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

View File

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