Merge branch 'master' into builder/consolidating-missing-code

This commit is contained in:
Conor_Mack 2020-06-16 12:17:32 +01:00 committed by GitHub
commit 37ed95fa96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 5 deletions

View File

@ -40,7 +40,8 @@
let panelDefinition = {} let panelDefinition = {}
$: panelDefinition = componentPropDefinition.properties && $: panelDefinition =
componentPropDefinition.properties &&
componentPropDefinition.properties[selectedCategory.value] componentPropDefinition.properties[selectedCategory.value]
const onStyleChanged = store.setComponentStyle const onStyleChanged = store.setComponentStyle
@ -105,6 +106,7 @@
displayNameField={displayName} displayNameField={displayName}
onChange={onPropChanged} onChange={onPropChanged}
screenOrPageInstance={$store.currentView !== "component" && $store.currentPreviewItem} /> screenOrPageInstance={$store.currentView !== "component" && $store.currentPreviewItem} />
{:else if selectedCategory.value === 'events'} {:else if selectedCategory.value === 'events'}
<EventsEditor component={componentInstance} /> <EventsEditor component={componentInstance} />
{/if} {/if}

View File

@ -21,7 +21,6 @@
data.target ? onChange(key, data.target.value) : onChange(key, data) data.target ? onChange(key, data.target.value) : onChange(key, data)
} }
const screenDefinition = [ const screenDefinition = [
{ key: "description", label: "Description", control: Input }, { key: "description", label: "Description", control: Input },
{ key: "route", label: "Route", control: Input }, { key: "route", label: "Route", control: Input },
@ -34,7 +33,6 @@
$: isPage = screenOrPageInstance && screenOrPageInstance.favicon $: isPage = screenOrPageInstance && screenOrPageInstance.favicon
$: screenOrPageDefinition = isPage ? pageDefinition : screenDefinition $: screenOrPageDefinition = isPage ? pageDefinition : screenDefinition
</script> </script>
{#if screenOrPageInstance} {#if screenOrPageInstance}
@ -47,7 +45,7 @@
{onChange} {onChange}
props={{ ...excludeProps(def, ['control', 'label']) }} /> props={{ ...excludeProps(def, ['control', 'label']) }} />
{/each} {/each}
<hr/> <hr />
{/if} {/if}
{#if displayNameField} {#if displayNameField}

View File

@ -0,0 +1,11 @@
FROM node:12-alpine
WORKDIR /app
# copy files and install dependencies
COPY . ./
RUN yarn
EXPOSE 4001
CMD ["yarn", "run:docker"]

View File

@ -27,6 +27,7 @@
"test:integration": "jest workflow --runInBand", "test:integration": "jest workflow --runInBand",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"initialise": "node ../cli/bin/budi init -b local -q", "initialise": "node ../cli/bin/budi init -b local -q",
"run:docker": "node src/index",
"budi": "node ../cli/bin/budi", "budi": "node ../cli/bin/budi",
"dev:builder": "nodemon ../cli/bin/budi run", "dev:builder": "nodemon ../cli/bin/budi run",
"electron": "electron src/electron.js", "electron": "electron src/electron.js",

View File

@ -0,0 +1,13 @@
const { resolve } = require("path")
async function runServer() {
const budibaseDir = "~/.budibase"
process.env.BUDIBASE_DIR = resolve(budibaseDir)
const server = await require("./app")()
server.on("close", () => console.log("Server Closed"))
console.log(`Budibase running on ${JSON.stringify(server.address())}`)
}
runServer()