refactor(components): remove unused loaded injection from sidebar

This commit is contained in:
parent 294b1b0602
commit cb2d4328a8
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -5,8 +5,6 @@
import { ISidebarItem } from "@models/sidebarEntry"; import { ISidebarItem } from "@models/sidebarEntry";
import { NuxtLink } from "#components"; import { NuxtLink } from "#components";
const loaded = inject<Ref<boolean>>("loaded");
const { useToken } = theme; const { useToken } = theme;
const { token } = useToken(); const { token } = useToken();
@ -14,7 +12,7 @@
const { data: injecto } = await useApiFetch<ISidebarItem[]>("/sidebar"); const { data: injecto } = await useApiFetch<ISidebarItem[]>("/sidebar");
let items: Ref<ItemType[]> = ref([ let items = reactive<ItemType[]>([
{ {
key: "important", key: "important",
label: h("span", { class: "smallcaps" }, ["Pinned"]), label: h("span", { class: "smallcaps" }, ["Pinned"]),
@ -79,7 +77,7 @@
// console.log("wtf", items) // console.log("wtf", items)
</script> </script>
<template> <template>
<client-only> <!-- <client-only>-->
<a-menu <a-menu
mode="inline" mode="inline"
@select=" @select="
@ -90,9 +88,6 @@
} }
} }
" "
:style="{
flexGrow: 0.8,
}"
:trigger-sub-menu-action="'click'" :trigger-sub-menu-action="'click'"
v-model:active-key="selState" v-model:active-key="selState"
:items="items" :items="items"
@ -127,7 +122,7 @@
</a-menu-item> </a-menu-item>
</a-sub-menu> --> </a-sub-menu> -->
</a-menu> </a-menu>
</client-only> <!-- </client-only>-->
</template> </template>
<style> <style>
.smallcaps { .smallcaps {