From c2fef5d238070fc0dc0e1481029ce77731251d0a Mon Sep 17 00:00:00 2001 From: axolotle Date: Fri, 24 Mar 2023 21:19:17 +0100 Subject: [PATCH] fix config --- app/.eslintrc.js | 1 + app/src/components/ConfigPanel.vue | 3 +++ app/vue.config.js | 14 ++++++++------ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/.eslintrc.js b/app/.eslintrc.js index 57cadda3..9a5864e8 100644 --- a/app/.eslintrc.js +++ b/app/.eslintrc.js @@ -19,6 +19,7 @@ module.exports = { multiline: 3, }, ], + 'vue/multi-word-component-names': 'off', // FIXME this should be adressed at some point 'no-console': 'warn', 'template-curly-spacing': 'off', camelcase: 'warn', diff --git a/app/src/components/ConfigPanel.vue b/app/src/components/ConfigPanel.vue index f51dfadc..5b4b97e5 100644 --- a/app/src/components/ConfigPanel.vue +++ b/app/src/components/ConfigPanel.vue @@ -24,11 +24,14 @@ diff --git a/app/vue.config.js b/app/vue.config.js index a7b2b3aa..f1fb5374 100644 --- a/app/vue.config.js +++ b/app/vue.config.js @@ -61,7 +61,7 @@ module.exports = { css: { loaderOptions: { sass: { - prependData: '@import "@/scss/_variables.scss";' + additionalData: '@import "@/scss/_variables.scss";' } } }, @@ -69,7 +69,7 @@ module.exports = { devServer: process.env.NODE_ENV === 'development' ? { public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), https: false, - disableHostCheck: true, + allowedHosts: 'all', proxy: { '^/yunohost': { target: `http://${process.env.VUE_APP_IP}`, @@ -77,10 +77,12 @@ module.exports = { logLevel: 'info' } }, - watchOptions: { - ignored: /node_modules/, - aggregateTimeout: 300, - poll: 1000 + static: { + watch: { + ignored: /node_modules/, + aggregateTimeout: 300, + poll: 1000 + } } } : {} }