blob: 31d724dec535e9ae5235975688370fdb07c31021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
STUDIP.domReady(() => {
const avatarTypes = ['courses', 'institutes', 'studygroups', 'users'];
avatarTypes.forEach((type) => {
if (document.getElementById(`avatar-${type}-app`)) {
Promise.all([
STUDIP.loadChunk('avatar'),
import(
/* webpackChunkName: "avatar-app" */
'@/vue/avatar-app.js'
),
]).then(([{ createApp }, { default: mountApp }]) => {
return mountApp(STUDIP, createApp, `#avatar-${type}-app`);
});
}
});
});
|