2022-07-12 10:55:28 +02:00
|
|
|
import { provide, createApp, h } from "vue";
|
|
|
|
// import "../node_modules/bulma/css/bulma.min.css";
|
2020-02-18 08:57:00 +01:00
|
|
|
import VueScrollTo from "vue-scrollto";
|
2022-07-12 10:55:28 +02:00
|
|
|
// import VueAnnouncer from "@vue-a11y/announcer";
|
|
|
|
// import VueSkipTo from "@vue-a11y/skip-to";
|
2020-02-18 08:57:00 +01:00
|
|
|
import App from "./App.vue";
|
2022-07-12 10:55:28 +02:00
|
|
|
import { router } from "./router";
|
|
|
|
import { i18n, locale } from "./utils/i18n";
|
|
|
|
import { apolloClient } from "./vue-apollo";
|
2022-01-10 15:19:16 +01:00
|
|
|
import Breadcrumbs from "@/components/Utils/Breadcrumbs.vue";
|
2022-07-12 10:55:28 +02:00
|
|
|
import { DefaultApolloClient } from "@vue/apollo-composable";
|
2020-12-11 15:27:31 +01:00
|
|
|
import "./registerServiceWorker";
|
2021-12-28 11:10:14 +01:00
|
|
|
import "./assets/tailwind.css";
|
2022-07-12 10:55:28 +02:00
|
|
|
import { setAppForAnalytics } from "./services/statistics";
|
|
|
|
import Button from "./components/core/Button.vue";
|
|
|
|
import Message from "./components/core/Message.vue";
|
|
|
|
import CoreInput from "./components/core/Input.vue";
|
|
|
|
import CoreField from "./components/core/Field.vue";
|
|
|
|
import { dateFnsPlugin } from "./plugins/dateFns";
|
|
|
|
import { dialogPlugin } from "./plugins/dialog";
|
|
|
|
import { snackbarPlugin } from "./plugins/snackbar";
|
|
|
|
import { notifierPlugin } from "./plugins/notifier";
|
2022-08-22 12:12:09 +02:00
|
|
|
import Tag from "./components/core/CoreTag.vue";
|
2022-07-12 10:55:28 +02:00
|
|
|
import FloatingVue from "floating-vue";
|
|
|
|
import "floating-vue/dist/style.css";
|
|
|
|
import Oruga from "@oruga-ui/oruga-next";
|
|
|
|
// import "@oruga-ui/oruga-next/dist/oruga-full-vars.css";
|
|
|
|
import "@oruga-ui/oruga-next/dist/oruga.css";
|
|
|
|
import "./assets/oruga-tailwindcss.css";
|
|
|
|
import { orugaConfig } from "./oruga-config";
|
|
|
|
import MaterialIcon from "./components/core/MaterialIcon.vue";
|
|
|
|
import { createHead } from "@vueuse/head";
|
2018-12-21 15:41:34 +01:00
|
|
|
|
2022-07-12 10:55:28 +02:00
|
|
|
// Vue.use(VueScrollTo);
|
|
|
|
// Vue.use(VueAnnouncer);
|
|
|
|
// Vue.use(VueSkipTo);
|
2018-01-09 17:52:26 +01:00
|
|
|
|
2022-07-12 10:55:28 +02:00
|
|
|
// const app = createApp(App);
|
2018-12-21 15:41:34 +01:00
|
|
|
|
2022-07-12 10:55:28 +02:00
|
|
|
const head = createHead();
|
2019-10-09 17:54:35 +02:00
|
|
|
|
2022-07-12 10:55:28 +02:00
|
|
|
const app = createApp({
|
|
|
|
setup() {
|
|
|
|
provide(DefaultApolloClient, apolloClient);
|
|
|
|
},
|
|
|
|
render: () => h(App),
|
2018-01-09 17:52:26 +01:00
|
|
|
});
|
2022-07-12 10:55:28 +02:00
|
|
|
// app.provide(DefaultApolloClient, apolloClient);
|
|
|
|
|
|
|
|
app.use(router);
|
|
|
|
app.use(i18n);
|
|
|
|
app.use(dateFnsPlugin, { locale });
|
|
|
|
app.use(dialogPlugin);
|
|
|
|
app.use(snackbarPlugin);
|
|
|
|
app.use(notifierPlugin);
|
|
|
|
app.use(VueScrollTo);
|
|
|
|
app.use(FloatingVue);
|
|
|
|
app.use(head);
|
|
|
|
app.component("breadcrumbs-nav", Breadcrumbs);
|
|
|
|
app.component("b-button", Button);
|
|
|
|
app.component("b-message", Message);
|
|
|
|
app.component("b-input", CoreInput);
|
|
|
|
app.component("b-field", CoreField);
|
|
|
|
app.component("b-tag", Tag);
|
|
|
|
app.component("material-icon", MaterialIcon);
|
|
|
|
app.use(Oruga, orugaConfig);
|
|
|
|
|
|
|
|
app.mount("#app");
|
|
|
|
|
|
|
|
setAppForAnalytics(app);
|