removed splash, plugins load info

This commit is contained in:
Jan Prochazka
2021-05-19 19:36:12 +02:00
parent f0ea35d576
commit c4491050cd
4 changed files with 26 additions and 30 deletions

View File

@@ -8,6 +8,10 @@
for (const installed of installedPlugins || []) {
if (!_.keys(pluginsDict).includes(installed.name)) {
console.log('Loading module', installed.name);
loadingPluginStore.set({
loaded: false,
loadingPackageName: installed.name,
});
const resp = await axiosInstance.request({
method: 'get',
url: 'plugins/script',
@@ -22,6 +26,12 @@
newPlugins[installed.name] = moduleContent;
}
}
if (installedPlugins) {
loadingPluginStore.set({
loaded: true,
loadingPackageName: null,
});
}
return newPlugins;
}
@@ -43,11 +53,12 @@
};
return extensions;
}
</script>
<script lang="ts">
import _ from 'lodash';
import { extensions } from '../stores';
import { extensions, loadingPluginStore } from '../stores';
import axiosInstance from '../utility/axiosInstance';
import { useInstalledPlugins } from '../utility/metadataLoaders';
import { buildFileFormats } from './fileformats';
@@ -73,4 +84,5 @@
.filter(x => x.content);
$: $extensions = buildExtensions(plugins);
</script>