|
|
|
@ -41,7 +41,6 @@ |
|
|
|
import { computed, onMounted, onUpdated, provide, ref, watch, watchEffect } from "vue" |
|
|
|
import { computed, onMounted, onUpdated, provide, ref, watch, watchEffect } from "vue" |
|
|
|
import { useRoute, useRouter } from "vue-router" |
|
|
|
import { useRoute, useRouter } from "vue-router" |
|
|
|
import { DefaultApolloClient } from "@vue/apollo-composable" |
|
|
|
import { DefaultApolloClient } from "@vue/apollo-composable" |
|
|
|
import { ApolloClient, createHttpLink, InMemoryCache } from "@apollo/client/core" |
|
|
|
|
|
|
|
import axios from "axios" |
|
|
|
import axios from "axios" |
|
|
|
import { capitalize, isEmpty } from "lodash" |
|
|
|
import { capitalize, isEmpty } from "lodash" |
|
|
|
import ConfirmDialog from "primevue/confirmdialog" |
|
|
|
import ConfirmDialog from "primevue/confirmdialog" |
|
|
|
@ -56,12 +55,7 @@ import CustomDashboardLayout from "../../var/vue_templates/components/layout/Das |
|
|
|
import EmptyLayout from "./components/layout/EmptyLayout.vue" |
|
|
|
import EmptyLayout from "./components/layout/EmptyLayout.vue" |
|
|
|
import { useMediaElementLoader } from "./composables/mediaElementLoader" |
|
|
|
import { useMediaElementLoader } from "./composables/mediaElementLoader" |
|
|
|
|
|
|
|
|
|
|
|
const apolloClient = new ApolloClient({ |
|
|
|
import apolloClient from "./config/apolloClient" |
|
|
|
link: createHttpLink({ |
|
|
|
|
|
|
|
uri: "/api/graphql", |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
cache: new InMemoryCache(), |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
provide(DefaultApolloClient, apolloClient) |
|
|
|
provide(DefaultApolloClient, apolloClient) |
|
|
|
|
|
|
|
|
|
|
|
@ -192,5 +186,5 @@ watch( |
|
|
|
onMounted(async () => { |
|
|
|
onMounted(async () => { |
|
|
|
mejsLoader() |
|
|
|
mejsLoader() |
|
|
|
await securityStore.checkSession() |
|
|
|
await securityStore.checkSession() |
|
|
|
}); |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|