Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { getLatestTag } from '$lib/helpers/github';
import { writable } from 'svelte/store';
import Link from '$lib/elements/link.svelte';
import { isCloud } from '$lib/system';

let {
data
Expand Down Expand Up @@ -105,7 +106,7 @@
commands: installCommand || undefined,
scopes: selectedScopes?.length ? selectedScopes : undefined,
providerSilentMode: false,
specification: specification || undefined
specification: isCloud ? specification || undefined : undefined
});

// Add domain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
enabled: true,
entrypoint,
commands: buildCommand,
specification: specification || undefined
specification: isCloud ? specification || undefined : undefined
});

// Add domain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import RepoCard from './repoCard.svelte';
import { getIconFromRuntime } from '$lib/stores/runtimes';
import { regionalConsoleVariables } from '$routes/(console)/project-[region]-[project]/store';
import { isCloud } from '$lib/system';

export let data;

Expand Down Expand Up @@ -108,7 +109,7 @@
providerBranch: branch,
providerSilentMode: silentMode,
providerRootDirectory: rootDir,
specification: specification || undefined
specification: isCloud ? specification || undefined : undefined
});

// Add domain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import { Dependencies } from '$lib/constants';
import { getIconFromRuntime } from '$lib/stores/runtimes';
import { regionalConsoleVariables } from '$routes/(console)/project-[region]-[project]/store';
import { isCloud } from '$lib/system';

export let data;

Expand Down Expand Up @@ -148,7 +149,7 @@
providerBranch: branch,
providerSilentMode: silentMode,
providerRootDirectory: rootDir,
specification: specification || undefined
specification: isCloud ? specification || undefined : undefined
});

// Add domain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { sdk } from '$lib/stores/sdk';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { page } from '$app/state';

export let func: Models.Function;
Expand Down Expand Up @@ -36,7 +37,7 @@
providerBranch: func.providerBranch || undefined,
providerSilentMode: func.providerSilentMode || undefined,
providerRootDirectory: func.providerRootDirectory || undefined,
specification: func.specification || undefined
specification: isCloud ? func.specification || undefined : undefined
});

await invalidate(Dependencies.FUNCTION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import { Button } from '$lib/elements/forms';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { IconPlus, IconX } from '@appwrite.io/pink-icons-svelte';
import { Icon, Layout, Link, Table, Typography } from '@appwrite.io/pink-svelte';

Expand Down Expand Up @@ -47,7 +48,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: $func.specification || undefined
specification: isCloud ? $func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { sdk } from '$lib/stores/sdk';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { Typography } from '@appwrite.io/pink-svelte';
import { page } from '$app/state';

Expand Down Expand Up @@ -37,7 +38,7 @@
providerBranch: func.providerBranch || undefined,
providerSilentMode: func.providerSilentMode || undefined,
providerRootDirectory: func.providerRootDirectory || undefined,
specification: func.specification || undefined
specification: isCloud ? func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import { func } from '../store';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime } from '@appwrite.io/console';
import { isCloud } from '$lib/system';

const functionId = page.params.function;
let functionName: string = null;
Expand Down Expand Up @@ -42,7 +43,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: $func.specification || undefined
specification: isCloud ? $func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { symmetricDifference } from '$lib/helpers/array';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { Link } from '$lib/elements';

const functionId = page.params.function;
Expand Down Expand Up @@ -47,7 +48,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: $func.specification || undefined
specification: isCloud ? $func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
providerBranch: func.providerBranch || undefined,
providerSilentMode: func.providerSilentMode || undefined,
providerRootDirectory: func.providerRootDirectory || undefined,
specification: specification || undefined
specification: isCloud ? specification || undefined : undefined
});

await invalidate(Dependencies.FUNCTION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import InputSelect from '$lib/elements/forms/inputSelect.svelte';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { Layout, Typography } from '@appwrite.io/pink-svelte';
import Link from '$lib/elements/link.svelte';

Expand Down Expand Up @@ -46,7 +47,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: $func.specification || undefined
specification: isCloud ? $func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import { func } from '../store';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { Link } from '$lib/elements';
import { parseExpression } from 'cron-parser';

Expand Down Expand Up @@ -47,7 +48,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: $func.specification || undefined
specification: isCloud ? $func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import { func } from '../store';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import Scopes from '$routes/(console)/project-[region]-[project]/overview/api-keys/scopes.svelte';
import { symmetricDifference } from '$lib/helpers/array';
import { Link } from '$lib/elements';
Expand Down Expand Up @@ -45,7 +46,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: $func.specification || undefined
specification: isCloud ? $func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import { func } from '../store';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { Runtime } from '@appwrite.io/console';
import { isCloud } from '$lib/system';

const functionId = page.params.function;
let timeout: number = null;
Expand Down Expand Up @@ -42,7 +43,7 @@
providerBranch: $func.providerBranch || undefined,
providerSilentMode: $func.providerSilentMode || undefined,
providerRootDirectory: $func.providerRootDirectory || undefined,
specification: $func.specification || undefined
specification: isCloud ? $func.specification || undefined : undefined
});
await invalidate(Dependencies.FUNCTION);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { addNotification } from '$lib/stores/notifications';
import { sdk } from '$lib/stores/sdk';
import { Adapter, BuildRuntime, Framework, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { Card, Fieldset, Icon, InlineCode, Layout, Tooltip } from '@appwrite.io/pink-svelte';
import { iconPath } from '$lib/stores/app';
import { Link } from '$lib/elements';
Expand Down Expand Up @@ -136,7 +137,7 @@
providerBranch: site.providerBranch || undefined,
providerSilentMode: site.providerSilentMode || undefined,
providerRootDirectory: site.providerRootDirectory || undefined,
specification: specToSend || undefined
specification: isCloud ? specToSend || undefined : undefined
});
await invalidate(Dependencies.SITE);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { addNotification } from '$lib/stores/notifications';
import { sdk } from '$lib/stores/sdk';
import { Adapter, BuildRuntime, Framework, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { Typography } from '@appwrite.io/pink-svelte';

export let site: Models.Site;
Expand All @@ -33,7 +34,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: site?.specification || undefined
specification: isCloud ? site?.specification || undefined : undefined
});
await invalidate(Dependencies.SITE);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { sdk } from '$lib/stores/sdk';
import { onMount } from 'svelte';
import { Adapter, BuildRuntime, Framework, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { page } from '$app/state';

export let site: Models.Site;
Expand Down Expand Up @@ -37,7 +38,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: site?.specification || undefined
specification: isCloud ? site?.specification || undefined : undefined
});
await invalidate(Dependencies.SITE);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { addNotification } from '$lib/stores/notifications';
import { sdk } from '$lib/stores/sdk';
import { Adapter, BuildRuntime, Framework, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { onMount } from 'svelte';
import DisconnectRepo from './disconnectRepo.svelte';
import { installation, repository as repositoryStore, sortBranches } from '$lib/stores/vcs';
Expand Down Expand Up @@ -86,7 +87,7 @@
providerBranch: selectedBranch || undefined,
providerSilentMode: silentMode || undefined,
providerRootDirectory: selectedDir || undefined,
specification: site?.specification || undefined
specification: isCloud ? site?.specification || undefined : undefined
});
await invalidate(Dependencies.SITE);
addNotification({
Expand Down Expand Up @@ -133,7 +134,7 @@
installationId: selectedInstallationId,
providerRepositoryId: selectedRepository,
providerBranch: 'main',
specification: site?.specification || undefined
specification: isCloud ? site?.specification || undefined : undefined
});

invalidate(Dependencies.SITE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: specification || undefined
specification: isCloud ? specification || undefined : undefined
});
await invalidate(Dependencies.SITE);
originalSpecification = specification;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import { getIconFromRuntime } from '$lib/stores/runtimes';
import { sdk } from '$lib/stores/sdk';
import { Adapter, BuildRuntime, Framework, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';

export let site: Models.Site;
export let frameworks: Models.Framework[];
Expand Down Expand Up @@ -43,7 +44,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: site?.specification || undefined
specification: isCloud ? site?.specification || undefined : undefined
});
await invalidate(Dependencies.SITE);
addNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { sdk } from '$lib/stores/sdk';
import { onMount } from 'svelte';
import { Adapter, BuildRuntime, Framework, type Models } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
import { page } from '$app/state';

export let site: Models.Site;
Expand Down Expand Up @@ -36,7 +37,7 @@
providerBranch: site?.providerBranch || undefined,
providerSilentMode: site?.providerSilentMode || undefined,
providerRootDirectory: site?.providerRootDirectory || undefined,
specification: site?.specification || undefined
specification: isCloud ? site?.specification || undefined : undefined
});
await invalidate(Dependencies.SITE);
addNotification({
Expand Down