From d3cf8f434eedec3ef547863d50e4f3b581d292be Mon Sep 17 00:00:00 2001 From: "oe.sonnh" Date: Wed, 25 Mar 2020 11:46:04 +0700 Subject: [PATCH] Update: isOpen prop --- .eslintrc.js | 5 - README.md | 1 + package.json | 4 +- src/App.vue | 5 +- src/components/Board/Action.vue | 2 +- src/components/BotUI.vue | 15 +- .../MessageBubble/ButtonOptions.vue | 2 +- src/vue-bot-ui.js | 2 +- yarn.lock | 3458 ++++++++++------- 9 files changed, 2119 insertions(+), 1375 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5ef0e08..861e867 100755 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -25,8 +25,3 @@ module.exports = { } ] } - -// "plugin:vue/recommended", -// "eslint:recommended", -// "prettier/vue", -// "plugin:prettier/recommended" diff --git a/README.md b/README.md index 74fa3a3..fc873d2 100755 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ List of available props to use in the component: | `options` | Object | see below | Some options to customize UI | | `bot-typing` | Boolean | false | If `true`, the bot typing indicator will show | | `input-disable` | Boolean | false | If `true`, message input will be disabled | +| `is-open` | Boolean | false | If `true`, the board will open from init | diff --git a/package.json b/package.json index debc4d4..d495a8c 100755 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@vue/cli-service": "^4.0.0", "@vue/eslint-config-standard": "^4.0.0", "@vue/test-utils": "1.0.0-beta.29", - "axios": "^0.19.0", "babel-eslint": "^10.0.3", "bootstrap": "^4.3.1", "core-js": "^3.3.2", @@ -44,9 +43,10 @@ "pug": "^2.0.4", "pug-plain-loader": "^1.0.0", "sass": "^1.19.0", - "sass-loader": "^8.0.0", + "sass-loader": "^8.0.2", "standard-version": "^7.0.1", "vue": "^2.6.10", + "vue-loader": "^15.8.3", "vue-svg-loader": "^0.15.0", "vue-template-compiler": "^2.6.10" }, diff --git a/src/App.vue b/src/App.vue index 025da22..b4b4463 100755 --- a/src/App.vue +++ b/src/App.vue @@ -9,14 +9,15 @@ :messages="messageData", :bot-typing="botTyping", :input-disable="inputDisable", + :is-open="false", @init="botStart", @msg-send="msgSend", )