2024-08-15 14:44:53 +03:00
|
|
|
<script>
|
2026-05-06 19:36:53 +03:00
|
|
|
import { getContext } from "svelte";
|
2024-08-15 14:44:53 +03:00
|
|
|
|
|
|
|
|
export let schema;
|
|
|
|
|
const channel = getContext("channel");
|
|
|
|
|
const readableSchemas = getContext("readableSchemas");
|
|
|
|
|
</script>
|
2026-05-06 19:36:53 +03:00
|
|
|
|
2024-08-15 14:44:53 +03:00
|
|
|
<div class="sidebar-top">
|
2026-05-06 19:36:53 +03:00
|
|
|
<a class="logo" href={channel.lucentUrl}>{channel.name}</a>
|
2024-08-15 14:44:53 +03:00
|
|
|
</div>
|
|
|
|
|
<div class="sidebar">
|
2026-05-06 21:43:13 +03:00
|
|
|
{#each readableSchemas as aschema}
|
|
|
|
|
<a
|
|
|
|
|
class="sidebar-item"
|
|
|
|
|
class:active={aschema.name === schema?.name}
|
|
|
|
|
aria-current="page"
|
|
|
|
|
href="{channel.lucentUrl}/content/{aschema.name}">{aschema.label}</a
|
|
|
|
|
>
|
|
|
|
|
{/each}
|
2024-08-15 14:44:53 +03:00
|
|
|
</div>
|