update
This commit is contained in:
rodič
fc43d45d7d
revize
4281a9018f
|
@ -0,0 +1 @@
|
||||||
|
<p class="mb-2"><slot /></p>
|
|
@ -14,6 +14,8 @@ class API {
|
||||||
if (!this.bundle) {
|
if (!this.bundle) {
|
||||||
if (local) {
|
if (local) {
|
||||||
this.bundle = staticBundle
|
this.bundle = staticBundle
|
||||||
|
//const resp = await fetch('http://localhost:8000/22/bundle.json')
|
||||||
|
//this.bundle = await resp.json()
|
||||||
} else {
|
} else {
|
||||||
const resp = await fetch('https://spec.utxo.cz/22/bundle.json')
|
const resp = await fetch('https://spec.utxo.cz/22/bundle.json')
|
||||||
this.bundle = await resp.json()
|
this.bundle = await resp.json()
|
||||||
|
|
|
@ -13,8 +13,9 @@
|
||||||
import calcDuration from "$lib/events.js";
|
import calcDuration from "$lib/events.js";
|
||||||
import SvelteMarkdown from "svelte-markdown";
|
import SvelteMarkdown from "svelte-markdown";
|
||||||
import Link from "$lib/Link.svelte";
|
import Link from "$lib/Link.svelte";
|
||||||
|
import Paragraph from "$lib/Paragraph.svelte";
|
||||||
|
|
||||||
const renderers = { link: Link };
|
const renderers = { link: Link, paragraph: Paragraph };
|
||||||
|
|
||||||
$: id = getId($page.url.search);
|
$: id = getId($page.url.search);
|
||||||
$: e = $bundle ? $bundle.spec.events.find((ev) => ev.id === id) : null;
|
$: e = $bundle ? $bundle.spec.events.find((ev) => ev.id === id) : null;
|
||||||
|
@ -70,11 +71,11 @@
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="mt-8">
|
{#if e.description}
|
||||||
{#if e.description}
|
<div class="mt-6 mb-6">
|
||||||
<SvelteMarkdown source={e.description} {renderers} />
|
<SvelteMarkdown source={e.description} {renderers} />
|
||||||
{/if}
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
{#if childrens.length}
|
{#if childrens.length}
|
||||||
<div><h2 class="text uppercase mb-4">Obsahuje události ({ childrens.length })</h2></div>
|
<div><h2 class="text uppercase mb-4">Obsahuje události ({ childrens.length })</h2></div>
|
||||||
<div>
|
<div>
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu