This commit is contained in:
Front committed 2021-12-27 19:19:35 -05:00
1 parent 687cb38da7
commit a39eaedfa6
6 files changed
+106 -85

No files matched your search

+43 -34
View File
@@ -3,23 +3,35 @@
<!-- Top Section // "Sections" Card -->
<v-card max-width="600px" class="rounded-lg">
<v-card-title style="padding-bottom: 0">Debug Information</v-card-title>
<v-card-text style="text-align: left;">
<v-card-text style="text-align: left">
<!-- Gather Browser Information -->
<span><b>Browser Information:</b></span><br>
<span>Browser: {{ device._parsed.name }}</span><br>
<span>Browser Vendor: {{ device._parsed.vendor }}</span><br>
<span>Version: {{ device._parsed.version }}</span><br>
<span>Operating System: {{ device._parsed.os }}</span><br>
<span>Operating System Version: {{ device._parsed.os_version }}</span><br>
<span>Device Type: {{ device._parsed.category }}</span><br><br>
<span><b>Browser Information:</b></span
><br />
<span>Browser: {{ device._parsed.name }}</span
><br />
<span>Browser Vendor: {{ device._parsed.vendor }}</span
><br />
<span>Version: {{ device._parsed.version }}</span
><br />
<span>Operating System: {{ device._parsed.os }}</span
><br />
<span>Operating System Version: {{ device._parsed.os_version }}</span
><br />
<span>Device Type: {{ device._parsed.category }}</span
><br /><br />
<!-- Gather Extension Information -->
<span><b>Installed Extension Information:</b></span><br>
<span>Extension Version: <span id="extension-version">Waiting For Extension...</span></span><br>
<span><b>Installed Extension Information:</b></span
><br />
<span
>Extension Version:
<span id="extension-version">Waiting For Extension...</span></span
><br />
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn @click="copy()">
<v-icon small style="margin-right: 0.25em;">mdi-content-copy</v-icon>Copy
<v-icon small style="margin-right: 0.25em">mdi-content-copy</v-icon
>Copy
</v-btn>
</v-card-actions>
</v-card>
@@ -27,33 +39,30 @@
</template>
<script>
export default {
data() {
return {
device: this.$ua,
}
},
export default {
data() {
return {
device: this.$ua,
};
},
methods: {
copy() {
const toCopy = `\`\`\`
methods: {
copy() {
const toCopy = `\`\`\`
Browser Information:
Browser: ${ this.device._parsed.name }
Browser Vendor: ${ this.device._parsed.vendor }
Version: ${ this.device._parsed.version }
Operating System: ${ this.device._parsed.os }
Operating System Version: ${ this.device._parsed.os_version }
Device Type: ${ this.device._parsed.category }
Browser: ${this.device._parsed.name}
Browser Vendor: ${this.device._parsed.vendor}
Version: ${this.device._parsed.version}
Operating System: ${this.device._parsed.os}
Operating System Version: ${this.device._parsed.os_version}
Device Type: ${this.device._parsed.category}
Installed Extension Information:
Extension Version: ${document.getElementById('extension-version').innerHTML}
Extension Version: ${document.getElementById("extension-version").innerHTML}
\`\`\``;
navigator.clipboard.writeText(toCopy);
}
}
}
navigator.clipboard.writeText(toCopy);
},
},
};
</script>