documentation.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div>
  3. <!-- Top Section // "Sections" Card -->
  4. <v-card max-width="600px" class="rounded-lg">
  5. <v-card-title style="padding-bottom: 0">Sections</v-card-title>
  6. <v-list>
  7. <!-- Dynamically Generate Links From Below -->
  8. <v-list-item v-for="(item, i) in links" :key="i" router :to="item.to">
  9. <v-list-item-icon>
  10. <v-icon v-text="item.icon" />
  11. </v-list-item-icon>
  12. <v-list-item-title style="text-align: left">
  13. <v-list-item-title v-text="item.text" />
  14. </v-list-item-title>
  15. </v-list-item>
  16. </v-list>
  17. </v-card>
  18. <!-- Child Pages // Card -->
  19. <v-card
  20. max-width="600px"
  21. class="rounded-lg"
  22. style="margin: 1em; padding: 0.75em; text-align: left"
  23. >
  24. <NuxtChild />
  25. </v-card>
  26. </div>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. //--- Links To Generate Above ---//
  33. links: [
  34. {
  35. text: "Usage Rights",
  36. icon: "mdi-book-open-variant",
  37. to: "/documentation/usage-rights",
  38. },
  39. {
  40. text: "URL Information",
  41. icon: "mdi-web",
  42. to: "/documentation/url",
  43. },
  44. {
  45. text: "Available Endpoints",
  46. icon: "mdi-transit-connection-variant",
  47. to: "/documentation/endpoints",
  48. },
  49. {
  50. text: "Basic Fetching Tutorial",
  51. icon: "mdi-school",
  52. to: "/documentation/fetching",
  53. },
  54. ],
  55. };
  56. },
  57. };
  58. </script>