From 9135090e73ff6fc021b4f7f80b3780b3ff73ad02 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Mon, 5 Apr 2021 17:29:25 +0200 Subject: [PATCH] You can now go back to config by typeing cnf --- licenses.md | 30 +++++++++++++++--------------- package.json | 4 ++-- src/App.svelte | 33 ++++++++++++++++++++++++++++++++- src/Login.svelte | 2 +- src/store.js | 6 ++++++ 5 files changed, 56 insertions(+), 19 deletions(-) diff --git a/licenses.md b/licenses.md index db36a85..43aebae 100644 --- a/licenses.md +++ b/licenses.md @@ -237,6 +237,21 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# svelte-i18n +**Author**: Christian Kaisermann +**Repo**: https://github.com/kaisermann/svelte-i18n +**License**: MIT +**Description**: Internationalization library for Svelte +## License Text +Copyright 2017 Christian Kaisermann + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + # svelte-preprocess **Author**: Christian Kaisermann **Repo**: https://github.com/sveltejs/svelte-preprocess @@ -4987,18 +5002,3 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# svelte-i18n -**Author**: Christian Kaisermann -**Repo**: https://github.com/kaisermann/svelte-i18n -**License**: MIT -**Description**: Internationalization library for Svelte -## License Text -Copyright 2017 Christian Kaisermann - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - diff --git a/package.json b/package.json index af36b53..2c0cde0 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,9 @@ "prettier": "^2.2.1", "prettier-plugin-svelte": "^2.2.0", "svelte": "3.36.0", + "svelte-i18n": "3.3.9", "svelte-preprocess": "4.7.0", "vite": "2.1.4", - "vite-plugin-windicss": "0.11.2", - "svelte-i18n": "3.3.9" + "vite-plugin-windicss": "0.11.2" } } diff --git a/src/App.svelte b/src/App.svelte index 61ca630..cf25e27 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,5 +1,5 @@ diff --git a/src/Login.svelte b/src/Login.svelte index dba4ca5..2e51ee5 100644 --- a/src/Login.svelte +++ b/src/Login.svelte @@ -42,7 +42,7 @@
- LfK!Beamershow + LfK! Beamershow
diff --git a/src/store.js b/src/store.js index d45edec..1c360c3 100644 --- a/src/store.js +++ b/src/store.js @@ -25,3 +25,9 @@ export const lang = writable(stored_lang); lang.subscribe((value) => { localStorage.setItem('lang', value); }); + +export function clear(){ + api_endpoint.set(null) + apikey.set(null); + localStorage.clear(); +} \ No newline at end of file