From 68e6c78c22e318f7de0dd64d5683c87f76efb659 Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 13 Aug 2024 00:30:30 +0200 Subject: [PATCH] refactor: rework async ToolLogs --- app/src/types/core/api.ts | 11 +++++++ app/src/views/tool/ToolLogs.vue | 53 ++++++++++++--------------------- 2 files changed, 30 insertions(+), 34 deletions(-) diff --git a/app/src/types/core/api.ts b/app/src/types/core/api.ts index 14190b2c..2afcbc9b 100644 --- a/app/src/types/core/api.ts +++ b/app/src/types/core/api.ts @@ -244,6 +244,17 @@ export type Firewall = { // LOGS +export type LogList = { + operation: { + name: string + path: string + description: string + started_at: string + success: boolean | '?' + parent: string | null + }[] +} + export type LogInfo = { description: string name: string diff --git a/app/src/views/tool/ToolLogs.vue b/app/src/views/tool/ToolLogs.vue index 6fc34eb3..56fb7ad6 100644 --- a/app/src/views/tool/ToolLogs.vue +++ b/app/src/views/tool/ToolLogs.vue @@ -1,56 +1,41 @@