@@ -363,7 +363,7 @@
{/if}
-
+
{execution.responseHeaders?.length
? 'Not all header data is'
: 'Header data is not'}
@@ -378,7 +378,7 @@
>.
{:else if selectedResponse === 'body'}
-
+
Body data is not captured by Appwrite for your user's security
and privacy. To display body data in the Logs tab, use
context.log().
@@ -419,12 +419,17 @@
padding-block: 1.5rem !important;
}
- .mobile-only-inline-16-padding {
+ .mobile-only-inline-20-padding {
padding-inline: 1.5rem !important;
}
- .grid-1-2 {
- row-gap: 1.5rem;
+ .mobile-only-block-start-20-padding {
+ padding-block-start: 1.5rem !important;
+ }
+
+ .code-panel-content.grid-1-2 {
+ display: unset !important;
+ row-gap: unset !important;
}
}
From e93a328888c157e84529e2b7276a5de6a5481f52 Mon Sep 17 00:00:00 2001
From: ItzNotABug
Date: Tue, 27 Aug 2024 13:17:00 +0530
Subject: [PATCH 24/28] fix: formatting.
---
src/lib/layout/logs.svelte | 9 ++++-----
.../deployment-[deployment]/+page.svelte | 5 +++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/lib/layout/logs.svelte b/src/lib/layout/logs.svelte
index 5e2b9ce96b..bc755d47e2 100644
--- a/src/lib/layout/logs.svelte
+++ b/src/lib/layout/logs.svelte
@@ -152,7 +152,8 @@
-
+
Method:
@@ -195,8 +196,7 @@
+ class="grid-1-2-col-1 u-flex u-flex-vertical u-gap-16 mobile-only-inline-20-padding">
Request
@@ -309,8 +309,7 @@
+ class="grid-1-2-col-2 u-flex u-flex-vertical u-gap-16 u-min-width-0 mobile-only-inline-20-padding mobile-only-block-start-20-padding">
Response
diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte
index 8868b08c9f..457369eec7 100644
--- a/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte
+++ b/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte
@@ -67,7 +67,8 @@
invalidate(Dependencies.DEPLOYMENT);
}
}
- });
+ }
+ );
return () => {
unsubscribe();
@@ -167,4 +168,4 @@
.code-panel-content {
max-height: 50vh;
}
-
\ No newline at end of file
+
From 992fbb564a63fc4037d5b069aafab43a6a9eefe7 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Tue, 26 Nov 2024 16:20:06 +0530
Subject: [PATCH 25/28] update: checkout from `main`.
---
.../functions/steps/templateVariables.svelte | 136 ++++++------------
1 file changed, 40 insertions(+), 96 deletions(-)
diff --git a/src/lib/wizards/functions/steps/templateVariables.svelte b/src/lib/wizards/functions/steps/templateVariables.svelte
index b51a4996d8..c7db15bd43 100644
--- a/src/lib/wizards/functions/steps/templateVariables.svelte
+++ b/src/lib/wizards/functions/steps/templateVariables.svelte
@@ -56,80 +56,34 @@
{#if $template?.variables?.length}
{#if requiredVariables?.length}
- {#if requiredVariables?.length === 1 || requiredVariables.every((variable) => variable.required)}
-
-
-
-
-
- {#each requiredVariables as variable}
- {#if variable.name === 'APPWRITE_API_KEY'}
-
- {:else}
-
-
-
- {@html variable.description}
-
-
- {/if}
- {/each}
-
-
-
-
- {:else if requiredVariables?.length > 1}
-
-
- Required variables
-
- {requiredVariables.length}
-
-
-
- {#each requiredVariables as variable}
- {#if variable.name === 'APPWRITE_API_KEY'}
-
- {:else}
-
-
-
- {@html variable.description}
-
-
- {/if}
- {/each}
-
-
-
- {/if}
+ {/each}
+
+
+
{/if}
{#if optionalVariables?.length}
@@ -142,25 +96,21 @@
{#each optionalVariables as variable}
- {#if variable.name === 'APPWRITE_API_KEY'}
-
- {:else}
-
-
+
+
-
- {@html variable.description}
-
-
- {/if}
+
+ {@html variable.description}
+
+
{/each}
@@ -172,9 +122,3 @@
{/if}
-
-
From 8396e5d0043ec7c13b9345352aeee4f0ee2b46b3 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Thu, 28 Nov 2024 13:46:14 +0530
Subject: [PATCH 26/28] update: address comments.
---
.../functions/components/repositories.svelte | 2 +-
.../functions/function-[function]/createCli.svelte | 13 ++++++-------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/lib/wizards/functions/components/repositories.svelte b/src/lib/wizards/functions/components/repositories.svelte
index cdbdf3016b..da3524ee22 100644
--- a/src/lib/wizards/functions/components/repositories.svelte
+++ b/src/lib/wizards/functions/components/repositories.svelte
@@ -125,7 +125,7 @@
{#if selectedInstallation}
{#await loadRepositories(selectedInstallation, search)}
-
+
{:then response}
diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte
index 22bf832f9e..4ab648d8e0 100644
--- a/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte
+++ b/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte
@@ -131,20 +131,19 @@
From 5c999e77445eb9e86a1ec6d7aab1ce1dbcdf6323 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Thu, 28 Nov 2024 14:21:07 +0530
Subject: [PATCH 27/28] update: address comments.
---
src/lib/layout/logs.svelte | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/lib/layout/logs.svelte b/src/lib/layout/logs.svelte
index 9d04824f0c..074e8260a3 100644
--- a/src/lib/layout/logs.svelte
+++ b/src/lib/layout/logs.svelte
@@ -434,36 +434,36 @@
From 3ee44cb4573d05234057c9be17fbe55da75db35d Mon Sep 17 00:00:00 2001
From: Darshan
Date: Wed, 18 Dec 2024 18:22:16 +0530
Subject: [PATCH 28/28] address comments.
---
.../function-[function]/deployment-[deployment]/+page.svelte | 2 +-
.../functions/function-[function]/deploymentSource.svelte | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte
index 457369eec7..734e4f3062 100644
--- a/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte
+++ b/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte
@@ -26,7 +26,7 @@
let showActivate = false;
let enableScrollButton = false;
- let codePanelContent: HTMLElement; /* var to avoid frequent querySelector calls */
+ let codePanelContent: HTMLElement;
function handleActivate() {
invalidate(Dependencies.DEPLOYMENTS);
diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/deploymentSource.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/deploymentSource.svelte
index b07d96d974..c81332f21f 100644
--- a/src/routes/(console)/project-[project]/functions/function-[function]/deploymentSource.svelte
+++ b/src/routes/(console)/project-[project]/functions/function-[function]/deploymentSource.svelte
@@ -21,7 +21,7 @@
icon="github"
iconStyle="font-size:20px">
-
+
{deployment.providerRepositoryOwner}/{deployment.providerRepositoryName}