1
0
Fork 0
mirror of synced 2024-09-14 08:18:31 +12:00
Commit graph

89 commits

Author SHA1 Message Date
Michael Shanks
a286385e57 bugfixes... incorrect routing from builder to instances 2020-03-11 16:42:19 +00:00
Martin McKeaveney
7c55007c4e remove commented code 2020-03-07 23:52:47 +00:00
Martin McKeaveney
e6fbdc2646 icons instead of text 2020-03-06 17:00:54 +00:00
Martin McKeaveney
236679dc56 logrocket analytics 2020-03-04 16:47:47 +00:00
Michael Shanks
fad9337af9 bugfix: css not applied after template component added 2020-03-04 12:43:02 +00:00
Michael Shanks
34f74d5d20 bugfix: create screen > components not displayed 2020-03-04 12:13:50 +00:00
Martin McKeaveney
bf365abaa8 more UI tidy up 2020-02-26 18:16:31 +00:00
pngwn
8ab75549a2 Rename detailProp to metadataProp 2020-02-26 12:45:20 +00:00
pngwn
b0efaac0f6 Make page and screen props editable. 2020-02-26 10:26:19 +00:00
Michael Shanks
df472e8ca1 Merge branch 'master' of github.com:Budibase/budibase 2020-02-25 17:06:00 +00:00
Michael Shanks
071c0ebb40 custom code - added "route" param 2020-02-25 16:01:23 +00:00
Martin McKeaveney
0d0f635db4 eslint tidy up 2020-02-25 15:46:04 +00:00
Michael Shanks
3a98e23ffb bugfix: create new screen exception 2020-02-25 10:01:26 +00:00
Martin McKeaveney
a8311cc3a3 switch prop on component selection 2020-02-24 23:23:33 +00:00
Michael Shanks
6f234706af bugfix: custom code not getting attached poperly 2020-02-24 14:56:11 +00:00
Michael Shanks
503816bc7e bugfix - css not sent for all screens 2020-02-24 11:05:52 +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
0902febc00 uiFunctions receive state and routeParams 2020-02-21 23:01:16 +00:00
Martin McKeaveney
412aa6739f state management bindings 2020-02-21 15:44:48 +00:00
Michael Shanks
8777f7e9f8 Merge branch 'master' of github.com:Budibase/budibase 2020-02-21 11:43:41 +00:00
Michael Shanks
546dd05718 bugfix: generate css on screen change 2020-02-21 09:27:43 +00:00
Martin McKeaveney
b46d33ad59
Update store.js 2020-02-20 21:21:16 +00:00
Michael Shanks
f2e6ac0145 merge conflicts from peter/tweaks 2020-02-20 17:11:41 +00:00
Michael Shanks
c9191f408f store method for save page or screen (context dependant) 2020-02-20 17:08:17 +00:00
Michael Shanks
d31d8c8e7e added height and width as positioning options 2020-02-20 17:07:25 +00:00
Michael Shanks
cd829182f9 component templates 2020-02-19 21:38:21 +00:00
Michael Shanks
d072c356ef bugfix: component libraries loaded incorrectly 2020-02-19 13:58:06 +00:00
Michael Shanks
c9143a801f reording and duplication of components 2020-02-19 10:17:31 +00:00
Michael Shanks
6ee72d7301 bug in store - insertCodeMetadata import vanished 2020-02-18 21:22:43 +00:00
Martin McKeaveney
8b64c64bab removed generators, added simple presets to standard components 2020-02-18 20:35:43 +00:00
Michael Shanks
83953922d7
Merge branch 'master' into 98-builtin-slot 2020-02-18 17:11:46 +00:00
pngwn
2396702c08 Remove more logs 2020-02-18 17:05:08 +00:00
Michael Shanks
7d9d15c783 #94 Remove component from hierarchy 2020-02-18 16:51:28 +00:00
pngwn
063cb0f41f Add screenslot to current preview. 2020-02-18 15:53:22 +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
pngwn
4a62525949 Add builtin slot to list 2020-02-18 10:32:00 +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
Martin McKeaveney
1c7550e211 moving test from server 2020-02-12 15:47:35 +00:00
Martin McKeaveney
fe142faf3a move state origin build from server to client 2020-02-12 15:10:31 +00:00
Martin McKeaveney
5729f46ae6 final tidy up 2020-02-12 10:12:54 +00:00
Martin McKeaveney
175002d178 unit tests 2020-02-12 10:12:54 +00:00
Martin McKeaveney
0b3f75aaff merging with master 2020-02-12 10:12:54 +00:00
Martin McKeaveney
8be69162f7 auto update state origins when attaching click handlers 2020-02-12 10:12:54 +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
pngwn
7e16e23803 48 builder frontend 2 (#70)
* Implement collapsing component hierarchy.

* Save screen when adding new components.

* Allow creation of nested child components.

* Fix level-based indentation of hierarchy.

* Rename updateComponentProps to setComponentProps

* Save layout information to the disk.

* Cleanup: switch to autosubscriptions to prevent memory leaks, remove unused imports.

* Remove unused css.

* Fix incorrect subscription.
2020-01-28 21:17:04 +00:00
pngwn
1a77b0ae00 Remove leftovers. 2020-01-24 15:34:44 +00:00