diff --git a/src/app.d.ts b/src/app.d.ts index 48179e3..f44111c 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -2,10 +2,6 @@ declare const __COMMIT_HASH__: string; declare global { - //---------------------------------------------------------------------- - // svelte internals - //---------------------------------------------------------------------- - const __COMMIT_HASH__: string; namespace App { diff --git a/src/app.html b/src/app.html index bb204cc..dded98f 100644 --- a/src/app.html +++ b/src/app.html @@ -1,5 +1,5 @@ - + diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index fd84093..7077de9 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -18,6 +18,7 @@

{status}

{description}

+ Back to home {#if status !== 404} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8fc1d0e..e9c0d7c 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -9,7 +9,6 @@
Privacy News - Awesome Privacy Websites
diff --git a/src/routes/awesome-privacy/+layout.server.ts b/src/routes/awesome-privacy/+layout.server.ts index 13d63c4..7c2dbf9 100644 --- a/src/routes/awesome-privacy/+layout.server.ts +++ b/src/routes/awesome-privacy/+layout.server.ts @@ -4,9 +4,7 @@ import { awesomePrivacy } from '$lib/features/awesome-privacy/service'; import type { AwesomePrivacyData } from '$lib/features/awesome-privacy/types'; export const load: LayoutServerLoad = ({ setHeaders }) => { - setHeaders({ - 'cache-control': 'public, max-age=3600' - }); + setHeaders({ 'cache-control': 'public, max-age=3600' }); const awesomePrivacyData = awesomePrivacy.getData(); diff --git a/src/routes/awesome-privacy/+page.svelte b/src/routes/awesome-privacy/+page.svelte index 7b3c7c0..0ec0edf 100644 --- a/src/routes/awesome-privacy/+page.svelte +++ b/src/routes/awesome-privacy/+page.svelte @@ -18,6 +18,5 @@ > - diff --git a/src/routes/websites/+page.svelte b/src/routes/websites/+page.svelte index 9ed1734..6439238 100644 --- a/src/routes/websites/+page.svelte +++ b/src/routes/websites/+page.svelte @@ -2,6 +2,10 @@ import { Heading } from '$lib/components/headings'; import { Link, Text } from '$lib/components/text'; import websites from '$lib/data/websites.json'; + + function stripProtocol(url: string): string { + return url.replace(/https?:\/\//, ''); + }
@@ -25,7 +29,7 @@ class="block rounded-lg bg-base-100 px-2 py-1.5 font-semibold" external > - {website.replace(/https?:\/\//, '')} + {stripProtocol(website)} {/each} diff --git a/svelte.config.js b/svelte.config.js index 10c561b..cef7e5d 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -3,9 +3,6 @@ import adapter from '@sveltejs/adapter-cloudflare'; /** @type {import('@sveltejs/kit').Config} */ const config = { kit: { - // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://svelte.dev/docs/kit/adapters for more information about adapters. adapter: adapter() } }; diff --git a/tsconfig.json b/tsconfig.json index 15b00ff..f722831 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,9 +13,4 @@ "moduleResolution": "bundler", "types": ["@testing-library/jest-dom"] } - // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias - // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files - // - // To make changes to top-level options such as include and exclude, we recommend extending - // the generated config; see https://svelte.dev/docs/kit/configuration#typescript }