From 15e62d62f64d19b337a72261694865bb222805ce Mon Sep 17 00:00:00 2001 From: wvffle Date: Fri, 24 Jun 2022 20:12:54 +0000 Subject: [PATCH] Add gitpod related changes --- front/src/init/instance.ts | 3 ++- front/src/store/instance.ts | 1 + front/vite.config.ts | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/init/instance.ts b/front/src/init/instance.ts index 8d29ee557..2e47d483a 100644 --- a/front/src/init/instance.ts +++ b/front/src/init/instance.ts @@ -28,7 +28,8 @@ export const install: InitModule = async ({ store, router }) => { const defaultInstanceUrl = store.state.instance.frontSettings.defaultServerUrl store.commit('instance/instanceUrl', defaultInstanceUrl) } else { - // needed to trigger initialization of axios / service worker / web socket + // NOTE: Needed to trigger initialization of axios / service worker / web socket + // TODO (wvffle): Check if it is really needed store.commit('instance/instanceUrl', store.state.instance.instanceUrl) } } diff --git a/front/src/store/instance.ts b/front/src/store/instance.ts index 87fe142a8..630f4ae28 100644 --- a/front/src/store/instance.ts +++ b/front/src/store/instance.ts @@ -58,6 +58,7 @@ const store: Module = { namespaced: true, state: { frontSettings: { + // TODO (wvffle): Remove all checks if the variable exists defaultServerUrl: instanceUrl, additionalStylesheets: [] }, diff --git a/front/vite.config.ts b/front/vite.config.ts index 69eded35e..a57737859 100644 --- a/front/vite.config.ts +++ b/front/vite.config.ts @@ -43,7 +43,6 @@ export default defineConfig(() => ({ navigateFallback: 'index.html' } }), - { name: 'fix-fomantic-ui-css', transform (src, id) {