This commit is contained in:
vcoppe
2025-06-21 21:07:36 +02:00
parent f0230d4634
commit 1cc07901f6
803 changed files with 7937 additions and 6329 deletions

View File

@@ -1,12 +1,16 @@
<script lang="ts">
export let module;
import type { Component } from 'svelte';
let { module: Module }: { module: Component } = $props();
</script>
<div class="markdown flex flex-col gap-3">
<svelte:component this={module} />
<Module />
</div>
<style lang="postcss">
@reference "../../../app.css";
:global(.markdown) {
@apply text-muted-foreground;
}

View File

@@ -1,6 +1,11 @@
<script lang="ts">
export let src: 'getting-started/interface' | 'tools/routing' | 'tools/split';
export let alt: string;
let {
src,
alt,
}: {
src: 'getting-started/interface' | 'tools/routing' | 'tools/split';
alt: string;
} = $props();
</script>
<div class="flex flex-col items-center py-6 w-full">

View File

@@ -1,5 +1,7 @@
<script lang="ts">
export let type: 'note' | 'warning' = 'note';
import type { Snippet } from 'svelte';
let { type = 'note', children }: { type?: 'note' | 'warning'; children: Snippet } = $props();
</script>
<div
@@ -7,10 +9,12 @@
? 'border-link'
: 'border-destructive'} p-2 text-sm rounded-md"
>
<slot />
{@render children()}
</div>
<style lang="postcss">
@reference "../../../app.css";
div :global(a) {
@apply text-link;
@apply hover:underline;

View File

@@ -2,7 +2,6 @@ import {
File,
FilePen,
View,
type Icon,
Settings,
Pencil,
MapPin,
@@ -10,11 +9,12 @@ import {
CalendarClock,
Group,
Ungroup,
Filter,
Funnel,
SquareDashedMousePointer,
MountainSnow,
} from 'lucide-svelte';
import type { ComponentType } from 'svelte';
type IconProps,
} from '@lucide/svelte';
import type { Component } from 'svelte';
export const guides: Record<string, string[]> = {
'getting-started': [],
@@ -37,7 +37,7 @@ export const guides: Record<string, string[]> = {
faq: [],
};
export const guideIcons: Record<string, string | ComponentType<Icon>> = {
export const guideIcons: Record<string, string | Component<IconProps>> = {
'getting-started': '🚀',
menu: '📂 ⚙️',
file: File,
@@ -53,7 +53,7 @@ export const guideIcons: Record<string, string | ComponentType<Icon>> = {
merge: Group,
extract: Ungroup,
elevation: MountainSnow,
minify: Filter,
minify: Funnel,
clean: SquareDashedMousePointer,
'map-controls': '🗺',
gpx: '💾',