chore: migration to SvelteKit 2

This commit is contained in:
Rotimi Best
2024-10-19 20:14:53 +01:00
parent 38618be099
commit e3e466232e
15 changed files with 9949 additions and 7275 deletions
+4 -3
View File
@@ -11,8 +11,9 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.20.4",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.15",
"carbon-icons-svelte": "^12.3.0",
"mdsvex": "^0.11.0",
@@ -22,7 +23,7 @@
"svelte-sequential-preprocessor": "^2.0.1",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.0",
"vite": "^4.4.2"
"vite": "^5.0.0"
},
"type": "module",
"dependencies": {
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'cal.com page visited'
});
throw redirect(307, 'https://cal.com/classroomio/demo');
redirect(307, 'https://cal.com/classroomio/demo');
};
@@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export const load = async () => {
throw redirect(307, 'https://docs.google.com/presentation/d/1eqvNPNk167ZcP21gZGVAatdDpWAFL9lfmWJHHrzsVFc');
redirect(307, 'https://docs.google.com/presentation/d/1eqvNPNk167ZcP21gZGVAatdDpWAFL9lfmWJHHrzsVFc');
};
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'discord page visited'
});
throw redirect(307, 'https://discord.gg/dRmxBpJw59');
redirect(307, 'https://discord.gg/dRmxBpJw59');
};
@@ -7,5 +7,5 @@ export const load = async ({ request }) => {
event: 'github page visited'
});
throw redirect(307, 'https://github.com/rotimi-best/classroomio');
redirect(307, 'https://github.com/rotimi-best/classroomio');
};
@@ -4,5 +4,5 @@ import { redirect } from '@sveltejs/kit';
export const load = async () => {
const url = dev ? 'http://localhost:5173' : 'https://app.classroomio.com';
throw redirect(307, `${url}/org/*/courses?create=true`);
redirect(307, `${url}/org/*/courses?create=true`);
};
@@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export const load = async () => {
throw redirect(307, 'https://www.producthunt.com/posts/classroomio-2');
redirect(307, 'https://www.producthunt.com/posts/classroomio-2');
};
@@ -7,7 +7,7 @@ export const load = async ({ request }) => {
event: 'privacy page visited'
});
throw redirect(
redirect(
307,
'https://app.enzuzo.com/policies/privacy/958fc978-5477-11ee-a03b-7b111830c594'
);
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'signup'
});
throw redirect(307, 'https://app.classroomio.com/signup');
redirect(307, 'https://app.classroomio.com/signup');
};
@@ -7,5 +7,5 @@ export const load = async ({ request }) => {
event: 'privacy page visited'
});
throw redirect(307, 'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594');
redirect(307, 'https://app.enzuzo.com/policies/tos/958fc978-5477-11ee-a03b-7b111830c594');
};
@@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export const load = async () => {
throw redirect(307, 'https://form.classroomio.com/f/1v25DtmN');
redirect(307, 'https://form.classroomio.com/f/1v25DtmN');
};
@@ -40,6 +40,6 @@ export async function load({ params }) {
pageMetaTags
};
} catch (e) {
throw error(404, `Could not find ${params.slug}`);
error(404, `Could not find ${params.slug}`);
}
}
@@ -7,5 +7,5 @@ export const load = ({ request }) => {
event: 'cal.com page visited'
});
throw redirect(307, 'https://heyform.net/f/1qkguGkN');
redirect(307, 'https://heyform.net/f/1qkguGkN');
};
+1 -1
View File
@@ -1,6 +1,6 @@
import sequence from 'svelte-sequential-preprocessor';
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { fileURLToPath } from 'node:url';
import { dirname } from 'node:path';
import { mdsvex, escapeSvelte } from 'mdsvex';
+9928 -7255
View File
File diff suppressed because it is too large Load Diff