Refactor the client to implement a channel navbar #76

Open
twig wants to merge 23 commits from navbar into main
Showing only changes of commit 74b698d728 - Show all commits

View file

@ -152,18 +152,18 @@ const guilds = await api.fetchMyGuilds();
onMounted(() => { onMounted(() => {
if (!navbar.value) { if (!navbar.value) {
const helpItem = { const sourceLinkItem: NavbarItem = {
title: "Source", title: "Source",
icon: "lucide:code-xml", icon: "lucide:code-xml",
callback: () => { open("https://git.gorb.app/gorb/frontend") } callback: () => { open("https://git.gorb.app/gorb/frontend") }
} as NavbarItem }
navbar.value = { navbar.value = {
clientItems: [ clientItems: [
helpItem sourceLinkItem
], ],
channelItems: [] // set by the channel channelItems: [] // set by the channel
} as INavbar }
} }
}) })