From e64cc878b8f51f65a66c8af78ac9436ecc5fc554 Mon Sep 17 00:00:00 2001 From: Temmie Date: Wed, 13 Aug 2025 20:52:32 +0200 Subject: [PATCH] chore: remove now unused stuff --- app.vue | 1 + pages/index.vue | 16 +--------------- types/interfaces.ts | 6 +----- utils/updateNavbar.ts | 22 ---------------------- 4 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 utils/updateNavbar.ts diff --git a/app.vue b/app.vue index 8f0571f..6899675 100644 --- a/app.vue +++ b/app.vue @@ -9,6 +9,7 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/types/interfaces.ts b/types/interfaces.ts index c23fbe5..2ee2108 100644 --- a/types/interfaces.ts +++ b/types/interfaces.ts @@ -130,11 +130,7 @@ export interface NavbarItem { } export interface INavbar { - clientItems?: NavbarItem[] - channelItems?: NavbarItem[] // search bar will require some changes - contextName?: string - contextIcon?: string - guildUuid?: string + guild: GuildResponse } export interface NavbarOptions { diff --git a/utils/updateNavbar.ts b/utils/updateNavbar.ts deleted file mode 100644 index bd181d1..0000000 --- a/utils/updateNavbar.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { INavbar, NavbarOptions } from "~/types/interfaces"; - -const navbar = useState("navbar") - -export default async (options: NavbarOptions) => { - await nextTick() - - if (navbar.value) { - if (options.guild) { - navbar.value.channelItems = [] - navbar.value.contextName = options.guild?.name - navbar.value.contextIcon = options.guild?.icon ?? undefined - navbar.value.guildUuid = options.guild?.uuid - } - else if (options.isDirectMessages) { - navbar.value.channelItems = [] - navbar.value.contextName = "Direct Messages" - navbar.value.contextIcon = undefined - navbar.value.guildUuid = undefined - } - } -} \ No newline at end of file