diff --git a/.gitignore b/.gitignore index 185e663..e00e2e4 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ yarn-error.log* *.njsproj *.sln *.sw* + +# Customer +/src/main.js +/public \ No newline at end of file diff --git a/package.json b/package.json index 76779a0..75cea85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-share-buttons", - "version": "0.1.7", + "version": "1.0.0", "private": false, "license": "MIT", "homepage": "https://github.com/Alexandrshy/vue-share-buttons", diff --git a/src/VueShareBttons.vue b/src/VueShareBttons.vue index 25e3a89..38bc218 100644 --- a/src/VueShareBttons.vue +++ b/src/VueShareBttons.vue @@ -188,31 +188,93 @@ shareTitle="Comment" btnText > - - - - - + + + + + + + + - - +
+ + + + + + + + + + + + +
import Icon from "./icon/Icon.vue"; -import { - getDocumentHref, - getDocumentTitle, - eventEmit, - createWindow -} from "../helpers"; +import { getDocumentHref, eventEmit, createWindow } from "../helpers"; export default { name: "DiggShareButton", components: { Icon }, props: { - className: { type: String }, - shareUrl: { type: String, default: getDocumentHref }, - shareTitle: { type: String, default: "" }, - shareDescription: { type: String, default: getDocumentTitle }, - sharePic: { type: String, default: "" }, + url: { type: String, default: getDocumentHref }, btnText: { type: String, default: "Digg" }, - windowWidth: { type: Number }, - windowHeight: { type: Number }, + modalWidth: { type: Number, default: 500 }, + modalHeight: { type: Number, default: 500 }, hasIcon: { type: Boolean, default: true }, isBlank: { type: Boolean, default: true } }, @@ -52,7 +39,7 @@ export default { eventEmit(this, "onShare", { name: "Digg" }); const configWindow = createWindow(); const url = `http://digg.com/submit?url=${encodeURIComponent( - this.$props.shareUrl + this.$props.url )}`; return this.$props.isBlank diff --git a/src/components/EmailButton.vue b/src/components/EmailButton.vue index a7295ec..03eee79 100644 --- a/src/components/EmailButton.vue +++ b/src/components/EmailButton.vue @@ -2,16 +2,9 @@