Move data to builder
This commit is contained in:
parent
3c4ac9ad5a
commit
75dab572e9
|
@ -68,6 +68,9 @@
|
|||
port: window.location.port,
|
||||
},
|
||||
snippets: $snippets,
|
||||
componentErrors: {
|
||||
c5ea93132725c48b2a365fcc1facaee86: ["Ups...!"],
|
||||
}, // TODO
|
||||
}
|
||||
|
||||
// Refresh the preview when required
|
||||
|
|
|
@ -43,6 +43,7 @@ const loadBudibase = async () => {
|
|||
usedPlugins: window["##BUDIBASE_USED_PLUGINS##"],
|
||||
location: window["##BUDIBASE_LOCATION##"],
|
||||
snippets: window["##BUDIBASE_SNIPPETS##"],
|
||||
componentErrors: window["##BUDIBASE_COMPONENT_ERRORS##"],
|
||||
})
|
||||
|
||||
// Set app ID - this window flag is set by both the preview and the real
|
||||
|
|
|
@ -19,9 +19,7 @@ const createBuilderStore = () => {
|
|||
eventResolvers: {},
|
||||
metadata: null,
|
||||
snippets: null,
|
||||
componentErrors: {
|
||||
c5ea93132725c48b2a365fcc1facaee86: ["Ups...!"],
|
||||
}, // TODO
|
||||
componentErrors: {},
|
||||
|
||||
// Legacy - allow the builder to specify a layout
|
||||
layout: null,
|
||||
|
|
|
@ -73,7 +73,8 @@
|
|||
hiddenComponentIds,
|
||||
usedPlugins,
|
||||
location,
|
||||
snippets
|
||||
snippets,
|
||||
componentErrors
|
||||
} = parsed
|
||||
|
||||
// Set some flags so the app knows we're in the builder
|
||||
|
@ -91,6 +92,7 @@
|
|||
window["##BUDIBASE_USED_PLUGINS##"] = usedPlugins
|
||||
window["##BUDIBASE_LOCATION##"] = location
|
||||
window["##BUDIBASE_SNIPPETS##"] = snippets
|
||||
window['##BUDIBASE_COMPONENT_ERRORS##'] = componentErrors
|
||||
|
||||
// Initialise app
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue