Sidebar.vue 765 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <SmartTabs
  3. v-model="selectedNavigationTab"
  4. styles="sticky bg-primary z-10 top-0"
  5. vertical
  6. >
  7. <SmartTab :id="'history'" icon="clock" :label="`${$t('tab.history')}`">
  8. <History ref="historyComponent" :page="'rest'" />
  9. </SmartTab>
  10. <SmartTab
  11. :id="'collections'"
  12. icon="folder"
  13. :label="`${$t('tab.collections')}`"
  14. >
  15. <Collections />
  16. </SmartTab>
  17. <SmartTab :id="'env'" icon="layers" :label="`${$t('environment.title')}`">
  18. <Environments />
  19. </SmartTab>
  20. </SmartTabs>
  21. </template>
  22. <script setup lang="ts">
  23. import { ref } from "@nuxtjs/composition-api"
  24. type RequestOptionTabs = "history" | "collections" | "env"
  25. const selectedNavigationTab = ref<RequestOptionTabs>("history")
  26. </script>