refactor(components): cleanup
remove unused code in sidebar and default layout
This commit is contained in:
parent
39b5e83f37
commit
54349b4f29
@ -4,10 +4,9 @@
|
||||
SubMenuType,
|
||||
} from "ant-design-vue/es/menu/src/interface";
|
||||
import { ItemType, theme } from "ant-design-vue";
|
||||
import sidebarIcon from "./sidebarIconified.vue";
|
||||
import Icon from "../icon.vue";
|
||||
import { ISidebarItem } from "~/models/sidebarEntry";
|
||||
import { NuxtLink } from "#components";
|
||||
import { AButton, NuxtLink } from "#components";
|
||||
|
||||
const loaded = inject<Ref<boolean>>("loaded");
|
||||
|
||||
@ -36,9 +35,8 @@
|
||||
style: {
|
||||
color: token.value.colorInfo,
|
||||
},
|
||||
class: "smallcaps",
|
||||
},
|
||||
["submission rules"],
|
||||
["SUBMISSION RULES"],
|
||||
),
|
||||
icon: h(Icon, {
|
||||
istyle: "regular",
|
||||
@ -90,6 +88,7 @@
|
||||
@select="
|
||||
({ item, key, selectedKeys }) => {
|
||||
if ((key as string).startsWith('/')) {
|
||||
selState = key as string;
|
||||
navigateTo(key as string);
|
||||
}
|
||||
}
|
||||
|
@ -49,15 +49,6 @@
|
||||
</a-layout-header>
|
||||
<a-layout-content style="flex-grow: 1">
|
||||
<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-footer style="bottom: 100%">
|
||||
<cfooter />
|
||||
|
Loading…
Reference in New Issue
Block a user