refactor(components): cleanup

remove unused code in sidebar and default layout
This commit is contained in:
parent 39b5e83f37
commit 54349b4f29
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
2 changed files with 3 additions and 13 deletions

@ -4,10 +4,9 @@
SubMenuType, SubMenuType,
} from "ant-design-vue/es/menu/src/interface"; } from "ant-design-vue/es/menu/src/interface";
import { ItemType, theme } from "ant-design-vue"; import { ItemType, theme } from "ant-design-vue";
import sidebarIcon from "./sidebarIconified.vue";
import Icon from "../icon.vue"; import Icon from "../icon.vue";
import { ISidebarItem } from "~/models/sidebarEntry"; import { ISidebarItem } from "~/models/sidebarEntry";
import { NuxtLink } from "#components"; import { AButton, NuxtLink } from "#components";
const loaded = inject<Ref<boolean>>("loaded"); const loaded = inject<Ref<boolean>>("loaded");
@ -36,9 +35,8 @@
style: { style: {
color: token.value.colorInfo, color: token.value.colorInfo,
}, },
class: "smallcaps",
}, },
["submission rules"], ["SUBMISSION RULES"],
), ),
icon: h(Icon, { icon: h(Icon, {
istyle: "regular", istyle: "regular",
@ -90,6 +88,7 @@
@select=" @select="
({ item, key, selectedKeys }) => { ({ item, key, selectedKeys }) => {
if ((key as string).startsWith('/')) { if ((key as string).startsWith('/')) {
selState = key as string;
navigateTo(key as string); navigateTo(key as string);
} }
} }

@ -49,15 +49,6 @@
</a-layout-header> </a-layout-header>
<a-layout-content style="flex-grow: 1"> <a-layout-content style="flex-grow: 1">
<slot /> <slot />
<!-- <a-float-button
type="primary"
:style="{ height: '50px', width: '50px' }"
tooltip="Post a new Story" @click="() => navigateTo('/new-story')"
>
<template #icon>
<icon istyle="regular" name="file-plus" />
</template>
</a-float-button> -->
</a-layout-content> </a-layout-content>
<a-layout-footer style="bottom: 100%"> <a-layout-footer style="bottom: 100%">
<cfooter /> <cfooter />