mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Fix JS supporting files.
This commit is contained in:
parent
2c5d4bb112
commit
8d9e2faefe
3
frontend/.eslintignore
Normal file
3
frontend/.eslintignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
vue/components/Public/WebDJ/Stream.js
|
||||
vue/components/Public/WebDJ/Track.js
|
||||
vue/vendor/chartjs-colorschemes/*
|
|
@ -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 */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// noinspection all
|
||||
// @eslint-
|
||||
|
||||
var stream = {};
|
||||
var defaultChannels = 2;
|
||||
|
|
|
@ -8,4 +8,4 @@ export default function strtoupper(data) {
|
|||
upper.push(word.toUpperCase());
|
||||
});
|
||||
return upper.join(' ');
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ export default function useSlotsExcept(except) {
|
|||
return !includes(except, name);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
2
frontend/vue/vendor/azuracast.js
vendored
2
frontend/vue/vendor/azuracast.js
vendored
|
@ -1,3 +1,5 @@
|
|||
/* eslint-disable no-undef */
|
||||
|
||||
export function useAzuraCast() {
|
||||
return {
|
||||
lang: {
|
||||
|
|
4
frontend/vue/vendor/bootstrapVue.js
vendored
4
frontend/vue/vendor/bootstrapVue.js
vendored
|
@ -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());
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user