Add gitpod related changes

This commit is contained in:
wvffle 2022-06-24 20:12:54 +00:00 committed by Georg Krause
parent 70495c6a27
commit 15e62d62f6
3 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,8 @@ export const install: InitModule = async ({ store, router }) => {
const defaultInstanceUrl = store.state.instance.frontSettings.defaultServerUrl const defaultInstanceUrl = store.state.instance.frontSettings.defaultServerUrl
store.commit('instance/instanceUrl', defaultInstanceUrl) store.commit('instance/instanceUrl', defaultInstanceUrl)
} else { } 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) store.commit('instance/instanceUrl', store.state.instance.instanceUrl)
} }
} }

View File

@ -58,6 +58,7 @@ const store: Module<State, RootState> = {
namespaced: true, namespaced: true,
state: { state: {
frontSettings: { frontSettings: {
// TODO (wvffle): Remove all checks if the variable exists
defaultServerUrl: instanceUrl, defaultServerUrl: instanceUrl,
additionalStylesheets: [] additionalStylesheets: []
}, },

View File

@ -43,7 +43,6 @@ export default defineConfig(() => ({
navigateFallback: 'index.html' navigateFallback: 'index.html'
} }
}), }),
{ {
name: 'fix-fomantic-ui-css', name: 'fix-fomantic-ui-css',
transform (src, id) { transform (src, id) {