From 420eddf6154cddce8c6e9d284abf57fb96a81b84 Mon Sep 17 00:00:00 2001 From: Fornax Date: Fri, 15 Mar 2024 22:16:28 +0100 Subject: [PATCH] Add explanation for search_index file --- res/static/style/layout.css | 6 +-- svelte/src/admin_panel/PeerTable.svelte | 5 ++- svelte/src/filesystem/FileStats.svelte | 4 ++ svelte/src/filesystem/viewers/Audio.svelte | 2 +- svelte/src/filesystem/viewers/File.svelte | 45 +++++++++++++++++++ .../user_home/PatreonActivationResult.svelte | 7 ++- 6 files changed, 61 insertions(+), 8 deletions(-) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index 272d59e..80f1372 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -287,17 +287,17 @@ section { } .highlight_green { - background-color: rgba(0, 255, 0, 0.05); + background-color: rgba(0, 255, 0, 0.1); border-color: #00D000; } .highlight_blue { - background-color: rgba(32, 32, 255, 0.2); + background-color: rgba(0, 0, 255, 0.1); border-color: #3636FF; } .highlight_yellow { - background-color: rgba(255, 255, 0, 0.05); + background-color: rgba(255, 255, 0, 0.1); border-color: #A0A000; } diff --git a/svelte/src/admin_panel/PeerTable.svelte b/svelte/src/admin_panel/PeerTable.svelte index 381ce2f..e9e8a2a 100644 --- a/svelte/src/admin_panel/PeerTable.svelte +++ b/svelte/src/admin_panel/PeerTable.svelte @@ -69,8 +69,9 @@ let sort = (field) => { {#each peers as peer (peer.address)} diff --git a/svelte/src/filesystem/FileStats.svelte b/svelte/src/filesystem/FileStats.svelte index cd66165..1c91c97 100644 --- a/svelte/src/filesystem/FileStats.svelte +++ b/svelte/src/filesystem/FileStats.svelte @@ -60,6 +60,10 @@ const update_base = async base => { } const close_socket = () => { + // Clear this path so the update_base function does not instantly return + // with the next retry + connected_to = "" + if (socket !== null) { // Disable the error handler so it doesn't start retrying the connection socket.onerror = null diff --git a/svelte/src/filesystem/viewers/Audio.svelte b/svelte/src/filesystem/viewers/Audio.svelte index 2f1b2c1..554a23c 100644 --- a/svelte/src/filesystem/viewers/Audio.svelte +++ b/svelte/src/filesystem/viewers/Audio.svelte @@ -41,7 +41,7 @@ onMount(() => { - +