internalization half-done

This commit is contained in:
Nikita Krupin committed 2022-04-29 13:30:06 -04:00
1 parent 4b5482be18
commit 28369db138
13 files changed
+223 -185

No files matched your search

+8 -4
View File
@@ -1,8 +1,12 @@
<template>
<div style="line-height: 3rem">
<h1 class="primary--text">Available Endpoints</h1>
List of available endpoints is available here:<br />
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
<div style="line-height: 2rem">
<h2 class="primary--text">
{{ $vuetify.lang.t("$vuetify.api.endpoints.title") }}
</h2>
<div class="mt-4">
{{ $vuetify.lang.t("$vuetify.api.endpoints.subtitle") }}
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
</div>
</div>
</template>
+34 -29
View File
@@ -1,38 +1,46 @@
<template>
<div style="line-height: 3rem">
<h1 class="primary--text">Basic Fetching Tutorial</h1>
<div style="line-height: 2rem">
<h2 class="primary--text">
{{ $vuetify.lang.t("$vuetify.api.fetching.title") }}
</h2>
<span>Example to get votes of a given YouTube video ID:</span>
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank"
>kxOuG8jMIgI</a
>
<div class="ma-2">
{{ $vuetify.lang.t("$vuetify.api.fetching.subtitle") }}
<h2>Example Request:</h2>
<span>Request URL:</span>
<a
:href="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
target="_blank"
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
/>
<br />
<span>
Request Method:
<a href="https://youtube.com/watch?v=kxOuG8jMIgI" target="_blank">
kxOuG8jMIgI
</a>
</div>
<h2 class="mt-4">{{ $vuetify.lang.t("$vuetify.api.fetching.title2") }}</h2>
<div class="ma-2">
{{ $vuetify.lang.t("$vuetify.api.fetching.url") }}
<a
:href="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
target="_blank"
v-text="apiUrl + '/votes?videoId=kxOuG8jMIgI'"
/>
<br />
{{ $vuetify.lang.t("$vuetify.api.fetching.method") }}
<a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET"
target="_blank"
>HTTP/GET</a
>
</span>
<br />
<span>Headers:</span>
<br />
HTTP/GET
</a>
</div>
<div class="mt-4 ml-2">
{{ $vuetify.lang.t("$vuetify.api.fetching.headers") }}
</div>
<div class="code pa-4">
Accept: text/html,application/xhtml+xml,application/xml;q=0.9<br />
Pragma: no-cache<br />
Cache-Control: no-cache<br />
Connection: keep-alive
</div>
<span>Response:</span><br />
<div class="mt-4 ml-2">
{{ $vuetify.lang.t("$vuetify.api.fetching.response") }}
</div>
<div class="code pa-4">
{
<br />
@@ -46,13 +54,10 @@
}
</div>
<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 border="left" color="orange" text type="info" class="mb-0">
<span>{{ $vuetify.lang.t("$vuetify.api.fetching.error1") }}</span>
<br />
<span>{{ $vuetify.lang.t("$vuetify.api.fetching.error2") }}</span>
</v-alert>
<a :href="endpointUrl" target="_blank" v-text="endpointUrl" />
+3 -5
View File
@@ -1,8 +1,6 @@
<template>
<div style="line-height: 3rem">
<h1>
Welcome to the <span class="primary--text">official RYD docs</span>!
</h1>
To get started, select a section from the menu.
<div style="line-height: 2rem">
<h2 class="primary--text">{{ $vuetify.lang.t("$vuetify.api.title") }}!</h2>
<div class="mt-4">{{ $vuetify.lang.t("$vuetify.api.subtitle") }}</div>
</div>
</template>
+8 -4
View File
@@ -1,8 +1,12 @@
<template>
<div style="line-height: 3rem">
<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 style="line-height: 2rem">
<h2 class="primary--text">
{{ $vuetify.lang.t("$vuetify.api.url.title") }}
</h2>
<div class="mt-4">
{{ $vuetify.lang.t("$vuetify.api.url.subtitle") }}
<a :href="apiUrl" target="_blank" v-text="apiUrl" />
</div>
</div>
</template>
+13 -23
View File
@@ -1,30 +1,20 @@
<template>
<div style="line-height: 3rem">
<h1 class="primary--text">Usage Rights</h1>
<p>
Third party use of this open API is allowed with the following
restrictions:
</p>
<div style="line-height: 2rem">
<h2 class="primary--text">
{{ $vuetify.lang.t("$vuetify.api.rights.title") }}
</h2>
<div class="my-4">
{{ $vuetify.lang.t("$vuetify.api.rights.subtitle") }}
</div>
<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 class="my-4">
<b>{{ $vuetify.lang.t("$vuetify.api.rights.bullet1") }}</b>
{{ $vuetify.lang.t("$vuetify.api.rights.bullet1text") }}
</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 class="my-4">
<b>{{ $vuetify.lang.t("$vuetify.api.rights.bullet2") }}</b>
{{ $vuetify.lang.t("$vuetify.api.rights.bullet2text") }}
</li>
</ul>
</div>
</template>
<style scoped>
li {
margin-top: 0.5em;
}
b {
font-weight: 900 !important;
}
</style>