From 1144329972fb61e2df62873ca1e485c88fabc478 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 18 Apr 2023 08:25:26 +0200 Subject: [PATCH] fix(frontend): fix hub list --- .../src/routes/(root)/(logged)/+page.svelte | 81 +++++++++++-------- 1 file changed, 48 insertions(+), 33 deletions(-) diff --git a/frontend/src/routes/(root)/(logged)/+page.svelte b/frontend/src/routes/(root)/(logged)/+page.svelte index 5a1a8a3f4f..3f46efeebd 100644 --- a/frontend/src/routes/(root)/(logged)/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/+page.svelte @@ -21,11 +21,14 @@ import { writable } from 'svelte/store' import type { EditorBreakpoint } from '$lib/components/apps/types' - type Tab = 'hubscripts' | 'hubflows' | 'hubapps' | 'workspace' + type Tab = 'hub' | 'workspace' let tab: Tab = window.location.hash?.includes('#') ? (window.location.hash?.replace('#', '') as Tab) : 'workspace' + + let subtab: 'flows' | 'scripts' | 'apps' = 'flows' + let filter: string = '' let flowViewer: Drawer @@ -203,22 +206,10 @@ Workspace - +
- Hub Scripts -
-
- -
- - Hub Flows -
-
- -
- - Hub Apps + Hub
@@ -227,24 +218,48 @@
- {#if tab == 'hubscripts'} - viewCode(e.detail)} - > - {:else if tab == 'hubflows'} - viewFlow(e.detail)} - > - {:else if tab == 'hubapps'} - viewApp(e.detail)} - > + {#if tab == 'hub'} + + +
Scripts
+
+ +
Flows
+
+ +
Apps
+
+
+
+ + {#if subtab == 'scripts'} + viewCode(e.detail)} + > + {:else if subtab == 'flows'} + viewFlow(e.detail)} + > + {:else if subtab == 'apps'} + viewApp(e.detail)} + > + {/if} {/if}