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