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

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ export default {
plugins: [], plugins: [],
components: true, components: true,
buildModules: ["@nuxtjs/vuetify"], buildModules: ["@nuxtjs/vuetify"],
modules: ['nuxt-user-agent'], modules: ["nuxt-user-agent"],
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: { vuetify: {
+28 -19
View File
@@ -3,23 +3,35 @@
<!-- Top Section // "Sections" Card --> <!-- Top Section // "Sections" Card -->
<v-card max-width="600px" class="rounded-lg"> <v-card max-width="600px" class="rounded-lg">
<v-card-title style="padding-bottom: 0">Debug Information</v-card-title> <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 --> <!-- Gather Browser Information -->
<span><b>Browser Information:</b></span><br> <span><b>Browser Information:</b></span
<span>Browser: {{ device._parsed.name }}</span><br> ><br />
<span>Browser Vendor: {{ device._parsed.vendor }}</span><br> <span>Browser: {{ device._parsed.name }}</span
<span>Version: {{ device._parsed.version }}</span><br> ><br />
<span>Operating System: {{ device._parsed.os }}</span><br> <span>Browser Vendor: {{ device._parsed.vendor }}</span
<span>Operating System Version: {{ device._parsed.os_version }}</span><br> ><br />
<span>Device Type: {{ device._parsed.category }}</span><br><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 --> <!-- Gather Extension Information -->
<span><b>Installed Extension Information:</b></span><br> <span><b>Installed Extension Information:</b></span
<span>Extension Version: <span id="extension-version">Waiting For Extension...</span></span><br> ><br />
<span
>Extension Version:
<span id="extension-version">Waiting For Extension...</span></span
><br />
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-spacer /> <v-spacer />
<v-btn @click="copy()"> <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-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
@@ -31,12 +43,11 @@
data() { data() {
return { return {
device: this.$ua, device: this.$ua,
} };
}, },
methods: { methods: {
copy() { copy() {
const toCopy = `\`\`\` const toCopy = `\`\`\`
Browser Information: Browser Information:
Browser: ${this.device._parsed.name} Browser: ${this.device._parsed.name}
@@ -47,13 +58,11 @@ Operating System Version: ${ this.device._parsed.os_version }
Device Type: ${this.device._parsed.category} Device Type: ${this.device._parsed.category}
Installed Extension Information: 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> </script>
@@ -16,5 +16,4 @@
}; };
}, },
}; };
</script> </script>
+28 -13
View File
@@ -3,21 +3,35 @@
<h1 class="primary--text">Basic Fetching Tutorial</h1> <h1 class="primary--text">Basic Fetching Tutorial</h1>
<span>Example to get votes of a given YouTube video ID:</span> <span>Example to get votes of a given YouTube video ID:</span>
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank">kxOuG8jMIgI</a><br /><br /> <a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank"
>kxOuG8jMIgI</a
><br /><br />
<h2>Example Request:</h2> <h2>Example Request:</h2>
<span><b>Request URL:</b></span> <span><b>Request URL:</b></span>
<a :href="apiUrl + '/votes?videoId=kxOuG8jMIgI'" target="_blank" <a
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'" /><br /> :href="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
<span><b>Request Method:</b> target="_blank"
<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET" target="_blank">HTTP/GET</a></span><br /> v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
<span><b>Headers:</b></span><br /> /><br />
<span
><b>Request Method:</b>
<a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET"
target="_blank"
>HTTP/GET</a
></span
><br />
<span><b>Headers:</b></span
><br />
<code class="code"> <code class="code">
Accept: text/html,application/xhtml+xml,application/xml;q=0.9<br /> Accept: text/html,application/xhtml+xml,application/xml;q=0.9<br />
Pragma: no-cache<br /> Pragma: no-cache<br />
Cache-Control: no-cache<br /> Cache-Control: no-cache<br />
Connection: keep-alive </code><br /> Connection: keep-alive </code
<span><b>Response:</b></span><br /> ><br />
<span><b>Response:</b></span
><br />
<div class="code"> <div class="code">
<code style="background-color: rgba(0, 0, 0, 0)"> <code style="background-color: rgba(0, 0, 0, 0)">
{<br /> {<br />
@@ -33,9 +47,12 @@
</div> </div>
<br /><br /> <br /><br />
<v-alert border="left" color="orange" text type="info"> <v-alert border="left" color="orange" text type="info">
<span>An invalid YouTube ID will return status code 404 "Not Found".</span><br /> <span>An invalid YouTube ID will return status code 404 "Not Found".</span
<span>An incorrectly formatted YouTube ID will return 400 "Bad ><br />
Request".</span> <span
>An incorrectly formatted YouTube ID will return 400 "Bad
Request".</span
>
</v-alert> </v-alert>
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" /> <a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
@@ -48,7 +65,6 @@
background: #353535; background: #353535;
border-radius: 3px; border-radius: 3px;
} }
</style> </style>
<script> <script>
@@ -59,5 +75,4 @@
}; };
}, },
}; };
</script> </script>
-1
View File
@@ -14,5 +14,4 @@
}; };
}, },
}; };
</script> </script>
@@ -27,5 +27,4 @@
b { b {
font-weight: 900 !important; font-weight: 900 !important;
} }
</style> </style>