forked from tsai/budibase
22 changed files with 90 additions and 173 deletions
@ -1,40 +0,0 @@ |
|||||
<script> |
|
||||
import { Label } from "@budibase/bbui" |
|
||||
import { getBindableProperties } from "builderStore/dataBinding" |
|
||||
import { currentAsset, store } from "builderStore" |
|
||||
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte" |
|
||||
|
|
||||
export let parameters |
|
||||
|
|
||||
let bindingDrawer |
|
||||
$: bindings = getBindableProperties($currentAsset, $store.selectedComponentId) |
|
||||
</script> |
|
||||
|
|
||||
<div class="root"> |
|
||||
<Label small>Email</Label> |
|
||||
<DrawerBindableInput |
|
||||
title="Email" |
|
||||
value={parameters.email} |
|
||||
on:change={value => (parameters.email = value.detail)} |
|
||||
{bindings} |
|
||||
/> |
|
||||
<Label small>Password</Label> |
|
||||
<DrawerBindableInput |
|
||||
title="Password" |
|
||||
value={parameters.password} |
|
||||
on:change={value => (parameters.password = value.detail)} |
|
||||
{bindings} |
|
||||
/> |
|
||||
</div> |
|
||||
|
|
||||
<style> |
|
||||
.root { |
|
||||
display: grid; |
|
||||
column-gap: var(--spacing-l); |
|
||||
row-gap: var(--spacing-s); |
|
||||
grid-template-columns: auto 1fr; |
|
||||
align-items: baseline; |
|
||||
max-width: 800px; |
|
||||
margin: 0 auto; |
|
||||
} |
|
||||
</style> |
|
||||
@ -1,14 +0,0 @@ |
|||||
<script> |
|
||||
import { Body } from "@budibase/bbui" |
|
||||
</script> |
|
||||
|
|
||||
<div class="root"> |
|
||||
<Body size="S">This action doesn't require any additional settings.</Body> |
|
||||
</div> |
|
||||
|
|
||||
<style> |
|
||||
.root { |
|
||||
max-width: 800px; |
|
||||
margin: 0 auto; |
|
||||
} |
|
||||
</style> |
|
||||
@ -0,0 +1,18 @@ |
|||||
|
<script> |
||||
|
import { auth } from "stores/portal" |
||||
|
import { onMount } from "svelte" |
||||
|
import { redirect } from "@roxi/routify" |
||||
|
|
||||
|
// If already authenticated, redirect away from the auth section. |
||||
|
// Check this onMount rather than a reactive statement to avoid trumping |
||||
|
// the login return URL functionality. |
||||
|
onMount(() => { |
||||
|
if ($auth.user) { |
||||
|
$redirect("../") |
||||
|
} |
||||
|
}) |
||||
|
</script> |
||||
|
|
||||
|
{#if !$auth.user} |
||||
|
<slot /> |
||||
|
{/if} |
||||
Loading…
Reference in new issue