Commit Graph

80 Commits

Author SHA1 Message Date
Martin McKeaveney 0d0f635db4 eslint tidy up 2020-02-25 15:46:04 +00:00
Michael Shanks f0dbfa15bf added _bb.get/setContext to clientApi - for MD components 2020-02-24 16:41:03 +00:00
Michael Shanks dce21f7fbe bugfix: await event handlers 2020-02-24 16:04:13 +00:00
Michael Shanks 6233c01f4f router not properly matching parameterized route 2020-02-24 14:57:34 +00:00
Michael Shanks cbd33daae8 random bug - client setState 2020-02-24 14:57:05 +00:00
Michael Shanks fe57000acd bugfix - client - approotPath not passed correctly 2020-02-24 11:15:08 +00:00
Michael Shanks e09a79fc87 test fixes - store renamed state 2020-02-23 22:18:23 +00:00
Michael Shanks fd810c9910 prettier - auto 2020-02-23 22:18:05 +00:00
Michael Shanks 1a1a9e81e0
Merge pull request #121 from shogunpurple/state-management-v2
State management v2
2020-02-23 22:16:56 +00:00
Michael Shanks ca63862604 publishDev scripts create dirs, so we dont get annoying errors 2020-02-22 22:24:19 +00:00
Michael Shanks d0f3eeca1b pass in routeParams to uiFunctions 2020-02-21 23:01:41 +00:00
Martin McKeaveney a41d25f83e remove unnecessary file 2020-02-21 18:07:08 +00:00
Martin McKeaveney 395dcd1cc2 finished state management ui for v2 2020-02-21 18:02:02 +00:00
Michael Shanks d271ed6a50 some more routing fixes - css now loaded at runtime 2020-02-21 16:52:29 +00:00
Martin McKeaveney 412aa6739f state management bindings 2020-02-21 15:44:48 +00:00
Michael Shanks 56f00f4e1d fix rooting to be able to handle appRootPath 2020-02-21 15:20:00 +00:00
Michael Shanks 4b807d8f09 bindings can now be just a string (store.someValue) 2020-02-21 14:44:48 +00:00
Michael Shanks 83953922d7
Merge branch 'master' into 98-builtin-slot 2020-02-18 17:11:46 +00:00
pngwn f42cfd9fa2 Ensure fallback is alway selected when no route matches. 2020-02-18 16:38:35 +00:00
pngwn 063cb0f41f Add screenslot to current preview. 2020-02-18 15:53:22 +00:00
Michael Shanks 901db64450 router swallows excpetions on pushState
(not supported in iframes, used by builder)
2020-02-18 13:10:57 +00:00
Michael Shanks 4089b52c53
Client Api - New state binding method (#105)
* new binding...
- state manager
- one store per screen
- not passing

* client lib binding - tests passing

* binding fully working again post stateManager

* bugfix with button component

* Control flow ("code") now working, tests passing

* Events List now reading from component definition

* fix to button.svelte - missing props._children
2020-02-18 12:29:38 +00:00
Michael Shanks b7d9e05641
Work on Components API & bugfixes (#102)
* typo - screens not being sent to page save

* removed children arg from hydrateChildren (n/a)

* initialiseChildren does not rerender unless forced

* removed derivatives of initialiseChildren

* renamed initialiseChildren > attachChildren

* standard-components - refactoring

div now container
H1, h2... etc now Heading with type
Select now takes option as _children

* loads of bug fixing

* safe props creation
anytime props are loaded,
we make sure they conform to the components props definition
2020-02-14 11:51:45 +00:00
Michael Shanks c3fa212b31
Lots of poking around to get apps to run, plux fixing tests (#92)
ixing broken tests on client
typo in buildPage.js
fixing some server tests
local datastore uses fs-extra remove, not rmdir
client - loadBudibase - no longer destructuring arg
updated publishdev script for client (reads apps)
prettier fix
some little bug fixes
bugfix - set screens to empty array when falsy
typo in template page.json
replaced "Shard Factor" for "Estimated Count"
2020-02-12 12:45:24 +00:00
Michael Shanks da7339035f
Builder saves backend and front end seperately (#88)
* refactoring server for screens & page layout restructure

* Disable API calls, UI placeholders.

* buildPropsHierarchy is gone & screen has url

* Recent changes.

* router

* router

* updated git-ignore to reinclude server/utilities/builder

* modified cli - budi new create new file structure

* Fix uuid import.

* prettier fixes

* prettier fixes

* prettier fixes

* page/screen restructure.. broken tests

* all tests passing at last

* screen routing tests

* Working screen editor and preview.

* Render page previews to the screen.

* Key input lists to ensure new array references when updating styles.

* Ensure the iframe html and body fills the container.

* Save screens via the API.

* Get all save APIs almost working.

* Write pages.json to disk.

* Use correct API endpoint for saving styles.

* Differentiate between saving properties of screens and pages.

* Add required fields to default pages layouts.

* Add _css default property to newly created screens.

* Add default code property.

* page layout / screens - app output

* backend and fronend save seperately

Co-authored-by: pngwn <pnda007@gmail.com>
2020-02-10 21:35:51 +00:00
Michael Shanks f7bea46f01
Page Layout & Screen restructure (#87)
* refactoring server for screens & page layout restructure

* Disable API calls, UI placeholders.

* buildPropsHierarchy is gone & screen has url

* Recent changes.

* router

* router

* updated git-ignore to reinclude server/utilities/builder

* modified cli - budi new create new file structure

* Fix uuid import.

* prettier fixes

* prettier fixes

* prettier fixes

* page/screen restructure.. broken tests

* all tests passing at last

* screen routing tests

* Working screen editor and preview.

* Render page previews to the screen.

* Key input lists to ensure new array references when updating styles.

* Ensure the iframe html and body fills the container.

* Save screens via the API.

* Get all save APIs almost working.

* Write pages.json to disk.

* Use correct API endpoint for saving styles.

* Differentiate between saving properties of screens and pages.

* Add required fields to default pages layouts.

* Add _css default property to newly created screens.

* Add default code property.

* page layout / screens - app output

Co-authored-by: pngwn <pnda007@gmail.com>
2020-02-10 15:51:09 +00:00
Martin McKeaveney 94eb93b186 running prettier over codebase, removing merge files 2020-02-03 09:24:25 +00:00
Michael Shanks c7cbe6ca8b
#24 - Control Flow (#79)
* removed binding references to array type

* refactored initialiseChildren into seperate file

* render function, with code blocks - tested simple cases

* few mores tests for control flow

* md components - getting TestApp to work

* new render wrapper - bug fix

* client: providing access to component root elements

* code editor working

* code editor improvements
2020-01-31 23:11:50 +00:00
pngwn aa4c7fa1c1
48 builder frontend 2 (#76)
* Implement collapsing component hierarchy.

* Save screen when adding new components.

* Allow creation of nested child components.

* Rename updateComponentProps to setComponentProps

* Compile layout and position properties to css strings.

* Correct ordering errors.

* Compile the css for an entire screen.

* Add unique id for each component.

* Ignore _id props.

* Update client to add correct class names to component elements.

* Add grid-template fields to layout styling panel.

* Inject css into iframe. Minor tweaks.

* Fix unset margins.

* Update failing tests.
2020-01-31 16:01:58 +00:00
Michael Shanks 1ec928e60a
Control flow - Client library foundations (#72)
* removed binding references to array type

* refactored initialiseChildren into seperate file

* render function, with code blocks - tested simple cases

* few mores tests for control flow

* md components - getting TestApp to work

* new render wrapper - bug fix

* client: providing access to component root elements
2020-01-29 23:01:14 +00:00
Michael Shanks 7b1ada5091
Client Lib > Ability to inject code around initialise children (#68)
* removed binding references to array type

* refactored initialiseChildren into seperate file

* render function, with code blocks - tested simple cases

* few mores tests for control flow

* md components - getting TestApp to work

* new render wrapper - bug fix
2020-01-28 14:14:53 +00:00
Michael Shanks ff06c727b9
md components - getting TestApp to work (#63) 2020-01-27 15:26:38 +00:00
Martin McKeaveney 173df7191a Merge branch 'master' of github.com:Budibase/budibase 2020-01-24 13:57:19 +00:00
Michael Shanks b5922e0ff0 added DOM tests for client library 2020-01-24 13:18:31 +00:00
Martin McKeaveney 46a9650f62 v0.0.16 2020-01-23 11:38:11 +00:00
Michael Shanks eac855bb71 #48 restructure. Screens in, user components out. _children static concept 2020-01-17 23:06:42 +00:00
Michael Shanks 57bec22461 v0.0.15 2019-11-12 07:15:59 +00:00
Michael Shanks f4d9629fd2 v0.0.14 2019-11-09 08:14:41 +00:00
Michael Shanks a7ecea82ac fixes for getting started... 2019-11-09 08:14:10 +00:00
Michael Shanks 933a70f3ff v0.0.13 2019-11-05 13:30:53 +00:00
Michael Shanks ed6bb4bf62 v0.0.12 2019-10-19 07:24:35 +01:00
Michael Shanks 63c865ab7d basic cru app possible 2019-10-19 07:24:20 +01:00
Michael Shanks 75f4c6dd68 backup before an f-up 2019-10-18 17:32:03 +01:00
Michael Shanks 89c6dd04c3 bootstra components - backup before comonen control flow 2019-10-16 05:38:45 +01:00
Michael Shanks 11810d7a74 bootstrap components started... 2019-10-14 08:32:20 +01:00
Michael Shanks 8af94150b1 v0.0.11 2019-10-12 08:31:04 +01:00
Michael Shanks a88b56d3c4 v0.0.10 2019-10-12 07:51:01 +01:00
Michael Shanks e3e52ff65d v0.0.9 2019-10-11 19:06:31 +01:00
Michael Shanks 3ad26dffed v0.0.8 2019-10-11 18:58:13 +01:00
Michael Shanks 3c1114d71a v0.0.7 2019-10-11 18:51:03 +01:00