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
.github/workflows
src
lib/components/site
routes/(auth)/auth
unlighthouse.config.ts

View file

@ -75,7 +75,7 @@ jobs:
- name: Install Dependencies
run: pnpm install -g @unlighthouse/cli puppeteer
- name: Run Unlighthouse
run: |
export SCAN_URL=${{ github.ref == 'refs/heads/main' && env.WEBSITE_URL || steps.vercel_preview_url.outputs.preview_url }}

View file

@ -6,4 +6,4 @@ export { default as TailwindIndicator } from './tailwind-indicator.svelte';
export { default as ModeToggle } from './mode-toggle.svelte';
export { default as Particles } from './particles.svelte';
export * from './icons';
export * from './icons';

View file

@ -5,7 +5,10 @@
<footer class="container py-6">
<div class="space-y-1">
<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>
</div>
</footer>

View file

@ -153,7 +153,12 @@
</div>
<div class="grid gap-2">
<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>
<Button type="submit" disabled={isLoading}>
{#if isLoading}
@ -173,7 +178,8 @@
</div>
</Tabs.Content>
<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>
</p>
{#if providers.length}

View file

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