From 19cc7d0c28ff56481fc37cc98b341259566a39ed Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Mon, 5 Apr 2021 17:33:00 +0200 Subject: [PATCH] User quickstart docs README --- README.md | 16 ++++++++++++---- src/App.svelte | 20 ++++++++------------ 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 8fb46a6..7da175b 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,25 @@ This is an API client for [https://git.odit.services/lfk/backend](@lfk/backend) - WebApp built with [Svelte](https://svelte.dev), [WindiCSS](https://windicss.org/) (to compile [TailwindCSS](https://tailwindcss.com/)) and [Vite](https://vitejs.dev). -## 🚀 Getting Started +## Dev🛠 +### 🚀 Getting Started ``` yarn ``` -## Development +### Development ``` yarn dev / yarn dev --open ``` -## Build +### Build ``` yarn build -``` \ No newline at end of file +``` + +## Use (quickstart) 🔥 +1. API-Endpoint -> Put in the baseurl of your Läufersystem API. +2. Client Token -> Statsclient token +3. Enjoy the show + +To get back to the config screen just type `cnf` into the window \ No newline at end of file diff --git a/src/App.svelte b/src/App.svelte index cf25e27..cd1b8cc 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -30,21 +30,17 @@ submit(); } } - if(command ==="" && e.key === "c") - { - command="c"; - } - else if(command ==="c" && e.key === "n"){ - command+="n"; - } - else if(command ==="cn" && e.key === "f"){ + if (command === "" && e.key === "c") { + command = "c"; + } else if (command === "c" && e.key === "n") { + command += "n"; + } else if (command === "cn" && e.key === "f") { clear(); settings_open = true; is_configured = true; - command = "" - } - else{ - command=""; + command = ""; + } else { + command = ""; } }; })();