|
|
|
@ -1,6 +1,5 @@ |
|
|
|
<script> |
|
|
|
import { Input, Select, Button } from "@budibase/bbui" |
|
|
|
import Title from "../TabTitle.svelte" |
|
|
|
import UserRow from "../UserRow.svelte" |
|
|
|
|
|
|
|
import { store, backendUiStore } from "builderStore" |
|
|
|
@ -52,9 +51,8 @@ |
|
|
|
let fetchUsersPromise = fetchUsers() |
|
|
|
</script> |
|
|
|
|
|
|
|
<Title>Users</Title> |
|
|
|
<div class="container"> |
|
|
|
<div class="background create"> |
|
|
|
<div class="background"> |
|
|
|
<div class="title">Create new user</div> |
|
|
|
<div class="inputs"> |
|
|
|
<Input thin bind:value={username} name="Name" placeholder="Username" /> |
|
|
|
@ -69,10 +67,10 @@ |
|
|
|
</Select> |
|
|
|
</div> |
|
|
|
<div class="create-button"> |
|
|
|
<Button on:click={createUser} small blue>Create</Button> |
|
|
|
<Button on:click={createUser} small primary>Create</Button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="background"> |
|
|
|
<div class="background-users"> |
|
|
|
<div class="title">Current Users</div> |
|
|
|
{#await fetchUsersPromise} |
|
|
|
Loading state! |
|
|
|
@ -96,23 +94,27 @@ |
|
|
|
<style> |
|
|
|
.container { |
|
|
|
display: grid; |
|
|
|
grid-gap: 14px; |
|
|
|
grid-gap: 32px; |
|
|
|
margin-top: 32px; |
|
|
|
} |
|
|
|
.background { |
|
|
|
position: relative; |
|
|
|
display: grid; |
|
|
|
grid-gap: 12px; |
|
|
|
border-radius: 5px; |
|
|
|
background-color: var(--grey-1); |
|
|
|
padding: 12px 12px 18px 12px; |
|
|
|
} |
|
|
|
.background.create { |
|
|
|
background-color: var(--blue-light); |
|
|
|
|
|
|
|
.background-users { |
|
|
|
position: relative; |
|
|
|
display: grid; |
|
|
|
grid-gap: 12px; |
|
|
|
border-radius: 5px; |
|
|
|
} |
|
|
|
|
|
|
|
.create-button { |
|
|
|
position: absolute; |
|
|
|
top: 12px; |
|
|
|
right: 12px; |
|
|
|
top: 0px; |
|
|
|
right: 0px; |
|
|
|
} |
|
|
|
.create-button :global(button) { |
|
|
|
font-size: var(--font-size-sm); |
|
|
|
@ -125,6 +127,7 @@ |
|
|
|
} |
|
|
|
.inputs { |
|
|
|
display: grid; |
|
|
|
margin-top: 12px; |
|
|
|
grid-gap: 18px; |
|
|
|
grid-template-columns: 1fr 1fr 1fr; |
|
|
|
} |
|
|
|
@ -133,13 +136,15 @@ |
|
|
|
border-radius: var(--rounded-small); |
|
|
|
} |
|
|
|
.inputs :global(select) { |
|
|
|
padding: 9px 12px; |
|
|
|
padding: 10px 12px; |
|
|
|
border-radius: var(--rounded-small); |
|
|
|
background-color: var(--grey-2); |
|
|
|
} |
|
|
|
ul { |
|
|
|
list-style: none; |
|
|
|
padding: 0; |
|
|
|
display: grid; |
|
|
|
grid-gap: 8px; |
|
|
|
margin-top: 0; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|