debug.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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">Debug Information</v-card-title>
  6. <v-card-text style="text-align: left">
  7. <!-- Gather Browser Information -->
  8. <span><b>Browser Information:</b></span
  9. ><br />
  10. <span>Browser: {{ device._parsed.name }}</span
  11. ><br />
  12. <span>Browser Vendor: {{ device._parsed.vendor }}</span
  13. ><br />
  14. <span>Version: {{ device._parsed.version }}</span
  15. ><br />
  16. <span>Operating System: {{ device._parsed.os }}</span
  17. ><br />
  18. <span>Operating System Version: {{ device._parsed.os_version }}</span
  19. ><br />
  20. <span>Device Type: {{ device._parsed.category }}</span
  21. ><br /><br />
  22. <!-- Gather Extension Information -->
  23. <span><b>Installed Extension Information:</b></span
  24. ><br />
  25. <span
  26. >Extension Version:
  27. <span id="extension-version">Waiting For Extension...</span></span
  28. ><br />
  29. </v-card-text>
  30. <v-card-actions>
  31. <v-spacer />
  32. <v-btn @click="copy()">
  33. <v-icon small style="margin-right: 0.25em">mdi-content-copy</v-icon
  34. >Copy
  35. </v-btn>
  36. </v-card-actions>
  37. </v-card>
  38. </div>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. device: this.$ua,
  45. };
  46. },
  47. methods: {
  48. copy() {
  49. const toCopy = `\`\`\`
  50. Browser Information:
  51. Browser: ${this.device._parsed.name}
  52. Browser Vendor: ${this.device._parsed.vendor}
  53. Version: ${this.device._parsed.version}
  54. Operating System: ${this.device._parsed.os}
  55. Operating System Version: ${this.device._parsed.os_version}
  56. Device Type: ${this.device._parsed.category}
  57. Installed Extension Information:
  58. Extension Version: ${document.getElementById("extension-version").innerHTML}
  59. \`\`\``;
  60. navigator.clipboard.writeText(toCopy);
  61. },
  62. },
  63. };
  64. </script>