From f52bb88768d099bd8ae43f03b6390483b695e966 Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 13 Mar 2025 12:07:14 +0100 Subject: [PATCH 1/6] fix: smal fixes in functions --- .../create-function/(components)/aside.svelte | 2 +- .../(components)/deploymentCard.svelte | 6 +++--- .../functions/function-[function]/table.svelte | 10 +++++++--- .../sites/(components)/siteCard.svelte | 2 +- .../sites/site-[site]/deployments/+page.svelte | 2 -- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/routes/(console)/project-[project]/functions/create-function/(components)/aside.svelte b/src/routes/(console)/project-[project]/functions/create-function/(components)/aside.svelte index a6a927996..ae7ea0a6e 100644 --- a/src/routes/(console)/project-[project]/functions/create-function/(components)/aside.svelte +++ b/src/routes/(console)/project-[project]/functions/create-function/(components)/aside.svelte @@ -28,7 +28,7 @@ {/if} - {selectedRuntime.name} + {selectedRuntime.name} - {selectedRuntime.version} diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/(components)/deploymentCard.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/(components)/deploymentCard.svelte index 4c37f9fa7..64149f024 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/(components)/deploymentCard.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/(components)/deploymentCard.svelte @@ -7,6 +7,7 @@ import { DeploymentSource, DeploymentCreatedBy, DeploymentDomains } from '$lib/components/git'; import { func } from '../store'; + import { capitalize } from '$lib/helpers/string'; export let deployment: Models.Deployment; export let proxyRuleList: Models.ProxyRuleList; @@ -106,14 +107,13 @@ size={16} iconSize="small" name={$func.runtime.split('-')[0]} /> - - {$func.runtime} + {capitalize($func.runtime)} - + Source diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte index 85a9b616e..b16903163 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte @@ -118,10 +118,14 @@ {/if} {/each} - + - - diff --git a/src/routes/(console)/project-[project]/sites/(components)/siteCard.svelte b/src/routes/(console)/project-[project]/sites/(components)/siteCard.svelte index 9d8af05c9..6040533f8 100644 --- a/src/routes/(console)/project-[project]/sites/(components)/siteCard.svelte +++ b/src/routes/(console)/project-[project]/sites/(components)/siteCard.svelte @@ -168,7 +168,7 @@ - + Source diff --git a/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte b/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte index 23ac4f5a8..747f7ed05 100644 --- a/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte +++ b/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte @@ -29,10 +29,8 @@ let hasInstallation = !!data.installations?.total; let showConnectCLI = false; let showConnectManual = false; - let showMobileFilters = false; onMount(() => { - data?.query ? (showMobileFilters = true) : (showMobileFilters = false); return sdk.forConsole.client.subscribe('console', (response) => { if (response.events.includes('sites.*.deployments.*')) { invalidate(Dependencies.DEPLOYMENTS); From 4c6113d82297003dc5a208ad31e41baabe99fc8d Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 13 Mar 2025 12:11:01 +0100 Subject: [PATCH 2/6] fix: active modal --- .../(modals)/activateModal.svelte | 17 +++++++++-------- .../sites/activateDeploymentModal.svelte | 6 +++--- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/(modals)/activateModal.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/(modals)/activateModal.svelte index e86a2113e..5ea77ed0a 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/(modals)/activateModal.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/(modals)/activateModal.svelte @@ -9,7 +9,7 @@ export let showActivate = false; export let selectedDeployment: Models.Deployment = null; - + let error = null; const dispatch = createEventDispatcher(); const handleSubmit = async () => { @@ -25,17 +25,18 @@ }); dispatch('activated'); trackEvent(Submit.DeploymentUpdate); - } catch (error) { - addNotification({ - type: 'error', - message: error.message - }); - trackError(error, Submit.DeploymentUpdate); + } catch (e) { + error = e.message; + trackError(e, Submit.DeploymentUpdate); } }; + + $: if (!showActivate) { + error = null; + } - +

This deployment is ready but not yet live. Activate it to make it publicly accessible.

diff --git a/src/routes/(console)/project-[project]/sites/activateDeploymentModal.svelte b/src/routes/(console)/project-[project]/sites/activateDeploymentModal.svelte index 758413a4d..74bcc6be0 100644 --- a/src/routes/(console)/project-[project]/sites/activateDeploymentModal.svelte +++ b/src/routes/(console)/project-[project]/sites/activateDeploymentModal.svelte @@ -1,6 +1,6 @@ - +

This deployment is ready but not yet live. Activate it to make it publicly accessible.

@@ -40,4 +40,4 @@
- +
From b9338d66a8571e52209053b7d8566ec10fd37b06 Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 13 Mar 2025 12:31:19 +0100 Subject: [PATCH 3/6] chore: Bump version, small fixes --- package.json | 2 +- pnpm-lock.yaml | 18 +++--- .../executions/+page.svelte | 57 +++++++++++++------ .../executions/delete.svelte | 37 ------------ 4 files changed, 50 insertions(+), 64 deletions(-) delete mode 100644 src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte diff --git a/package.json b/package.json index e0fff254e..43982bd98 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@appwrite.io/pink-icons": "0.25.0", "@appwrite.io/pink-icons-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@bcb8ad2b", "@appwrite.io/pink-legacy": "^1.0.3", - "@appwrite.io/pink-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@bcb8ad2b", + "@appwrite.io/pink-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@c962928", "@popperjs/core": "^2.11.8", "@sentry/sveltekit": "^8.38.0", "@stripe/stripe-js": "^3.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49b1e6e69..d8445c043 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ importers: specifier: ^1.0.3 version: 1.0.3 '@appwrite.io/pink-svelte': - specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@bcb8ad2b - version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@bcb8ad2b(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19) + specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@c962928 + version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@c962928(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19) '@popperjs/core': specifier: ^2.11.8 version: 2.11.8 @@ -221,8 +221,8 @@ packages: peerDependencies: svelte: ^4.0.0 - '@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@bcb8ad2beed43f68ecbc9ac239b570d5d1d1b40d': - resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@bcb8ad2beed43f68ecbc9ac239b570d5d1d1b40d} + '@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@c962928eeee5cfc960cc1070d469e613e096b7e1': + resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@c962928eeee5cfc960cc1070d469e613e096b7e1} version: 1.0.0-next.7 peerDependencies: svelte: ^4.0.0 @@ -236,8 +236,8 @@ packages: '@appwrite.io/pink-legacy@1.0.3': resolution: {integrity: sha512-GGde5fmPhs+s6/3aFeMPc/kKADG/gTFkYQSy6oBN8pK0y0XNCLrZZgBv+EBbdhwdtqVEWXa0X85Mv9w7jcIlwQ==} - '@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@bcb8ad2b': - resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@bcb8ad2b} + '@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@c962928': + resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@c962928} version: 1.0.0-next.85 peerDependencies: react-dom: ^18.0.0 @@ -4103,7 +4103,7 @@ snapshots: dependencies: svelte: 4.2.19 - '@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@bcb8ad2beed43f68ecbc9ac239b570d5d1d1b40d(svelte@4.2.19)': + '@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@c962928eeee5cfc960cc1070d469e613e096b7e1(svelte@4.2.19)': dependencies: svelte: 4.2.19 @@ -4116,9 +4116,9 @@ snapshots: '@appwrite.io/pink-icons': 1.0.0 the-new-css-reset: 1.11.3 - '@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@bcb8ad2b(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19)': + '@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@c962928(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19)': dependencies: - '@appwrite.io/pink-icons-svelte': https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@bcb8ad2beed43f68ecbc9ac239b570d5d1d1b40d(svelte@4.2.19) + '@appwrite.io/pink-icons-svelte': https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@c962928eeee5cfc960cc1070d469e613e096b7e1(svelte@4.2.19) '@floating-ui/dom': 1.6.13 '@melt-ui/pp': 0.3.2(@melt-ui/svelte@0.86.3(svelte@4.2.19))(svelte@4.2.19) '@melt-ui/svelte': 0.86.3(svelte@4.2.19) diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/executions/+page.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/executions/+page.svelte index 03197f12c..6ba832407 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/executions/+page.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/executions/+page.svelte @@ -9,7 +9,7 @@ import { project } from '$routes/(console)/project-[project]/store'; import { base } from '$app/paths'; import { View } from '$lib/helpers/load'; - import { Icon, Layout } from '@appwrite.io/pink-svelte'; + import { Icon, Layout, Tooltip } from '@appwrite.io/pink-svelte'; import { IconPlus } from '@appwrite.io/pink-icons-svelte'; import Table from './table.svelte'; import { columns } from './store'; @@ -37,13 +37,20 @@ {#if data?.executions?.total} {/if} - + +
+ +
+ + Execution cannot be created because there is no active deployment. + +
@@ -62,7 +69,7 @@ {/if} - {#if data?.executions?.total} + {#if !data?.executions?.total} {:else} - - goto( - `${base}/project-${$project.$id}/functions/function-${data.func.$id}/executions/execute-function` - )}> + + + + +
+ +
+ + Execution cannot be created because there is no active deployment. + +
+
{/if} diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte deleted file mode 100644 index 8b467efd5..000000000 --- a/src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte +++ /dev/null @@ -1,37 +0,0 @@ - - - - Are you sure you want to delete this execution? - From bb66c2a0d5b539378ab3ccd103ce9b049d80e6b0 Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 13 Mar 2025 13:03:32 +0100 Subject: [PATCH 4/6] chore: add missing icons --- .../executions/delete.svelte | 37 ++++++ .../updateVariableModal.svelte | 120 ++++++++++++++++++ static/icons/dark/color/analog.svg | 21 +++ static/icons/dark/color/mongo-db.svg | 10 ++ static/icons/dark/color/neo4j.svg | 4 + static/icons/dark/color/neon.svg | 16 +++ static/icons/dark/color/redis.svg | 3 + static/icons/dark/color/upstash.svg | 13 ++ static/icons/dark/color/vite.svg | 15 +++ static/icons/dark/grayscale/mongo-db.svg | 10 ++ static/icons/dark/grayscale/neo4j.svg | 4 + static/icons/dark/grayscale/neon.svg | 6 + static/icons/dark/grayscale/redis.svg | 3 + static/icons/dark/grayscale/upstash.svg | 13 ++ static/icons/light/color/analog.svg | 21 +++ static/icons/light/color/mongo-db.svg | 10 ++ static/icons/light/color/neo4j.svg | 4 + static/icons/light/color/neon.svg | 16 +++ static/icons/light/color/redis.svg | 3 + static/icons/light/color/upstash.svg | 13 ++ static/icons/light/color/vite.svg | 15 +++ static/icons/light/grayscale/mongo-db.svg | 10 ++ static/icons/light/grayscale/neo4j.svg | 4 + static/icons/light/grayscale/neon.svg | 6 + static/icons/light/grayscale/redis.svg | 3 + static/icons/light/grayscale/upstash.svg | 13 ++ 26 files changed, 393 insertions(+) create mode 100644 src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte create mode 100644 src/routes/(console)/project-[project]/updateVariableModal.svelte create mode 100644 static/icons/dark/color/analog.svg create mode 100644 static/icons/dark/color/mongo-db.svg create mode 100644 static/icons/dark/color/neo4j.svg create mode 100644 static/icons/dark/color/neon.svg create mode 100644 static/icons/dark/color/redis.svg create mode 100644 static/icons/dark/color/upstash.svg create mode 100644 static/icons/dark/color/vite.svg create mode 100644 static/icons/dark/grayscale/mongo-db.svg create mode 100644 static/icons/dark/grayscale/neo4j.svg create mode 100644 static/icons/dark/grayscale/neon.svg create mode 100644 static/icons/dark/grayscale/redis.svg create mode 100644 static/icons/dark/grayscale/upstash.svg create mode 100644 static/icons/light/color/analog.svg create mode 100644 static/icons/light/color/mongo-db.svg create mode 100644 static/icons/light/color/neo4j.svg create mode 100644 static/icons/light/color/neon.svg create mode 100644 static/icons/light/color/redis.svg create mode 100644 static/icons/light/color/upstash.svg create mode 100644 static/icons/light/color/vite.svg create mode 100644 static/icons/light/grayscale/mongo-db.svg create mode 100644 static/icons/light/grayscale/neo4j.svg create mode 100644 static/icons/light/grayscale/neon.svg create mode 100644 static/icons/light/grayscale/redis.svg create mode 100644 static/icons/light/grayscale/upstash.svg diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte new file mode 100644 index 000000000..8b467efd5 --- /dev/null +++ b/src/routes/(console)/project-[project]/functions/function-[function]/executions/delete.svelte @@ -0,0 +1,37 @@ + + + + Are you sure you want to delete this execution? + diff --git a/src/routes/(console)/project-[project]/updateVariableModal.svelte b/src/routes/(console)/project-[project]/updateVariableModal.svelte new file mode 100644 index 000000000..654070a12 --- /dev/null +++ b/src/routes/(console)/project-[project]/updateVariableModal.svelte @@ -0,0 +1,120 @@ + + + + + + Set the environment variables or secret keys that will be passed to {!isGlobal + ? `your ${product}` + : `all functions and sites within your project`}. + + + + {#if !isGlobal} + + When there is a naming conflict with a global variable in your + project settings + and a {product} environment variable, the global variable will be ignored. + + {/if} + + {#each newVariables as pair, i} + + + + removeVariable(i)}> + + + + {/each} +
+ +
+
+ +
+ + + + +
diff --git a/static/icons/dark/color/analog.svg b/static/icons/dark/color/analog.svg new file mode 100644 index 000000000..274a0e312 --- /dev/null +++ b/static/icons/dark/color/analog.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/icons/dark/color/mongo-db.svg b/static/icons/dark/color/mongo-db.svg new file mode 100644 index 000000000..6339b5dec --- /dev/null +++ b/static/icons/dark/color/mongo-db.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/icons/dark/color/neo4j.svg b/static/icons/dark/color/neo4j.svg new file mode 100644 index 000000000..5557bd020 --- /dev/null +++ b/static/icons/dark/color/neo4j.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/dark/color/neon.svg b/static/icons/dark/color/neon.svg new file mode 100644 index 000000000..09135c1d1 --- /dev/null +++ b/static/icons/dark/color/neon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/static/icons/dark/color/redis.svg b/static/icons/dark/color/redis.svg new file mode 100644 index 000000000..6a5a203f4 --- /dev/null +++ b/static/icons/dark/color/redis.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/dark/color/upstash.svg b/static/icons/dark/color/upstash.svg new file mode 100644 index 000000000..a0fb67474 --- /dev/null +++ b/static/icons/dark/color/upstash.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/static/icons/dark/color/vite.svg b/static/icons/dark/color/vite.svg new file mode 100644 index 000000000..3d6e1f472 --- /dev/null +++ b/static/icons/dark/color/vite.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/static/icons/dark/grayscale/mongo-db.svg b/static/icons/dark/grayscale/mongo-db.svg new file mode 100644 index 000000000..b238a992d --- /dev/null +++ b/static/icons/dark/grayscale/mongo-db.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/icons/dark/grayscale/neo4j.svg b/static/icons/dark/grayscale/neo4j.svg new file mode 100644 index 000000000..942f32a7f --- /dev/null +++ b/static/icons/dark/grayscale/neo4j.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/dark/grayscale/neon.svg b/static/icons/dark/grayscale/neon.svg new file mode 100644 index 000000000..a0a158f18 --- /dev/null +++ b/static/icons/dark/grayscale/neon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/icons/dark/grayscale/redis.svg b/static/icons/dark/grayscale/redis.svg new file mode 100644 index 000000000..8362bc644 --- /dev/null +++ b/static/icons/dark/grayscale/redis.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/dark/grayscale/upstash.svg b/static/icons/dark/grayscale/upstash.svg new file mode 100644 index 000000000..33d004763 --- /dev/null +++ b/static/icons/dark/grayscale/upstash.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/static/icons/light/color/analog.svg b/static/icons/light/color/analog.svg new file mode 100644 index 000000000..d38917f6d --- /dev/null +++ b/static/icons/light/color/analog.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/icons/light/color/mongo-db.svg b/static/icons/light/color/mongo-db.svg new file mode 100644 index 000000000..4209b312e --- /dev/null +++ b/static/icons/light/color/mongo-db.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/icons/light/color/neo4j.svg b/static/icons/light/color/neo4j.svg new file mode 100644 index 000000000..7c376119b --- /dev/null +++ b/static/icons/light/color/neo4j.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/light/color/neon.svg b/static/icons/light/color/neon.svg new file mode 100644 index 000000000..2760a8b47 --- /dev/null +++ b/static/icons/light/color/neon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/static/icons/light/color/redis.svg b/static/icons/light/color/redis.svg new file mode 100644 index 000000000..6a5a203f4 --- /dev/null +++ b/static/icons/light/color/redis.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/light/color/upstash.svg b/static/icons/light/color/upstash.svg new file mode 100644 index 000000000..8da3831e4 --- /dev/null +++ b/static/icons/light/color/upstash.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/static/icons/light/color/vite.svg b/static/icons/light/color/vite.svg new file mode 100644 index 000000000..37c9e66b9 --- /dev/null +++ b/static/icons/light/color/vite.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/static/icons/light/grayscale/mongo-db.svg b/static/icons/light/grayscale/mongo-db.svg new file mode 100644 index 000000000..b238a992d --- /dev/null +++ b/static/icons/light/grayscale/mongo-db.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/icons/light/grayscale/neo4j.svg b/static/icons/light/grayscale/neo4j.svg new file mode 100644 index 000000000..942f32a7f --- /dev/null +++ b/static/icons/light/grayscale/neo4j.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/light/grayscale/neon.svg b/static/icons/light/grayscale/neon.svg new file mode 100644 index 000000000..a0a158f18 --- /dev/null +++ b/static/icons/light/grayscale/neon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/icons/light/grayscale/redis.svg b/static/icons/light/grayscale/redis.svg new file mode 100644 index 000000000..8362bc644 --- /dev/null +++ b/static/icons/light/grayscale/redis.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/light/grayscale/upstash.svg b/static/icons/light/grayscale/upstash.svg new file mode 100644 index 000000000..33d004763 --- /dev/null +++ b/static/icons/light/grayscale/upstash.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + From 6273a065d4ee9233a790e5291624790a009e87da Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 13 Mar 2025 13:04:55 +0100 Subject: [PATCH 5/6] chore: clean up --- .../updateVariableModal.svelte | 120 ------------------ .../project-[project]/updateVariables.svelte | 1 - 2 files changed, 121 deletions(-) delete mode 100644 src/routes/(console)/project-[project]/updateVariableModal.svelte diff --git a/src/routes/(console)/project-[project]/updateVariableModal.svelte b/src/routes/(console)/project-[project]/updateVariableModal.svelte deleted file mode 100644 index 654070a12..000000000 --- a/src/routes/(console)/project-[project]/updateVariableModal.svelte +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Set the environment variables or secret keys that will be passed to {!isGlobal - ? `your ${product}` - : `all functions and sites within your project`}. - - - - {#if !isGlobal} - - When there is a naming conflict with a global variable in your - project settings - and a {product} environment variable, the global variable will be ignored. - - {/if} - - {#each newVariables as pair, i} - - - - removeVariable(i)}> - - - - {/each} -
- -
-
- -
- - - - -
diff --git a/src/routes/(console)/project-[project]/updateVariables.svelte b/src/routes/(console)/project-[project]/updateVariables.svelte index b8eabdc43..dc760d7f1 100644 --- a/src/routes/(console)/project-[project]/updateVariables.svelte +++ b/src/routes/(console)/project-[project]/updateVariables.svelte @@ -26,7 +26,6 @@ import { IconCode, IconDotsHorizontal, - IconEye, IconEyeOff, IconGlobeAlt, IconPencil, From 994888959cd1f94aa33ec35c0297b747ceee09ee Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 13 Mar 2025 13:05:48 +0100 Subject: [PATCH 6/6] add missing icons --- src/routes/(console)/project-[project]/sites/store.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routes/(console)/project-[project]/sites/store.ts b/src/routes/(console)/project-[project]/sites/store.ts index 3e71bbde6..0ac684677 100644 --- a/src/routes/(console)/project-[project]/sites/store.ts +++ b/src/routes/(console)/project-[project]/sites/store.ts @@ -36,6 +36,10 @@ export function getFrameworkIcon(framework: string) { return 'remix'; case framework.toLocaleLowerCase().includes('flutter'): return 'flutter'; + case framework.toLocaleLowerCase().includes('analog'): + return 'analog'; + case framework.toLocaleLowerCase().includes('vite'): + return 'vite'; case framework.toLocaleLowerCase().includes('other'): return 'empty';