more work on settings modal
This commit is contained in:
parent
823df59e32
commit
5c67285db3
|
@ -51,7 +51,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@beyonk/svelte-notifications": "^2.0.3",
|
"@beyonk/svelte-notifications": "^2.0.3",
|
||||||
"@budibase/bbui": "^1.8.1",
|
"@budibase/bbui": "^1.10.0",
|
||||||
"@budibase/client": "^0.0.32",
|
"@budibase/client": "^0.0.32",
|
||||||
"@nx-js/compiler-util": "^2.0.0",
|
"@nx-js/compiler-util": "^2.0.0",
|
||||||
"codemirror": "^5.51.0",
|
"codemirror": "^5.51.0",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { General, Permissions, Users, Integrations, DangerZone } from "./tabs"
|
import { General, Users, DangerZone } from "./tabs"
|
||||||
|
|
||||||
import { Input, TextArea, Button, Switcher } from "@budibase/bbui"
|
import { Input, TextArea, Button, Switcher } from "@budibase/bbui"
|
||||||
import { SettingsIcon, CloseIcon } from "components/common/Icons/"
|
import { SettingsIcon, CloseIcon } from "components/common/Icons/"
|
||||||
|
@ -15,21 +15,11 @@
|
||||||
key: "GENERAL",
|
key: "GENERAL",
|
||||||
component: General,
|
component: General,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "Permissions",
|
|
||||||
key: "PERMISSIONS",
|
|
||||||
component: Permissions,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Users",
|
title: "Users",
|
||||||
key: "USERS",
|
key: "USERS",
|
||||||
component: Users,
|
component: Users,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "Integrations",
|
|
||||||
key: "INTEGRATIONS",
|
|
||||||
component: Integrations,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Danger Zone",
|
title: "Danger Zone",
|
||||||
key: "DANGERZONE",
|
key: "DANGERZONE",
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
<h3>
|
||||||
|
<slot />
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
h3 {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--ink);
|
||||||
|
margin-top: var(--space-lg);
|
||||||
|
margin-bottom: var(--space-md);
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,5 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { Input, TextArea, Button } from "@budibase/bbui"
|
import { Input, TextArea, Button } from "@budibase/bbui"
|
||||||
|
import Title from "../TabTitle.svelte"
|
||||||
|
|
||||||
let value = ""
|
let value = ""
|
||||||
let loading = false
|
let loading = false
|
||||||
|
|
||||||
|
@ -10,6 +12,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<Title>Danger Zone</Title>
|
||||||
<div class="background">
|
<div class="background">
|
||||||
<Input
|
<Input
|
||||||
on:change={e => (value = e.target.value)}
|
on:change={e => (value = e.target.value)}
|
||||||
|
@ -32,7 +35,7 @@
|
||||||
<style>
|
<style>
|
||||||
.background {
|
.background {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 16px;
|
grid-gap: var(--space);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: var(--light-grey);
|
background-color: var(--light-grey);
|
||||||
padding: 12px 12px 18px 12px;
|
padding: 12px 12px 18px 12px;
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import { Input, TextArea, Button } from "@budibase/bbui"
|
import { Input, TextArea, Button } from "@budibase/bbui"
|
||||||
|
import Title from "../TabTitle.svelte"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<Title>General</Title>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="background">
|
<div class="background">
|
||||||
<Input thin edit placeholder="Enter your name" label="Name" />
|
<Input thin edit placeholder="Enter your name" label="Name" />
|
||||||
|
@ -14,7 +16,7 @@
|
||||||
<style>
|
<style>
|
||||||
.container {
|
.container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 16px;
|
grid-gap: var(--space);
|
||||||
}
|
}
|
||||||
.background {
|
.background {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
|
@ -1 +1,64 @@
|
||||||
Users
|
<script>
|
||||||
|
import { Input, Select, Button } from "@budibase/bbui"
|
||||||
|
import Title from "../TabTitle.svelte"
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Title>Users</Title>
|
||||||
|
<div class="container">
|
||||||
|
<div class="background">
|
||||||
|
<div class="title">Create new user</div>
|
||||||
|
<Input thin placeholder="Enter name" label="Name" />
|
||||||
|
<Input thin placeholder="Enter Password" label="Password" />
|
||||||
|
<div>
|
||||||
|
<label>Access Level</label>
|
||||||
|
<Select>
|
||||||
|
<option value="admin">Admin</option>
|
||||||
|
<option value="poweruser">Power User</option>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
<div class="create-button">
|
||||||
|
<Button attention>Create</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
label {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.17;
|
||||||
|
font: var(--ink);
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
display: grid;
|
||||||
|
grid-gap: var(--space);
|
||||||
|
}
|
||||||
|
.background {
|
||||||
|
display: grid;
|
||||||
|
grid-gap: var(--space-md);
|
||||||
|
position: relative;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: var(--light-grey);
|
||||||
|
padding: 12px 12px 18px 12px;
|
||||||
|
}
|
||||||
|
.background :global(select) {
|
||||||
|
min-width: 100%;
|
||||||
|
padding: 12px 9px;
|
||||||
|
height: initial;
|
||||||
|
}
|
||||||
|
.create-button {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
font-stretch: normal;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: 1.14;
|
||||||
|
letter-spacing: 0.14px;
|
||||||
|
text-align: left;
|
||||||
|
color: var(--font);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue