2024-08-15 14:44:53 +03:00
|
|
|
<script>
|
|
|
|
|
import Avatar from "../account/Avatar.svelte";
|
|
|
|
|
import {getContext} from "svelte";
|
2024-08-24 18:51:36 +03:00
|
|
|
import Dropdown from "../common/Dropdown.svelte";
|
2024-08-15 14:44:53 +03:00
|
|
|
|
|
|
|
|
const channel = getContext("channel");
|
|
|
|
|
const user = getContext("user");
|
2024-08-24 18:51:36 +03:00
|
|
|
console.log( channel.commands)
|
2024-08-15 14:44:53 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top-nav ">
|
|
|
|
|
<a class="top-nav-item" href="{channel.lucentUrl}/members">Members</a>
|
|
|
|
|
|
2024-08-24 19:35:07 +03:00
|
|
|
{#if channel.commands.length > 0}
|
2024-08-24 18:51:36 +03:00
|
|
|
<Dropdown>
|
|
|
|
|
<div slot="button">Actions</div>
|
|
|
|
|
{#each channel.commands as command}
|
|
|
|
|
<a href="{channel.lucentUrl}/command-report/{command.signature}" class="top-nav-item">{command.name}</a>
|
|
|
|
|
{/each}
|
|
|
|
|
</Dropdown>
|
|
|
|
|
|
2024-08-15 14:44:53 +03:00
|
|
|
{/if}
|
|
|
|
|
<!-- <div>-->
|
|
|
|
|
<!-- <form method="GET">-->
|
|
|
|
|
<!-- <input type="search" name="filter[search_regex]" placeholder="Search"-->
|
|
|
|
|
<!-- class="form-control" required/>-->
|
|
|
|
|
<!-- </form>-->
|
|
|
|
|
<!-- </div>-->
|
2024-08-24 18:51:36 +03:00
|
|
|
<a href="{channel.lucentUrl}/profile">
|
|
|
|
|
<Avatar side="28" name={user.name}/>
|
|
|
|
|
</a>
|
2024-08-15 14:44:53 +03:00
|
|
|
</div>
|
|
|
|
|
|