Skip to content
Merged
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
8 changes: 4 additions & 4 deletions src/lib/pages/domains/index.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -69,9 +69,9 @@
{#if rules.total}
<TableScroll>
<TableHeader>
<TableCellHead>Name</TableCellHead>
<TableCellHead width={180}>Verification Status</TableCellHead>
<TableCellHead>Certificate Status</TableCellHead>
<TableCellHead width={150}>Name</TableCellHead>
<TableCellHead width={120}>Verification Status</TableCellHead>
<TableCellHead width={180}>Certificate Status</TableCellHead>
<TableCellHead width={40} />
</TableHeader>
<TableBody>
Expand DownExpand Up@@ -138,7 +138,7 @@
<div class="u-flex u-gap-8 u-cross-center">
<Pill>
<span class="icon-clock u-text-color-gray" aria-hidden="true" />
<p class="text">Waiting to run</p>
<p class="text">Waiting for verification</p>
</Pill>
</div>
{/if}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/wizards/functions/cover.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,7 +35,7 @@
import { marketplace, type MarketplaceTemplate } from '$lib/stores/marketplace';
import { Button } from '$lib/elements/forms';
import { page } from '$app/stores';
import { runtimes } from '$routes/console/project-[project]/functions/store';
import { runtimesList } from '$routes/console/project-[project]/functions/store';
import { trackEvent } from '$lib/actions/analytics';
import type { Models } from '@appwrite.io/console';
import WizardCover from '$lib/layout/wizardCover.svelte';
Expand DownExpand Up@@ -92,7 +92,7 @@
style:--grid-item-size="8rem"
style:--grid-item-size-small-screens="9rem"
style:--grid-gap=".5rem">
{#await $runtimes}
{#await $runtimesList}
{#each Array(6) as _i}
<li>
<button
Expand Down
4 changes: 2 additions & 2 deletions src/lib/wizards/functions/steps/details.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,14 +5,14 @@
import { WizardStep } from '$lib/layout';
import { onMount } from 'svelte';
import { createFunction } from '../store';
import { runtimes } from '$routes/console/project-[project]/functions/store';
import { runtimesList } from '$routes/console/project-[project]/functions/store';

let showCustomId = false;

let options = [];

onMount(async () => {
options = (await $runtimes).runtimes.map((runtime) => ({
options = (await $runtimesList).runtimes.map((runtime) => ({
label: `${runtime.name} - ${runtime.version}`,
value: runtime.$id
}));
Expand Down
4 changes: 2 additions & 2 deletions src/lib/wizards/functions/steps/functionConfiguration.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@
import { onMount } from 'svelte';
import { sdk } from '$lib/stores/sdk';
import { choices, createFunction, installation, repository } from '../store';
import { runtimes } from '$routes/console/project-[project]/functions/store';
import { runtimesList } from '$routes/console/project-[project]/functions/store';

let showCustomId = false;

Expand All@@ -29,7 +29,7 @@
let options = [];

onMount(async () => {
options = (await $runtimes).runtimes.map((runtime) => ({
options = (await $runtimesList).runtimes.map((runtime) => ({
label: `${runtime.name} - ${runtime.version}`,
value: runtime.$id
}));
Expand Down
4 changes: 2 additions & 2 deletions src/lib/wizards/functions/steps/templateConfiguration.svelte
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@
import { Pill } from '$lib/elements';
import { FormList, InputSelect, InputText } from '$lib/elements/forms';
import { WizardStep } from '$lib/layout';
import { runtimes } from '$routes/console/project-[project]/functions/store';
import { runtimesList } from '$routes/console/project-[project]/functions/store';
import { template, templateConfig } from '../store';

let showCustomId = false;
Expand All@@ -15,7 +15,7 @@
}

async function loadRuntimes() {
const options = (await $runtimes).runtimes
const options = (await $runtimesList).runtimes
.map((runtime) => ({
label: `${runtime.name} - ${runtime.version}`,
value: runtime.$id
Expand Down
2 changes: 1 addition & 1 deletion src/routes/console/project-[project]/functions/+layout.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,7 +11,7 @@ export const load: LayoutLoad = async ({ depends }) => {
return {
header: Header,
breadcrumbs: Breadcrumbs,
runtimes: sdk.forProject.functions.listRuntimes(),
runtimesList: sdk.forProject.functions.listRuntimes(),
installations: sdk.forProject.vcs.listInstallations([Query.limit(100)])
};
};
Original file line numberDiff line numberDiff line change
Expand Up@@ -80,7 +80,7 @@
</div>
{#if activeDeployment && !$func.live}
<div class="u-margin-block-start-8">
<Alert type="warning" isStandalone>
<Alert type="warning" isStandalone dismissible>
Some configuration options are not live yet. Redeploy your function to apply
latest changes.
</Alert>
Expand DownExpand Up@@ -150,7 +150,9 @@
on:click={() => {
selectedDeployment = activeDeployment;
showRedeploy = true;
}}>Redeploy</Button>
}}>
Redeploy
</Button>

<Button secondary on:click={() => ($execute = $func)}>Execute now</Button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/console/project-[project]/functions/store.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@ import { page } from '$app/stores';
import { derived } from 'svelte/store';
import type { Models } from '@appwrite.io/console';

export const runtimes = derived(
export const runtimesList = derived(
page,
async ($page) => (await $page.data.runtimes) as Models.RuntimeList
async ($page) => (await $page.data.runtimesList) as Models.RuntimeList
);
Original file line numberDiff line numberDiff line change
Expand Up@@ -168,7 +168,7 @@
style="--grid-item-size:22rem; --grid-item-size-small-screens:19rem">
{#each data.templates as template}
{@const displayed = template.runtimes.slice(0, 2)}
{@const hidden = template.runtimes.slice(2, -1)}
{@const hidden = template.runtimes.slice(1, -1)}
<li>
<article class="card u-min-height-100-percent">
<div class="u-flex u-gap-16 u-cross-center">
Expand DownExpand Up@@ -214,16 +214,15 @@
</p>

<div class="u-flex u-gap-16 u-main-end u-margin-block-start-24">
<a
<Button
href={`${base}/console/project-${$page.params.project}/functions/templates/template-${template.id}`}
class="button is-text">
text>
<span class="text">View details</span>
</a>
<button
class="button is-secondary"
on:click={() => connectTemplate(template)}>
</Button>

<Button secondary on:click={() => connectTemplate(template)}>
<span class="text">Create function</span>
</button>
</Button>
</div>
</article>
</li>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,14 +5,14 @@
import { WizardStep } from '$lib/layout';
import { onMount } from 'svelte';
import { createFunction } from './store';
import { runtimes } from '../store';
import { runtimesList } from '../store';

let showCustomId = false;

let options = [];

onMount(async () => {
options = (await $runtimes).runtimes.map((runtime) => ({
options = (await $runtimesList).runtimes.map((runtime) => ({
label: `${runtime.name} - ${runtime.version}`,
value: runtime.$id
}));
Expand Down