mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-11 04:21:49 +00:00
Remove explicit sveltekit typing (#490)
This commit is contained in:
@@ -2,8 +2,7 @@
|
|||||||
import Societies from '$lib/components/Societies/index.svelte';
|
import Societies from '$lib/components/Societies/index.svelte';
|
||||||
import EventListElement from '$lib/components/EventListElement/index.svelte';
|
import EventListElement from '$lib/components/EventListElement/index.svelte';
|
||||||
import Seo from '$lib/components/Seo.svelte';
|
import Seo from '$lib/components/Seo.svelte';
|
||||||
import type { PageData } from './$types';
|
export let data;
|
||||||
export let data: PageData;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Seo title="Events" />
|
<Seo title="Events" />
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
import type { PageLoad } from './$types';
|
|
||||||
import { getPages } from '../pageList';
|
import { getPages } from '../pageList';
|
||||||
|
|
||||||
export async function load(): Promise<PageLoad> {
|
export async function load() {
|
||||||
const events = await getPages(import.meta.glob('./**/*.svx'));
|
const events = await getPages(import.meta.glob('./**/*.svx'));
|
||||||
|
|
||||||
if (events) {
|
if (events) {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
import '$styles/highlight.css';
|
import '$styles/highlight.css';
|
||||||
import type { PageLoad } from './$types';
|
|
||||||
import { getPages } from '../pageList';
|
import { getPages } from '../pageList';
|
||||||
|
|
||||||
export async function load(): Promise<PageLoad> {
|
export async function load() {
|
||||||
const pages = (await getPages(import.meta.glob('./**/*.svx'))).map((element) => ({
|
const pages = (await getPages(import.meta.glob('./**/*.svx'))).map((element) => ({
|
||||||
...element,
|
...element,
|
||||||
path: '/recipes' + element.path.substring(1)
|
path: '/recipes' + element.path.substring(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user