mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +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
@@ -12,7 +12,7 @@
|
|||||||
<!-- abstract background -->
|
<!-- abstract background -->
|
||||||
<v-img
|
<v-img
|
||||||
src="/ui/abstract.svg"
|
src="/ui/abstract.svg"
|
||||||
style="position: absolute; left: 0; right: 0; width: 100%; height: 100%"
|
style="position: absolute; left: 0; right: 0; width: 100vw; height: 100vh"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<v-main style="padding-top: 4rem !important">
|
<v-main style="padding-top: 4rem !important">
|
||||||
@@ -33,11 +33,11 @@ export default {
|
|||||||
links: [
|
links: [
|
||||||
{ name: "Home", path: "/" },
|
{ name: "Home", path: "/" },
|
||||||
{ name: "Install", path: "/install" },
|
{ name: "Install", path: "/install" },
|
||||||
|
{ name: "API", path: "/docs" },
|
||||||
{ name: "Help", path: "/help" },
|
{ name: "Help", path: "/help" },
|
||||||
{ name: "FAQ", path: "/faq" },
|
{ name: "FAQ", path: "/faq" },
|
||||||
{ name: "Donate", path: "/donate" },
|
{ name: "Donate", path: "/donate" },
|
||||||
{ name: "Links", path: "/links" },
|
{ name: "Links", path: "/links" },
|
||||||
{ name: "API", path: "/documentation" },
|
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
@@ -62,7 +62,13 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
background-color: #ff4444; /* color of the scroll 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-radius: 20px; /* roundness of the scroll thumb */
|
||||||
border: 4px solid #111; /* creates padding around scroll thumb */
|
border: 4px solid #111; /* creates padding around scroll thumb */
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
-33
@@ -14,7 +14,6 @@
|
|||||||
"vuetify": "^2.5.5"
|
"vuetify": "^2.5.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxtjs/device": "^2.1.0",
|
|
||||||
"@nuxtjs/vuetify": "^1.12.1",
|
"@nuxtjs/vuetify": "^1.12.1",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
@@ -2645,21 +2644,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
"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": {
|
"node_modules/@nuxtjs/vuetify": {
|
||||||
"version": "1.12.1",
|
"version": "1.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.12.1.tgz",
|
"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": {
|
"@nuxtjs/vuetify": {
|
||||||
"version": "1.12.1",
|
"version": "1.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.12.1.tgz",
|
"resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.12.1.tgz",
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
transition(to) {
|
||||||
|
return to.name == "debug" ? "swoop-in" : "swoop-out";
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
device: this.$ua,
|
device: this.$ua,
|
||||||
|
|||||||
@@ -29,6 +29,15 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//--- Links To Generate Above ---//
|
//--- Links To Generate Above ---//
|
||||||
@@ -36,22 +45,22 @@ export default {
|
|||||||
{
|
{
|
||||||
text: "Usage Rights",
|
text: "Usage Rights",
|
||||||
icon: "mdi-book-open-variant",
|
icon: "mdi-book-open-variant",
|
||||||
to: "/documentation/usage-rights",
|
to: "/docs/usage-rights",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "URL Information",
|
text: "URL Information",
|
||||||
icon: "mdi-web",
|
icon: "mdi-web",
|
||||||
to: "/documentation/url",
|
to: "/docs/url",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "Available Endpoints",
|
text: "Available Endpoints",
|
||||||
icon: "mdi-transit-connection-variant",
|
icon: "mdi-transit-connection-variant",
|
||||||
to: "/documentation/endpoints",
|
to: "/docs/endpoints",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "Basic Fetching Tutorial",
|
text: "Basic Fetching Tutorial",
|
||||||
icon: "mdi-school",
|
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 {
|
export default {
|
||||||
transition(to, from) {
|
transition(to, from) {
|
||||||
if (!from) return "swoop-in";
|
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(to.name) < 0) return "swoop-out";
|
||||||
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
||||||
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
export default {
|
export default {
|
||||||
transition(to, from) {
|
transition(to, from) {
|
||||||
if (!from) return "swoop-in";
|
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(to.name) < 0) return "swoop-out";
|
||||||
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
||||||
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
export default {
|
export default {
|
||||||
transition(to, from) {
|
transition(to, from) {
|
||||||
if (!from) return "swoop-in";
|
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(to.name) < 0) return "swoop-out";
|
||||||
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
||||||
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
export default {
|
export default {
|
||||||
transition(to, from) {
|
transition(to, from) {
|
||||||
if (!from) return "swoop-in";
|
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(to.name) < 0) return "swoop-out";
|
||||||
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
||||||
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
export default {
|
export default {
|
||||||
transition(to, from) {
|
transition(to, from) {
|
||||||
if (!from) return "swoop-in";
|
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(to.name) < 0) return "swoop-out";
|
||||||
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
||||||
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
export default {
|
export default {
|
||||||
transition(to, from) {
|
transition(to, from) {
|
||||||
if (!from) return "swoop-in";
|
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(to.name) < 0) return "swoop-out";
|
||||||
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
if (routes.indexOf(from.name) < 0) return "swoop-in";
|
||||||
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
return routes.indexOf(to.name) > routes.indexOf(from.name)
|
||||||
|
|||||||
Reference in new issue
Block a user