Skip to content

Commit a85cacd

Browse files
committed
fix: update dependencies to latest versions and improve code formatting
1 parent 2c460cc commit a85cacd

5 files changed

Lines changed: 34 additions & 33 deletions

File tree

bun.lock

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
"mode-watcher": "^1.1.0",
2929
"prettier": "^3.6.2",
3030
"prettier-plugin-svelte": "^3.4.0",
31-
"svelte": "^5.34.9",
31+
"svelte": "^5.35.2",
3232
"svelte-check": "^4.2.2",
3333
"svelte-sonner": "^1.0.5",
3434
"sveltekit-superforms": "^2.27.1",
3535
"tailwind-merge": "^3.3.1",
3636
"tailwind-variants": "^1.0.0",
3737
"tailwindcss": "^4.1.11",
38-
"tw-animate-css": "^1.3.4",
38+
"tw-animate-css": "^1.3.5",
3939
"typescript": "^5.8.3",
4040
"vite": "^6.3.5"
4141
},
4242
"dependencies": {
4343
"lucide-svelte": "^0.515.0",
44-
"zod": "^3.25.67"
44+
"zod": "^3.25.71"
4545
}
4646
}

src/routes/admin/products/+page.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
<p class="text-muted-foreground">Manage your product catalog</p>
3939
</div>
4040
<div class="flex items-center gap-3">
41-
<Button href="/admin/products/categories" variant="outline">
42-
Categories
43-
</Button>
41+
<Button href="/admin/products/categories" variant="outline">Categories</Button>
4442
<Button href="/admin/products/new" class="flex items-center gap-2">
4543
<Plus class="h-4 w-4" />
4644
Add Product

src/routes/admin/products/categories/+page.svelte

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
import { enhance } from '$app/forms';
44
import { invalidateAll } from '$app/navigation';
55
import { Button } from '$lib/components/ui/button';
6-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '$lib/components/ui/card';
6+
import {
7+
Card,
8+
CardContent,
9+
CardDescription,
10+
CardHeader,
11+
CardTitle
12+
} from '$lib/components/ui/card';
713
import { Badge } from '$lib/components/ui/badge';
814
import * as DropdownMenu from '$lib/components/ui/dropdown-menu';
915
import * as Dialog from '$lib/components/ui/dialog';
@@ -80,7 +86,10 @@
8086
</Button>
8187
</DropdownMenu.Trigger>
8288
<DropdownMenu.Content>
83-
<DropdownMenu.Item onclick={() => window.location.href = `/admin/products/categories/${category.id}/edit`}>
89+
<DropdownMenu.Item
90+
onclick={() =>
91+
(window.location.href = `/admin/products/categories/${category.id}/edit`)}
92+
>
8493
<Edit class="h-4 w-4 mr-2" />
8594
Edit
8695
</DropdownMenu.Item>
@@ -145,9 +154,9 @@
145154
</Dialog.Header>
146155
<Dialog.Footer>
147156
<Button variant="outline" onclick={closeDeleteDialog}>Cancel</Button>
148-
<form
149-
method="POST"
150-
action="?/delete"
157+
<form
158+
method="POST"
159+
action="?/delete"
151160
use:enhance={() => {
152161
return async ({ result }) => {
153162
if (result.type === 'success') {

src/routes/login/+page.svelte

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { enhance } from '$app/forms';
99
1010
let { form } = $props();
11-
11+
1212
let showPassword = $state(false);
1313
let isSubmitting = $state(false);
1414
@@ -25,11 +25,9 @@
2525
<Card.Root class="w-full max-w-md">
2626
<Card.Header class="text-center">
2727
<Card.Title class="text-2xl font-bold">Admin Login</Card.Title>
28-
<Card.Description>
29-
Sign in to access the Commercify admin dashboard
30-
</Card.Description>
28+
<Card.Description>Sign in to access the Commercify admin dashboard</Card.Description>
3129
</Card.Header>
32-
30+
3331
<Card.Content>
3432
{#if form?.error}
3533
<Alert class="mb-6" variant="destructive">
@@ -41,8 +39,8 @@
4139
</Alert>
4240
{/if}
4341

44-
<form
45-
method="POST"
42+
<form
43+
method="POST"
4644
class="space-y-6"
4745
use:enhance={() => {
4846
isSubmitting = true;
@@ -96,11 +94,7 @@
9694
</div>
9795
</div>
9896

99-
<Button
100-
type="submit"
101-
class="w-full"
102-
disabled={isSubmitting}
103-
>
97+
<Button type="submit" class="w-full" disabled={isSubmitting}>
10498
{#if isSubmitting}
10599
<div class="flex items-center">
106100
<div class="animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"></div>
@@ -113,11 +107,9 @@
113107
</Button>
114108
</form>
115109
</Card.Content>
116-
110+
117111
<Card.Footer class="text-center">
118-
<p class="text-sm text-gray-600">
119-
Only administrators can access this dashboard
120-
</p>
112+
<p class="text-sm text-gray-600">Only administrators can access this dashboard</p>
121113
</Card.Footer>
122114
</Card.Root>
123115
</div>

0 commit comments

Comments
 (0)