App.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <script setup lang="ts">
  2. const navigationItems = [
  3. { label: "Overview", icon: "i-lucide-book-open", to: "/" },
  4. { label: "Basic Editing", icon: "i-lucide-type", to: "/basic-editing" },
  5. { label: "Inline Marks", icon: "i-lucide-bold", to: "/inline-marks" },
  6. { label: "Tasks & Priorities", icon: "i-lucide-check-square", to: "/tasks" },
  7. {
  8. label: "Blockquotes & Callouts",
  9. icon: "i-lucide-quote",
  10. to: "/blockquotes",
  11. },
  12. { label: "Links", icon: "i-lucide-link", to: "/links" },
  13. { label: "Page Refs & Tags", icon: "i-lucide-hash", to: "/refs-tags" },
  14. { label: "Code Blocks", icon: "i-lucide-code", to: "/code-blocks" },
  15. { label: "Properties & Dates", icon: "i-lucide-list", to: "/properties" },
  16. { label: "Math", icon: "i-lucide-sigma", to: "/math" },
  17. { label: "Toolbar", icon: "i-lucide-rows-3", to: "/toolbar" },
  18. ]
  19. </script>
  20. <template>
  21. <UApp>
  22. <UHeader :ui="{ wrapper: 'border-b border-default' }">
  23. <template #left>
  24. <AppLogo class="w-auto h-5 shrink-0" />
  25. </template>
  26. <template #right>
  27. <UColorModeButton />
  28. </template>
  29. </UHeader>
  30. <UMain>
  31. <UPage class="max-w-7xl mx-auto w-full px-6">
  32. <template #left>
  33. <UPageAside>
  34. <UNavigationMenu
  35. orientation="vertical"
  36. highlight
  37. :items="navigationItems"
  38. />
  39. </UPageAside>
  40. </template>
  41. <RouterView />
  42. </UPage>
  43. </UMain>
  44. </UApp>
  45. </template>