diff --git a/assets/screenshot.png b/assets/screenshot.png
index 6f87a64..c5b73cc 100644
Binary files a/assets/screenshot.png and b/assets/screenshot.png differ
diff --git a/src/lib/Server.js b/src/lib/Server.js
index 315679c..d995bb6 100644
--- a/src/lib/Server.js
+++ b/src/lib/Server.js
@@ -265,7 +265,7 @@ module.exports = class Server {
});
};
- // import_export
+ // backup_restore
const router3 = createRouter();
app.use(router3);
@@ -293,7 +293,7 @@ module.exports = class Server {
getMeta: async (id) => {
const filePath = safePathJoin(publicDir, id);
- const stats = await stat(filePath).catch(() => { });
+ const stats = await stat(filePath).catch(() => {});
if (!stats || !stats.isFile()) {
return;
}
diff --git a/src/www/index.html b/src/www/index.html
index 4c32ae0..927d269 100644
--- a/src/www/index.html
+++ b/src/www/index.html
@@ -3,7 +3,7 @@
WireGuard
-
+
@@ -23,50 +23,45 @@
-
WireGuard
+
WireGuard
-
-
+
-
+
@@ -225,24 +220,20 @@
-
+
·
-
+
{{client.transferTxCurrent | bytes}}/s
-
+
-
+
·
-
+
@@ -250,8 +241,7 @@
{{client.transferRxCurrent | bytes}}/s
-
{{!uiTrafficStats ? " · " : ""}}{{new Date(client.latestHandshakeAt) | timeago}}
@@ -327,7 +317,8 @@
:class="{
'hover:bg-red-800 dark:hover:bg-red-800 hover:text-white dark:hover:text-white': client.downloadableConfig,
'is-disabled': !client.downloadableConfig
- }" :title="!client.downloadableConfig ? $t('noPrivKey') : $t('showQR')"
+ }"
+ :title="!client.downloadableConfig ? $t('noPrivKey') : $t('showQR')"
@click="qrcode = `./api/wireguard/client/${client.id}/qrcode.svg`">
@@ -344,7 +335,8 @@
:class="{
'hover:bg-red-800 dark:hover:bg-red-800 hover:text-white dark:hover:text-white': client.downloadableConfig,
'is-disabled': !client.downloadableConfig
- }" :title="!client.downloadableConfig ? $t('noPrivKey') : $t('downloadConfig')"
+ }"
+ :title="!client.downloadableConfig ? $t('noPrivKey') : $t('downloadConfig')"
@click="if(!client.downloadableConfig) { $event.preventDefault(); }">
@@ -448,8 +440,8 @@