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/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]/(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]/functions/function-[function]/executions/+page.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/executions/+page.svelte index 53c880c4b..030054e03 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 @@ -1,5 +1,5 @@ - +

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

@@ -40,4 +40,4 @@
- +
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); 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'; 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, 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 @@ + + + + + + + + + + + + +