From 5edb9b46c009a645465a8dd00763b1492ebedc84 Mon Sep 17 00:00:00 2001 From: Shahrad Elahi Date: Thu, 15 Feb 2024 11:26:14 +0330 Subject: [PATCH] chore: update the server page layout --- web/src/routes/[serverId]/+layout.svelte | 14 +- web/src/routes/[serverId]/+page.svelte | 242 ++++++++++++----------- 2 files changed, 127 insertions(+), 129 deletions(-) diff --git a/web/src/routes/[serverId]/+layout.svelte b/web/src/routes/[serverId]/+layout.svelte index fbe3726..884c0fe 100644 --- a/web/src/routes/[serverId]/+layout.svelte +++ b/web/src/routes/[serverId]/+layout.svelte @@ -1,19 +1,7 @@ - - -
- -
+
diff --git a/web/src/routes/[serverId]/+page.svelte b/web/src/routes/[serverId]/+page.svelte index 614419e..d0ae5c2 100644 --- a/web/src/routes/[serverId]/+page.svelte +++ b/web/src/routes/[serverId]/+page.svelte @@ -83,124 +83,134 @@ }); - - - Server - +
+ + + Back to Home + + + {data.server.name} +
- - - - {data.server.name} - - - {#if data.server.tor} - - Tor - - {/if} +
+ + + Server + - -
 {data.server.address}/24 
-
- - -
 {data.server.listen} 
-
- - -
-
- - {prettyBytes(data.usage.total.tx)} -
-
- - {prettyBytes(data.usage.total.rx)} -
-
-
- - - - - - - - - - - - - - {#if data.server.status === 'up'} - - - {:else} - - - {/if} - -
- - - - Clients - - {#if data.server.peers.length > 0} - - {#each data.server.peers as peer} - { - handleRename(peer.id.toString(), detail); - }} - on:remove={() => { - handleRemove(peer.id.toString()); - }} - /> - {/each} - - {:else} - + {#if data.server.tor} + + Tor + + {/if} + + +
 {data.server.address}/24 
+
+ + +
 {data.server.listen} 
+
+ + +
+
+ + {prettyBytes(data.usage.total.tx)} +
+
+ + {prettyBytes(data.usage.total.rx)} +
+
+
+ + + + + + + + + +
- {/if} - - - - - -
+ + + {#if data.server.status === 'up'} + + + {:else} + + + {/if} + + + + + + Clients + + {#if data.server.peers.length > 0} + + {#each data.server.peers as peer} + { + handleRename(peer.id.toString(), detail); + }} + on:remove={() => { + handleRemove(peer.id.toString()); + }} + /> + {/each} + + {:else} + + + + {/if} + + + + + + +