-
Retain:
-
+
-
-
@@ -143,8 +145,14 @@ export default class MsgPublish extends Vue {
.msg-publish {
background: var(--color-bg-normal);
- padding: 0px 16px;
transition: .3s height;
+ .publish-header {
+ padding: 0 16px;
+ margin-bottom: 4px;
+ }
+ .publish-footer {
+ padding: 0 6px;
+ }
.topic-input.el-input {
.el-input__inner {
border: 0px;
From a3614f29c24928f739a7a914ab071f4011917382 Mon Sep 17 00:00:00 2001
From: ysfscream <894402575@qq.com>
Date: Fri, 13 Mar 2020 15:10:13 +0800
Subject: [PATCH 16/17] feat(connection): add disconnect button on topbar
---
src/assets/scss/base.scss | 1 +
src/components/Leftbar.vue | 3 +-
src/views/connections/ConnectionForm.vue | 2 +-
src/views/connections/ConnectionInfo.vue | 6 ++--
src/views/connections/ConnectionsContent.vue | 37 ++++++++++++++------
5 files changed, 34 insertions(+), 15 deletions(-)
diff --git a/src/assets/scss/base.scss b/src/assets/scss/base.scss
index 365fc65f4..9b7af7707 100644
--- a/src/assets/scss/base.scss
+++ b/src/assets/scss/base.scss
@@ -54,6 +54,7 @@ p {
pre {
font-size: $font-size--body;
margin-bottom: 0px;
+ font-family: Menlo, Monaco, "Courier New", monospace;
}
a {
diff --git a/src/components/Leftbar.vue b/src/components/Leftbar.vue
index 439af9da4..bb1e0a430 100644
--- a/src/components/Leftbar.vue
+++ b/src/components/Leftbar.vue
@@ -46,7 +46,8 @@ export default class Leftbar extends Vue {
@Getter('currentLang') private getterLang!: Language
get siteLink(): string {
- return this.getterLang === 'zh' ? 'https://mqttx.app/cn' : 'https://mqttx.app'
+ const link = 'https://mqttx.app/'
+ return this.getterLang === 'zh' ? `${link}/cn` : link
}
get isConnection(): boolean {
return 'recent_connections' === this.$route.path.split('/')[1]
diff --git a/src/views/connections/ConnectionForm.vue b/src/views/connections/ConnectionForm.vue
index b8ae6eca3..5f1bf9a2f 100644
--- a/src/views/connections/ConnectionForm.vue
+++ b/src/views/connections/ConnectionForm.vue
@@ -332,7 +332,7 @@ export default class ConnectionCreate extends Vue {
host: 'broker.emqx.io',
keepalive: 60,
connectTimeout: 10,
- reconnect: true,
+ reconnect: false,
username: '',
password: '',
path: '/mqtt',
diff --git a/src/views/connections/ConnectionInfo.vue b/src/views/connections/ConnectionInfo.vue
index e0b16152c..966d69b9b 100644
--- a/src/views/connections/ConnectionInfo.vue
+++ b/src/views/connections/ConnectionInfo.vue
@@ -111,15 +111,15 @@ export default class ConnectionInfo extends Vue {
}
}
- private disconnect(): void {
+ private disconnect() {
this.$emit('handleDisconnect', this.connection)
}
- private cancel(): void {
+ private cancel() {
this.$emit('handleCancel', this.connection)
}
- private refreshClientId(): void {
+ private refreshClientId() {
this.connection.clientId = getClientId()
}
}
diff --git a/src/views/connections/ConnectionsContent.vue b/src/views/connections/ConnectionsContent.vue
index d4ed6c648..d1fbca139 100644
--- a/src/views/connections/ConnectionsContent.vue
+++ b/src/views/connections/ConnectionsContent.vue
@@ -15,6 +15,19 @@
+
+
+
+
+
+
+
Date: Mon, 16 Mar 2020 14:07:43 +0800
Subject: [PATCH 17/17] chore(main): modfiy version: 1.2.3
---
package.json | 2 +-
src/main/updateChecker.ts | 2 +-
src/views/about/index.vue | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package.json b/package.json
index ae32d66e5..5b81a9b61 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "MQTTX",
"author": "EMQ X Team",
- "version": "1.2.3",
+ "version": "1.3.0",
"license": "Apache",
"description": "MQTT desktop client",
"repository": "https://github.com/emqx/MQTTX",
diff --git a/src/main/updateChecker.ts b/src/main/updateChecker.ts
index 612417fca..cc06a2231 100644
--- a/src/main/updateChecker.ts
+++ b/src/main/updateChecker.ts
@@ -1,7 +1,7 @@
import { dialog, shell } from 'electron'
import axios from 'axios'
-const version = 'v1.2.3'
+const version = 'v1.3.0'
const release = 'https://api.github.com/repos/emqx/MQTTX/releases/latest'
const downloadUrl = 'https://github.com/emqx/MQTTX/releases/latest'
diff --git a/src/views/about/index.vue b/src/views/about/index.vue
index 37b66b723..11576c52f 100644
--- a/src/views/about/index.vue
+++ b/src/views/about/index.vue
@@ -4,7 +4,7 @@