fix config

This commit is contained in:
axolotle 2023-03-24 21:19:17 +01:00
parent 3d83e86f55
commit c2fef5d238
3 changed files with 12 additions and 6 deletions

View file

@ -19,6 +19,7 @@ module.exports = {
multiline: 3, multiline: 3,
}, },
], ],
'vue/multi-word-component-names': 'off', // FIXME this should be adressed at some point
'no-console': 'warn', 'no-console': 'warn',
'template-curly-spacing': 'off', 'template-curly-spacing': 'off',
camelcase: 'warn', camelcase: 'warn',

View file

@ -24,11 +24,14 @@
</b-card-title> </b-card-title>
<template v-for="(field, fname) in section.fields"> <template v-for="(field, fname) in section.fields">
<!-- FIXME rework the whole component chain to avoid direct mutation of the `forms` props -->
<!-- eslint-disable -->
<component <component
v-if="field.visible" :is="field.is" v-bind="field.props" v-if="field.visible" :is="field.is" v-bind="field.props"
v-model="forms[panel.id][fname]" :validation="validation[fname]" :key="fname" v-model="forms[panel.id][fname]" :validation="validation[fname]" :key="fname"
@action.stop="onAction(section.id, fname, section.fields)" @action.stop="onAction(section.id, fname, section.fields)"
/> />
<!-- eslint-enable -->
</template> </template>
</component> </component>
</template> </template>

View file

@ -61,7 +61,7 @@ module.exports = {
css: { css: {
loaderOptions: { loaderOptions: {
sass: { sass: {
prependData: '@import "@/scss/_variables.scss";' additionalData: '@import "@/scss/_variables.scss";'
} }
} }
}, },
@ -69,7 +69,7 @@ module.exports = {
devServer: process.env.NODE_ENV === 'development' ? { devServer: process.env.NODE_ENV === 'development' ? {
public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'),
https: false, https: false,
disableHostCheck: true, allowedHosts: 'all',
proxy: { proxy: {
'^/yunohost': { '^/yunohost': {
target: `http://${process.env.VUE_APP_IP}`, target: `http://${process.env.VUE_APP_IP}`,
@ -77,10 +77,12 @@ module.exports = {
logLevel: 'info' logLevel: 'info'
} }
}, },
watchOptions: { static: {
watch: {
ignored: /node_modules/, ignored: /node_modules/,
aggregateTimeout: 300, aggregateTimeout: 300,
poll: 1000 poll: 1000
} }
}
} : {} } : {}
} }