Skip to content

Commit

Permalink
Merge pull request #110 from frederic-maury/fix/export-apollo-provider
Browse files Browse the repository at this point in the history
fix: export apollo provider function
  • Loading branch information
nikola-kovacevic authored May 15, 2023
2 parents fee0487 + 24d4428 commit a974425
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ Then configure vue-apollo to connect your project to [Whispr](https://github.com

```javascript
import Vue from 'vue';
import { apolloProvider } from '@sanofi-iadc/glisten/graphql/apollo';
import VueApollo from 'vue-apollo';
import Glisten, { GlistenClient, GlistenDashboard } from '@sanofi-iadc/glisten';
import Glisten, { GlistenClient, GlistenDashboard, ApolloProvider } from '@sanofi-iadc/glisten';

Vue.component('GlistenClient', GlistenClient); // this is not mandatory if you need to use only one component
Vue.component('GlistenDashboard', GlistenDashboard);
Expand All @@ -50,7 +49,7 @@ Vue.use(Vuetify);

new Vue({
vuetify,
apolloProvider: apolloProvider(
apolloProvider: ApolloProvider(
process.env.VUE_APP_WHISPR_API_HTTP_URL,
process.env.VUE_APP_WHISPR_API_WS_URL,
),
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export { default as GlistenClient } from '@/components/GlistenClient.vue';
export { default as GlistenDashboard } from '@/components/GlistenDashboard.vue';
export { default as GlistenCsat } from '@/components/GlistenCsat.vue';

export { apolloProvider as ApolloProvider } from '@/graphql/apollo';

const Plugin = {
install: (vue: VueConstructor, options: any) => {
Vue.prototype.dayjs = dayjs;
Expand Down

0 comments on commit a974425

Please sign in to comment.