Fix JS supporting files.

This commit is contained in:
Buster Neece 2022-12-29 14:48:00 -06:00
parent 2c5d4bb112
commit 8d9e2faefe
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
8 changed files with 17 additions and 9 deletions

3
frontend/.eslintignore Normal file
View File

@ -0,0 +1,3 @@
vue/components/Public/WebDJ/Stream.js
vue/components/Public/WebDJ/Track.js
vue/vendor/chartjs-colorschemes/*

View File

@ -8,9 +8,6 @@ import {installTranslate} from "~/vendor/gettext";
export default function (component) {
const vueApp = createApp({
render() {
return h(component, this.$appProps)
},
mounted() {
// Workaround to use BootstrapVue toast notifications in Vue 3 composition API.
const notifyBus = useNotifyBus();
@ -22,7 +19,10 @@ export default function (component) {
this.$bvToast.hide(payload.id);
}
});
}
},
render() {
return h(component, this.$appProps)
},
});
/* Gettext */

View File

@ -1,4 +1,5 @@
// noinspection all
// @eslint-
var stream = {};
var defaultChannels = 2;

View File

@ -8,4 +8,4 @@ export default function strtoupper(data) {
upper.push(word.toUpperCase());
});
return upper.join(' ');
};
}

View File

@ -9,4 +9,4 @@ export default function useSlotsExcept(except) {
return !includes(except, name);
});
});
};
}

View File

@ -1,3 +1,5 @@
/* eslint-disable no-undef */
export function useAzuraCast() {
return {
lang: {

View File

@ -10,7 +10,7 @@ export function useNotify() {
const notifyBus = useNotifyBus();
const notify = (message = null, options = {}) => {
if (!!document.hidden) {
if (document.hidden) {
return;
}
@ -136,4 +136,4 @@ export function useNotify() {
export default function installBootstrapVue(vueApp) {
vueApp.use(BootstrapVue);
vueApp.use(useNotify());
};
}

View File

@ -134,7 +134,9 @@ module.exports = {
]
},
plugins: [
new ESLintPlugin({}),
new ESLintPlugin({
extensions: ['js', 'vue']
}),
new WebpackAssetsManifest({
output: path.resolve(__dirname, '../web/static/webpack.json'),
writeToDisk: true,