From 73bf41251b702e5340bf855337bc7410a43d126e Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Sun, 4 Aug 2024 13:54:56 +0530 Subject: [PATCH] ran: `npm run format` --- src/lib/helpers/load.ts | 2 +- src/lib/layout/unauthenticated.svelte | 2 +- src/lib/stores/feedback.ts | 4 +- .../settings/GitDisconnectModal.svelte | 5 +- .../settings/updateInstallations.svelte | 145 +++++++++--------- 5 files changed, 82 insertions(+), 76 deletions(-) diff --git a/src/lib/helpers/load.ts b/src/lib/helpers/load.ts index 05e043ddc..21e2f1ee6 100644 --- a/src/lib/helpers/load.ts +++ b/src/lib/helpers/load.ts @@ -21,7 +21,7 @@ export enum View { export function getView(url: URL, route: Page['route'], fallback: View): View { return (url.searchParams.get('view') ?? preferences.get(route).view) === View.Grid ? View.Grid - : View.Table ?? fallback; + : (View.Table ?? fallback); } export function getColumns(route: Page['route'], fallback: string[]): string[] { diff --git a/src/lib/layout/unauthenticated.svelte b/src/lib/layout/unauthenticated.svelte index b7e250b54..4d859d492 100644 --- a/src/lib/layout/unauthenticated.svelte +++ b/src/lib/layout/unauthenticated.svelte @@ -16,7 +16,7 @@ export let coupon: Coupon = null; $: selectedCampaign = campaigns.get(coupon?.campaign ?? campaign); - $: variation = (coupon?.campaign ?? campaign ? selectedCampaign?.template : 'default') as + $: variation = ((coupon?.campaign ?? campaign) ? selectedCampaign?.template : 'default') as | 'default' | CampaignData['template']; diff --git a/src/lib/stores/feedback.ts b/src/lib/stores/feedback.ts index 7f9b6b200..7eaefca2d 100644 --- a/src/lib/stores/feedback.ts +++ b/src/lib/stores/feedback.ts @@ -71,8 +71,8 @@ export const feedbackData = createFeedbackDataStore(); function createFeedbackStore() { const { subscribe, update } = writable({ - elapsed: browser ? parseInt(localStorage.getItem('feedbackElapsed')) ?? 0 : 0, - visualized: browser ? parseInt(localStorage.getItem('feedbackVisualized')) ?? 0 : 0, + elapsed: browser ? (parseInt(localStorage.getItem('feedbackElapsed')) ?? 0) : 0, + visualized: browser ? (parseInt(localStorage.getItem('feedbackVisualized')) ?? 0) : 0, notification: false, type: 'general', show: false diff --git a/src/routes/console/project-[project]/settings/GitDisconnectModal.svelte b/src/routes/console/project-[project]/settings/GitDisconnectModal.svelte index d59aa2460..fa12b9e3b 100644 --- a/src/routes/console/project-[project]/settings/GitDisconnectModal.svelte +++ b/src/routes/console/project-[project]/settings/GitDisconnectModal.svelte @@ -51,7 +51,6 @@ bind:show={showGitDisconnect} onSubmit={handleSubmit} size="big"> - {#await loadFunctions()}
@@ -73,7 +72,9 @@
{func.name}
-

+

Last deployed: {toLocaleDateTime(func.$updatedAt)}

diff --git a/src/routes/console/project-[project]/settings/updateInstallations.svelte b/src/routes/console/project-[project]/settings/updateInstallations.svelte index 149b4d23c..d8d27dfcf 100644 --- a/src/routes/console/project-[project]/settings/updateInstallations.svelte +++ b/src/routes/console/project-[project]/settings/updateInstallations.svelte @@ -103,76 +103,78 @@
- - Installation ID - Repository - Updated - - - - {#each installations as installation, i} - - - {installation.$id} - - -
-
- + + Installation ID + Repository + Updated + + + + {#each installations as installation, i} + + + {installation.$id} + + + - - {installation.organization} -
- - - {dayjs().to(installation.$updatedAt)} - + + + {dayjs().to(installation.$updatedAt)} + - - - - - { - showInstallationDropdown[i] = false; - }}> - Configure - - { - showInstallationDropdown[i] = false; - showGitDisconnect = true; - selectedInstallation = installation; - }}> - Disconnect - - - - - - {/each} - -
+ + + + + { + showInstallationDropdown[i] = false; + }}> + Configure + + { + showInstallationDropdown[i] = false; + showGitDisconnect = true; + selectedInstallation = installation; + }}> + Disconnect + + + + + + {/each} + +
@@ -204,7 +206,10 @@
- + @@ -234,4 +239,4 @@ :global(.git-installation-avatar-group .icon-gitlab, .icon-bitBucket, .icon-azure) { color: hsl(var(--color-neutral-50)); } - \ No newline at end of file +