From 7f15a431560a1e0a6c850e0d6cb57a2bb0ac9713 Mon Sep 17 00:00:00 2001 From: Nero Ignis Date: Wed, 23 Sep 2020 00:06:39 +0200 Subject: [PATCH] Completion of documentation; Fetch documentation via API and display in modal; Add Google Analytics & imprint. --- app.js | 13 ++++++++++++- documentation.md | 49 ++++++++++++++++++++++++++++++++++-------------- index.html | 38 +++++++++++++++++++------------------ 3 files changed, 67 insertions(+), 33 deletions(-) diff --git a/app.js b/app.js index ba91aeb..5e733d9 100644 --- a/app.js +++ b/app.js @@ -6,6 +6,7 @@ let kara = new Vue({ themes: false, setNameAtStart: true }, + documentation: '', messages: [], talk: false, lastMessage: null, @@ -37,6 +38,7 @@ let kara = new Vue({ mounted() { this.getSavedData(); this.getReactions(); + this.getDocumentation(); if (this.features.themes) { this.getBootswatchThemes(); @@ -902,7 +904,7 @@ let kara = new Vue({ return includesAllkeywords; }, - // Ajax calls for saving/receiving reactions & themes + // Ajax calls for saving/receiving reactions, documentation & themes getBootswatchThemes() { let Kara = this; @@ -925,6 +927,15 @@ let kara = new Vue({ console.log(error); }); }, + getDocumentation() { + let Kara = this; + + axios.get('/api/kara/documentation').then((response) => { + Kara.documentation = response.data; + }).catch((error) => { + console.log(error); + }); + }, // Levenshtein distance isSimilar(message1, message2) { diff --git a/documentation.md b/documentation.md index a563cde..075c794 100644 --- a/documentation.md +++ b/documentation.md @@ -8,8 +8,7 @@ Clears the chat. Repeats your message. ##### ```/todo``` -Adds a new todo to the list.\ -Todos can be viewed by clicking on the clipboard-icon in the upper right. +Adds a new todo to the list. Todos can be viewed, checked and cleared by clicking on the clipboard-icon (only visible once you have a least one todo) in the upper right. ##### ```/weather``` Tells you the weather in your location.\ @@ -40,19 +39,10 @@ Some predefined meme-categories can be triggerd by: ##### ```/me``` Sends a classical "_User farted_" message. -##### Animal images & facts -There are a number of commands to receive random animal images & facts.\ - -Animals:\ -_birb, dog, cat, fox, panda, red_panda & koala_ - -To get a fact or an image, use: -```/youranimalImg``` or ```/youranimalFact``` - - ##### ```/lyrics``` Fetch lyrics for songs.\ -Usage: ```/lyrics songname``` (you can also search for things like ```songname artist```) +Usage: ```/lyrics songname```\ +(you can also search for things like ```songname artist```) ##### ```/quiz``` Get a quiz-question and guess the answer.\ @@ -65,10 +55,41 @@ Guess the right question to the given answer. ##### ```/dice``` Roll the dice! +##### Animal images & facts +There are a number of commands to receive random animal images & facts. + +Animals:\ +_birb, dog, cat, fox, panda, red_panda & koala_ + +To get a fact or an image, use: +```/youranimalImg``` or ```/youranimalFact``` + + + --- #### Experimental ##### ```/talk``` Activate talking. Kara will now talk to you.\ -The voice-language heavily depends on the device used. \ No newline at end of file +The voice-language heavily depends on the device used. + +--- + +#### Planned features + +- Timetracking for work with unlimited trackers +- Wikipedia lookup +- News integration +- Multilanguage (English, German) +- More natural conversations +- Chrome Extension (_WIP_) +- YouTube integration +- more fun stuff & games +- maybe some quick image-converting & editing in the future. + +--- + +#### Found a bug? + +Eat it! Or open an [issue](https://git.luna-development.net/neroignis/kara) 🐞 \ No newline at end of file diff --git a/index.html b/index.html index 5f5a92e..ed23831 100644 --- a/index.html +++ b/index.html @@ -149,7 +149,7 @@
@@ -167,22 +167,16 @@ - @@ -203,7 +197,15 @@ - + + +