From 5d5637571ba0320e6a641d0f67a07892b617e4e6 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 15 Feb 2021 18:59:21 +0000 Subject: [PATCH] tidy up --- .../integration/KeyValueBuilder.svelte | 5 ++-- .../integration/QueryFieldsBuilder.svelte | 25 +++++++++---------- packages/server/src/api/index.js | 2 -- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/packages/builder/src/components/integration/KeyValueBuilder.svelte b/packages/builder/src/components/integration/KeyValueBuilder.svelte index 92a66f8813..7b4962edcb 100644 --- a/packages/builder/src/components/integration/KeyValueBuilder.svelte +++ b/packages/builder/src/components/integration/KeyValueBuilder.svelte @@ -23,8 +23,8 @@
{#each fields as field, idx} - - + + deleteEntry(idx)} /> {/each}
@@ -36,6 +36,7 @@ grid-template-columns: 1fr 1fr 20px; grid-gap: var(--spacing-m); align-items: center; + margin-bottom: var(--spacing-m); } .ri-close-circle-fill, diff --git a/packages/builder/src/components/integration/QueryFieldsBuilder.svelte b/packages/builder/src/components/integration/QueryFieldsBuilder.svelte index 3de8d317ad..972bc2c373 100644 --- a/packages/builder/src/components/integration/QueryFieldsBuilder.svelte +++ b/packages/builder/src/components/integration/QueryFieldsBuilder.svelte @@ -19,11 +19,6 @@ $: fieldKeys = Object.keys(fields) $: schemaKeys = Object.keys(schema.fields) - $: console.log({ - fields, - schema - }) - function updateCustomFields({ detail }) { fields.customData = detail.value } @@ -34,15 +29,19 @@
{#each schemaKeys as field} {#if schema.fields[field]?.type === "object"} - - +
+ + +
{:else if schema.fields[field]?.type === "json"} - - fields[field] = detail.value} - readOnly={!editable} - value={fields[field]} /> +
+ + fields[field] = detail.value} + readOnly={!editable} + value={fields[field]} /> +
{:else} { router.get("/health", ctx => (ctx.status = 200)) -router.post("/yeet", ctx => (ctx.body = ctx.request.body)) - router.use(authRoutes.routes()) router.use(authRoutes.allowedMethods())