You can now go back to config by typeing cnf
This commit is contained in:
parent
866436fa82
commit
9135090e73
30
licenses.md
30
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 <christian@kaisermann.me>
|
||||
**Repo**: https://github.com/kaisermann/svelte-i18n
|
||||
**License**: MIT
|
||||
**Description**: Internationalization library for Svelte
|
||||
## License Text
|
||||
Copyright 2017 Christian Kaisermann <christian@kaisermann.me>
|
||||
|
||||
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 <christian@kaisermann.me>
|
||||
**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 <christian@kaisermann.me>
|
||||
**Repo**: https://github.com/kaisermann/svelte-i18n
|
||||
**License**: MIT
|
||||
**Description**: Internationalization library for Svelte
|
||||
## License Text
|
||||
Copyright 2017 Christian Kaisermann <christian@kaisermann.me>
|
||||
|
||||
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.
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { apikey, api_endpoint, lang, page } from "./store.js";
|
||||
import { apikey, api_endpoint, lang, page, clear } from "./store.js";
|
||||
import { addMessages, init } from "svelte-i18n";
|
||||
import en from "./locales/en.json";
|
||||
import de from "./locales/de.json";
|
||||
|
@ -17,6 +17,37 @@
|
|||
fallbackLocale: "en-US",
|
||||
initialLocale: $lang,
|
||||
});
|
||||
$: command = "";
|
||||
(() => {
|
||||
document.onkeydown = (e) => {
|
||||
e = e || window.event;
|
||||
if (e.key === "Escape") {
|
||||
modal_open = false;
|
||||
}
|
||||
if (e.keyCode === 13) {
|
||||
if (createbtnenabled === true) {
|
||||
createbtnenabled = false;
|
||||
submit();
|
||||
}
|
||||
}
|
||||
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="";
|
||||
}
|
||||
};
|
||||
})();
|
||||
console.log("app started with base url " + $api_endpoint);
|
||||
</script>
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<div class="flex justify-center md:justify-start pt-12 md:pl-12 md:-mb-24">
|
||||
<div class="bg-black text-white font-bold text-xl p-4">
|
||||
<img src="./favicon.png" alt="" style="height: 3rem;display: inline;" />
|
||||
LfK!Beamershow
|
||||
LfK! Beamershow
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue