Commit Graph

33 Commits

Author SHA1 Message Date
Michael Shanks 4809105fc3 Merge branch 'master' of github.com:Budibase/budibase 2020-02-25 17:06:00 +00:00
Michael Shanks 754a9bce16 broken tests: buildCodeForScreens.spec 2020-02-25 16:27:52 +00:00
Martin McKeaveney 7ae40de558 eslint tidy up 2020-02-25 15:46:04 +00:00
Michael Shanks ab0db65048 bindings can now be just a string (store.someValue) 2020-02-21 14:44:48 +00:00
Michael Shanks c9961feee5 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
Martin McKeaveney 695781c149 move state origin build from server to client 2020-02-12 15:10:31 +00:00
Michael Shanks 8a80d8801a 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 0808178dfa running prettier over codebase, removing merge files 2020-02-03 09:24:25 +00:00
Michael Shanks 7ae29a6030 #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 5aa44a88a4 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
pngwn 0490441d09 Remove unused validateProps module and tests 2020-01-24 16:39:25 +00:00
Michael Shanks 4e09043e3a #48 restructure. Screens in, user components out. _children static concept 2020-01-17 23:06:42 +00:00
Michael Shanks 2f028b1f1e generators.. 2019-10-07 06:03:41 +01:00
Michael Shanks 1529277b11 lots of bugfixes and component changes 2019-10-03 06:12:13 +01:00
Michael Shanks cb6fe94584 Event bindings with context, array binding, Table component... 2019-09-27 17:03:31 +01:00
Michael Shanks be2fe07395 Events and state binding 2019-09-20 08:01:35 +01:00
Michael Shanks 70ddecfab0 data binding and stndard componets work 2019-09-19 04:35:40 +01:00
michael shanks dc0ad5c0d1 buildPropsHierarchy + test 2019-09-06 17:25:06 +01:00
michael shanks ef0b1a102e bug when saving components 2019-08-22 07:57:56 +01:00
michael shanks 0d7d9f471e Edit component pane improvements 2019-08-16 15:48:45 +01:00
michael shanks 3bcef7f668 component inheritance working 2019-08-15 08:49:15 +01:00
michael shanks fb9f4f6158 backup 2019-08-14 22:11:59 +01:00
michael shanks 21224b119b builder ui changes - UI builder in progress 2019-08-07 09:03:49 +01:00
michael shanks ca63769204 backup before blame 2019-08-04 22:21:16 +01:00
michael shanks 698a5678ed incorrect imports, after folder rename 2019-07-29 07:48:40 +01:00
michael shanks fe67c21627 search tests 2019-07-28 12:45:00 +01:00
michael shanks 1413ee6f2c searching components 2019-07-28 08:03:11 +01:00
michael shanks 4891c6de80 adding in routes for components and pages 2019-07-25 07:31:54 +01:00
michael shanks 70082147c7 validate pages... started testing 2019-07-23 08:33:49 +01:00
michael shanks 886e5c6b2d recursive validation of component heirarchy 2019-07-21 09:36:20 +01:00
michael shanks 0b94346104 recursive validation of props 2019-07-20 21:41:06 +01:00
michael shanks ca74258c04 validating component props 2019-07-19 18:03:58 +01:00
michael shanks a81af3f18b component prop definition - create 2019-07-19 12:52:08 +01:00