From 12bcb257550099dae1ea90fba522059ba38518a3 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 31 May 2023 11:19:56 -0400 Subject: [PATCH] tidy up --- .../src/routes/examples/[slug]/+page.svelte | 128 ------------------ .../[slug]/{+page.server.js => +server.js} | 2 +- .../examples/[slug]/TableOfContents.svelte | 123 ----------------- 3 files changed, 1 insertion(+), 252 deletions(-) delete mode 100644 sites/svelte.dev/src/routes/examples/[slug]/+page.svelte rename sites/svelte.dev/src/routes/examples/[slug]/{+page.server.js => +server.js} (68%) delete mode 100644 sites/svelte.dev/src/routes/examples/[slug]/TableOfContents.svelte diff --git a/sites/svelte.dev/src/routes/examples/[slug]/+page.svelte b/sites/svelte.dev/src/routes/examples/[slug]/+page.svelte deleted file mode 100644 index b9126e63ae..0000000000 --- a/sites/svelte.dev/src/routes/examples/[slug]/+page.svelte +++ /dev/null @@ -1,128 +0,0 @@ - - - - - {data.example?.title} {data.example?.title ? '•' : ''} Svelte Examples - - - - - - -

Examples

-
-
- -
- -
-
- {#if mobile} - - {/if} -
- - diff --git a/sites/svelte.dev/src/routes/examples/[slug]/+page.server.js b/sites/svelte.dev/src/routes/examples/[slug]/+server.js similarity index 68% rename from sites/svelte.dev/src/routes/examples/[slug]/+page.server.js rename to sites/svelte.dev/src/routes/examples/[slug]/+server.js index 43d673dd32..11cdbe5841 100644 --- a/sites/svelte.dev/src/routes/examples/[slug]/+page.server.js +++ b/sites/svelte.dev/src/routes/examples/[slug]/+server.js @@ -1,5 +1,5 @@ import { redirect } from '@sveltejs/kit'; -export async function load({ params }) { +export async function GET({ params }) { throw redirect(308, `/repl/${params.slug}`); } diff --git a/sites/svelte.dev/src/routes/examples/[slug]/TableOfContents.svelte b/sites/svelte.dev/src/routes/examples/[slug]/TableOfContents.svelte deleted file mode 100644 index 1aa8a7965a..0000000000 --- a/sites/svelte.dev/src/routes/examples/[slug]/TableOfContents.svelte +++ /dev/null @@ -1,123 +0,0 @@ - - - - -