From 615b3759fcaaeb3cffe2aa56cba611fd0aeec940 Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Thu, 2 Feb 2023 19:55:29 +0100 Subject: [PATCH] Finish sveltekit migration --- src/routes/+page.svelte | 2 +- src/routes/blog/[...params]/+page.svelte | 2 +- src/routes/blog/[...params]/{index.css.ts => page.css.ts} | 0 src/routes/blog/[slug=blogPage]/+page.svelte | 2 +- src/routes/blog/[slug=blogPage]/{blog.css.ts => page.css.ts} | 0 src/routes/{index.css.ts => page.css.ts} | 0 src/routes/portfolio/+page.server.ts | 1 + src/routes/portfolio/+page.svelte | 2 +- src/routes/portfolio/{index.css.ts => page.css.ts} | 0 9 files changed, 5 insertions(+), 4 deletions(-) rename src/routes/blog/[...params]/{index.css.ts => page.css.ts} (100%) rename src/routes/blog/[slug=blogPage]/{blog.css.ts => page.css.ts} (100%) rename src/routes/{index.css.ts => page.css.ts} (100%) rename src/routes/portfolio/{index.css.ts => page.css.ts} (100%) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a9544eb..6450c5b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -9,7 +9,7 @@ twitchIframeClass, twitchStreamPromoClass, welcomeNoteClass, - } from './index.css' + } from './page.css' diff --git a/src/routes/blog/[...params]/+page.svelte b/src/routes/blog/[...params]/+page.svelte index d869d49..6d5ce41 100644 --- a/src/routes/blog/[...params]/+page.svelte +++ b/src/routes/blog/[...params]/+page.svelte @@ -1,7 +1,7 @@ diff --git a/src/routes/blog/[slug=blogPage]/blog.css.ts b/src/routes/blog/[slug=blogPage]/page.css.ts similarity index 100% rename from src/routes/blog/[slug=blogPage]/blog.css.ts rename to src/routes/blog/[slug=blogPage]/page.css.ts diff --git a/src/routes/index.css.ts b/src/routes/page.css.ts similarity index 100% rename from src/routes/index.css.ts rename to src/routes/page.css.ts diff --git a/src/routes/portfolio/+page.server.ts b/src/routes/portfolio/+page.server.ts index e73c64e..1db109c 100644 --- a/src/routes/portfolio/+page.server.ts +++ b/src/routes/portfolio/+page.server.ts @@ -1,6 +1,7 @@ import { readFile } from 'fs' import { promisify } from 'util' import fm from 'front-matter' +// TODO Switch marked for unified import marked from 'marked' import { parseField } from '../../markdown/parse-markdown' import type { PageServerLoad } from './$types' diff --git a/src/routes/portfolio/+page.svelte b/src/routes/portfolio/+page.svelte index a22f5fe..7ce4561 100644 --- a/src/routes/portfolio/+page.svelte +++ b/src/routes/portfolio/+page.svelte @@ -4,7 +4,7 @@ import Presentation from '../../components/portfolio/presentation.svelte' import type { PageData } from './$types' - import { listClass, listItemClass, nameTagClass } from './index.css' + import { listClass, listItemClass, nameTagClass } from './page.css' export let data: PageData diff --git a/src/routes/portfolio/index.css.ts b/src/routes/portfolio/page.css.ts similarity index 100% rename from src/routes/portfolio/index.css.ts rename to src/routes/portfolio/page.css.ts