From 75861dba01c0b21671f1dc9b93b0846731f37e5d Mon Sep 17 00:00:00 2001 From: HEL Mab Date: Fri, 6 Nov 2020 23:17:07 +0700 Subject: [PATCH] update readme --- index.js | 2 +- package.json | 16 ++++++++++---- src/Notification.vue | 34 ++++++++++++++++++++++++----- src/components/NotificationItem.vue | 5 +++-- 4 files changed, 45 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index f8f86d8..73060f7 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ export default { } // eslint-disable-next-line no-unused-vars - Vue.prototype.$notification = (title, body, dateTime, icon = null, handleClick) => { + Vue.prototype.$notification = (title, body, dateTime, icon = null, handleClick = null) => { vm.addNewNotification(Math.random(), title, body, dateTime, icon, handleClick) } } diff --git a/package.json b/package.json index 3cba408..3a9c60f 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,23 @@ { "name": "vue-notification-ui", - "version": "1.0.1", + "version": "1.0.2", "description": "Vue Notification UI", "main": "src/notification.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "keywords": [], - "author": "", + "keywords": ["vuejs", "plugins", "notification", "toastr", "notification-ui"], + "author": "HEL Mab", "license": "ISC", "dependencies": { "vuex": "^3.5.1" - } + }, + "repository": { + "type" : "git", + "url" : "git+https://github.com/HELMAB/vue-notification-ui.git" + }, + "bugs": { + "url": "https://github.com/HELMAB/vue-notification-ui/issues" + }, + "homepage": "https://github.com/HELMAB/vue-notification-ui#README" } diff --git a/src/Notification.vue b/src/Notification.vue index b582903..dd2ace8 100644 --- a/src/Notification.vue +++ b/src/Notification.vue @@ -1,5 +1,6 @@