blob: e26289919919387763a64466f165d721576a2910 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
STUDIP.ready(function () {
const selectors = [
'.use-vue-components',
'form .simplevue'
];
const selector = selectors.map(selector => `${selector}:not(.vueified)`).join(',');
const containers = document.querySelectorAll(selector);
if (containers.length > 0) {
STUDIP.Vue.load().then(({ createApp }) => {
containers.forEach(container => {
container.classList.add('vueified');
createApp().mount(container)
});
});
}
});
|