Lint and remove unused section properties

This commit is contained in:
Andrew Kingston 2021-06-18 12:44:53 +01:00
parent be03bbe5bc
commit be6e7d52eb
4 changed files with 1 additions and 23 deletions

View File

@ -1,5 +1,5 @@
<script> <script>
import { TextArea, DetailSummary, Button, Select } from "@budibase/bbui" import { TextArea, DetailSummary, Button } from "@budibase/bbui"
import PropertyGroup from "./PropertyControls/PropertyGroup.svelte" import PropertyGroup from "./PropertyControls/PropertyGroup.svelte"
import FlatButtonGroup from "./PropertyControls/FlatButtonGroup" import FlatButtonGroup from "./PropertyControls/FlatButtonGroup"
import { allStyles } from "./componentStyles" import { allStyles } from "./componentStyles"
@ -23,8 +23,6 @@
{ value: "active", text: "Active" }, { value: "active", text: "Active" },
] ]
const capitalize = ([first, ...rest]) => first.toUpperCase() + rest.join("")
$: groups = componentDefinition?.styleable ? Object.keys(allStyles) : [] $: groups = componentDefinition?.styleable ? Object.keys(allStyles) : []
</script> </script>

View File

@ -29,7 +29,6 @@
</script> </script>
<ActionButton on:click={modal.show}>{layoutMap[value].name}</ActionButton> <ActionButton on:click={modal.show}>{layoutMap[value].name}</ActionButton>
<Modal bind:this={modal}> <Modal bind:this={modal}>
<ModalContent <ModalContent
onConfirm={() => dispatch("change", selected)} onConfirm={() => dispatch("change", selected)}
@ -65,7 +64,6 @@
display: grid; display: grid;
place-items: center; place-items: center;
background: var(--background-alt); background: var(--background-alt);
border-radius: 3px;
grid-gap: var(--spectrum-alias-grid-margin-xsmall); grid-gap: var(--spectrum-alias-grid-margin-xsmall);
padding: var(--spectrum-alias-item-padding-s); padding: var(--spectrum-alias-item-padding-s);
transition: 0.3s all; transition: 0.3s all;

View File

@ -188,7 +188,6 @@
"type": "section", "type": "section",
"label": "Type", "label": "Type",
"key": "type", "key": "type",
"options": ["mainSidebar", "sidebarMain", "twoColumns", "threeColumns"],
"defaultValue": "mainSidebar" "defaultValue": "mainSidebar"
} }
] ]

View File

@ -6,7 +6,6 @@
const component = getContext("component") const component = getContext("component")
export let type = "mainSidebar" export let type = "mainSidebar"
export let gap = "16px"
export let minSize = 250 export let minSize = 250
let layoutMap = { let layoutMap = {
@ -67,22 +66,6 @@
.columns-2 { .columns-2 {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
p {
background-color: var(--grey-3);
color: var(--grey-6);
font-size: var(--font-size-s);
padding: var(--spacing-l);
border-radius: var(--border-radius-s);
display: grid;
place-items: center;
}
p i {
margin-bottom: var(--spacing-m);
font-size: 1.5rem;
color: var(--grey-5);
}
.placeholder { .placeholder {
border: 2px dashed var(--grey-5); border: 2px dashed var(--grey-5);
padding: var(--spacing-l); padding: var(--spacing-l);