Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/static_site_editor/graphql/index.js')
-rw-r--r--app/assets/javascripts/static_site_editor/graphql/index.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/app/assets/javascripts/static_site_editor/graphql/index.js b/app/assets/javascripts/static_site_editor/graphql/index.js
deleted file mode 100644
index 53572e680e5..00000000000
--- a/app/assets/javascripts/static_site_editor/graphql/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import Vue from 'vue';
-import VueApollo from 'vue-apollo';
-import createDefaultClient from '~/lib/graphql';
-import appDataQuery from './queries/app_data.query.graphql';
-import fileResolver from './resolvers/file';
-import hasSubmittedChangesResolver from './resolvers/has_submitted_changes';
-import submitContentChangesResolver from './resolvers/submit_content_changes';
-import typeDefs from './typedefs.graphql';
-
-Vue.use(VueApollo);
-
-const createApolloProvider = (appData) => {
- const defaultClient = createDefaultClient(
- {
- Project: {
- file: fileResolver,
- },
- Mutation: {
- submitContentChanges: submitContentChangesResolver,
- hasSubmittedChanges: hasSubmittedChangesResolver,
- },
- },
- {
- typeDefs,
- },
- );
-
- // eslint-disable-next-line @gitlab/require-i18n-strings
- const mounts = appData.mounts.map((mount) => ({ __typename: 'Mount', ...mount }));
-
- defaultClient.cache.writeQuery({
- query: appDataQuery,
- data: {
- appData: {
- __typename: 'AppData',
- ...appData,
- mounts,
- },
- },
- });
-
- return new VueApollo({
- defaultClient,
- });
-};
-
-export default createApolloProvider;