From 1935af83c339991bafe137209abcdd2a64736d6e Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 11 Oct 2020 10:13:35 +0000 Subject: [PATCH] Allow setting api url from the login screen (#264) Cleanup Use the http factory everywhere instead of the created element Use the current domain if the api path is relative to the frontend host Format Prevent setting an empty url Fix styling Add changing api url Add change url component Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/264 Co-Authored-By: konrad Co-Committed-By: konrad --- src/App.vue | 3 - src/components/misc/api-config.vue | 170 ++++++++++++++++++++++++++ src/http-common/index.js | 8 +- src/main.js | 6 + src/store/modules/auth.js | 6 +- src/store/modules/config.js | 8 +- src/styles/components/_all.scss | 1 + src/styles/components/api-config.scss | 12 ++ src/styles/theme/form.scss | 4 + src/views/user/Login.vue | 6 +- 10 files changed, 214 insertions(+), 10 deletions(-) create mode 100644 src/components/misc/api-config.vue create mode 100644 src/styles/components/api-config.scss diff --git a/src/App.vue b/src/App.vue index add6b28f2..5fb763ea4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -158,7 +158,6 @@