diff --git a/aleksis/core/assets/components/SidenavSearch.vue b/aleksis/core/assets/components/SidenavSearch.vue index ea044a9b6a0bca4ed7a84fdcc4ae4ef156826e87..58bf7bf6d718302279cd9d2d5d9451b6bdf9a644 100644 --- a/aleksis/core/assets/components/SidenavSearch.vue +++ b/aleksis/core/assets/components/SidenavSearch.vue @@ -1,6 +1,4 @@ <script> -import gqlSearchSnippets from "./searchSnippets.graphql"; - export default { methods: { submit: function () { @@ -24,7 +22,7 @@ export default { <template> <ApolloQuery - :query="gqlSearchSnippets" + :query="require('./searchSnippets.graphql')" :variables="{ q, }" diff --git a/aleksis/core/assets/components/about/InstalledAppsList.vue b/aleksis/core/assets/components/about/InstalledAppsList.vue index 704eedc97e172f7f840f4023d0a472a0d2fc7907..491e3df15ece49cf736f037212a0bc668a924bed 100644 --- a/aleksis/core/assets/components/about/InstalledAppsList.vue +++ b/aleksis/core/assets/components/about/InstalledAppsList.vue @@ -1,5 +1,5 @@ <template> - <ApolloQuery :query="gqlInstalledApps"> + <ApolloQuery :query="require('./installedApps.graphql')"> <template #default="{ result: { error, data }, isLoading }"> <v-row v-if="isLoading"> <v-col @@ -31,7 +31,6 @@ <script> import InstalledAppCard from "./InstalledAppCard.vue"; -import gqlInstalledApps from "./installedApps.graphql"; export default { name: "InstalledAppsList", diff --git a/aleksis/core/assets/components/notifications/NotificationItem.vue b/aleksis/core/assets/components/notifications/NotificationItem.vue index 6011765afe2ebf3df707d2dbfe7549e4f010d4a8..b1dea65c167df9417803a6e7c532309acce75325 100644 --- a/aleksis/core/assets/components/notifications/NotificationItem.vue +++ b/aleksis/core/assets/components/notifications/NotificationItem.vue @@ -1,6 +1,6 @@ <template> <ApolloMutation - :mutation="gqlmarkNotificationRead" + :mutation="require('./markNotificationRead.graphql')" :variables="{ id: this.notification.id }" > <template #default="{ mutate, loading, error }"> @@ -80,8 +80,6 @@ </template> <script> -import gqlMarkNotificationRead from "./markNotificationRead.graphql"; - export default { props: { notification: { diff --git a/aleksis/core/assets/components/notifications/NotificationList.vue b/aleksis/core/assets/components/notifications/NotificationList.vue index b0e4a50a01112186da8627200bfab410215379bf..75493f837c9ba6a799c1e646d90fb4b5478cbcd0 100644 --- a/aleksis/core/assets/components/notifications/NotificationList.vue +++ b/aleksis/core/assets/components/notifications/NotificationList.vue @@ -1,6 +1,6 @@ <template> <ApolloQuery - :query="gqlMyNotifications" + :query="require('./myNotifications.graphql')" :poll-interval="1000" > <template #default="{ result: { error, data, loading } }"> @@ -74,7 +74,6 @@ <script> import NotificationItem from "./NotificationItem.vue"; -import gqlMyNotifications from "./myNotifications.graphql"; export default { components: {