2024-08-15 14:44:53 +03:00
|
|
|
<script>
|
|
|
|
|
import NavbarMenu from "./NavbarMenu.svelte";
|
|
|
|
|
import {getContext} from "svelte";
|
|
|
|
|
|
|
|
|
|
export let schema;
|
|
|
|
|
const channel = getContext("channel");
|
|
|
|
|
const readableSchemas = getContext("readableSchemas");
|
|
|
|
|
|
|
|
|
|
const fileSchemas = readableSchemas.filter((sc) => sc.type === "files");
|
|
|
|
|
const otherSchemas = readableSchemas.filter((sc) => !sc.isEntry && sc.type === "collection");
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<div class="sidebar-top">
|
2024-08-16 16:00:48 +03:00
|
|
|
<a class="logo" href="{channel.lucentUrl}">{channel.name}</a>
|
2024-08-15 14:44:53 +03:00
|
|
|
<a class="nav-item" href="{channel.lucentUrl}/profile">
|
2024-08-16 16:00:48 +03:00
|
|
|
</a>
|
2024-08-15 14:44:53 +03:00
|
|
|
</div>
|
|
|
|
|
<div class="sidebar">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<NavbarMenu
|
|
|
|
|
title="Content"
|
|
|
|
|
schemas={ readableSchemas.filter((sc) => sc.isEntry)}
|
|
|
|
|
schema={schema}
|
|
|
|
|
expanded={true}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<NavbarMenu
|
|
|
|
|
title="Files"
|
|
|
|
|
schemas={ fileSchemas}
|
|
|
|
|
schema={schema}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<NavbarMenu
|
|
|
|
|
title="Other"
|
|
|
|
|
schemas={ otherSchemas}
|
|
|
|
|
schema={schema}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|