64 lines
1.4 KiB
JavaScript
64 lines
1.4 KiB
JavaScript
// assets/js/index.js
|
|
|
|
// End Matomo Code
|
|
|
|
import '../styles/app.scss';
|
|
|
|
/*
|
|
require('@fortawesome/fontawesome-free/css/all.min.css');
|
|
require('@fortawesome/fontawesome-free/js/all.js');
|
|
*/
|
|
|
|
// CKEditor
|
|
//require '@'
|
|
import '../styles/ckeditor.css';
|
|
|
|
import Vue from 'vue';
|
|
import { BootstrapVue, IconsPlugin, NavbarPlugin } from 'bootstrap-vue';
|
|
import VueRouter from 'vue-router';
|
|
|
|
import { createPinia, PiniaVuePlugin } from 'pinia';
|
|
import router from '@/router';
|
|
import App from '@/App';
|
|
|
|
//globalThis.__VUE_OPTIONS_API__ = true;
|
|
//globalThis.__VUE_PROD_DEVTOOLS__ = true;
|
|
|
|
/* eslint-disable */
|
|
|
|
// Matomo
|
|
const _paq = window._paq = window._paq || [];
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
_paq.push(['trackPageView']);
|
|
_paq.push(['enableLinkTracking']);
|
|
(function () {
|
|
const u = 'https://analytics.24unix.net/';
|
|
_paq.push(['setTrackerUrl', `${u}matomo.php`]);
|
|
_paq.push(['setSiteId', '1']);
|
|
const d = document; const g = d.createElement('script'); const
|
|
s = d.getElementsByTagName('script')[0];
|
|
g.async = true;
|
|
g.src = `${u}matomo.js`;
|
|
s.parentNode.insertBefore(g, s);
|
|
}());
|
|
|
|
/* eslint-enable */
|
|
|
|
require('fork-awesome/scss/fork-awesome.scss');
|
|
|
|
Vue.use(BootstrapVue);
|
|
Vue.use(VueRouter);
|
|
Vue.use(IconsPlugin);
|
|
Vue.use(NavbarPlugin);
|
|
Vue.config.productionTip = false;
|
|
|
|
Vue.use(PiniaVuePlugin);
|
|
const pinia = createPinia();
|
|
|
|
new Vue({
|
|
router,
|
|
pinia,
|
|
render: (h) => h(App)
|
|
})
|
|
.$mount('#app');
|