mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-30 21:40:12 +02:00
web/ChangelogEntryWrapper: refactor to svelte 5 style
This commit is contained in:
parent
e18664e879
commit
37877a2453
@ -1,17 +1,24 @@
|
|||||||
<!-- Workaround for https://github.com/pngwn/MDsveX/issues/116 -->
|
<!-- Workaround for https://github.com/pngwn/MDsveX/issues/116 -->
|
||||||
<script lang="ts" context="module">
|
<script lang="ts" module>
|
||||||
import a from "$components/misc/OuterLink.svelte";
|
import a from "$components/misc/OuterLink.svelte";
|
||||||
export { a };
|
export { a };
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import ChangelogEntry from "$components/changelog/ChangelogEntry.svelte";
|
import ChangelogEntry from "$components/changelog/ChangelogEntry.svelte";
|
||||||
export let version = '';
|
import type { Snippet } from "svelte";
|
||||||
export let title = '';
|
|
||||||
export let date = '';
|
type Props = {
|
||||||
export let banner = undefined;
|
version: string;
|
||||||
|
title: string;
|
||||||
|
date: string;
|
||||||
|
banner?: any;
|
||||||
|
children: Snippet;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { version, title, date, banner, children }: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ChangelogEntry {version} {title} {date} {banner}>
|
<ChangelogEntry {version} {title} {date} {banner}>
|
||||||
<slot></slot>
|
{@render children?.()}
|
||||||
</ChangelogEntry>
|
</ChangelogEntry>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user