Skip to content

Commit ed043a1

Browse files
committed
Update some packages, fix stuff
1 parent a15505b commit ed043a1

File tree

16 files changed

+5221
-5156
lines changed

16 files changed

+5221
-5156
lines changed

package-lock.json

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

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@
2020
"@tailwindcss/postcss": "^4.1.11",
2121
"@types/eslint": "^9.6.1",
2222
"@types/node": "^22.16.5",
23+
"@typescript-eslint/eslint-plugin": "^8.37.0",
24+
"@typescript-eslint/parser": "^8.37.0",
2325
"bits-ui": "1.0.0-next.46",
2426
"clsx": "^2.1.1",
2527
"embla-carousel-svelte": "^8.6.0",
2628
"eslint": "^9.31.0",
27-
"eslint-config-prettier": "^9.1.2",
29+
"eslint-config-prettier": "^10.1.8",
2830
"eslint-plugin-svelte": "^3.11.0",
2931
"globals": "^15.15.0",
3032
"lucide-svelte": "^0.456.0",
31-
"mode-watcher": "^0.4.1",
33+
"mode-watcher": "^1.1.0",
3234
"prettier": "^3.6.2",
3335
"prettier-plugin-svelte": "^3.4.0",
3436
"prettier-plugin-tailwindcss": "^0.6.14",
@@ -37,7 +39,7 @@
3739
"stylelint-config-tailwindcss": "^0.0.7",
3840
"svelte": "^5.36.8",
3941
"svelte-check": "^4.3.0",
40-
"svelte-sonner": "^0.3.28",
42+
"svelte-sonner": "^1.0.5",
4143
"tailwind-merge": "^3.3.1",
4244
"tailwind-variants": "^1.0.0",
4345
"tailwindcss": "^4.1.11",

pnpm-lock.yaml

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

src/lib/components/blog/ArticleCard.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
>
2323
{#if article.tags != undefined}
2424
<div class="mt-1 flex flex-wrap space-x-1">
25-
{#each article.tags as tag}
25+
{#each article.tags as tag (tag)}
2626
<span class="text-muted-foreground bg-muted mb-1 rounded-md px-1 py-0.5 text-xs">
2727
{tag}
2828
</span>

src/lib/components/projects/ProjectDisplay.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
} = $props();
1616
1717
let searchFilter = $state('');
18-
setContext('searchFilter', () => console.log(searchFilter));
1918
</script>
2019

2120
<div class={cn('space-y-4', className)} {...restProps}>
@@ -25,7 +24,7 @@
2524
</div>
2625
</div>
2726
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
28-
{#each projects as project}
27+
{#each projects as project (project.name)}
2928
{#if (category == undefined || project.category == category) && project.name
3029
.toLowerCase()
3130
.includes(searchFilter.toLowerCase())}

src/lib/components/shared/Collapsible.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
</script>
2323

24-
<div>
24+
<div {...restProps}>
2525
<button
2626
class={cn(
2727
'bg-muted flex w-full items-center space-x-1 px-2 py-1 hover:cursor-pointer',

src/lib/components/shared/NavBar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<NavAnchor fuzzy href="/hobbies">Hobbies</NavAnchor>
4444
</div>
4545
<div>
46-
<Button onclick={toggleMode} class="float-right" variant="outline" size="icon">
46+
<Button onclick={toggleMode} class="float-right hover:cursor-pointer" variant="outline" size="icon">
4747
<IconSun
4848
class="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
4949
/>

src/lib/components/shared/table-of-contents/TableOfContentsElement.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
level?: number;
1313
} = $props();
1414
15+
const sizes = ['text-xl', 'text-lg', 'text-base'];
16+
let cssTextSize = level >= sizes.length ? sizes.at(-1) : sizes[level];
17+
let positionString = $state('');
18+
1519
function onCreate(_div: HTMLDivElement) {
1620
if (tocState.hasToc == false) return;
1721
@@ -43,6 +47,6 @@
4347

4448
<div {...restProps} use:onCreate>
4549
<Linkable id={encodeURIComponent(title)} class="grow"
46-
><p class="text-foreground text-xl font-bold">{title}</p></Linkable
50+
><p class="text-foreground {cssTextSize} font-bold">{positionString} {title}</p></Linkable
4751
>
4852
</div>

src/lib/components/shared/table-of-contents/state.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TOCStack } from "@/lib/table-of-contents"
1+
import type { TOCStack } from "@/lib/table-of-contents";
22

33
export const tocState = $state<{ hasToc: boolean, tocStack: TOCStack }>({
44
hasToc: false,
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<script lang="ts">
2-
import { Toaster as Sonner, type ToasterProps as SonnerProps } from "svelte-sonner";
3-
import { mode } from "mode-watcher";
2+
import { Toaster as Sonner, type ToasterProps as SonnerProps } from 'svelte-sonner';
3+
import { mode } from 'mode-watcher';
44
55
let restProps: SonnerProps = $props();
66
</script>
77

88
<Sonner
9-
theme={$mode}
9+
theme={mode.current}
1010
class="toaster group"
1111
toastOptions={{
1212
classes: {
13-
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
14-
description: "group-[.toast]:text-muted-foreground",
15-
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
16-
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
17-
},
13+
toast:
14+
'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
15+
description: 'group-[.toast]:text-muted-foreground',
16+
actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
17+
cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground'
18+
}
1819
}}
1920
{...restProps}
2021
/>

0 commit comments

Comments
 (0)