Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
declare const __COMMIT_HASH__: string;

declare global {
//----------------------------------------------------------------------
// svelte internals
//----------------------------------------------------------------------

const __COMMIT_HASH__: string;

namespace App {
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="en" data-theme="catppuccin">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down
1 change: 1 addition & 0 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<div class="text-center">
<h1 class="text-3xl font-bold text-primary">{status}</h1>
<p class="mt-4 text-center text-sm text-base-content/40">{description}</p>
<!-- actions -->
<a href={resolve('/')} class="btn mt-6 btn-primary"> Back to home </a>
{#if status !== 404}
<button onclick={() => location.reload()} class="btn mt-6"> Try again </button>
Expand Down
1 change: 0 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

<div class="mx-auto mt-6 flex flex-col items-center gap-4 sm:mt-20 sm:flex-row">
<a class="btn btn-primary" href={resolve('/privacy-news')}> Privacy News </a>

<a class="btn btn-primary" href={resolve('/awesome-privacy')}> Awesome Privacy </a>
<a class="btn btn-primary" href={resolve('/websites')}> Websites </a>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/routes/awesome-privacy/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 0 additions & 1 deletion src/routes/awesome-privacy/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
>
</header>

<!-- Bento Grid -->
<FeaturedCategories categories={data.categories} />
</main>
6 changes: 5 additions & 1 deletion src/routes/websites/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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?:\/\//, '');
}
</script>

<main class="mx-auto max-w-3xl px-4 py-8">
Expand All @@ -25,7 +29,7 @@
class="block rounded-lg bg-base-100 px-2 py-1.5 font-semibold"
external
>
{website.replace(/https?:\/\//, '')}
{stripProtocol(website)}
</Link>
</li>
{/each}
Expand Down
3 changes: 0 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
};
Expand Down
5 changes: 0 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Loading