|
1 | 1 | <script setup lang="ts"> |
2 | 2 | import { ref, computed, onMounted, onUnmounted, watch, watchEffect } from 'vue' |
3 | 3 | import { RouterLink, RouterView, useRoute, useRouter } from 'vue-router' |
4 | | -import { Monitor, CodeXml, Smartphone, ChevronDown, ArrowUp, ArrowDown, CornerDownLeft, Check, Search, FileCodeCorner, FileCode, FileText, Code, BookText, MailQuestion, Moon, Sun } from '@lucide/vue' |
| 4 | +import { Monitor, CodeXml, Smartphone, ChevronDown, ArrowUp, ArrowDown, CornerDownLeft, Check, Search, FileCode, FileText, Code, BookText, MailQuestion, Moon, Sun } from '@lucide/vue' |
5 | 5 | import SidebarClose from '@/components/SidebarClose.vue' |
6 | | -import Markdown from '@/components/Markdown.vue' |
7 | 6 | import logoUrl from '@/logo.svg' |
8 | 7 | import logoGradientUrl from '@/logo-gradient.svg' |
9 | 8 | import { Kbd } from '@/components/ui/kbd' |
@@ -340,7 +339,7 @@ onUnmounted(() => { |
340 | 339 | :is-active="isActive(t.href)" |
341 | 340 | > |
342 | 341 | <RouterLink :to="t.href" class="truncate"> |
343 | | - <component :is="t.path.endsWith('.md') ? Markdown : FileCodeCorner" class="size-3 shrink-0 opacity-70" :stroke-width="1" /> |
| 342 | + <span class="mz-tpl-icon size-4 shrink-0 opacity-70" :class="t.path.endsWith('.md') ? 'mz-tpl-icon-md' : 'mz-tpl-icon-vue'" /> |
344 | 343 | <span class="truncate">{{ t.name }}</span> |
345 | 344 | </RouterLink> |
346 | 345 | </SidebarMenuButton> |
@@ -507,7 +506,7 @@ onUnmounted(() => { |
507 | 506 | :value="t.path" |
508 | 507 | @select="onCommandSelect(t.href)" |
509 | 508 | > |
510 | | - <component :is="t.path.endsWith('.md') ? Markdown : FileCodeCorner" class="size-3 shrink-0 opacity-70" :stroke-width="1" /> |
| 509 | + <span class="mz-tpl-icon size-3 shrink-0 opacity-70" :class="t.path.endsWith('.md') ? 'mz-tpl-icon-md' : 'mz-tpl-icon-vue'" /> |
511 | 510 | <span>{{ getFileName(t.path) }}</span> |
512 | 511 | <span class="sr-only">{{ ' ' + t.path.split('/').join(' ') }}</span> |
513 | 512 | </CommandItem> |
|
0 commit comments