feat: limit request notice
This commit is contained in:
parent
5252b48602
commit
efb3c62df5
|
@ -0,0 +1,11 @@
|
||||||
|
<script lang="ts">
|
||||||
|
export let emoji: string = '';
|
||||||
|
</script>
|
||||||
|
<div
|
||||||
|
class="bg-chetwode-200 dark:bg-chetwode-800 font-body px-4 md:px-8 py-6 md:my-8 rounded-lg text-black dark:text-white shadow-xl bg-gradient-to-br from-transparent to-chetwode-300 dark:to-chetwode-900"
|
||||||
|
>
|
||||||
|
<div class="flex flex-row items-center content-center">
|
||||||
|
<div class="flex-initial px-4 text-center text-lg">{emoji}</div>
|
||||||
|
<div class="flex-auto"><slot /></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -67,6 +67,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"api": {
|
"api": {
|
||||||
|
"limit": "We limit the request to be 15 request/minute.",
|
||||||
"get": {
|
"get": {
|
||||||
"title": "Get Jokes",
|
"title": "Get Jokes",
|
||||||
"random": {
|
"random": {
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"api": {
|
"api": {
|
||||||
|
"limit": "Kami membatasi request menjadi 15 request/menit.",
|
||||||
"get": {
|
"get": {
|
||||||
"title": "Dapatkan Jokes",
|
"title": "Dapatkan Jokes",
|
||||||
"random": {
|
"random": {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
import { _ } from 'svelte-i18n';
|
import { _ } from 'svelte-i18n';
|
||||||
import env from '$lib/env';
|
import env from '$lib/env';
|
||||||
import Codeblock from '../components/codeblock.svelte';
|
import Codeblock from '../components/codeblock.svelte';
|
||||||
|
import Notice from '../components/notice.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
@ -14,6 +15,12 @@
|
||||||
<meta property="og:description" content="Largest collection of Indonesian dad jokes as a consumable API" />
|
<meta property="og:description" content="Largest collection of Indonesian dad jokes as a consumable API" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<Notice emoji="💡">
|
||||||
|
{$_('api.limit')}
|
||||||
|
</Notice>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h1>{$_('api.get.title')}</h1>
|
<h1>{$_('api.get.title')}</h1>
|
||||||
<h2>{$_('api.get.random.title')}</h2>
|
<h2>{$_('api.get.random.title')}</h2>
|
||||||
|
|
Loading…
Reference in New Issue