From 8733973ba1b1fe9eb025fc90c41792a5ce0d00d1 Mon Sep 17 00:00:00 2001 From: Arman Date: Mon, 22 Jul 2024 14:30:50 +0200 Subject: [PATCH] chore: remove old modal --- .../function-[function]/+layout.svelte | 3 - .../function-[function]/execute.svelte | 220 ------------------ .../functions/function-[function]/store.ts | 2 - 3 files changed, 225 deletions(-) delete mode 100644 src/routes/(console)/project-[project]/functions/function-[function]/execute.svelte diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/+layout.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/+layout.svelte index 3d96a8f56..e8224a3b5 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/+layout.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/+layout.svelte @@ -8,7 +8,6 @@ import { func, showCreateDeployment } from './store'; import { project } from '../../store'; import type { Models } from '@appwrite.io/console'; - import Execute from './execute.svelte'; import { base } from '$app/paths'; onMount(() => { @@ -147,5 +146,3 @@ - - diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/execute.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/execute.svelte deleted file mode 100644 index 1fd6d941b..000000000 --- a/src/routes/(console)/project-[project]/functions/function-[function]/execute.svelte +++ /dev/null @@ -1,220 +0,0 @@ - - - -

- Manually execute your function. - Learn more - . -

- - - {#if $execute?.version === 'v2'} - - - Customizable execution data now available for functions v3.0 - - Update your function version to make use of new features including customizable HTTP - data in your executions. - - - - - - {:else} - - - - - - - Advanced settings - (optional) - -

- Customize your execution with headers or body. To customize parameters, - add them to path. -

-
- -
- - {#if headers} - {#each headers as [name, value], index} - - - - - - - - {/each} - {/if} - - -
-
- - -
-
-
- {/if} -
- - - - - -
diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/store.ts b/src/routes/(console)/project-[project]/functions/function-[function]/store.ts index e5b2bbe56..b38f241a9 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/store.ts +++ b/src/routes/(console)/project-[project]/functions/function-[function]/store.ts @@ -11,8 +11,6 @@ export const proxyRuleList = derived( page, ($page) => $page.data.proxyRuleList as Models.ProxyRuleList ); -export const execute: Writable = writable(); //TODO Remove -export const showFunctionExecute: Writable = writable(false); //TODO Remove export const repositories: Writable<{ search: string;