Browse Source

Linting.

gh-pages
mike12345567 6 years ago
parent
commit
b2b1f46867
  1. 2
      packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte
  2. 4
      packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte
  3. 14
      packages/builder/src/components/automation/Shared/CreateWebhookModal.svelte
  4. 14
      packages/builder/src/components/deploy/CreateWebhookDeploymentModal.svelte
  5. 4
      packages/builder/src/components/deploy/DeploymentHistory.svelte

2
packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte

@ -78,7 +78,7 @@
{/if}
</div>
{/each}
{#if stepId === "WEBHOOK"}
{#if stepId === 'WEBHOOK'}
<Button wide secondary on:click={() => webhookModal.show()}>
Setup webhook
</Button>

4
packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte

@ -62,7 +62,9 @@
</header>
<div class="content">
{#if $automationStore.selectedBlock}
<AutomationBlockSetup bind:block={$automationStore.selectedBlock} webhookModal={webhookModal} />
<AutomationBlockSetup
bind:block={$automationStore.selectedBlock}
{webhookModal} />
{:else if $automationStore.selectedAutomation}
<div class="block-label">Automation <b>{automation.name}</b></div>
<Button secondary wide on:click={testAutomation}>Test Automation</Button>

14
packages/builder/src/components/automation/Shared/CreateWebhookModal.svelte

@ -48,13 +48,19 @@
cancelText="Skip">
<p>
Webhooks are for receiving data. To make them easier please use the URL
shown below and send a <code>POST</code> request to it from your other application.
If you're unable to do this now then you can skip this step, however we
will not be able to configure bindings for your later actions!
shown below and send a
<code>POST</code>
request to it from your other application. If you're unable to do this now
then you can skip this step, however we will not be able to configure
bindings for your later actions!
</p>
<WebhookDisplay value={schemaURL} />
{#if finished}
<p class="finished-text">Request received! We found {propCount} bindable value{propCount > 1 ? "s" : ""}.</p>
<p class="finished-text">
Request received! We found
{propCount}
bindable value{propCount > 1 ? 's' : ''}.
</p>
{/if}
<div slot="footer">
<a target="_blank" href="https://docs.budibase.com/automate/steps/triggers">

14
packages/builder/src/components/deploy/CreateWebhookDeploymentModal.svelte

@ -13,18 +13,18 @@
webhookUrls = automations.map(automation => {
const trigger = automation.definition.trigger
if (trigger?.stepId === "WEBHOOK" && trigger.inputs) {
return {type: "Automation", name: automation.name, url: trigger.inputs.triggerUrl}
return {
type: "Automation",
name: automation.name,
url: trigger.inputs.triggerUrl,
}
}
})
})
</script>
<ModalContent
title="Webhook Endpoints"
confirmText="Done">
<p>
See below the list of deployed webhook URLs.
</p>
<ModalContent title="Webhook Endpoints" confirmText="Done">
<p>See below the list of deployed webhook URLs.</p>
{#each webhookUrls as webhookUrl}
<div>
<h5>{webhookUrl.type} - {webhookUrl.name}</h5>

4
packages/builder/src/components/deploy/DeploymentHistory.svelte

@ -58,9 +58,7 @@
<a target="_blank" href={`https://${appId}.app.budi.live/${appId}`}>
View Your Deployed App →
</a>
<Button primary on:click={() => modal.show()}>
View webhooks
</Button>
<Button primary on:click={() => modal.show()}>View webhooks</Button>
</div>
</header>
<div class="deployment-list">

Loading…
Cancel
Save