Commit Graph

171 Commits

Author SHA1 Message Date
Michael Shanks fc5413abb3 prep for NPM publish 2020-02-26 22:18:14 +00:00
Michael Shanks f3dd412e74 v0.0.17 2020-02-26 21:12:13 +00:00
Michael Shanks a43ffdf2f2 updated _master app UI 2020-02-26 15:59:27 +00:00
Michael Shanks 55e8a51ab7 server - listRecords routes should use a wildcard param 2020-02-26 15:58:55 +00:00
Michael Shanks 3c504bd1cd Merge branch 'master' of github.com:Budibase/budibase 2020-02-26 15:56:30 +00:00
Michael Shanks 4c1d3c4e88 bugfix: _master package sent to incorrect directory 2020-02-26 11:39:19 +00:00
Martin McKeaveney 62e562c1f1 ignore public folder in apps 2020-02-26 10:16:43 +00:00
Martin McKeaveney 7f62f76924
Update package.json 2020-02-25 18:13:46 +00:00
Martin McKeaveney 7c5675a95f
fix tests 2020-02-25 18:02:18 +00:00
Martin McKeaveney d9d8e51d86 fix ci 2020-02-25 16:51:40 +00:00
Martin McKeaveney 3d7ba759fa fix tests 2020-02-25 15:46:04 +00:00
Martin McKeaveney 0d0f635db4 eslint tidy up 2020-02-25 15:46:04 +00:00
Martin McKeaveney 41d0497055 global style abstraction, backend UI updates 2020-02-24 16:41:02 +00:00
Michael Shanks 4fb30835cd few broken tests (typos) 2020-02-23 21:59:27 +00:00
Michael Shanks d271ed6a50 some more routing fixes - css now loaded at runtime 2020-02-21 16:52:29 +00:00
Michael Shanks cd829182f9 component templates 2020-02-19 21:38:21 +00:00
Martin McKeaveney 8b64c64bab removed generators, added simple presets to standard components 2020-02-18 20:35:43 +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
Martin McKeaveney cca039bdd0
Merge pull request #99 from shogunpurple/state-bindings
State bindings
2020-02-12 15:50:30 +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
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
Martin McKeaveney 175002d178 unit tests 2020-02-12 10:12:54 +00:00
Martin McKeaveney f34a4707a9 fix rotation on state arrow 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
Martin McKeaveney ee9df6c29a state binding v1 2020-02-11 14:19:06 +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 34d56e960f include svelte files in prettier 2020-02-03 09:50:30 +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
Martin McKeaveney 912a6e4f1b tidy up 2020-01-31 09:49:26 +00:00
Martin McKeaveney a88db662bf basic architecture complete 2020-01-29 21:04:48 +00:00
Martin McKeaveney ea88880417 merge 2020-01-28 22:39:16 +00:00
Martin McKeaveney 598aa5f8fa fix bcrypt in build 2020-01-28 13:06:35 +00:00
Martin McKeaveney 17e22b4da7 merge 2020-01-27 12:16:03 +00:00
Martin McKeaveney 231a1ab3e3 build process improvements and gitignore 2020-01-24 16:31:53 +00:00
Martin McKeaveney 4611970896 removing final package lock, gitignore on builder folder 2020-01-24 15:56:14 +00:00
pngwn 18a436ffef Keep assets folder. 2020-01-24 14:51:29 +00:00
pngwn 705dd128d4 Restore lost utility files 2020-01-24 14:51:29 +00:00
pngwn 3f9d708541 Correct gitignore pattern 2020-01-24 14:51:28 +00:00
pngwn 4fb3e6cfc5 Add builder to gitignore. 2020-01-24 14:51:28 +00:00
Martin McKeaveney 3bcb6db7f5 removing the package lock files 2020-01-24 14:10:19 +00:00
Martin McKeaveney 173df7191a Merge branch 'master' of github.com:Budibase/budibase 2020-01-24 13:57:19 +00:00
Michael Shanks 0861e11319 updated yarn lock files 2020-01-24 13:20:03 +00:00
Martin McKeaveney 49ed9d0cd9 Merge branch 'master' of github.com:Budibase/budibase 2020-01-23 15:17:19 +00:00
Martin McKeaveney 46a9650f62 v0.0.16 2020-01-23 11:38:11 +00:00