more remix replacements

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-23 12:20:38 +02:00
parent 81f10890b9
commit c8d6e230c6
2 changed files with 14 additions and 27 deletions

View File

@ -1,4 +1,5 @@
<script> <script>
import { Icon } from "@budibase/bbui"
import { automationStore } from "builderStore" import { automationStore } from "builderStore"
import { database } from "stores/backend" import { database } from "stores/backend"
import WebhookDisplay from "./WebhookDisplay.svelte" import WebhookDisplay from "./WebhookDisplay.svelte"
@ -41,28 +42,30 @@
title="Webhook Setup" title="Webhook Setup"
confirmText="Finished" confirmText="Finished"
showConfirmButton={finished} showConfirmButton={finished}
cancelText="Skip"> cancelText="Skip"
>
<p> <p>
Webhooks are for receiving data. To make them easier please use the URL Webhooks are for receiving data. To make them easier please use the URL
shown below and send a shown below and send a
<code>POST</code> <code>POST</code>
request to it from your other application. If you're unable to do this now request to it from your other application. If you're unable to do this now then
then you can skip this step, however we will not be able to configure you can skip this step, however we will not be able to configure bindings for
bindings for your later actions! your later actions!
</p> </p>
<WebhookDisplay value={schemaURL} /> <WebhookDisplay value={schemaURL} />
{#if finished} {#if finished}
<p class="finished-text"> <p class="finished-text">
Request received! We found Request received! We found
{propCount} {propCount}
bindable value{propCount > 1 ? 's' : ''}. bindable value{propCount > 1 ? "s" : ""}.
</p> </p>
{/if} {/if}
<a <a
slot="footer" slot="footer"
target="_blank" target="_blank"
href="https://docs.budibase.com/automate/steps/triggers"> href="https://docs.budibase.com/automate/steps/triggers"
<i class="ri-information-line" /> >
<Icon name="InfoOutline" />
<span>Learn about webhooks</span> <span>Learn about webhooks</span>
</a> </a>
</ModalContent> </ModalContent>
@ -78,11 +81,7 @@
} }
a span { a span {
text-decoration: underline; text-decoration: underline;
} margin-left: var(--spectrum-alias-item-padding-s);
i {
font-size: 20px;
margin-right: var(--spacing-m);
text-decoration: none;
} }
p { p {
margin: 0; margin: 0;

View File

@ -1,5 +1,5 @@
<script> <script>
import { Popover } from "@budibase/bbui" import { Icon, Popover } from "@budibase/bbui"
import { store } from "builderStore" import { store } from "builderStore"
import { onMount } from "svelte" import { onMount } from "svelte"
@ -13,7 +13,7 @@
onMount(() => { onMount(() => {
const interval = setInterval(() => { const interval = setInterval(() => {
store.update(state => { store.update((state) => {
state.highlightFeedbackIcon = analytics.highlightFeedbackIcon() state.highlightFeedbackIcon = analytics.highlightFeedbackIcon()
return state return state
}) })
@ -23,7 +23,7 @@
</script> </script>
<div class="container" bind:this={iconContainer} on:click={popover.show}> <div class="container" bind:this={iconContainer} on:click={popover.show}>
<i class="ri-feedback-line" class:highlight={$store.highlightFeedbackIcon} /> <Icon hoverable name="Feedback" />
</div> </div>
<div class="iframe"> <div class="iframe">
<Popover bind:this={popover} anchor={iconContainer} align="right"> <Popover bind:this={popover} anchor={iconContainer} align="right">
@ -32,15 +32,6 @@
</div> </div>
<style> <style>
i {
font-size: 18px;
color: var(--grey-7);
}
i.highlight {
color: var(--blue);
filter: drop-shadow(0 0 20px var(--blue));
}
.container { .container {
cursor: pointer; cursor: pointer;
color: var(--grey-7); color: var(--grey-7);
@ -54,9 +45,6 @@
height: 24px; height: 24px;
width: 24px; width: 24px;
} }
.container:hover i {
color: var(--ink);
}
.iframe :global(.menu-container) { .iframe :global(.menu-container) {
background-color: white; background-color: white;