From 9924ad20e0c46c34756e5106188bfe6cfb5a9c5f Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 2 Sep 2024 08:58:28 +0100 Subject: [PATCH] lint --- .../client/src/components/ClientApp.svelte | 147 +++++++++--------- .../components/context/EmbedProvider.svelte | 6 +- 2 files changed, 76 insertions(+), 77 deletions(-) diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte index 784faf0298..f1e4f10403 100644 --- a/packages/client/src/components/ClientApp.svelte +++ b/packages/client/src/components/ClientApp.svelte @@ -176,84 +176,85 @@ {/if} {/key} - -
- -
- {#if showDevTools} - - {/if} - -
- {#if permissionError} -
- - - {@html ErrorSVG} - - You don't have permission to use this app - - - Ask your administrator to grant you access - - -
- {:else if !$screenStore.activeLayout} -
- - - {@html ErrorSVG} - - Something went wrong rendering your app - - - Get in touch with support if this issue persists - - -
- {:else if embedNoScreens} -
- - - {@html ErrorSVG} - - This Budibase app is not publicly accessible - - -
- {:else} - - {#key $screenStore.activeLayout._id} - - {/key} - - - - - - + +
+ +
+ {#if showDevTools} + {/if} - {#if showDevTools} - +
+ {#if permissionError} +
+ + + {@html ErrorSVG} + + You don't have permission to use this app + + + Ask your administrator to grant you access + + +
+ {:else if !$screenStore.activeLayout} +
+ + + {@html ErrorSVG} + + Something went wrong rendering your app + + + Get in touch with support if this issue + persists + + +
+ {:else if embedNoScreens} +
+ + + {@html ErrorSVG} + + This Budibase app is not publicly accessible + + +
+ {:else} + + {#key $screenStore.activeLayout._id} + + {/key} + + + + + + + {/if} + + {#if showDevTools} + + {/if} +
+ + {#if !$builderStore.inBuilder && $featuresStore.logoEnabled} + {/if}
- {#if !$builderStore.inBuilder && $featuresStore.logoEnabled} - - {/if} -
- {#if $appStore.isDevApp} diff --git a/packages/client/src/components/context/EmbedProvider.svelte b/packages/client/src/components/context/EmbedProvider.svelte index 16ba615700..5c402ec75d 100644 --- a/packages/client/src/components/context/EmbedProvider.svelte +++ b/packages/client/src/components/context/EmbedProvider.svelte @@ -6,7 +6,7 @@ function extractDomainFromUrl(url) { const { hostname } = new URL(url) - const parts = hostname.split('.'); + const parts = hostname.split(".") const tld = parts.slice(-2).join(".") return tld } @@ -36,10 +36,8 @@ return () => window.removeEventListener("message", handleMessage) }) - - - \ No newline at end of file +