diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue
index f986e48..35f1318 100644
--- a/Website/layouts/default.vue
+++ b/Website/layouts/default.vue
@@ -1,7 +1,7 @@
-
+
{{ link.name }}
@@ -12,7 +12,7 @@
@@ -24,6 +24,33 @@
+
+
+
+ mdi-alert-circle-outline
+
+
+
+
+ mdi-close-circle-outline
+
+
+
@@ -33,12 +60,46 @@ export default {
links: [
{ name: "Home", path: "/" },
{ name: "Install", path: "/install" },
+ { name: "API", path: "/docs" },
+ { name: "Help", path: "/help" },
{ name: "FAQ", path: "/faq" },
{ name: "Donate", path: "/donate" },
{ name: "Links", path: "/links" },
- { name: "API", path: "/documentation" },
],
+ alert: {
+ show: false,
+ html: "",
+ },
}),
+ mounted() {
+ setTimeout(() => {
+ // check if browser version out of date
+ if (
+ window.navigator.userAgent.indexOf("Chrome") > -1 &&
+ window.navigator.userAgent.indexOf("Edge") === -1
+ ) {
+ let chrome = window.navigator.userAgent.match(/Chrome\/(\d+)/);
+ let chromeVersion = chrome ? chrome[1] : 0;
+ if (chromeVersion < 70) {
+ this.alert.html = `You are using ${this.$ua._parsed.name} ${this.$ua._parsed.version}. Please update to the latest version.`;
+ this.alert.show = true;
+ }
+ }
+ if (window.navigator.userAgent.indexOf("Firefox") > -1) {
+ let firefox = window.navigator.userAgent.match(/Firefox\/(\d+)/);
+ let firefoxVersion = firefox ? firefox[1] : 0;
+ if (firefoxVersion < 60) {
+ this.alert.html = `You are using ${this.$ua._parsed.name} ${this.$ua._parsed.version}. Please update to the latest version.`;
+ this.alert.show = true;
+ }
+ }
+ // check for IE browser
+ if (window.navigator.userAgent.indexOf("MSIE") > -1) {
+ this.alert.html = `Looks like you're using Internet Explorer. Stop it, get some help.`;
+ this.alert.show = true;
+ }
+ }, 1000);
+ },
};
@@ -52,11 +113,40 @@ body {
overflow: auto;
}
+::selection {
+ background: #f44;
+ color: #111;
+}
+
+::-webkit-scrollbar {
+ width: 1rem;
+}
+
+::-webkit-scrollbar-track {
+ background: #111; /* color of the tracking area */
+}
+
+::-webkit-scrollbar-thumb {
+ background-color: #333; /* color of the scroll thumb */
+ border-radius: 20px; /* roundness of the scroll thumb */
+ border: 4px solid #111; /* creates padding around scroll thumb */
+}
+
+::-webkit-scrollbar-thumb:hover {
+ background-color: #f22; /* color of the scroll thumb */
+ border-radius: 20px; /* roundness of the scroll thumb */
+ border: 4px solid #111; /* creates padding around scroll thumb */
+}
+
.debug {
/* usage: add class="debug" to the element */
outline: 2px solid red;
}
+.v-sheet.v-snack__wrapper {
+ border-radius: 0.75rem !important;
+}
+
.mainAltButton {
margin: 0.25em;
}
diff --git a/Website/package-lock.json b/Website/package-lock.json
index 3dca403..f25acec 100644
--- a/Website/package-lock.json
+++ b/Website/package-lock.json
@@ -14,7 +14,6 @@
"vuetify": "^2.5.5"
},
"devDependencies": {
- "@nuxtjs/device": "^2.1.0",
"@nuxtjs/vuetify": "^1.12.1",
"babel-eslint": "^10.1.0",
"eslint": "^7.32.0",
@@ -2645,21 +2644,6 @@
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
},
- "node_modules/@nuxtjs/device": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/@nuxtjs/device/-/device-2.1.0.tgz",
- "integrity": "sha512-TYBdt1w2bmCCWp+MhgcBATZtqyUBi3nSdNpcLGILw5USLwCsC/yZtIkq9YisuEzuRnod9w/RZpoE80MxLftEuA==",
- "dev": true,
- "dependencies": {
- "defu": "^3.2.2"
- }
- },
- "node_modules/@nuxtjs/device/node_modules/defu": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/defu/-/defu-3.2.2.tgz",
- "integrity": "sha512-8UWj5lNv7HD+kB0e9w77Z7TdQlbUYDVWqITLHNqFIn6khrNHv5WQo38Dcm1f6HeNyZf0U7UbPf6WeZDSdCzGDQ==",
- "dev": true
- },
"node_modules/@nuxtjs/vuetify": {
"version": "1.12.1",
"resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.12.1.tgz",
@@ -16658,23 +16642,6 @@
}
}
},
- "@nuxtjs/device": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/@nuxtjs/device/-/device-2.1.0.tgz",
- "integrity": "sha512-TYBdt1w2bmCCWp+MhgcBATZtqyUBi3nSdNpcLGILw5USLwCsC/yZtIkq9YisuEzuRnod9w/RZpoE80MxLftEuA==",
- "dev": true,
- "requires": {
- "defu": "^3.2.2"
- },
- "dependencies": {
- "defu": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/defu/-/defu-3.2.2.tgz",
- "integrity": "sha512-8UWj5lNv7HD+kB0e9w77Z7TdQlbUYDVWqITLHNqFIn6khrNHv5WQo38Dcm1f6HeNyZf0U7UbPf6WeZDSdCzGDQ==",
- "dev": true
- }
- }
- },
"@nuxtjs/vuetify": {
"version": "1.12.1",
"resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.12.1.tgz",
diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue
index fbdfc50..a189c14 100644
--- a/Website/pages/debug.vue
+++ b/Website/pages/debug.vue
@@ -40,6 +40,9 @@
diff --git a/Website/pages/documentation/endpoints.vue b/Website/pages/docs/endpoints.vue
similarity index 100%
rename from Website/pages/documentation/endpoints.vue
rename to Website/pages/docs/endpoints.vue
diff --git a/Website/pages/documentation/fetching.vue b/Website/pages/docs/fetching.vue
similarity index 98%
rename from Website/pages/documentation/fetching.vue
rename to Website/pages/docs/fetching.vue
index 651f2b8..c295eb3 100644
--- a/Website/pages/documentation/fetching.vue
+++ b/Website/pages/docs/fetching.vue
@@ -61,9 +61,8 @@
diff --git a/Website/pages/documentation/index.vue b/Website/pages/docs/index.vue
similarity index 68%
rename from Website/pages/documentation/index.vue
rename to Website/pages/docs/index.vue
index ad3cd1d..e84dd73 100644
--- a/Website/pages/documentation/index.vue
+++ b/Website/pages/docs/index.vue
@@ -3,6 +3,6 @@
Welcome to the official RYD docs!
- To get started, select a section.
+ <- To get started, select a section on the left.
diff --git a/Website/pages/documentation/url.vue b/Website/pages/docs/url.vue
similarity index 100%
rename from Website/pages/documentation/url.vue
rename to Website/pages/docs/url.vue
diff --git a/Website/pages/documentation/usage-rights.vue b/Website/pages/docs/usage-rights.vue
similarity index 100%
rename from Website/pages/documentation/usage-rights.vue
rename to Website/pages/docs/usage-rights.vue
diff --git a/Website/pages/documentation.vue b/Website/pages/documentation.vue
deleted file mode 100644
index ff21a68..0000000
--- a/Website/pages/documentation.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
- Sections
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Website/pages/donate.vue b/Website/pages/donate.vue
index eb46ca2..f9e0ac8 100644
--- a/Website/pages/donate.vue
+++ b/Website/pages/donate.vue
@@ -23,7 +23,7 @@
export default {
transition(to, from) {
if (!from) return "swoop-in";
- let routes = ["index", "install", "faq", "donate", "links"];
+ let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
if (routes.indexOf(to.name) < 0) return "swoop-out";
if (routes.indexOf(from.name) < 0) return "swoop-in";
return routes.indexOf(to.name) > routes.indexOf(from.name)
diff --git a/Website/pages/faq.vue b/Website/pages/faq.vue
index 9a75b79..d8c3210 100644
--- a/Website/pages/faq.vue
+++ b/Website/pages/faq.vue
@@ -24,7 +24,7 @@
export default {
transition(to, from) {
if (!from) return "swoop-in";
- let routes = ["index", "install", "faq", "donate", "links"];
+ let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
if (routes.indexOf(to.name) < 0) return "swoop-out";
if (routes.indexOf(from.name) < 0) return "swoop-in";
return routes.indexOf(to.name) > routes.indexOf(from.name)
diff --git a/Website/pages/help.vue b/Website/pages/help.vue
new file mode 100644
index 0000000..eaed8af
--- /dev/null
+++ b/Website/pages/help.vue
@@ -0,0 +1,172 @@
+
+
+
Troubleshooting
+
+ -
+ Make sure you have latest version of extension installed,
+
+ {{ version }}
+ right now
+
+ -
+ Try removing extension and installing it again, then restarting the
+ browser (all active windows, not just one tab).
+
+ -
+ Make sure that this link opens:
+
+ https://returnyoutubedislikeapi.com/votes?videoId=QOFEgexls14
+
+ ,
+ you should see plain text:
+
+ {"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z",
+ "likes":2907, "dislikes":215, "rating":4.725641025641026,
+ "viewCount":28222, "deleted":false}
+
+
+ -
+ If nothing of above helps - report your problem in
+
#bugs-and-problems in our
+
+ mdi-discord
+ Discord
+
+
+ -
+ Tell us your Operating System, Browser Name and
+ Browser Version.
+
+ mdi-content-copy
+ Detected:
+ {{ platform }}
+
+
+
+ -
+ Take screenshot of page with problem (i.e. youtube video page) with
+ console open (press
F12) - example screenshot below.
+
+
+
+ -
+ Take screenshot of extensions page of your browser with extension
+ installed.
+ To see extensions put this into adress bar:
+
+ about:addons for Firefox
+
+ chrome://extensions for Chrome, Edge, Brave, Opera,
+ Vivaldi
+
+
+
+
+
+
+
+
diff --git a/Website/pages/index.vue b/Website/pages/index.vue
index 46810c0..b4d79b5 100644
--- a/Website/pages/index.vue
+++ b/Website/pages/index.vue
@@ -81,7 +81,7 @@
export default {
transition(to, from) {
if (!from) return "swoop-in";
- let routes = ["index", "install", "faq", "donate", "links"];
+ let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
if (routes.indexOf(to.name) < 0) return "swoop-out";
if (routes.indexOf(from.name) < 0) return "swoop-in";
return routes.indexOf(to.name) > routes.indexOf(from.name)
diff --git a/Website/pages/install.vue b/Website/pages/install.vue
index 7cd04d7..56b6814 100644
--- a/Website/pages/install.vue
+++ b/Website/pages/install.vue
@@ -76,7 +76,7 @@
export default {
transition(to, from) {
if (!from) return "swoop-in";
- let routes = ["index", "install", "faq", "donate", "links"];
+ let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
if (routes.indexOf(to.name) < 0) return "swoop-out";
if (routes.indexOf(from.name) < 0) return "swoop-in";
return routes.indexOf(to.name) > routes.indexOf(from.name)
diff --git a/Website/pages/links.vue b/Website/pages/links.vue
index 35df9ed..eacfee9 100644
--- a/Website/pages/links.vue
+++ b/Website/pages/links.vue
@@ -28,11 +28,8 @@
Site by mdi-discord Front#2990
- &
- mdi-discord
- PickleNik#0864
+ & mdi-discord
+ PickleNik#0864
@@ -41,7 +38,7 @@
export default {
transition(to, from) {
if (!from) return "swoop-in";
- let routes = ["index", "install", "faq", "donate", "links"];
+ let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
if (routes.indexOf(to.name) < 0) return "swoop-out";
if (routes.indexOf(from.name) < 0) return "swoop-in";
return routes.indexOf(to.name) > routes.indexOf(from.name)
diff --git a/Website/static/ui/troubleshooting.png b/Website/static/ui/troubleshooting.png
new file mode 100644
index 0000000..00b77ad
Binary files /dev/null and b/Website/static/ui/troubleshooting.png differ