Formatting.
This commit is contained in:
parent
7634ed6869
commit
810b3c34b7
|
@ -1,4 +1,4 @@
|
||||||
<script>
|
<script>
|
||||||
import { goto } from "@sveltech/routify"
|
import { goto } from "@sveltech/routify"
|
||||||
import { automationStore, backendUiStore } from "builderStore"
|
import { automationStore, backendUiStore } from "builderStore"
|
||||||
import { notifier } from "builderStore/store/notifications"
|
import { notifier } from "builderStore/store/notifications"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
automation,
|
automation,
|
||||||
})
|
})
|
||||||
notifier.success("Automation deleted.")
|
notifier.success("Automation deleted.")
|
||||||
$goto('../automate')
|
$goto("../automate")
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
async function deleteDatasource() {
|
async function deleteDatasource() {
|
||||||
await backendUiStore.actions.datasources.delete(datasource)
|
await backendUiStore.actions.datasources.delete(datasource)
|
||||||
notifier.success("Datasource deleted")
|
notifier.success("Datasource deleted")
|
||||||
$goto('./datasource')
|
$goto("./datasource")
|
||||||
hideEditor()
|
hideEditor()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -119,11 +119,13 @@
|
||||||
{#if deployment.status.toLowerCase() === 'pending'}
|
{#if deployment.status.toLowerCase() === 'pending'}
|
||||||
<Spinner size="10" />
|
<Spinner size="10" />
|
||||||
{/if}
|
{/if}
|
||||||
<div on:click={() => showErrorReasonModal(deployment.err)} class={`deployment-status ${deployment.status}`}>
|
<div
|
||||||
|
on:click={() => showErrorReasonModal(deployment.err)}
|
||||||
|
class={`deployment-status ${deployment.status}`}>
|
||||||
<span>
|
<span>
|
||||||
{deployment.status}
|
{deployment.status}
|
||||||
{#if deployment.status === DeploymentStatus.FAILURE}
|
{#if deployment.status === DeploymentStatus.FAILURE}
|
||||||
<i class="ri-information-line"/>
|
<i class="ri-information-line" />
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import AutomationBuilder from "components/automation/AutomationBuilder/AutomationBuilder.svelte"
|
import AutomationBuilder from "components/automation/AutomationBuilder/AutomationBuilder.svelte"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<AutomationBuilder />
|
<AutomationBuilder />
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
<script>
|
<script>
|
||||||
import { goto, leftover } from "@sveltech/routify"
|
import { goto, leftover } from "@sveltech/routify"
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from "svelte"
|
||||||
import { automationStore } from "builderStore"
|
import { automationStore } from "builderStore"
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
// navigate to first automation in list, if not already selected
|
// navigate to first automation in list, if not already selected
|
||||||
if (
|
if (
|
||||||
!$leftover &&
|
!$leftover &&
|
||||||
$automationStore.automations.length > 0 &&
|
$automationStore.automations.length > 0 &&
|
||||||
(!$automationStore.selectedAutomation || !$automationStore.selectedAutomation?.automation?._id)
|
(!$automationStore.selectedAutomation ||
|
||||||
) {
|
!$automationStore.selectedAutomation?.automation?._id)
|
||||||
$goto(`../${$automationStore.automations[0]._id}`)
|
) {
|
||||||
}
|
$goto(`../${$automationStore.automations[0]._id}`)
|
||||||
})
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<i>Create your first automation to get started</i>
|
<i>Create your first automation to get started</i>
|
||||||
|
@ -23,4 +24,4 @@
|
||||||
color: var(--grey-5);
|
color: var(--grey-5);
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
let tab = $isActive('./datasource') ? "datasource" : "table"
|
let tab = $isActive("./datasource") ? "datasource" : "table"
|
||||||
|
|
||||||
function selectFirstTableOrSource({ detail }) {
|
function selectFirstTableOrSource({ detail }) {
|
||||||
const type = detail.heading.key
|
const type = detail.heading.key
|
||||||
if (type === 'datasource') {
|
if (type === "datasource") {
|
||||||
$goto("./datasource")
|
$goto("./datasource")
|
||||||
} else {
|
} else {
|
||||||
$goto("./table")
|
$goto("./table")
|
||||||
|
@ -34,7 +34,10 @@
|
||||||
<!-- routify:options index=0 -->
|
<!-- routify:options index=0 -->
|
||||||
<div class="root">
|
<div class="root">
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
<Switcher headings={tabs} bind:value={tab} on:change={selectFirstTableOrSource}>
|
<Switcher
|
||||||
|
headings={tabs}
|
||||||
|
bind:value={tab}
|
||||||
|
on:change={selectFirstTableOrSource}>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<i
|
<i
|
||||||
data-cy={`new-${tab}`}
|
data-cy={`new-${tab}`}
|
||||||
|
|
|
@ -3,9 +3,7 @@
|
||||||
import { backendUiStore } from "builderStore"
|
import { backendUiStore } from "builderStore"
|
||||||
|
|
||||||
if ($params.query) {
|
if ($params.query) {
|
||||||
const query = $backendUiStore.queries.find(
|
const query = $backendUiStore.queries.find(m => m._id === $params.query)
|
||||||
m => m._id === $params.query
|
|
||||||
)
|
|
||||||
if (query) {
|
if (query) {
|
||||||
backendUiStore.actions.queries.select(query)
|
backendUiStore.actions.queries.select(query)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
<script>
|
<script>
|
||||||
import { backendUiStore } from "builderStore"
|
import { backendUiStore } from "builderStore"
|
||||||
import { goto } from "@sveltech/routify"
|
import { goto } from "@sveltech/routify"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
// navigate to first table in list, if not already selected
|
// navigate to first table in list, if not already selected
|
||||||
$backendUiStore.datasources.length > 0 && $goto(`../${$backendUiStore.datasources[0]._id}`)
|
$backendUiStore.datasources.length > 0 &&
|
||||||
})
|
$goto(`../${$backendUiStore.datasources[0]._id}`)
|
||||||
</script>
|
})
|
||||||
|
</script>
|
||||||
{#if $backendUiStore.tables.length === 0}
|
|
||||||
<i>Connect your first datasource to start building.</i>
|
{#if $backendUiStore.tables.length === 0}
|
||||||
{:else}<i>Select a datasource to edit</i>{/if}
|
<i>Connect your first datasource to start building.</i>
|
||||||
|
{:else}<i>Select a datasource to edit</i>{/if}
|
||||||
<style>
|
|
||||||
i {
|
<style>
|
||||||
font-size: var(--font-size-m);
|
i {
|
||||||
color: var(--grey-5);
|
font-size: var(--font-size-m);
|
||||||
margin-top: 2px;
|
color: var(--grey-5);
|
||||||
}
|
margin-top: 2px;
|
||||||
</style>
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
$backendUiStore.tables.length > 0 && $goto(`../${$backendUiStore.tables[0]._id}`)
|
$backendUiStore.tables.length > 0 &&
|
||||||
|
$goto(`../${$backendUiStore.tables[0]._id}`)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue