diff --git a/src/routes/console/project-[project]/functions/function/[function]/create.svelte b/src/routes/console/project-[project]/functions/function/[function]/create.svelte index 24d0c3809..65e5ea6c2 100644 --- a/src/routes/console/project-[project]/functions/function/[function]/create.svelte +++ b/src/routes/console/project-[project]/functions/function/[function]/create.svelte @@ -1,14 +1,15 @@
- + Create Deployment -
    -
  • - (showCli = true)} - class:is-selected={showCli}> - Files - -
  • -
  • - (showCli = false)} - class:is-selected={!showCli}> - Usage - -
  • -
- {#if showCli} -

Unix

-

Powershell

-

Learn more about creating deployments, installing and using the Appwrite CLI.

- {:else} - - - +
+
    +
  • + (mode = 'cli')} + class:is-selected={mode === 'cli'}> + CLI + +
  • +
  • + (mode = 'github')} + class:is-selected={mode === 'github'}> + GitHub - Soon! + +
  • +
  • + (mode = 'manual')} + class:is-selected={mode === 'manual'}> + Manual + +
  • +
+
+ {#if mode === 'cli'} +

+ You can deploy your function from the Appwrite CLI using Unix, CMD, or PowerShell. + Check out our Documentation to learn more about deploying your functions, or how to install and use the + Appwrite CLI. +

+ + {#each ['Unix', 'CMD', 'PowerShell'] as category} + + {category} + Code + + {/each} + + {:else if mode === 'github'} +

Coming Soon

+ {:else if mode === 'manual'} + + + + + This deployment will be activated after the build is completed. + {/if} - - + {#if mode === 'manual'} + + + {:else} + + {/if}
diff --git a/src/routes/console/project-[project]/functions/function/[function]/createDeployment.svelte b/src/routes/console/project-[project]/functions/function/[function]/createDeployment.svelte deleted file mode 100644 index e69de29bb..000000000