From 46da285831e93d28235c14fe846a42309306c451 Mon Sep 17 00:00:00 2001
From: Donald Cheng Hong Zou
Date: Wed, 30 Mar 2022 14:20:08 -0400
Subject: [PATCH] Adjusted js
---
src/static/js/configuration.js | 26 ++++++++++++++++++++++----
src/templates/configuration.html | 13 +++++--------
2 files changed, 27 insertions(+), 12 deletions(-)
diff --git a/src/static/js/configuration.js b/src/static/js/configuration.js
index 71f5e44..4c60d70 100644
--- a/src/static/js/configuration.js
+++ b/src/static/js/configuration.js
@@ -408,10 +408,28 @@ let peers = [];
${roundN(peer.total_sent + total_s, 4)} GB
`;
- let peer_key = 'PEERCLICK TO COPY
' + peer.id + '
';
- let peer_allowed_ip = 'ALLOWED IP
' + peer.allowed_ip + '
';
- let peer_latest_handshake = ' LATEST HANDSHAKE
' + peer.latest_handshake + '
';
- let peer_endpoint = 'END POINT
' + peer.endpoint + '
';
+ let peer_key =
+ `
+
+ PEERCLICK TO COPY
+
+
${peer.id}/samp>
+ `;
+ let peer_allowed_ip =
+ `
+ ALLOWED IP
+
${peer.allowed_ip}
+ `;
+ let peer_latest_handshake =
+ `
+ LATEST HANDSHAKE
+
${peer.latest_handshake}
+ `;
+ let peer_endpoint =
+ `
+ END POINT
+
${peer.endpoint}
+ `;
let peer_control = `
diff --git a/src/templates/configuration.html b/src/templates/configuration.html
index 1f311c7..e8db51a 100644
--- a/src/templates/configuration.html
+++ b/src/templates/configuration.html
@@ -96,15 +96,15 @@