Skip to content

Commit

Permalink
fix main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Nov 2, 2023
1 parent da640f1 commit e8c9eb9
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// NUXT_REMOVAL change how global components are handled
import "@/components/base/_globals";
import "@/plugins/directives";
import "@/plugins/polyfills";
import {
accountsModule,
applicationErrorModule,
Expand All @@ -8,7 +12,6 @@ import {
contextExternalToolsModule,
copyModule,
envConfigModule,
externalToolsModule,
filePathsModule,
finishedTasksModule,
groupModule,
Expand All @@ -17,7 +20,6 @@ import {
newsModule,
notifierModule,
privacyPolicyModule,
termsOfUseModule,
roomModule,
roomsModule,
schoolExternalToolsModule,
Expand All @@ -26,53 +28,49 @@ import {
statusAlertsModule,
systemsModule,
tasksModule,
termsOfUseModule,
userLoginMigrationModule,
videoConferenceModule,
} from "@/store";
import Vue from "vue";
import App from "./App.vue";
import { createI18n } from "./plugins/i18n";
import store from "./plugins/store";
import vuetify from "./plugins/vuetify";
import router from "./router";

import "@/styles/global.scss";
// NUXT_REMOVAL set this based on the tenant theme
import themeConfig from "@/theme.config";
import { htmlConfig } from "@feature-render-html";
import axios from "axios";
import Cookies from "universal-cookie";
import Vue from "vue";
import VueDOMPurifyHTML from "vue-dompurify-html";
// NUXT_REMOVAL try to solve without vue-mq dependency
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import VueMq from "vue-mq";
import Vuelidate from "vuelidate";
import { htmlConfig } from "@feature-render-html";
import VueDOMPurifyHTML from "vue-dompurify-html";
// NUXT_REMOVAL change how global components are handled
import "@/components/base/_globals";
import "@/plugins/directives";
import "@/plugins/polyfills";

import "@/styles/global.scss";
import axios from "axios";
import Cookies from "universal-cookie";
import App from "./App.vue";
import { handleApplicationError } from "./plugins/application-error-handler";
import { createI18n } from "./plugins/i18n";
import store from "./plugins/store";
import vuetify from "./plugins/vuetify";
import router from "./router";
import { initializeAxios } from "./utils/api";

import {
APPLICATION_ERROR_KEY,
AUTH_MODULE_KEY,
CONTEXT_EXTERNAL_TOOLS_MODULE_KEY,
ENV_CONFIG_MODULE_KEY,
EXTERNAL_TOOLS_MODULE_KEY,
GROUP_MODULE_KEY,
I18N_KEY,
NOTIFIER_MODULE_KEY,
PRIVACY_POLICY_MODULE_KEY,
ROOM_MODULE_KEY,
SCHOOL_EXTERNAL_TOOLS_MODULE_KEY,
SCHOOLS_MODULE_KEY,
STATUS_ALERTS_MODULE_KEY,
SYSTEMS_MODULE_KEY,
TERMS_OF_USE_MODULE_KEY,
USER_LOGIN_MIGRATION_MODULE_KEY,
VIDEO_CONFERENCE_MODULE_KEY,
PRIVACY_POLICY_MODULE_KEY,
TERMS_OF_USE_MODULE_KEY,
} from "./utils/inject";

Vue.config.productionTip = false;
Expand Down Expand Up @@ -152,7 +150,6 @@ Vue.use(VueDOMPurifyHTML, {
[CONTEXT_EXTERNAL_TOOLS_MODULE_KEY.valueOf()]: contextExternalToolsModule,
copyModule,
[ENV_CONFIG_MODULE_KEY.valueOf()]: envConfigModule,
[EXTERNAL_TOOLS_MODULE_KEY.valueOf()]: externalToolsModule,
filePathsModule,
finishedTasksModule,
[GROUP_MODULE_KEY.valueOf()]: groupModule,
Expand Down

0 comments on commit e8c9eb9

Please sign in to comment.