Format and lint

This commit is contained in:
Joe 2020-07-15 11:18:46 +01:00
parent 298fac6db6
commit 767b58a2df
3 changed files with 32 additions and 39 deletions

View File

@ -15,15 +15,12 @@
const joinPath = join("/") const joinPath = join("/")
const normalizedName = name => const normalizedName = name =>
pipe( pipe(name, [
name, trimCharsStart("./"),
[ trimCharsStart("~/"),
trimCharsStart("./"), trimCharsStart("../"),
trimCharsStart("~/"), trimChars(" "),
trimCharsStart("../"), ])
trimChars(" "),
]
)
const changeScreen = screen => { const changeScreen = screen => {
store.setCurrentScreen(screen.props._instanceName) store.setCurrentScreen(screen.props._instanceName)

View File

@ -19,11 +19,7 @@
const capitalise = s => s.substring(0, 1).toUpperCase() + s.substring(1) const capitalise = s => s.substring(0, 1).toUpperCase() + s.substring(1)
const get_name = s => (!s ? "" : last(s.split("/"))) const get_name = s => (!s ? "" : last(s.split("/")))
const get_capitalised_name = name => const get_capitalised_name = name => pipe(name, [get_name, capitalise])
pipe(
name,
[get_name, capitalise]
)
const isScreenslot = name => name === "##builtin/screenslot" const isScreenslot = name => name === "##builtin/screenslot"
const selectComponent = component => { const selectComponent = component => {

View File

@ -211,14 +211,14 @@ export default {
}, },
}, },
// { // {
// _component: "@budibase/standard-components/icon", // _component: "@budibase/standard-components/icon",
// name: "Icon", // name: "Icon",
// description: "A basic component for displaying icons", // description: "A basic component for displaying icons",
// icon: "ri-sun-fill", // icon: "ri-sun-fill",
// children: [], // children: [],
// properties: { // properties: {
// design: { ...all }, // design: { ...all },
// }, // },
// }, // },
{ {
_component: "@budibase/standard-components/link", _component: "@budibase/standard-components/link",
@ -389,17 +389,17 @@ export default {
}, },
children: [], children: [],
}, },
// { // {
// name: "Data List", // name: "Data List",
// _component: "@budibase/standard-components/datalist", // _component: "@budibase/standard-components/datalist",
// description: "Shiny list", // description: "Shiny list",
// icon: "ri-file-list-line", // icon: "ri-file-list-line",
// properties: { // properties: {
// design: { ...all }, // design: { ...all },
// settings: [{ label: "Table", key: "model", control: ModelSelect }], // settings: [{ label: "Table", key: "model", control: ModelSelect }],
// }, // },
// children: [], // children: [],
// }, // },
{ {
name: "List", name: "List",
_component: "@budibase/standard-components/list", _component: "@budibase/standard-components/list",
@ -424,12 +424,12 @@ export default {
children: [], children: [],
}, },
// { // {
// name: "Map", // name: "Map",
// _component: "@budibase/standard-components/datamap", // _component: "@budibase/standard-components/datamap",
// description: "Shiny map", // description: "Shiny map",
// icon: "ri-map-pin-line", // icon: "ri-map-pin-line",
// properties: { design: { ...all } }, // properties: { design: { ...all } },
// children: [], // children: [],
// }, // },
], ],
}, },