diff --git a/package.json b/package.json index 5b81a9b61..054a0d93a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "MQTTX", "author": "EMQ X Team", - "version": "1.3.0", + "version": "1.3.1", "license": "Apache", "description": "MQTT desktop client", "repository": "https://github.com/emqx/MQTTX", @@ -30,6 +30,7 @@ "mqtt": "^3.0.0", "vue": "^2.6.10", "vue-class-component": "^7.0.2", + "vue-clipboard2": "^0.3.1", "vue-i18n": "^8.11.2", "vue-property-decorator": "^8.1.0", "vue-router": "^3.0.3", diff --git a/src/assets/scss/theme/dark.scss b/src/assets/scss/theme/dark.scss index e7ed0aa77..8824f5a0f 100644 --- a/src/assets/scss/theme/dark.scss +++ b/src/assets/scss/theme/dark.scss @@ -3,6 +3,8 @@ body.dark { --color-bg-normal: #282828; --color-bg-primary: #232323; --color-bg-topics: #484848; + --color-bg-topics_active: #353535; + --color-bg-topics_shadow: #1b1b1bd1; --color-bg-leftbar: #282828; --color-bg-leftbar_item: #303030; --color-bg-item: #395449; diff --git a/src/assets/scss/theme/light.scss b/src/assets/scss/theme/light.scss index 0dfd43152..88de50125 100644 --- a/src/assets/scss/theme/light.scss +++ b/src/assets/scss/theme/light.scss @@ -3,6 +3,8 @@ body.light { --color-bg-normal: #ffffff; --color-bg-primary: #F9FAFD; --color-bg-topics: #F8F8F8; + --color-bg-topics_active: #efefef; + --color-bg-topics_shadow: #e2e2e2d1; --color-bg-leftbar: #333844; --color-bg-leftbar_item: #232731; --color-bg-item: #EBF8F2; diff --git a/src/assets/scss/theme/night.scss b/src/assets/scss/theme/night.scss index 6e35e3068..b3e7695f2 100644 --- a/src/assets/scss/theme/night.scss +++ b/src/assets/scss/theme/night.scss @@ -3,6 +3,8 @@ body.night { --color-bg-normal: #292B33; --color-bg-primary: #212328; --color-bg-topics: #414556; + --color-bg-topics_active: #323544; + --color-bg-topics_shadow: #231d1dd1; --color-bg-leftbar: #333844; --color-bg-leftbar_item: #31333F; --color-bg-item: #31333F; diff --git a/src/components/MsgPublish.vue b/src/components/MsgPublish.vue index 5ea34dbef..d4eb6f7fd 100644 --- a/src/components/MsgPublish.vue +++ b/src/components/MsgPublish.vue @@ -126,15 +126,14 @@ export default class MsgPublish extends Vue { private handleInputBlur() { ipcRenderer.removeAllListeners('sendPayload') } - - private beforeDestroy() { - ipcRenderer.removeAllListeners('sendPayload') - } - private handleLayout() { const editorRef: EditorRef = this.$refs.payloadEditor as EditorRef editorRef.editorLayout() } + + private beforeDestroy() { + ipcRenderer.removeAllListeners('sendPayload') + } } diff --git a/src/components/SubscriptionsList.vue b/src/components/SubscriptionsList.vue index d5744180f..d05f22d26 100644 --- a/src/components/SubscriptionsList.vue +++ b/src/components/SubscriptionsList.vue @@ -1,10 +1,5 @@ @@ -306,7 +327,7 @@