From a6c4e7fd04a2ad4e66b831d5838792bf87b42e37 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 23 Oct 2020 17:18:22 +0100 Subject: [PATCH] Linting. --- .../builderStore/store/automation/index.js | 4 +++- .../BlockList/CreateWebhookModal.svelte | 19 +++++++++---------- .../BlockList/WebhookDisplay.svelte | 13 ++++--------- .../SetupPanel/AutomationBlockSetup.svelte | 2 +- 4 files changed, 17 insertions(+), 21 deletions(-) diff --git a/packages/builder/src/builderStore/store/automation/index.js b/packages/builder/src/builderStore/store/automation/index.js index b6a1941996..3f0743aa1e 100644 --- a/packages/builder/src/builderStore/store/automation/index.js +++ b/packages/builder/src/builderStore/store/automation/index.js @@ -20,7 +20,9 @@ const automationActions = store => ({ } // if previously selected find the new obj and select it if (selected) { - selected = jsonResponses[0].filter(automation => automation._id === selected._id) + selected = jsonResponses[0].filter( + automation => automation._id === selected._id + ) state.selectedAutomation = new Automation(selected[0]) } return state diff --git a/packages/builder/src/components/automation/AutomationPanel/BlockList/CreateWebhookModal.svelte b/packages/builder/src/components/automation/AutomationPanel/BlockList/CreateWebhookModal.svelte index 020293b4bc..02963e59eb 100644 --- a/packages/builder/src/components/automation/AutomationPanel/BlockList/CreateWebhookModal.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/BlockList/CreateWebhookModal.svelte @@ -52,18 +52,17 @@ confirmText="Finished" cancelText="Skip" disabled={!valid}> -

To configure a webhook we need to create a schema for your webhook to validate against. - Use the URL shown below and send a POST request to it with a JSON body in the format that - your webhook should use!

- +

+ To configure a webhook we need to create a schema for your webhook to + validate against. Use the URL shown below and send a + POST + request to it with a JSON body in the format that your webhook should use! +

+
Schema
- - {schema} - + {schema}
- + Learn about webhooks diff --git a/packages/builder/src/components/automation/AutomationPanel/BlockList/WebhookDisplay.svelte b/packages/builder/src/components/automation/AutomationPanel/BlockList/WebhookDisplay.svelte index d8c0283aff..483e0dec86 100644 --- a/packages/builder/src/components/automation/AutomationPanel/BlockList/WebhookDisplay.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/BlockList/WebhookDisplay.svelte @@ -20,14 +20,9 @@
- - copyToClipboard()}> - + + copyToClipboard()}> +
@@ -54,4 +49,4 @@ .copy-btn:hover { background-color: var(--grey-3); } - \ No newline at end of file + diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index d308cf10ab..90593f8064 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -66,7 +66,7 @@ {:else if value.customType === 'row'} {:else if value.customType === 'webhookUrl'} - + {:else if value.type === 'string' || value.type === 'number'}