Skip to content

Commit 1a9b1ca

Browse files
feat: fix upload meta-tag
1 parent 7db836d commit 1a9b1ca

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
import { prefetch } from '#queries/config';
2+
import { definePageMetaTags } from 'svelte-meta-tags';
23
import type { PageLoad } from './$types';
34

4-
export const load: PageLoad = async ({ parent, fetch }) => {
5+
export const load: PageLoad = async ({ parent }) => {
56
const { queryClient } = await parent();
67

78
prefetch({ queryClient: queryClient, fetch });
9+
10+
const pageTags = definePageMetaTags({
11+
title: 'Upload',
12+
description: 'Upload files to chithi server',
13+
openGraph: {
14+
title: 'Upload',
15+
description: 'Upload files to chithi server'
16+
}
17+
});
18+
19+
return { ...pageTags };
820
};

src/frontend/src/routes/(needs_onboarding)/(navbar_and_footer)/speedtest/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { onDestroy, onMount } from 'svelte';
2+
import { onDestroy } from 'svelte';
33
import { cubicOut } from 'svelte/easing';
44
import { Tween } from 'svelte/motion';
55
import { BACKEND_API } from '#consts/backend';
@@ -81,7 +81,7 @@
8181
if (worker) worker.terminate();
8282
});
8383
84-
// Chart Config - using shadcn CSS variables
84+
// Chart Config
8585
const chartConfig = {
8686
download: { label: 'Download', color: 'var(--color-cyan-400)' },
8787
upload: { label: 'Upload', color: 'var(--color-purple-500)' },

0 commit comments

Comments
 (0)