added proper page transition for API docs, chrome scrollbar hover, removed jank from background illustration

This commit is contained in:
Nikita Krupin committed 2022-01-04 18:36:17 -05:00
1 parent 939a48e73f
commit 5f95b92e9f
15 files changed
+31 -46

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<template>
<div>
<h1 class="primary--text">Available Endpoints</h1>
List of available endpoints is available here:<br />
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
</div>
</template>
<script>
let apiUrl = process.env.apiUrl;
export default {
data() {
return {
apiUrl: apiUrl,
endpointUrl: apiUrl + "/swagger/index.html",
};
},
};
</script>
+78
View File
@@ -0,0 +1,78 @@
<template>
<div>
<h1 class="primary--text">Basic Fetching Tutorial</h1>
<span>Example to get votes of a given YouTube video ID:</span>
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank"
>kxOuG8jMIgI</a
><br /><br />
<h2>Example Request:</h2>
<span><b>Request URL:</b></span>
<a
:href="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
target="_blank"
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
/><br />
<span
><b>Request Method:</b>
<a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET"
target="_blank"
>HTTP/GET</a
></span
><br />
<span><b>Headers:</b></span
><br />
<code class="code">
Accept: text/html,application/xhtml+xml,application/xml;q=0.9<br />
Pragma: no-cache<br />
Cache-Control: no-cache<br />
Connection: keep-alive </code
><br />
<span><b>Response:</b></span
><br />
<div class="code">
<code style="background-color: rgba(0, 0, 0, 0)">
{<br />
"id": "kxOuG8jMIgI",<br />
"dateCreated": "2021-12-20T12:25:54.418014Z",<br />
"likes": 27326,<br />
"dislikes": 498153,<br />
"rating": 1.212014408444885,<br />
"viewCount": 3149885,<br />
"deleted": false<br />
}
</code>
</div>
<br /><br />
<v-alert border="left" color="orange" text type="info">
<span>An invalid YouTube ID will return status code 404 "Not Found".</span
><br />
<span
>An incorrectly formatted YouTube ID will return 400 "Bad
Request".</span
>
</v-alert>
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
</div>
</template>
<style scoped>
.code {
width: 100%;
background: #353535;
border-radius: 3px;
}
</style>
<script>
export default {
data() {
return {
apiUrl: process.env.apiUrl,
};
},
};
</script>
+8
View File
@@ -0,0 +1,8 @@
<template>
<div>
<h1>
Welcome to the <span class="primary--text">official RYD docs</span>!
</h1>
<p>To get started, select a section.</p>
</div>
</template>
+17
View File
@@ -0,0 +1,17 @@
<template>
<div>
<h1 class="primary--text">URL Information</h1>
The API is accessible over the following base URL:<br />
<a :href="apiUrl" target="_blank" v-text="apiUrl" />
</div>
</template>
<script>
export default {
data() {
return {
apiUrl: process.env.apiUrl,
};
},
};
</script>
+30
View File
@@ -0,0 +1,30 @@
<template>
<div>
<h1 class="primary--text">Usage Rights</h1>
<p>
Third party use of this open API is allowed with the following
restrictions:
</p>
<ul>
<li>
<b>Attribution:</b> This project should be clearly attributed with
either a link to this repo or a link to returnyoutubedislike.com.
</li>
<li>
<b>Rate Limiting:</b> There are per client rate limits in place of 100
per minute and 10'000 per day. This will return a 429 status code
indicating that your application should back off.
</li>
</ul>
</div>
</template>
<style scoped>
li {
margin-top: 0.5em;
}
b {
font-weight: 900 !important;
}
</style>