1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<template>
<div class="row wrap justify-center full-width mx-auto" style="width: 80vw">
<!-- Left Section // "Sections" Card -->
<v-card
class="col-xs-12 mx-2 elevation-0"
style="
background: transparent;
height: max-content;
position: sticky;
top: 5.5rem;
max-width: 500px;
"
>
<!-- <v-card-title style="padding-bottom: 0 !important; color: #aaa">
Sections
</v-card-title> -->
<v-list style="background: transparent">
<!-- Dynamically Generate Links From Below -->
<v-list-item
v-for="(item, i) in links"
:key="i"
:to="item.to"
router
class="mt-4"
color="primary"
style="overflow: hidden; border-radius: 0.75rem"
>
<v-list-item-title style="text-align: right">
<v-list-item-title v-text="item.text" />
</v-list-item-title>
<v-list-item-icon>
<v-icon v-text="item.icon" />
</v-list-item-icon>
</v-list-item>
</v-list>
</v-card>
<!-- Child Pages // Card -->
<v-card
class="col-xs-12 col-md-6 text-left mx-2 my-6 pa-8"
style="
height: max-content;
background-color: #222;
border-radius: 0.75rem;
width: 90%;
"
>
<NuxtChild />
</v-card>
</div>
</template>
<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 ---//
links: [
{
text: "Usage Rights",
icon: "mdi-book-open-variant",
to: "/docs/usage-rights",
},
{
text: "URL Information",
icon: "mdi-web",
to: "/docs/url",
},
{
text: "Available Endpoints",
icon: "mdi-transit-connection-variant",
to: "/docs/endpoints",
},
{
text: "Basic Fetching Tutorial",
icon: "mdi-school",
to: "/docs/fetching",
},
],
};
},
};
</script>
|