From dfc587b8124cef2b1723fac4df69ae21fee2d0a9 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 23 Oct 2022 15:50:29 +0200 Subject: [PATCH] fix: approval pages now require no auth --- .../flows/pickers/PickScript.svelte | 2 +- frontend/src/routes/__layout-root@none.svelte | 22 ------------------- ...{[hmac]@root.svelte => [hmac]@none.svelte} | 0 3 files changed, 1 insertion(+), 23 deletions(-) rename frontend/src/routes/approve/[workspace]/[job]/[resume]/{[hmac]@root.svelte => [hmac]@none.svelte} (100%) diff --git a/frontend/src/lib/components/flows/pickers/PickScript.svelte b/frontend/src/lib/components/flows/pickers/PickScript.svelte index c8dddcf251..c3540ecf70 100644 --- a/frontend/src/lib/components/flows/pickers/PickScript.svelte +++ b/frontend/src/lib/components/flows/pickers/PickScript.svelte @@ -24,7 +24,7 @@ { - dispatch('pick', { path, summary }) + dispatch('pick', { path, summary, kind }) }} itemName={'Script'} extraField="summary" diff --git a/frontend/src/routes/__layout-root@none.svelte b/frontend/src/routes/__layout-root@none.svelte index 6fd681600a..dfe9b2617a 100644 --- a/frontend/src/routes/__layout-root@none.svelte +++ b/frontend/src/routes/__layout-root@none.svelte @@ -6,22 +6,9 @@ import { superadmin, userStore, usersWorkspaceStore, workspaceStore } from '$lib/stores' import { getUserExt, refreshSuperadmin } from '$lib/user' import { sendUserToast } from '$lib/utils' - import { SvelteToast } from '@zerodevx/svelte-toast' import { onMount } from 'svelte' import github from 'svelte-highlight/styles/github' - // Default toast options - const toastOptions = { - duration: 4000, // duration of progress bar tween to the `next` value - initial: 1, // initial progress bar value - next: 0, // next progress value - pausable: false, // pause progress bar tween on mouse hover - dismissable: true, // allow dismiss with close button - reversed: false, // insert new toast to bottom of stack - intro: { x: 256 }, // toast intro fly animation settings - theme: {} // css var overrides - } - const monacoEditorUnhandledErrors = [ 'Model not found', 'Connection is disposed.', @@ -107,12 +94,3 @@ - - - diff --git a/frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]@root.svelte b/frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]@none.svelte similarity index 100% rename from frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]@root.svelte rename to frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]@none.svelte