Skip to content

Commit

Permalink
Merge pull request #7233 from thnaylor/refactor/5314/vueSocialSharing
Browse files Browse the repository at this point in the history
refactor: nuxt3 vuesocialshare update
  • Loading branch information
roiLeo authored Sep 11, 2023
2 parents 0b5cf3b + a18fb98 commit 2f36718
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
1 change: 0 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export default defineNuxtConfig({
// '~/plugins/pwa',
// '~/plugins/vueAudioVisual',
// '~/plugins/vueClipboard',
// '~/plugins/vueSocialSharing',
// '~/plugins/vueTippy',
// '~/plugins/safeHref',
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"vue-clipboard2": "^0.3.3",
"vue-dompurify-html": "^4.1.4",
"vue-infinite-loading": "^2.4.5",
"vue-social-sharing": "^3.0.9",
"vue-social-sharing": "4.0.0-alpha4",
"vue-tippy": "^6.3.1",
"workbox-window": "^6.6.0"
},
Expand Down
8 changes: 4 additions & 4 deletions plugins/vueSocialSharing.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import Vue from 'vue'
// import VueSocialSharing from 'vue-social-sharing'
import VueSocialSharing from 'vue-social-sharing'

// Vue.use(VueSocialSharing)
export default defineNuxtPlugin(() => undefined)
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueSocialSharing)
})
18 changes: 12 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 2f36718

Please sign in to comment.