From 59da1cb7eba9d3e104b37d20d17028e5ecc3ac7c Mon Sep 17 00:00:00 2001 From: ditatompel Date: Tue, 7 May 2024 20:55:57 +0700 Subject: [PATCH] Frontend node logs loading indicator --- frontend/src/app.d.ts | 31 +- frontend/src/routes/(front)/+layout.svelte | 2 +- .../(front)/remote-nodes/logs/+page.svelte | 274 +++++++++--------- .../(front)/remote-nodes/logs/api-handler.js | 18 +- 4 files changed, 179 insertions(+), 146 deletions(-) diff --git a/frontend/src/app.d.ts b/frontend/src/app.d.ts index 1cb7e4e..fe8b593 100644 --- a/frontend/src/app.d.ts +++ b/frontend/src/app.d.ts @@ -1,16 +1,27 @@ // See https://kit.svelte.dev/docs/types#app // for information about these interfaces declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface PageState {} - // interface Platform {} - } - interface ImportMetaEnv { - VITE_API_URL: string; - } + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface PageState {} + // interface Platform {} + } + interface ImportMetaEnv { + VITE_API_URL: string; + } + + interface MoneroNode { + id: number; + hostname: string; + ip: string; + port: number; + protocol: string; + is_tor: boolean; + is_available: boolean; + nettype: string; + } } export {}; diff --git a/frontend/src/routes/(front)/+layout.svelte b/frontend/src/routes/(front)/+layout.svelte index e356060..e0a02d6 100644 --- a/frontend/src/routes/(front)/+layout.svelte +++ b/frontend/src/routes/(front)/+layout.svelte @@ -127,7 +127,7 @@ -
+
diff --git a/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte b/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte index dd646fb..597eb6e 100644 --- a/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte +++ b/frontend/src/routes/(front)/remote-nodes/logs/+page.svelte @@ -1,7 +1,7 @@