From a1cb144ef608bd438b9551260d82df4fc87c3424 Mon Sep 17 00:00:00 2001 From: Riddhi Sera Date: Sat, 6 Mar 2021 23:31:08 +0530 Subject: [PATCH] added skeleton loaders(1) --- src/plugins/vue-apollo.js | 5 +++-- src/views/Club.vue | 25 +++++++++++++++++-------- src/views/Home.vue | 34 ++++++++++++++++++++++------------ src/views/OfficeBearers.vue | 2 +- 4 files changed, 43 insertions(+), 23 deletions(-) diff --git a/src/plugins/vue-apollo.js b/src/plugins/vue-apollo.js index 1810f8d..0b21483 100644 --- a/src/plugins/vue-apollo.js +++ b/src/plugins/vue-apollo.js @@ -12,7 +12,8 @@ Vue.use(VueApollo); const AUTH_TOKEN = "apollo-token"; // Http endpoint -const httpEndpoint = process.env.VUE_APP_GRAPHQL_HTTP || "/graphql"; +const httpEndpoint = + process.env.VUE_APP_GRAPHQL_HTTP || "http://127.0.0.1:8000/graphql"; // Config const defaultOptions = { @@ -49,7 +50,7 @@ const defaultOptions = { // clientState: { resolvers: { ... }, defaults: { ... } } }; const pgGraphql = { - httpEndpoint: "/pgraphql" + httpEndpoint: "http://127.0.0.1:8000/pgraphql" }; // Call this in the Vue app file export function createProvider(options = {}) { diff --git a/src/views/Club.vue b/src/views/Club.vue index 4475933..6653dc5 100644 --- a/src/views/Club.vue +++ b/src/views/Club.vue @@ -1,19 +1,20 @@