From 149c8a54d21f3b5e2fa7e0ca84ca02ec16cae0a5 Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Wed, 15 Jul 2020 11:18:46 +0100 Subject: [PATCH] Format and lint --- .../userInterface/ComponentsHierarchy.svelte | 15 +++--- .../ComponentsHierarchyChildren.svelte | 6 +-- .../userInterface/temporaryPanelStructure.js | 50 +++++++++---------- 3 files changed, 32 insertions(+), 39 deletions(-) diff --git a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte index 80aad3fe39..fbe9121623 100644 --- a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte +++ b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte @@ -15,15 +15,12 @@ const joinPath = join("/") const normalizedName = name => - pipe( - name, - [ - trimCharsStart("./"), - trimCharsStart("~/"), - trimCharsStart("../"), - trimChars(" "), - ] - ) + pipe(name, [ + trimCharsStart("./"), + trimCharsStart("~/"), + trimCharsStart("../"), + trimChars(" "), + ]) const changeScreen = screen => { store.setCurrentScreen(screen.props._instanceName) diff --git a/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte b/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte index d827a88f86..691d188b07 100644 --- a/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte +++ b/packages/builder/src/components/userInterface/ComponentsHierarchyChildren.svelte @@ -19,11 +19,7 @@ const capitalise = s => s.substring(0, 1).toUpperCase() + s.substring(1) const get_name = s => (!s ? "" : last(s.split("/"))) - const get_capitalised_name = name => - pipe( - name, - [get_name, capitalise] - ) + const get_capitalised_name = name => pipe(name, [get_name, capitalise]) const isScreenslot = name => name === "##builtin/screenslot" const selectComponent = component => { diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 6f57c467ae..05c66bdeb6 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -211,14 +211,14 @@ export default { }, }, // { - // _component: "@budibase/standard-components/icon", - // name: "Icon", - // description: "A basic component for displaying icons", - // icon: "ri-sun-fill", - // children: [], - // properties: { - // design: { ...all }, - // }, + // _component: "@budibase/standard-components/icon", + // name: "Icon", + // description: "A basic component for displaying icons", + // icon: "ri-sun-fill", + // children: [], + // properties: { + // design: { ...all }, + // }, // }, { _component: "@budibase/standard-components/link", @@ -389,17 +389,17 @@ export default { }, children: [], }, - // { - // name: "Data List", - // _component: "@budibase/standard-components/datalist", - // description: "Shiny list", - // icon: "ri-file-list-line", - // properties: { - // design: { ...all }, - // settings: [{ label: "Table", key: "model", control: ModelSelect }], - // }, - // children: [], - // }, + // { + // name: "Data List", + // _component: "@budibase/standard-components/datalist", + // description: "Shiny list", + // icon: "ri-file-list-line", + // properties: { + // design: { ...all }, + // settings: [{ label: "Table", key: "model", control: ModelSelect }], + // }, + // children: [], + // }, { name: "List", _component: "@budibase/standard-components/list", @@ -424,12 +424,12 @@ export default { children: [], }, // { - // name: "Map", - // _component: "@budibase/standard-components/datamap", - // description: "Shiny map", - // icon: "ri-map-pin-line", - // properties: { design: { ...all } }, - // children: [], + // name: "Map", + // _component: "@budibase/standard-components/datamap", + // description: "Shiny map", + // icon: "ri-map-pin-line", + // properties: { design: { ...all } }, + // children: [], // }, ], },