Skip to content
Snippets Groups Projects
Commit 370fce3b authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Vue-Integration für Plugins"

parent c3f4673f
No related branches found
No related tags found
No related merge requests found
/*jslint esversion: 6*/ /*jslint esversion: 6*/
import { $gettext } from '../lib/gettext.js'; import { $gettext } from './gettext';
import BlubberGlobalstream from '../../../vue/components/BlubberGlobalstream.vue';
import BlubberPublicComposer from '../../../vue/components/BlubberPublicComposer.vue';
import BlubberThread from '../../../vue/components/BlubberThread.vue';
import BlubberThreadWidget from '../../../vue/components/BlubberThreadWidget.vue';
const components = {
BlubberGlobalstream,
BlubberPublicComposer,
BlubberThread,
BlubberThreadWidget,
};
const Blubber = { const Blubber = {
App: null, //This app is not always available. The app is blubber with a widget and the threads next to it. App: null, //This app is not always available. The app is blubber with a widget and the threads next to it.
threads: [], threads: [],
components: {
BlubberGlobalstream: () => import('../../../vue/components/BlubberGlobalstream.vue'),
BlubberPublicComposer: () => import('../../../vue/components/BlubberPublicComposer.vue'),
BlubberThread: () => import('../../../vue/components/BlubberThread.vue'),
BlubberThreadWidget: () => import('../../../vue/components/BlubberThreadWidget.vue'),
},
init () { init () {
let components = STUDIP.Blubber.components;
if ($('#blubber-index, #messenger-course, .blubber_panel.vueinstance').length) { if ($('#blubber-index, #messenger-course, .blubber_panel.vueinstance').length) {
STUDIP.JSUpdater.register('blubber', Blubber.updateState, Blubber.getParamsForPolling); STUDIP.JSUpdater.register('blubber', Blubber.updateState, Blubber.getParamsForPolling);
...@@ -187,6 +184,7 @@ const Blubber = { ...@@ -187,6 +184,7 @@ const Blubber = {
vue: null, vue: null,
async init () { async init () {
STUDIP.Blubber.Composer.vue = await STUDIP.Vue.load().then(({createApp}) => { STUDIP.Blubber.Composer.vue = await STUDIP.Vue.load().then(({createApp}) => {
let components = STUDIP.Blubber.components;
return createApp({ return createApp({
el: '#blubber_contact_ids', el: '#blubber_contact_ids',
data: { data: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment