Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dep-updates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'freeweight': patch
---

Update dependencies to latest versions and patch security vulnerabilities.
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"@eslint/js": "10.0.1",
"@fontsource-variable/geist": "5.3.0",
"@internationalized/date": "3.12.4",
"@lucide/svelte": "1.72.0",
"@sveltejs/adapter-node": "6.0.2",
"@sveltejs/kit": "3.2.0",
"@lucide/svelte": "1.77.0",
"@sveltejs/adapter-node": "6.0.5",
"@sveltejs/kit": "3.4.0",
"@sveltejs/vite-plugin-svelte": "7.3.1",
"@tailwindcss/vite": "4.3.5",
"@types/node": "26.6.6",
"@types/nodemailer": "8.0.2",
"@types/qrcode": "1.5.6",
"auth": "1.7.23",
"auth": "1.7.27",
"bits-ui": "2.21.0",
"cn": "0.5.2",
"drizzle-kit": "0.31.11",
Expand All @@ -46,47 +46,47 @@
"eslint-plugin-svelte": "3.24.1",
"formsnap": "2.1.0",
"globals": "17.14.0",
"layerchart": "2.10.1",
"layerchart": "2.11.0",
"mode-watcher": "1.1.0",
"paneforge": "1.0.2",
"prettier": "3.10.1",
"prettier-plugin-svelte": "4.1.1",
"prettier-plugin-svelte": "4.2.0",
"prettier-plugin-tailwindcss": "0.8.1",
"shadcn-svelte": "1.8.1",
"svelte": "5.57.3",
"svelte": "5.59.1",
"svelte-check": "4.7.8",
"svelte-sonner": "1.2.3",
"sveltekit-superforms": "3.1.0",
"tailwind-variants": "4.0.2",
"tailwindcss": "4.3.5",
"tw-animate-css": "1.4.0",
"typescript": "6.0.3",
"typescript-eslint": "8.72.2",
"typescript": "^6.0.3",
"typescript-eslint": "8.73.0",
"vaul-svelte": "1.0.0-next.7",
"vite": "8.3.8",
"vitest": "5.1.0"
"vitest": "5.1.1"
},
"imports": {
"#lib": "./src/lib/index.js",
"#lib/*": "./src/lib/*"
},
"dependencies": {
"@better-auth/api-key": "^1.7.23",
"@better-auth/passkey": "^1.7.23",
"@better-auth/sso": "^1.7.23",
"@better-auth/api-key": "^1.7.27",
"@better-auth/passkey": "^1.7.27",
"@better-auth/sso": "^1.7.27",
"@freeweight/sdk": "workspace:*",
"@shadcn-svelte/primitives": "^0.0.1",
"@sveltejs/adapter-vercel": "^7.0.3",
"@sveltejs/adapter-vercel": "^7.0.5",
"@types/d3-scale": "^4.0.9",
"better-auth": "^1.7.23",
"better-auth": "^1.7.27",
"d3-scale": "^4.0.3",
"drizzle-orm": "^0.45.4",
"nodemailer": "^10.5.0",
"nodemailer": "^10.6.1",
"postgres": "^4.1.1",
"qrcode": "^1.5.4",
"runed": "^0.38.0",
"shiki": "^4.6.0",
"stripe": "~23.1.0",
"stripe": "~23.2.0",
"valibot": "^1.5.0"
},
"engines": {
Expand Down
1,019 changes: 520 additions & 499 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/lib/components/app/app-sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
<Logo />
<span class="grid flex-1 text-left leading-tight">
<span class="truncate font-semibold">{org.name}</span>
{#if !whiteLabel}<span class="truncate text-xs text-muted-foreground"
>Freeweight</span
>{/if}
{#if !whiteLabel}<span class="truncate text-xs text-muted-foreground">
Freeweight
</span>{/if}
</span>
</a>
{/snippet}
Expand Down Expand Up @@ -105,9 +105,9 @@
<Sidebar.MenuItem>
<Sidebar.MenuButton tooltipContent="Member portal">
{#snippet child({ props })}
<a href="/portal" target="_blank" {...props}
><ExternalLink /><span>Member portal</span></a
>
<a href="/portal" target="_blank" {...props}>
<ExternalLink /><span>Member portal</span>
</a>
{/snippet}
</Sidebar.MenuButton>
</Sidebar.MenuItem>
Expand Down
7 changes: 4 additions & 3 deletions src/lib/components/app/command-palette.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@
</Command.Group>
<Command.Group heading="Create">
{#each actions as action (action.href)}
<Command.Item value={action.label} onSelect={() => go(action.href)}
><Plus /> {action.label}</Command.Item
>
<Command.Item value={action.label} onSelect={() => go(action.href)}>
<Plus />
{action.label}
</Command.Item>
{/each}
</Command.Group>
</Command.List>
Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/app/demo-banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@
role="timer"
aria-label="Demo session time remaining"
aria-live="off"
class="font-medium tabular-nums">{countdown}</span
class="font-medium tabular-nums"
>
{countdown}
</span>
</span>
<a class="font-medium underline underline-offset-2" href={deployUrl}>Deploy your own</a>
</div>
9 changes: 5 additions & 4 deletions src/lib/components/app/inbox-bell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
{#if notifications.length}
<span
class="absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-primary-foreground"
>{notifications.length > 9 ? '9+' : notifications.length}</span
>
{notifications.length > 9 ? '9+' : notifications.length}
</span>
{/if}
</Sidebar.MenuButton>
{/snippet}
Expand All @@ -61,9 +62,9 @@
<span class="mt-1.5 size-2 shrink-0 rounded-full bg-primary"></span>
<span class="min-w-0 flex-1">
<span class="block truncate text-sm font-medium">{n.label}</span>
<span class="mt-0.5 line-clamp-2 block text-xs text-muted-foreground"
>{n.detail}</span
>
<span class="mt-0.5 line-clamp-2 block text-xs text-muted-foreground">
{n.detail}
</span>
</span>
</button>
</li>
Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/app/onboarding-tour.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@
</div>
<button
class="absolute top-4 left-4 text-xs text-muted-foreground underline-offset-4 hover:underline"
onclick={() => (open = false)}>Skip tour</button
onclick={() => (open = false)}
>
Skip tour
</button>
</Modal.Content>
</Modal.Root>
6 changes: 3 additions & 3 deletions src/lib/components/app/page-header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
</Breadcrumb.Item>
<Breadcrumb.Separator class="hidden md:block" />
{/each}
<Breadcrumb.Item class="min-w-0"
><Breadcrumb.Page class="truncate font-medium">{title}</Breadcrumb.Page></Breadcrumb.Item
>
<Breadcrumb.Item class="min-w-0">
<Breadcrumb.Page class="truncate font-medium">{title}</Breadcrumb.Page>
</Breadcrumb.Item>
</Breadcrumb.List>
</Breadcrumb.Root>
{#if actions}
Expand Down
28 changes: 15 additions & 13 deletions src/lib/components/app/portal-profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
{#if p.hub}
<Card.Root>
<Card.Header>
<Card.Title class="flex items-center gap-2 text-base"
><UserRound class="size-4" /> Leroa Profile</Card.Title
>
<Card.Title class="flex items-center gap-2 text-base">
<UserRound class="size-4" /> Leroa Profile
</Card.Title>
<Card.Description>
{#if p.link}
Connected to {p.link.hubHost} · sharing {scopeLabels(p.link.scopes)} · updated {formatRelative(
Expand Down Expand Up @@ -98,9 +98,9 @@
<div class="flex items-center justify-between gap-4 rounded-lg border p-3">
<Label for="sync-{m.id}" class="flex-col items-start gap-0.5 font-normal">
<span class="font-medium">Keep {m.orgName} up to date</span>
<span class="text-xs text-muted-foreground"
>Changes to your name, email and phone are copied over automatically</span
>
<span class="text-xs text-muted-foreground">
Changes to your name, email and phone are copied over automatically
</span>
</Label>
<Switch
id="sync-{m.id}"
Expand All @@ -118,19 +118,21 @@
{/if}
<Card.Footer class="flex flex-col gap-2 sm:flex-row sm:flex-wrap">
{#if p.link}
<Button variant="outline" class="w-full sm:w-auto" disabled={busy} onclick={sync}
>Sync now</Button
>
<Button variant="outline" class="w-full sm:w-auto" disabled={busy} onclick={sync}>
Sync now
</Button>
<Button
variant="ghost"
class="w-full sm:w-auto"
disabled={busy}
onclick={() => run(disconnectProfile, 'Disconnected')}>Disconnect</Button
onclick={() => run(disconnectProfile, 'Disconnected')}
>
Disconnect
</Button>
{:else}
<Button class="w-full sm:w-auto" href="/api/profile/connect?next=/portal&keep=1"
>Connect your Leroa profile</Button
>
<Button class="w-full sm:w-auto" href="/api/profile/connect?next=/portal&keep=1">
Connect your Leroa profile
</Button>
{/if}
</Card.Footer>
</Card.Root>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ui/chart/chart-style.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

{#if themeContents}
{#key id}
<svelte:element this={"style"}>
<svelte:element this={'style'}>
{themeContents}
</svelte:element>
{/key}
Expand Down
36 changes: 20 additions & 16 deletions src/routes/(app)/activity/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@
<Card.Description>Every staff and system event — who did what, when.</Card.Description>
</div>
<div class="flex items-center gap-2">
<Button variant="outline" size="sm" onclick={exportCsv} disabled={!items.length}
>Export</Button
>
<Button variant="outline" size="sm" onclick={exportCsv} disabled={!items.length}>
Export
</Button>
{#if entitlements.auditExport}
<Input type="date" class="w-36" bind:value={auditFrom} aria-label="Audit from" />
<Input type="date" class="w-36" bind:value={auditTo} aria-label="Audit to" />
Expand All @@ -148,8 +148,10 @@
} finally {
auditBusy = false;
}
}}>{auditBusy ? 'Exporting…' : 'Export all'}</Button
}}
>
{auditBusy ? 'Exporting…' : 'Export all'}
</Button>
{/if}
{#if actors.length > 1}
<Input placeholder="Search…" class="w-36" bind:value={q} />
Expand Down Expand Up @@ -204,16 +206,16 @@
<div class="min-w-0 flex-1">
<p class="text-sm">{a.summary}</p>
<p class="mt-0.5 flex flex-wrap items-center gap-2 text-xs text-muted-foreground">
<Badge variant="outline" class="font-normal"
>{typeLabel(a.entityType)} · {a.action}</Badge
>
<Badge variant="outline" class="font-normal">
{typeLabel(a.entityType)} · {a.action}
</Badge>
{#if a.actorName}<span>{a.actorName}</span>{/if}
<span
>{localDate(new Date(a.createdAt), settings.timezone)} · {localTime(
<span>
{localDate(new Date(a.createdAt), settings.timezone)} · {localTime(
a.createdAt,
settings.timezone
)}</span
>
)}
</span>
</p>
</div>
</div>
Expand Down Expand Up @@ -254,21 +256,23 @@
el.href = URL.createObjectURL(new Blob([csv], { type: 'text/csv' }));
el.download = `access-log-${new Date().toISOString().slice(0, 10)}.csv`;
el.click();
}}>Export</Button
}}
>
Export
</Button>
<Card.Description>Recent staff sign-ins — audit trail</Card.Description>
</Card.Header>
<Card.Content class="divide-y px-6">
{#each access.rows as a (a.signedInAt + a.email)}
<div class="py-2.5 first:pt-0 last:pb-0">
<p class="text-sm">{a.name} <span class="text-muted-foreground">{a.email}</span></p>
<p class="mt-0.5 flex flex-wrap items-center gap-2 text-xs text-muted-foreground">
<span
>{localDate(new Date(a.signedInAt), settings.timezone)} · {localTime(
<span>
{localDate(new Date(a.signedInAt), settings.timezone)} · {localTime(
a.signedInAt,
settings.timezone
)}</span
>
)}
</span>
{#if a.ipAddress}<span>{a.ipAddress}</span>{/if}
{#if a.userAgent}<span class="truncate">{a.userAgent}</span>{/if}
</p>
Expand Down
Loading
Loading