diff --git a/playwright/index.ts b/playwright/index.ts deleted file mode 100644 index ac6de14..0000000 --- a/playwright/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -// Import styles, initialize component theme here. -// import '../src/common.css'; diff --git a/src/hooks.ts b/src/hooks.ts deleted file mode 100644 index 9d263d0..0000000 --- a/src/hooks.ts +++ /dev/null @@ -1,16 +0,0 @@ -// import type { Handle } from "@sveltejs/kit"; -// import * as cookie from "cookie"; -import { sequence } from "@sveltejs/kit/hooks"; -import { basename } from "path"; - -const handleHeaders = async ({ event, resolve }:{event:any, resolve:any}) => { - const response = await resolve(event); - // Avoid clickjacking attacks, see https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html - response.headers.set( - "Content-Security-Policy", - "frame-ancestors *.mattmor.in *;" - ); - return response; -}; - -export const handle = sequence(handleHeaders); diff --git a/src/lib/stores/stores.ts b/src/lib/stores/stores.ts deleted file mode 100644 index 8c11f6d..0000000 --- a/src/lib/stores/stores.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { readable } from 'svelte/store'; - -export const time = readable(new Date(), function start(set) { - const interval = setInterval(() => { - set(new Date()); - }, 1000); - - return function stop() { - clearInterval(interval); - }; -}); diff --git a/src/lib/types/blog.d.ts b/src/lib/types/blog.d.ts deleted file mode 100644 index 9422890..0000000 --- a/src/lib/types/blog.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { MarkdownMetadata } from '$content/types'; - -export type BlogTag = 'DevOps' | 'AI' | 'Updates' | ''; - -export interface BlogPost extends MarkdownMetadata { - author?: string; - date?: string; - excerpt: string; - image: string; - slug?: string; - href?: string; - tags?: BlogTag[]; - subtitle?: string; - teaserImage: string; - title: string; - isNotAnActualPost?: boolean; - type?: string; -} diff --git a/src/lib/types/categories.d.ts b/src/lib/types/categories.d.ts deleted file mode 100644 index 69bb702..0000000 --- a/src/lib/types/categories.d.ts +++ /dev/null @@ -1 +0,0 @@ -export type categories = 'sveltekit' | 'svelte'; diff --git a/src/lib/types/projects.d.ts b/src/lib/types/projects.d.ts deleted file mode 100644 index 20b6650..0000000 --- a/src/lib/types/projects.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { MarkdownMetadata } from '$content/types'; - -export interface Project extends MarkdownMetadata { - title: string; - excerpt: string; - slug: string; - image: string; - date: string; - pageTitle: string; - pageDescription: string; - keywords: string; -} diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte deleted file mode 100644 index e02a5ca..0000000 --- a/src/routes/about/+page.svelte +++ /dev/null @@ -1 +0,0 @@ -

There is nothing to see yet

diff --git a/src/routes/blog/rss.xml/alternative.ts b/src/routes/blog/rss.xml/alternative.ts deleted file mode 100644 index d66ee04..0000000 --- a/src/routes/blog/rss.xml/alternative.ts +++ /dev/null @@ -1,37 +0,0 @@ -import * as config from '$lib/config'; -import type { BlogPost } from '$lib/types'; - -export const prerender = true; - -export async function GET({ fetch }) { - const response = await fetch('api/posts'); - const posts: BlogPost[] = await response.json(); - - const headers = { 'Content-Type': 'application/xml' }; - - const xml = ` - - - ${config.title} - ${config.description} - ${config.url} - - ${posts - .map( - (post) => ` - - ${post.title} - ${post.description} - ${config.url}/${post.slug} - ${config.url}/${post.slug} - ${new Date(post.date).toUTCString()} - - ` - ) - .join('')} - - - `.trim(); - - return new Response(xml, { headers }); -} diff --git a/src/routes/random/+page.svelte b/src/routes/random/+page.svelte deleted file mode 100644 index cddfc66..0000000 --- a/src/routes/random/+page.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - -

The time is {formatter.format($time)}

diff --git a/src/service-worker/index.js b/src/service-worker/index.js deleted file mode 100644 index b7e92f8..0000000 --- a/src/service-worker/index.js +++ /dev/null @@ -1,6 +0,0 @@ -/// -/// -/// -/// - -const sw = /** @type {ServiceWorkerGlobalScope} */ (/** @type {unknown} */ (self)); diff --git a/static/images/Logo.png b/static/images/Logo.png deleted file mode 100644 index 12ab88b..0000000 Binary files a/static/images/Logo.png and /dev/null differ