From 58e68077b0026f9412e331487520756f6772e35f Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 29 May 2025 07:23:38 +0800 Subject: [PATCH] hide Sponsors --- src/layouts/components/DefaultLayout.vue | 271 +++++++---------------- 1 file changed, 85 insertions(+), 186 deletions(-) diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 0149a16c..df0be7c1 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -27,7 +27,7 @@ const baseStore = useBaseStore(); const current = ref(''); // the current chain const temp = ref('') blockchain.$subscribe((m, s) => { - if(current.value ===s.chainName && temp.value != s.endpoint.address) { + if (current.value === s.chainName && temp.value != s.endpoint.address) { temp.value = s.endpoint.address blockchain.initial(); } @@ -48,13 +48,13 @@ const changeOpen = (index: Number) => { const showDiscord = window.location.host.search('ping.pub') > -1; function isNavGroup(nav: VerticalNavItems | any): nav is NavGroup { - return (nav).children !== undefined; + return (nav).children !== undefined; } function isNavLink(nav: VerticalNavItems | any): nav is NavLink { - return (nav).to !== undefined; + return (nav).to !== undefined; } function isNavTitle(nav: VerticalNavItems | any): nav is NavSectionTitle { - return (nav).heading !== undefined; + return (nav).heading !== undefined; } function selected(route: any, nav: NavLink) { const b = route.path === nav.to?.path || route.path.startsWith(nav.to?.path) && nav.title.indexOf('dashboard') === -1 @@ -82,8 +82,7 @@ const show_ad = computed(() => {
+ :class="{ block: sidebarShow, 'hidden xl:!block': !sidebarShow }">
@@ -91,118 +90,63 @@ const show_ad = computed(() => { Ping.pub -
+
-
-
- +
+
+
- - -
+ class="collapse-title !py-0 px-4 flex items-center cursor-pointer hover:bg-gray-100 dark:hover:bg-[#373f59]"> + + +
{{ item?.title }}
-
+
{{ item?.badgeContent }}
-
+