refactor: formatting

This commit is contained in:
Bart van der Braak 2024-02-19 11:11:31 +01:00
parent 2b46265564
commit 0e83c8b051
5 changed files with 35 additions and 26 deletions

View file

@ -5,7 +5,10 @@
<footer class="container py-6"> <footer class="container py-6">
<div class="space-y-1"> <div class="space-y-1">
<p class="text-center text-sm text-muted-foreground"> <p class="text-center text-sm text-muted-foreground">
&copy; {new Date().getFullYear()} &mdash; <a href={siteConfig.links.gitHubProject} target="_blank">{siteConfig.name}</a> by <a href={siteConfig.links.gitHubProfile} target="_blank">{siteConfig.author}</a>. Licensed GPL-3.0. &copy; {new Date().getFullYear()} &mdash;
<a href={siteConfig.links.gitHubProject} target="_blank">{siteConfig.name}</a>
by <a href={siteConfig.links.gitHubProfile} target="_blank">{siteConfig.author}</a>. Licensed
GPL-3.0.
</p> </p>
</div> </div>
</footer> </footer>

View file

@ -153,7 +153,12 @@
</div> </div>
<div class="grid gap-2"> <div class="grid gap-2">
<Label for="password">Confirm password</Label> <Label for="password">Confirm password</Label>
<Input id="confirm-password-register" name="passwordConfirm" type="password" disabled={isLoading} /> <Input
id="confirm-password-register"
name="passwordConfirm"
type="password"
disabled={isLoading}
/>
</div> </div>
<Button type="submit" disabled={isLoading}> <Button type="submit" disabled={isLoading}>
{#if isLoading} {#if isLoading}
@ -173,7 +178,8 @@
</div> </div>
</Tabs.Content> </Tabs.Content>
<p class="px-8 text-center text-xs text-muted-foreground"> <p class="px-8 text-center text-xs text-muted-foreground">
Don't have an account? <a class="text-primary underline" href="/auth?tab=register">Register</a>.<br /> Don't have an account? <a class="text-primary underline" href="/auth?tab=register">Register</a
>.<br />
Forgot password? <a class="text-primary underline" href="/reset-password">Reset password.</a> Forgot password? <a class="text-primary underline" href="/reset-password">Reset password.</a>
</p> </p>
{#if providers.length} {#if providers.length}

View file

@ -1,23 +1,23 @@
import { defineConfig } from 'unlighthouse' import { defineConfig } from 'unlighthouse';
export default defineConfig ({ export default defineConfig({
site: process.env.SITE_URL || 'http://localhost:5173/', site: process.env.SITE_URL || 'http://localhost:5173/',
scanner: { scanner: {
samples: 1, samples: 1,
throttle: true, throttle: true
}, },
cookies: [ cookies: [
{ {
name: 'pb_auth', name: 'pb_auth',
value: process.env.AUTH_COOKIE || '', value: process.env.AUTH_COOKIE || '',
domain: 'localhost', domain: 'localhost',
path: '/', path: '/',
sameSite: 'Lax', sameSite: 'Lax'
} }
], ],
ci: { ci: {
reporter: 'jsonExpanded', reporter: 'jsonExpanded',
buildStatic: true, buildStatic: true,
budget: 65, budget: 65
}, }
}); });