GitHubStarButton.vue 764 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <transition name="fade" appear>
  3. <GithubButton
  4. title="Star Hoppscotch"
  5. href="https://github.com/hoppscotch/hoppscotch"
  6. :data-color-scheme="
  7. $colorMode.value != 'light'
  8. ? $colorMode.value == 'black'
  9. ? 'dark'
  10. : 'dark_dimmed'
  11. : 'light'
  12. "
  13. :data-show-count="true"
  14. data-text="Star"
  15. aria-label="Star Hoppscotch on GitHub"
  16. :data-size="size"
  17. />
  18. </transition>
  19. </template>
  20. <script>
  21. import { defineComponent } from "@nuxtjs/composition-api"
  22. import GithubButton from "vue-github-button"
  23. export default defineComponent({
  24. components: {
  25. GithubButton,
  26. },
  27. props: {
  28. size: {
  29. type: String,
  30. default: undefined,
  31. },
  32. },
  33. })
  34. </script>