release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
1 changed files with 13 additions and 2 deletions
Showing only changes of commit 87139077da - Show all commits

View File

@ -4,6 +4,7 @@ import routes from 'src/router/routes';
import { api } from 'boot/axios';
import { AxiosResponse } from 'axios';
import { RouteRecordRaw } from 'vue-router';
import { Notify } from 'quasar';
const config: { [key: string]: Array<string> } = {
// Do not change required Modules !!
@ -340,13 +341,23 @@ export default boot(async ({ router, app }) => {
});
// Load user defined plugins
const failed: string[] = [];
config.loadModules.forEach((required) => {
const plugin = loadPlugin(loadedPlugins, required, pluginsContext, backend);
if (!plugin) {
void router.push({ name: 'error' });
return;
failed.push(required);
}
});
if (failed.length > 0) {
console.error('Could not load all plugins', failed);
Notify.create({
type: 'negative',
message:
'Fehler beim laden, nicht alle Funktionen stehen zur Verfügung. Bitte wende dich an den Admin!',
timeout: 10000,
progress: true,
});
}
// Sort widgets by priority
loadedPlugins.widgets.sort((a, b) => b.priority - a.priority);