+
+
Setup
From 8bf7d8f91c3691491d21ea6ba32f6e579b644f0e Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 10 Jan 2022 17:54:32 -0500
Subject: [PATCH 03/10] move /troubleshoot to /debug
---
Website/pages/debug.vue | 273 +++++++++++++++++++++++++--------
Website/pages/troubleshoot.vue | 221 --------------------------
2 files changed, 213 insertions(+), 281 deletions(-)
delete mode 100644 Website/pages/troubleshoot.vue
diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue
index a189c14..17125d5 100644
--- a/Website/pages/debug.vue
+++ b/Website/pages/debug.vue
@@ -1,71 +1,224 @@
-
-
- Debug Information
-
-
- Browser Information:
- Browser: {{ device._parsed.name }}
- Browser Vendor: {{ device._parsed.vendor }}
- Version: {{ device._parsed.version }}
- Operating System: {{ device._parsed.os }}
- Operating System Version: {{ device._parsed.os_version }}
- Device Type: {{ device._parsed.category }}
-
- Installed Extension Information:
- Extension Version:
- Waiting For Extension...
-
-
-
-
- mdi-content-copyCopy
-
-
-
+
+
+
+
+ Setup
+
+ Extension Status
+
+ Server Connection
+
+ Browser Support
+
+ Report
+
+
+
+ Getting Ready...
+
+
+
+
+ Ensuring the Extension is Running...
+
+
+
+
+ Testing Server Connection...
+
+
+
+
+ Checking Browser Information...
+
+
+
+
+
+
+ BROWSER- {{ userInformation.browser.name }}
+ VENDOR- {{ userInformation.browser.vendor }}
+ VERSION- {{ userInformation.browser.version }}
+
+
+
+ OS- {{ userInformation.system.os }}
+ VERSION- {{ userInformation.system.version }}
+ TYPE- {{ userInformation.system.type }}
+
+
+
+ RUNNING- {{ userInformation.extension.running ? "Yes" : "Failed to connect"}}
+ VERSION- {{ userInformation.extension.version || "Failed to connect"}}
+ SERVER CONNECTION-{{ userInformation.extension.serverConnection ? "Working" : "Failed to connect" }}
+
+
+
+
+
diff --git a/Website/pages/troubleshoot.vue b/Website/pages/troubleshoot.vue
deleted file mode 100644
index 933d7b4..0000000
--- a/Website/pages/troubleshoot.vue
+++ /dev/null
@@ -1,221 +0,0 @@
-
-
-
-
-
-
- Setup
-
- Extension Status
-
- Server Connection
-
- Browser Support
-
- Report
-
-
-
- Getting Ready...
-
-
-
-
- Ensuring the Extension is Running...
-
-
-
-
- Testing Server Connection...
-
-
-
-
- Checking Browser Information...
-
-
-
-
-
-
- BROWSER- {{ userInformation.browser.name }}
- VENDOR- {{ userInformation.browser.vendor }}
- VERSION- {{ userInformation.browser.version }}
-
-
-
- OS- {{ userInformation.system.os }}
- VERSION- {{ userInformation.system.version }}
- TYPE- {{ userInformation.system.type }}
-
-
-
- RUNNING- {{ userInformation.extension.running ? "Yes" : "Failed to connect"}}
- VERSION- {{ userInformation.extension.version || "Failed to connect"}}
- SERVER CONNECTION- {{ userInformation.extension.serverConnection ? "Working" : "Failed to connect" }}
-
-
-
-
-
-
-
-
-
\ No newline at end of file
From 1184697f63b21a83541ecf3ac3d9857799f20000 Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 10 Jan 2022 17:57:35 -0500
Subject: [PATCH 04/10] remove debug.js
---
Extensions/combined/debug.js | 8 --------
1 file changed, 8 deletions(-)
delete mode 100644 Extensions/combined/debug.js
diff --git a/Extensions/combined/debug.js b/Extensions/combined/debug.js
deleted file mode 100644
index 6321b53..0000000
--- a/Extensions/combined/debug.js
+++ /dev/null
@@ -1,8 +0,0 @@
-//--- Get Extension Information ---//
-const extension = chrome.runtime.getManifest();
-
-//--- Get Debug Elements ---//
-const ver = document.getElementById("extension-version");
-
-//--- Set Debug Elements ---//
-ver.innerHTML = extension.version;
From 128c3a56548938a3615ef5e60657ac15ba6e7865 Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 10 Jan 2022 18:09:56 -0500
Subject: [PATCH 05/10] fix debugger
---
Website/pages/debug.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue
index 17125d5..1f4d327 100644
--- a/Website/pages/debug.vue
+++ b/Website/pages/debug.vue
@@ -1,6 +1,5 @@
-
@@ -130,12 +129,14 @@
},
mounted() {
+ const vm = this;
+
//--- Wait ---//
setTimeout(() => {
this.$axios.$get('https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json')
.then(res => {
- console.log(res)
+ this.userInformation.extension.latestExtensionVersion = res.version;
})
From 1a4631a11e10a6b773bfb164c80d8e3bf9e9db54 Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 10 Jan 2022 18:21:43 -0500
Subject: [PATCH 06/10] finish debug
---
Website/pages/debug.vue | 20 +++++---------------
1 file changed, 5 insertions(+), 15 deletions(-)
diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue
index 1f4d327..8a3b48f 100644
--- a/Website/pages/debug.vue
+++ b/Website/pages/debug.vue
@@ -58,9 +58,8 @@
- RUNNING- {{ userInformation.extension.running ? "Yes" : "Failed to connect"}}
- VERSION- {{ userInformation.extension.version || "Failed to connect"}}
- SERVER CONNECTION-{{ userInformation.extension.serverConnection ? "Working" : "Failed to connect" }}
+ LATEST EXTENSION VERSION- {{ userInformation.extension.latestExtensionVersion || "Failed to lookup data" }}
+ SERVER CONNECTION- {{ userInformation.extension.serverConnection ? "Working" : "Failed to connect" }}
@@ -103,8 +102,6 @@
type: this.$ua._parsed.category
},
extension: {
- running: null,
- version: null,
serverConnection: null,
latestExtensionVersion: null,
},
@@ -129,9 +126,7 @@
},
mounted() {
- const vm = this;
-
- //--- Wait ---//
+ //--- Init Stuff ---//
setTimeout(() => {
this.$axios.$get('https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json')
@@ -174,13 +169,8 @@
//--- Parse Extension Data ---//
- this.notices.extension.text = `Everything is running normally!`;
- this.notices.extension.type = "success";
-
- if (this.userInformation.extension.running != true) {
- this.notices.extension.text = `The extension doesn't appear to be running!`;
- this.notices.extension.type = "error";
- }
+ this.notices.extension.text = `We are unable to automatically check that your extension is up to date. Please check that the number below matches your extension version.`;
+ this.notices.extension.type = "warning";
if (this.userInformation.extension.serverConnection != true) {
this.notices.extension.text = `Failed to connect to the server!`;
From 0e455887f8bb7664f2416794917151f72befc6d6 Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 10 Jan 2022 18:22:25 -0500
Subject: [PATCH 07/10] increase time for readability
---
Website/pages/debug.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue
index 8a3b48f..369d2e4 100644
--- a/Website/pages/debug.vue
+++ b/Website/pages/debug.vue
@@ -78,7 +78,7 @@
export default {
data() {
return {
- stepTime: 1000,
+ stepTime: 2500,
supportedBrowsers: ["Firefox", "Chrome", "Brave", "Edge", "Opera"],
progress: 1,
From 1a49ceb0fe9033c74eebe64681bd1a912b4d7019 Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 10 Jan 2022 18:26:35 -0500
Subject: [PATCH 08/10] linted
---
Website/nuxt.config.js | 4 +-
Website/pages/debug.vue | 333 ++++++++++++++++++++++------------------
Website/pages/faq.vue | 3 +-
3 files changed, 188 insertions(+), 152 deletions(-)
diff --git a/Website/nuxt.config.js b/Website/nuxt.config.js
index f42c388..c5b200d 100644
--- a/Website/nuxt.config.js
+++ b/Website/nuxt.config.js
@@ -31,14 +31,14 @@ export default {
apiUrl: "https://returnyoutubedislikeapi.com",
},
- server: { host: '0.0.0.0', port: 80 }, //LINE FOR DEBUGGING ONLY
+ server: { host: "0.0.0.0", port: 80 }, //LINE FOR DEBUGGING ONLY
target: "static",
css: [],
plugins: [],
components: true,
buildModules: ["@nuxtjs/vuetify"],
- modules: ['@nuxtjs/axios','nuxt-user-agent'],
+ modules: ["@nuxtjs/axios", "nuxt-user-agent"],
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue
index 369d2e4..7c53bae 100644
--- a/Website/pages/debug.vue
+++ b/Website/pages/debug.vue
@@ -1,215 +1,252 @@
-
Setup
- Extension Status
+ Extension Status
- Server Connection
+ Server Connection
- Browser Support
+ Browser Support
Report
Getting Ready...
-
+
Ensuring the Extension is Running...
-
+
Testing Server Connection...
-
+
Checking Browser Information...
-
+
-
+
-
- BROWSER- {{ userInformation.browser.name }}
- VENDOR- {{ userInformation.browser.vendor }}
- VERSION- {{ userInformation.browser.version }}
+
+ BROWSER- {{ userInformation.browser.name }}
+ VENDOR- {{ userInformation.browser.vendor }}
+ VERSION- {{ userInformation.browser.version }}
-
- OS- {{ userInformation.system.os }}
- VERSION- {{ userInformation.system.version }}
- TYPE- {{ userInformation.system.type }}
+
+ OS- {{ userInformation.system.os }}
+ VERSION- {{ userInformation.system.version }}
+ TYPE- {{ userInformation.system.type }}
-
- LATEST EXTENSION VERSION- {{ userInformation.extension.latestExtensionVersion || "Failed to lookup data" }}
- SERVER CONNECTION- {{ userInformation.extension.serverConnection ? "Working" : "Failed to connect" }}
+
+ LATEST EXTENSION VERSION-
+ {{
+ userInformation.extension.latestExtensionVersion ||
+ "Failed to lookup data"
+ }}
+ SERVER CONNECTION-
+ {{
+ userInformation.extension.serverConnection
+ ? "Working"
+ : "Failed to connect"
+ }}
-
diff --git a/Website/pages/faq.vue b/Website/pages/faq.vue
index 493d3fd..5b784d1 100644
--- a/Website/pages/faq.vue
+++ b/Website/pages/faq.vue
@@ -49,8 +49,7 @@ export default {
"The extension collects the video ID of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API. The extension then displays the dislike count and ratio on the page. If you like or dislike a video, that is recorded and sent to the database so an accurate dislike count can be extrapolated.",
},
{
-
- question:"Can I share my dislike count with you?",
+ question: "Can I share my dislike count with you?",
answer:
"Coming soon. We are looking into using Oauth or a different read only API with a limited scope so creators can share their dislike counts verifiability. ",
From f9d2c397000a2b290c704597de1667b4b0f0ab80 Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 10 Jan 2022 18:27:36 -0500
Subject: [PATCH 09/10] more linting fixes
---
Website/pages/debug.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue
index 7c53bae..fa1e863 100644
--- a/Website/pages/debug.vue
+++ b/Website/pages/debug.vue
@@ -122,13 +122,6 @@