diff --git a/CardActions.vue b/CardActions.vue
index 5426e70..e25c066 100644
--- a/CardActions.vue
+++ b/CardActions.vue
@@ -1,13 +1,17 @@
- Apply
- Save
- Save & Reboot
+ Apply
+ Save
+ Save &
+ Reboot
diff --git a/cards/EthSetCard.vue b/cards/EthSetCard.vue
index 00fdbdd..05ff3ba 100644
--- a/cards/EthSetCard.vue
+++ b/cards/EthSetCard.vue
@@ -24,7 +24,7 @@
diff --git a/cards/FirmwareCard.vue b/cards/FirmwareCard.vue
index cfb94f9..5aa521c 100644
--- a/cards/FirmwareCard.vue
+++ b/cards/FirmwareCard.vue
@@ -21,7 +21,7 @@
diff --git a/cards/HomeCard.vue b/cards/HomeCard.vue
index 8f76344..9bc0431 100644
--- a/cards/HomeCard.vue
+++ b/cards/HomeCard.vue
@@ -16,7 +16,7 @@
diff --git a/cards/MQTT2Card.vue b/cards/MQTT2Card.vue
index a4b2e69..237d42c 100644
--- a/cards/MQTT2Card.vue
+++ b/cards/MQTT2Card.vue
@@ -23,7 +23,7 @@
diff --git a/cards/SNTPCard.vue b/cards/SNTPCard.vue
index beb1bac..6ade95a 100644
--- a/cards/SNTPCard.vue
+++ b/cards/SNTPCard.vue
@@ -19,7 +19,7 @@
diff --git a/cards/StatCard.vue b/cards/StatCard.vue
index 5e4b130..4411a52 100644
--- a/cards/StatCard.vue
+++ b/cards/StatCard.vue
@@ -30,7 +30,7 @@
diff --git a/cards/WifiSetCard.vue b/cards/WifiSetCard.vue
index febf4e7..e07ca53 100644
--- a/cards/WifiSetCard.vue
+++ b/cards/WifiSetCard.vue
@@ -35,7 +35,7 @@
diff --git a/network.js b/network.js
index 709a918..0f84e46 100644
--- a/network.js
+++ b/network.js
@@ -1,27 +1,10 @@
import { api } from "boot/axios";
import { sha256 } from "js-sha256";
-import { Notify, Dialog } from "quasar";
+import { Notify } from "quasar";
const API_URL = "/api";
const SHA256_HMAC_KEY = "mykey";
-function ShowSaveDialog(apltype) {
- const opername = ['Data applying...', 'Data saving...', 'Data saving and reboot...'];
- let step = (apltype == 2) ? 1 : 10;
- let percentage = 0;
- const dialog = Dialog.create({ message: opername[apltype], progress: true, persistent: true, ok: false })
- const interval = setInterval(() => {
- percentage = Math.min(100, percentage + step);
- dialog.update({
- message: `${opername[apltype]} ${percentage}%`
- })
- if (percentage === 100) {
- clearInterval(interval);
- setTimeout(() => { dialog.hide() }, 350)
- }
- }, 100)
-}
-
function PostData(varlist, messtype, applytype, onfinished) {
var pld = {};
var data = {};
@@ -50,12 +33,7 @@ function PostData(varlist, messtype, applytype, onfinished) {
}
-function SendAndRequest(varlist, mstp, apltp, shakey, okreport) {
- var onfinish = (okreport) ? () => { ShowSaveDialog(apltp) } : null;
- PostData(varlist, mstp, apltp, onfinish);
-}
-
-export { SendAndRequest, PostData };
+export { PostData };