mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
refactor: update sidebar navigation to simplify routes and enhance tab visibility
This commit is contained in:
@@ -49,17 +49,12 @@ const sidebarItem: menu[] = [
|
||||
{
|
||||
title: 'core.navigation.extension',
|
||||
icon: 'mdi-puzzle',
|
||||
to: '/extension#installed',
|
||||
to: '/extension',
|
||||
children: [
|
||||
{
|
||||
title: 'core.navigation.extensionTabs.installed',
|
||||
icon: 'mdi-puzzle',
|
||||
to: '/extension#installed'
|
||||
},
|
||||
{
|
||||
title: 'core.navigation.extensionTabs.market',
|
||||
icon: 'mdi-store',
|
||||
to: '/extension#market'
|
||||
to: '/extension'
|
||||
},
|
||||
{
|
||||
title: 'core.navigation.extensionTabs.mcp',
|
||||
|
||||
@@ -390,7 +390,11 @@ const updateDialogPluginLogo = computed(() => {
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col v-if="activeTab === 'market'" cols="12" md="12">
|
||||
<v-col
|
||||
v-if="activeTab === 'installed' || activeTab === 'market'"
|
||||
cols="12"
|
||||
md="12"
|
||||
>
|
||||
<div class="d-flex align-center justify-center mt-4 mb-4 gap-4">
|
||||
<v-btn
|
||||
variant="text"
|
||||
|
||||
@@ -221,7 +221,7 @@ const togglePinnedExtension = (extension) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-tab-item v-show="activeTab === 'installed'">
|
||||
<v-tab-item v-show="activeTab === 'installed' || activeTab === 'market'">
|
||||
<div class="mb-4 pt-4 pb-4">
|
||||
<div class="d-flex align-center flex-wrap" style="gap: 12px">
|
||||
<h2 class="text-h2 mb-0">{{ tm("titles.installedAstrBotPlugins") }}</h2>
|
||||
|
||||
@@ -184,7 +184,7 @@ const openMarketPluginDetail = (plugin) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-tab-item v-show="activeTab === 'market'">
|
||||
<v-tab-item v-show="activeTab === 'installed' || activeTab === 'market'">
|
||||
<div class="mb-6 pt-4 pb-4">
|
||||
<div class="d-flex align-center" style="gap: 12px">
|
||||
<div class="d-flex align-center" style="gap: 12px; min-width: 0">
|
||||
|
||||
Reference in New Issue
Block a user