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

+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: {
+43 -34
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>
@@ -27,33 +39,30 @@
</template> </template>
<script> <script>
export default { export default {
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}
Browser Vendor: ${ this.device._parsed.vendor } Browser Vendor: ${this.device._parsed.vendor}
Version: ${ this.device._parsed.version } Version: ${this.device._parsed.version}
Operating System: ${ this.device._parsed.os } Operating System: ${this.device._parsed.os}
Operating System Version: ${ this.device._parsed.os_version } 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>
+9 -10
View File
@@ -7,14 +7,13 @@
</template> </template>
<script> <script>
let apiUrl = process.env.apiUrl; let apiUrl = process.env.apiUrl;
export default { export default {
data() { data() {
return { return {
apiUrl: apiUrl, apiUrl: apiUrl,
endpointUrl: apiUrl + "/swagger/index.html", endpointUrl: apiUrl + "/swagger/index.html",
}; };
}, },
}; };
</script> </script>
+40 -25
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" />
@@ -43,21 +60,19 @@
</template> </template>
<style scoped> <style scoped>
.code { .code {
width: 100%; width: 100%;
background: #353535; background: #353535;
border-radius: 3px; border-radius: 3px;
} }
</style> </style>
<script> <script>
export default { export default {
data() { data() {
return { return {
apiUrl: process.env.apiUrl, apiUrl: process.env.apiUrl,
}; };
}, },
}; };
</script> </script>
+7 -8
View File
@@ -7,12 +7,11 @@
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
apiUrl: process.env.apiUrl, apiUrl: process.env.apiUrl,
}; };
}, },
}; };
</script> </script>
+6 -7
View File
@@ -20,12 +20,11 @@
</template> </template>
<style scoped> <style scoped>
li { li {
margin-top: 0.5em; margin-top: 0.5em;
} }
b {
font-weight: 900 !important;
}
b {
font-weight: 900 !important;
}
</style> </style>