mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 02:17:53 +01:00
added proper page transition for API docs, chrome scrollbar hover, removed jank from background illustration
This commit is contained in:
1 parent
939a48e73f
commit
5f95b92e9f
15 files changed
+31
-46
No files matched your search
@@ -40,6 +40,9 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
transition(to) {
|
||||
return to.name == "debug" ? "swoop-in" : "swoop-out";
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
device: this.$ua,
|
||||
|
||||
@@ -29,6 +29,15 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return "swoop-in";
|
||||
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)
|
||||
? "swoop-left"
|
||||
: "swoop-right";
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
//--- Links To Generate Above ---//
|
||||
@@ -36,22 +45,22 @@ export default {
|
||||
{
|
||||
text: "Usage Rights",
|
||||
icon: "mdi-book-open-variant",
|
||||
to: "/documentation/usage-rights",
|
||||
to: "/docs/usage-rights",
|
||||
},
|
||||
{
|
||||
text: "URL Information",
|
||||
icon: "mdi-web",
|
||||
to: "/documentation/url",
|
||||
to: "/docs/url",
|
||||
},
|
||||
{
|
||||
text: "Available Endpoints",
|
||||
icon: "mdi-transit-connection-variant",
|
||||
to: "/documentation/endpoints",
|
||||
to: "/docs/endpoints",
|
||||
},
|
||||
{
|
||||
text: "Basic Fetching Tutorial",
|
||||
icon: "mdi-school",
|
||||
to: "/documentation/fetching",
|
||||
to: "/docs/fetching",
|
||||
},
|
||||
],
|
||||
};
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -23,7 +23,7 @@
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return "swoop-in";
|
||||
let routes = ["index", "install", "help", "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)
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return "swoop-in";
|
||||
let routes = ["index", "install", "help", "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)
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return "swoop-in";
|
||||
let routes = ["index", "install", "help", "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)
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return "swoop-in";
|
||||
let routes = ["index", "install", "help", "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)
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return "swoop-in";
|
||||
let routes = ["index", "install", "help", "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)
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return "swoop-in";
|
||||
let routes = ["index", "install", "help", "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)
|
||||
|
||||
Reference in new issue
Block a user