documentation.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 max-width="600px" class="rounded-lg" style="margin: 1em; padding: 0.75em; text-align: left;">
  20. <NuxtChild />
  21. </v-card>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. //--- Links To Generate Above ---//
  29. links: [{
  30. text: 'Usage Rights',
  31. icon: 'mdi-book-open-variant',
  32. to: '/documentation/usage-rights'
  33. },
  34. {
  35. text: 'URL Information',
  36. icon: 'mdi-web',
  37. to: '/documentation/url'
  38. },
  39. {
  40. text: 'Available Endpoints',
  41. icon: 'mdi-transit-connection-variant',
  42. to: '/documentation/endpoints'
  43. },
  44. {
  45. text: 'Basic Fetching Tutorial',
  46. icon: 'mdi-school',
  47. to: '/documentation/fetching'
  48. },
  49. ]
  50. }
  51. }
  52. }
  53. </script>