Arc-hive-list/src/loaders/archiveListLoader.js
2021-10-22 11:00:33 +02:00

40 lines
1.2 KiB
JavaScript

/*
This file is part of LiberaForms.
# SPDX-FileCopyrightText: 2021 LiberaForms.org
# SPDX-License-Identifier: AGPL-3.0-or-later
*/
import Vue from "vue";
//import VueMq from 'vue-mq'
import ArchiveList from "../components/archiveList.vue";
//import 'es6-promise/auto'
//import store from "../store.js"
//import i18n from "../i18n.js"
export const bus = new Vue();
var ComponentClass = Vue.extend(ArchiveList)
/*
.use(VueMq, {
breakpoints: { // default breakpoints - customize this
sm: 450,
md: 1250,
lg: Infinity,
},
defaultBreakpoint: 'sm' // customize this for SSR
})
*/
document.querySelectorAll("[data-vue-component=archive-list]")
.forEach((element) => {
new ComponentClass({
components: {'ArchiveList': ArchiveList},
/*
propsData: { ...element.dataset },
props: ["endpoint", "language", "csrf_token"],
store: store,
i18n: i18n,
*/
}).$mount(element);
});