From 0954767a12234412c2c030aa87710f23b50d8907 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sun, 18 Jul 2021 18:56:48 +0700 Subject: [PATCH] feat: analytics with umami --- client/src/app.html | 1 + client/src/languages/en.json | 2 +- client/src/languages/id.json | 2 +- client/src/routes/__layout.svelte | 40 +++++++++++++++++++++---------- client/src/routes/api.svelte | 19 ++++++++++++++- client/src/routes/index.svelte | 2 +- 6 files changed, 49 insertions(+), 17 deletions(-) diff --git a/client/src/app.html b/client/src/app.html index 92f4441..91e7678 100644 --- a/client/src/app.html +++ b/client/src/app.html @@ -21,6 +21,7 @@ + %svelte.head% diff --git a/client/src/languages/en.json b/client/src/languages/en.json index adc45fe..f18d018 100644 --- a/client/src/languages/en.json +++ b/client/src/languages/en.json @@ -84,7 +84,7 @@ }, "id": { "title": "Get joke by ID", - "body": "You'll get consistent joke for every call with the same ID." + "body": "You'll get consistent joke for every call with the same ID. Where ID is a number ranging from 1 to {total}." }, "total": { "title": "Get total number of jokes", diff --git a/client/src/languages/id.json b/client/src/languages/id.json index 8e8c9fb..049e6d8 100644 --- a/client/src/languages/id.json +++ b/client/src/languages/id.json @@ -84,7 +84,7 @@ }, "id": { "title": "Dapatkan joke berdasarkan ID", - "body": "Bapak akan dapat hasil yang konsisten pada setiap request dengan ID yang sama." + "body": "Bapak akan dapat hasil yang konsisten pada setiap request dengan ID yang sama. Dimana ID adalah angka diantara 1 hingga {total}." }, "total": { "title": "Dapatkan total jumlah jokes", diff --git a/client/src/routes/__layout.svelte b/client/src/routes/__layout.svelte index 78b6491..0a5b11a 100644 --- a/client/src/routes/__layout.svelte +++ b/client/src/routes/__layout.svelte @@ -24,19 +24,33 @@ -