Files
lucent-laravel/front/js/svelte/layout/Navbar.svelte
T

22 lines
577 B
Svelte
Raw Normal View History

2024-08-15 14:44:53 +03:00
<script>
import NavbarMenu from "./NavbarMenu.svelte";
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>
<a class="nav-item" href="{channel.lucentUrl}/profile"> </a>
2024-08-15 14:44:53 +03:00
</div>
<div class="sidebar">
<NavbarMenu
2026-05-06 19:36:53 +03:00
title="Content"
schemas={readableSchemas.filter((sc) => sc.isEntry)}
{schema}
expanded={true}
2024-08-15 14:44:53 +03:00
/>
</div>