Skip to content

Commit e83eaad

Browse files
authored
Hard navigate on server version change (#559)
1 parent e3cf208 commit e83eaad

File tree

35 files changed

+575
-423
lines changed

35 files changed

+575
-423
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"dependencies": {
3434
"@napi-rs/canvas": "^0.1.81",
35-
"@sentry/sveltekit": "^10.22.0",
35+
"@sentry/sveltekit": "^10.25.0",
3636
"isomorphic-dompurify": "^2.31.0",
3737
"vanilla-cookieconsent": "^3.1.0"
3838
},
@@ -48,9 +48,9 @@
4848
"@quantco/pnpm-licenses": "^2.2.1",
4949
"@sinclair/typebox": "^0.34.41",
5050
"@sveltejs/adapter-node": "^5.4.0",
51-
"@sveltejs/kit": "2.47.0",
51+
"@sveltejs/kit": "2.48.4",
5252
"@sveltejs/vite-plugin-svelte": "6.2.0",
53-
"@tailwindcss/vite": "^4.1.16",
53+
"@tailwindcss/vite": "^4.1.17",
5454
"@tanstack/table-core": "^8.21.3",
5555
"@types/d3-array": "^3.2.2",
5656
"@types/d3-format": "^3.0.4",
@@ -62,7 +62,7 @@
6262
"@typeschema/class-validator": "^0.2.0",
6363
"@vinejs/vine": "^1.8.0",
6464
"arktype": "^2.1.25",
65-
"bits-ui": "2.9.6",
65+
"bits-ui": "2.14.3",
6666
"class-validator": "^0.14.2",
6767
"classnames": "^2.5.1",
6868
"clsx": "^2.1.1",
@@ -86,11 +86,11 @@
8686
"joi": "^17.13.3",
8787
"layercake": "^10.0.2",
8888
"layerchart": "2.0.0-next.42",
89-
"marked": "^16.4.1",
89+
"marked": "^16.4.2",
9090
"mdsx": "^0.0.7",
9191
"mode-watcher": "^1.1.0",
9292
"orval": "^7.16.0",
93-
"paneforge": "1.0.0-next.6",
93+
"paneforge": "1.0.2",
9494
"prettier": "^3.6.2",
9595
"prettier-plugin-svelte": "^3.4.0",
9696
"prettier-plugin-tailwindcss": "^0.6.14",
@@ -99,27 +99,27 @@
9999
"rehype-pretty-code": "^0.14.1",
100100
"rehype-slug": "^6.0.0",
101101
"remark-gfm": "^4.0.1",
102-
"runed": "^0.31.1",
102+
"runed": "^0.36.0",
103103
"superstruct": "^2.0.2",
104-
"svelte": "^5.43.2",
104+
"svelte": "^5.43.6",
105105
"svelte-check": "^4.3.3",
106106
"svelte-dnd-action": "^0.9.67",
107107
"svelte-sonner": "^1.0.5",
108108
"svelte-time": "^2.0.2",
109109
"sveltekit-rate-limiter": "^0.7.0",
110110
"sveltekit-superforms": "^2.28.0",
111-
"tailwind-merge": "^3.3.1",
112-
"tailwind-variants": "^1.0.0",
113-
"tailwindcss": "^4.1.16",
114-
"ts-morph": "^26.0.0",
111+
"tailwind-merge": "^3.4.0",
112+
"tailwind-variants": "^3.1.1",
113+
"tailwindcss": "^4.1.17",
114+
"ts-morph": "^27.0.2",
115115
"tslib": "^2.8.1",
116116
"tw-animate-css": "^1.4.0",
117117
"typescript": "^5.9.3",
118-
"typescript-eslint": "^8.46.2",
119-
"valibot": "^0.42.1",
118+
"typescript-eslint": "^8.46.4",
119+
"valibot": "^1.1.0",
120120
"vaul-svelte": "1.0.0-next.7",
121121
"velite": "^0.3.0",
122-
"vite": "^7.1.12",
122+
"vite": "^7.2.2",
123123
"yup": "^1.7.1",
124124
"zod": "^4.1.12"
125125
}

pnpm-lock.yaml

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

src/app.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ declare global {
2121
interface Session {
2222
session?: AuthSession;
2323
}
24+
interface PageData {
25+
session?: AuthSession;
26+
bot: boolean;
27+
}
2428
// interface Stuff {}
2529
}
2630

src/components/analytics/g-tag.svelte

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<script lang="ts">
2+
import { page } from '$app/state';
23
import { PUBLIC_GTAG_MEASUREMENT_ID } from '$env/static/public';
34
import { onMount } from 'svelte';
45
import CookieConsent from './cookie-consent.svelte';
6+
import { ADDITIONAL_TAGS } from './tag-config';
57
68
onMount(() => {
79
if (PUBLIC_GTAG_MEASUREMENT_ID) {
@@ -22,6 +24,14 @@
2224
window.gtag = gtag;
2325
</script>
2426
{/if}
27+
{#if ADDITIONAL_TAGS && ADDITIONAL_TAGS.length > 0}
28+
{#each ADDITIONAL_TAGS as tag, i (i)}
29+
{#if tag.condition === undefined || tag.condition(page.data)}
30+
<!-- eslint-disable-next-line -->
31+
{@html tag.content}
32+
{/if}
33+
{/each}
34+
{/if}
2535
</svelte:head>
2636

2737
{#if PUBLIC_GTAG_MEASUREMENT_ID}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Additional script tags to be included on pages
2+
export const ADDITIONAL_TAGS: { name: string; content: string; condition: (page: App.PageData) => boolean }[] = [];

src/components/charts/crop-graph.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
};
5555
</script>
5656

57-
<div class="m-2 h-[200px] rounded">
57+
<div class="m-2 h-[200px] rounded dark:scheme-dark">
5858
<Chart
5959
{data}
6060
x="date"
@@ -116,7 +116,7 @@
116116
<Tooltip.Header>
117117
{tooltipFormatter.format(new Date(data.date * 1000))}
118118
</Tooltip.Header>
119-
<div class="">
119+
<div class="" id="tooltip-content">
120120
<p>{getCropDisplayName(getCropFromName(crop) ?? Crop.Wheat)} Collection</p>
121121
<p class="font-mono">{(+data.value).toLocaleString()}</p>
122122
{#if pests}

src/components/footer/footer.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
</div>
7171
<div class="flex w-full flex-col gap-2 px-4 md:px-8">
7272
<span data-ccpa-link="1" class="text-sm hover:underline"></span>
73+
<div id="ncmp-consent-link" class="text-sm hover:underline"></div>
74+
7375
<div class="flex w-full flex-wrap items-start justify-center gap-x-4 gap-y-2 md:gap-x-8">
7476
{#if PUBLIC_COMMIT_HASH !== ''}
7577
<p class="text-muted-foreground/50 flex-1 text-xs">

src/components/head-ld-json.svelte

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script lang="ts">
2+
interface Props {
3+
content: unknown;
4+
}
5+
6+
let { content }: Props = $props();
7+
</script>
8+
9+
<svelte:head>
10+
<svelte:element this={'script'} type="application/ld+json">
11+
{JSON.stringify(content)}
12+
</svelte:element>
13+
</svelte:head>

src/components/head.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import { page } from '$app/state';
33
import { PUBLIC_HOST_URL } from '$env/static/public';
4+
import HeadLdJson from './head-ld-json.svelte';
45
56
interface Props {
67
title: string | undefined; // 'Elite | Skyblock Farming Weight';
@@ -56,11 +57,7 @@
5657
{/if}
5758

5859
{#if ldJson}
59-
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
60-
{@html `<[placeholder] type="application/ld+json">${JSON.stringify(ldJson)}</[placeholder]>`.replaceAll(
61-
'[placeholder]',
62-
'script'
63-
)}`}
60+
<HeadLdJson content={ldJson} />
6461
{/if}
6562

6663
{@render children?.()}

src/components/sidebar/user-dropdown.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<Clover />
8787
My Fortune
8888
</DropdownMenu.LinkItem>
89-
{#if session.flags.moderator}
89+
{#if session.perms.moderator}
9090
<DropdownMenu.LinkItem href="/admin">
9191
<Shield />
9292
Admin

0 commit comments

Comments
 (0)