diff --git a/package-lock.json b/package-lock.json index a968c3872..8c3a99105 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "@analytics/google-tag-manager": "^0.5.3", "@appwrite.io/console": "npm:matej-appwrite-console@7.1.125", "@appwrite.io/pink": "0.0.7-next.1", - "@appwrite.io/pink-icons": "0.0.7-next.1", + "@appwrite.io/pink-icons": "^0.0.7-next.1", "@popperjs/core": "^2.11.6", "@sentry/svelte": "^7.44.2", "@sentry/tracing": "^7.44.2", diff --git a/package.json b/package.json index dc9714c77..af7df857e 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,10 @@ }, "dependencies": { "@analytics/google-analytics": "^1.0.5", + "@analytics/google-tag-manager": "^0.5.3", "@appwrite.io/console": "npm:matej-appwrite-console@7.1.125", "@appwrite.io/pink": "0.0.7-next.1", - "@appwrite.io/pink-icons": "0.0.7-next.1", - "@analytics/google-tag-manager": "^0.5.3", + "@appwrite.io/pink-icons": "^0.0.7-next.1", "@popperjs/core": "^2.11.6", "@sentry/svelte": "^7.44.2", "@sentry/tracing": "^7.44.2", diff --git a/src/lib/wizards/functions/createTemplate.svelte b/src/lib/wizards/functions/createTemplate.svelte index 5d9fe8a18..992d4ddd6 100644 --- a/src/lib/wizards/functions/createTemplate.svelte +++ b/src/lib/wizards/functions/createTemplate.svelte @@ -53,6 +53,29 @@ wizard.hide(); } + // async function generateApiKey() { + // try { + // const key = await sdk.forConsole.projects.createKey( + // $page.params.project, + // 'Generated for Template', + // scopes.map((scope) => scope.scope) + // ); + // $templateConfig.variables['APPWRITE_API_KEY'] = key.secret; + + // addNotification({ + // type: 'success', + // message: 'Key generated successfully.' + // }); + // } catch (error) { + // addNotification({ + // type: 'error', + // message: error.message + // }); + // } finally { + // generatingApiKey = false; + // } + // } + function resetState() { wizard.hide(); templateConfig.set(null); diff --git a/src/lib/wizards/functions/steps/templateConfiguration.svelte b/src/lib/wizards/functions/steps/templateConfiguration.svelte index 0bd54ed76..56b8efb37 100644 --- a/src/lib/wizards/functions/steps/templateConfiguration.svelte +++ b/src/lib/wizards/functions/steps/templateConfiguration.svelte @@ -12,12 +12,6 @@ if (!$templateConfig.runtime) { throw new Error('Please select a runtime.'); } - - for (const variable of $template.variables) { - if (!variable.required) { - continue; - } - } } async function loadRuntimes() { diff --git a/src/lib/wizards/functions/steps/templateVariables.svelte b/src/lib/wizards/functions/steps/templateVariables.svelte index 52a5a05da..da61d5045 100644 --- a/src/lib/wizards/functions/steps/templateVariables.svelte +++ b/src/lib/wizards/functions/steps/templateVariables.svelte @@ -1,52 +1,10 @@