diff --git a/CHANGELOG.md b/CHANGELOG.md index 411c409c..2686faf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,19 @@ All notable changes to this project will be documented in this file. Dates are displayed in UTC. +#### [0.8.4](https://git.odit.services/lfk/frontend/compare/0.8.3...0.8.4) + +- CONFIG: default_username + default_password [`cc926e8`](https://git.odit.services/lfk/frontend/commit/cc926e84fb8bd9d6c9fd37349e25eb802e1bb324) +- CONFIG: add 'demo' as default username/password [`ba34710`](https://git.odit.services/lfk/frontend/commit/ba3471068ab00e2d5dbe21d6d763094e662f8347) + #### [0.8.3](https://git.odit.services/lfk/frontend/compare/0.8.2...0.8.3) +> 20 March 2021 + - Sorted translation 🌍 [`d6f6d10`](https://git.odit.services/lfk/frontend/commit/d6f6d10cb6b639a1f988e0da4811355750b0f027) - Smaller bugfixes [`8e04377`](https://git.odit.services/lfk/frontend/commit/8e0437728bd04223a23cdf1879c6c739ca8ebef7) - More small fixes [`1249904`](https://git.odit.services/lfk/frontend/commit/12499045824c13a3ee35c6cc8c3c3a3130dbec12) +- 🚀RELEASE v0.8.3 [`fff16e6`](https://git.odit.services/lfk/frontend/commit/fff16e6650cce1231a8d0db43531bf8e3e01f84a) #### [0.8.2](https://git.odit.services/lfk/frontend/compare/0.8.1...0.8.2) diff --git a/env.sample.js b/env.sample.js deleted file mode 100644 index 58b49e96..00000000 --- a/env.sample.js +++ /dev/null @@ -1,7 +0,0 @@ -const config = { - baseurl: 'https://dev.lauf-fuer-kaya.de', - documentserver_key: 'NqZSYTy5AFQ7MppbLW5moqpTk7u7YrNUHKYhKYuThnnya2WpCOIU694hIZT1FzYe', - fallback_username: 'admin', - fallback_password: '72fpTzsev4xUu78QPs2FCbwZ3', - prefersHashRouting: true -}; diff --git a/index.template.html b/index.template.html index 6570619d..7a819098 100644 --- a/index.template.html +++ b/index.template.html @@ -14,7 +14,7 @@ - + diff --git a/package.json b/package.json index e809760e..116f1990 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@odit/lfk-frontend", - "version": "0.8.3", + "version": "0.8.4", "scripts": { "i18n-order": "node order.js", "dev:all": "yarn prebuild && snowpack dev", diff --git a/public/env.sample.js b/public/env.sample.js index 7e223d49..04298fb3 100644 --- a/public/env.sample.js +++ b/public/env.sample.js @@ -1,6 +1,8 @@ const config = { baseurl: 'http://localhost:4010', - documentserver_key: 'NqZSYTy5AFQ7MppbLW5moqpTk7u7YrNUHKYhKYuThnnya2WpCOIU694hIZT1FzYe' + documentserver_key: 'NqZSYTy5AFQ7MppbLW5moqpTk7u7YrNUHKYhKYuThnnya2WpCOIU694hIZT1FzYe', // optional + default_username: 'demo', + default_password: 'demo', prefersHashRouting: true }; diff --git a/src/components/auth/Login.svelte b/src/components/auth/Login.svelte index a8476b20..35fbbe38 100644 --- a/src/components/auth/Login.svelte +++ b/src/components/auth/Login.svelte @@ -7,8 +7,8 @@ import Footer from "../general/Footer.svelte"; import Toastify from "toastify-js"; // ------ - let username = "demo"; - let password = "demo"; + let username = config.default_username || ""; + let password = config.default_password || ""; let is_blocked_by_autologin = false; let last_loginclick_processed = true;