mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Apply commands params changes
This commit is contained in:
1 parent
9e818cb856
commit
d358c7df6e
19 files changed
+29
-49
No files matched your search
Generated
+4
-4
@@ -7,7 +7,7 @@
|
||||
"name": "@appwrite/console",
|
||||
"dependencies": {
|
||||
"@analytics/google-analytics": "^1.0.5",
|
||||
"@appwrite.io/console": "npm:matej-appwrite-console@7.1.101",
|
||||
"@appwrite.io/console": "npm:matej-appwrite-console@7.1.102",
|
||||
"@appwrite.io/pink": "0.0.6-rc.10",
|
||||
"@popperjs/core": "^2.11.6",
|
||||
"@sentry/svelte": "^7.44.2",
|
||||
@@ -158,9 +158,9 @@
|
||||
},
|
||||
"node_modules/@appwrite.io/console": {
|
||||
"name": "matej-appwrite-console",
|
||||
"version": "7.1.101",
|
||||
"resolved": "https://registry.npmjs.org/matej-appwrite-console/-/matej-appwrite-console-7.1.101.tgz",
|
||||
"integrity": "sha512-x6vFOVW/qfuXtVvI6S6342J6oxSSQO2fajnGjFhH+hYcAOEkklxtxrqp3dkIcKq71XNcegvrQo22uk/QlcMrPw==",
|
||||
"version": "7.1.102",
|
||||
"resolved": "https://registry.npmjs.org/matej-appwrite-console/-/matej-appwrite-console-7.1.102.tgz",
|
||||
"integrity": "sha512-VtN6fEgMbRYV4an3stb+TA21e04v8UYeB8g9COrQfhsdX+yccmJR+05wVJ7kdsva1IE02HqT7UhrvNS/bezdaQ==",
|
||||
"dependencies": {
|
||||
"cross-fetch": "3.1.5",
|
||||
"isomorphic-form-data": "2.0.0"
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@analytics/google-analytics": "^1.0.5",
|
||||
"@appwrite.io/console": "npm:matej-appwrite-console@7.1.101",
|
||||
"@appwrite.io/console": "npm:matej-appwrite-console@7.1.102",
|
||||
"@appwrite.io/pink": "0.0.6-rc.10",
|
||||
"@popperjs/core": "^2.11.6",
|
||||
"@sentry/svelte": "^7.44.2",
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand || undefined,
|
||||
$func.installCommand || undefined,
|
||||
$func.commands || undefined,
|
||||
$installation.$id,
|
||||
$repository.id,
|
||||
$choices.branch,
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
$createFunction.buildCommand,
|
||||
undefined,
|
||||
$createFunction.commands,
|
||||
$installation.$id,
|
||||
$repository.id,
|
||||
$choices.branch,
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
$createFunction.buildCommand
|
||||
$createFunction.commands
|
||||
);
|
||||
await sdk.forProject.functions.createDeployment(
|
||||
response.$id,
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
$createFunction.buildCommand,
|
||||
undefined,
|
||||
$createFunction.commands,
|
||||
$installation.$id,
|
||||
$repository.id,
|
||||
$choices.branch,
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
<FormList>
|
||||
<InputTextarea
|
||||
label="Commands"
|
||||
placeholder="Enter a build commad (e.g. 'npm run build')"
|
||||
placeholder="Enter a build commad (e.g. 'npm install')"
|
||||
id="build"
|
||||
bind:value={$createFunction.buildCommand} />
|
||||
bind:value={$createFunction.commands} />
|
||||
</FormList>
|
||||
</CollapsibleItem>
|
||||
</Collapsible>
|
||||
|
||||
@@ -62,9 +62,9 @@
|
||||
<FormList>
|
||||
<InputTextarea
|
||||
label="Commands"
|
||||
placeholder="Enter a build commad (e.g. 'npm run build')"
|
||||
placeholder="Enter a build commad (e.g. 'npm install')"
|
||||
id="build"
|
||||
bind:value={$createFunction.buildCommand} />
|
||||
bind:value={$createFunction.commands} />
|
||||
</FormList>
|
||||
</CollapsibleItem>
|
||||
</Collapsible>
|
||||
|
||||
@@ -25,7 +25,7 @@ export const createFunction = writable<Partial<Models.Function>>({
|
||||
entrypoint: null,
|
||||
execute: [],
|
||||
runtime: null,
|
||||
buildCommand: null
|
||||
commands: null
|
||||
});
|
||||
|
||||
export const createFunctionDeployment = writable<FileList>();
|
||||
+1
-1
@@ -69,7 +69,7 @@
|
||||
<FormList>
|
||||
<InputTextarea
|
||||
label="Commands"
|
||||
placeholder="Enter a build commad (e.g. 'npm run build')"
|
||||
placeholder="Enter a build commad (e.g. 'npm install')"
|
||||
id="build"
|
||||
bind:value={buildCommand} />
|
||||
</FormList>
|
||||
|
||||
+1
-2
@@ -24,8 +24,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
$func.vcsInstallationId,
|
||||
'',
|
||||
'',
|
||||
|
||||
+1
-2
@@ -62,8 +62,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
selectedInstallationId,
|
||||
selectedRepoId,
|
||||
selectedBranch,
|
||||
|
||||
+6
-15
@@ -30,8 +30,7 @@
|
||||
const functionId = $page.params.function;
|
||||
|
||||
let entrypoint: string;
|
||||
let installCmd: string;
|
||||
let buildCmd: string;
|
||||
let commands: string;
|
||||
let showGit = false;
|
||||
let branchesList: Models.BranchList;
|
||||
let selectedBranch: string;
|
||||
@@ -41,8 +40,7 @@
|
||||
|
||||
onMount(() => {
|
||||
entrypoint = $func?.entrypoint;
|
||||
installCmd = $func?.installCommand;
|
||||
buildCmd = $func?.buildCommand;
|
||||
commands = $func?.commands;
|
||||
selectedBranch = $func?.vcsBranch;
|
||||
silentMode = $func?.vcsSilentMode ?? false;
|
||||
selectedDir = $func?.vcsRootDirectory;
|
||||
@@ -88,8 +86,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
buildCmd,
|
||||
installCmd,
|
||||
commands,
|
||||
$func.vcsInstallationId,
|
||||
$func.vcsRepositoryId,
|
||||
selectedBranch,
|
||||
@@ -130,8 +127,7 @@
|
||||
|
||||
$: isUpdateButtonEnabled =
|
||||
entrypoint !== $func?.entrypoint ||
|
||||
installCmd !== $func?.installCommand ||
|
||||
buildCmd !== $func?.buildCommand ||
|
||||
commands !== $func?.commands ||
|
||||
selectedBranch !== $func?.vcsBranch ||
|
||||
silentMode !== $func?.vcsSilentMode ||
|
||||
selectedDir !== $func?.vcsRootDirectory;
|
||||
@@ -226,15 +222,10 @@
|
||||
<svelte:fragment slot="title">Build settings</svelte:fragment>
|
||||
<FormList>
|
||||
<InputText
|
||||
label="Install command"
|
||||
label="Commands"
|
||||
placeholder="Enter an install commad (e.g. 'npm install')"
|
||||
id="install"
|
||||
bind:value={installCmd} />
|
||||
<InputText
|
||||
label="Build command"
|
||||
placeholder="Enter a build commad (e.g. 'npm run build')"
|
||||
id="build"
|
||||
bind:value={buildCmd} />
|
||||
bind:value={commands} />
|
||||
</FormList>
|
||||
</CollapsibleItem>
|
||||
</Collapsible>
|
||||
|
||||
+1
-2
@@ -39,8 +39,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
$func.vcsInstallationId,
|
||||
$func.vcsRepositoryId,
|
||||
$func.vcsBranch,
|
||||
|
||||
+1
-2
@@ -31,8 +31,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
functionLogging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
$func.vcsInstallationId,
|
||||
$func.vcsRepositoryId,
|
||||
$func.vcsBranch,
|
||||
|
||||
+1
-2
@@ -29,8 +29,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
$func.vcsInstallationId,
|
||||
$func.vcsRepositoryId,
|
||||
$func.vcsBranch,
|
||||
|
||||
+1
-2
@@ -33,8 +33,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
$func.vcsInstallationId,
|
||||
$func.vcsRepositoryId,
|
||||
$func.vcsBranch,
|
||||
|
||||
+1
-2
@@ -29,8 +29,7 @@
|
||||
$func.timeout || undefined,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
$func.vcsInstallationId,
|
||||
$func.vcsRepositoryId,
|
||||
$func.vcsBranch,
|
||||
|
||||
+1
-2
@@ -29,8 +29,7 @@
|
||||
timeout,
|
||||
$func.enabled,
|
||||
$func.logging,
|
||||
$func.buildCommand,
|
||||
$func.installCommand,
|
||||
$func.commands,
|
||||
$func.vcsInstallationId,
|
||||
$func.vcsRepositoryId,
|
||||
$func.vcsBranch,
|
||||
|
||||
Reference in new issue
Block a user