From 54349b4f295a0dadb810fb5f6dd6a51e562223ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 11 Oct 2023 15:14:52 -0400 Subject: [PATCH] refactor(components): cleanup remove unused code in sidebar and default layout --- components/layouts/sidebar.vue | 7 +++---- layouts/default.vue | 9 --------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/components/layouts/sidebar.vue b/components/layouts/sidebar.vue index a9d7974..718aad0 100644 --- a/components/layouts/sidebar.vue +++ b/components/layouts/sidebar.vue @@ -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>("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); } } diff --git a/layouts/default.vue b/layouts/default.vue index e12c9bd..2175179 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -49,15 +49,6 @@ -