mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #524 from appwrite/fix-lastminute-1.4-qa
fix: lastminute 1.4 qa
This commit is contained in:
@@ -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>
|
||||
@@ -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}
|
||||
|
||||
@@ -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';
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}));
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
}));
|
||||
|
||||
@@ -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;
|
||||
@@ -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
|
||||
|
||||
@@ -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)])
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
@@ -150,7 +150,9 @@
|
||||
on:click={() => {
|
||||
selectedDeployment = activeDeployment;
|
||||
showRedeploy = true;
|
||||
}}>Redeploy</Button>
|
||||
}}>
|
||||
Redeploy
|
||||
</Button>
|
||||
|
||||
<Button secondary on:click={() => ($execute = $func)}>Execute now</Button>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
@@ -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">
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user