-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from chantouchsek/bugfix/fix-vue-use-in-nuxt-m…
…odule Fix vue use in nuxt module
- Loading branch information
Showing
7 changed files
with
170 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ node_modules | |
npm-debug.log | ||
.idea/* | ||
coverage/* | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Chantouch Sek <[email protected]> | ||
Copyright (c) 2020-Present Chantouch Sek <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"types": "index.d.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 0", | ||
"release": "standard-version" | ||
"release": "standard-version && git push --follow-tags origin main && yarn publish" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -19,19 +19,23 @@ | |
"clipboard", | ||
"clipboard2", | ||
"vue-clipboard2", | ||
"nuxt-clipboard", | ||
"nuxt-clipboard" | ||
], | ||
"author": "Touch", | ||
"author": { | ||
"email": "[email protected]", | ||
"name": "Chantouch Sek", | ||
"url": "https://chantouch.me" | ||
}, | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/chantouchsek/nuxt-clipboard/issues" | ||
}, | ||
"homepage": "https://github.com/chantouchsek/nuxt-clipboard#readme", | ||
"dependencies": { | ||
"vue-clipboard2": "^0.3.1" | ||
"vue-clipboard2": "^0.3.3" | ||
}, | ||
"devDependencies": { | ||
"standard-version": "^9.3.1", | ||
"standard-version": "^9.3.2", | ||
"vue": "^2.6.14" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import Vue from 'vue' | ||
import VueClipboard from 'vue-clipboard2' | ||
|
||
export default ({ app }) => { | ||
const { autoSetContainer = false } = <%= serialize(options) %> || {} | ||
const { autoSetContainer = false } = <%= serialize(options) %> || {} | ||
|
||
VueClipboard.config.autoSetContainer = autoSetContainer | ||
Vue.use(VueClipboard) | ||
} | ||
VueClipboard.config.autoSetContainer = autoSetContainer | ||
Vue.use(VueClipboard) |
Oops, something went wrong.