1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00
Commit graph

64 commits

Author SHA1 Message Date
mike12345567 67dd1fd9c3 Adding the examples and helper add functionality for JS as well as hiding button to convert outside of development environment. 2022-07-29 14:12:04 +01:00
mike12345567 15b275c0f9 Some minor fixes for edge cases. 2022-07-29 09:50:53 +01:00
mike12345567 4f2a623eb0 Initial attempt at transpiling HBS to JS. 2022-07-28 20:20:53 +01:00
mike12345567 948b7e6d00 Fix for issue discovered by test case. 2022-05-04 17:36:30 +01:00
mike12345567 6ffeaab597 Fixing an issue with JSONparse helper always being considered invalid due to a lack of input. 2022-05-04 12:14:01 +01:00
mike12345567 8ce1b471fd Fixes for SQL issues raised by Marty. 2022-03-02 17:40:50 +00:00
mike12345567 3925fb3e31 Fixing issue with escaping on multiple bindings that are the same in queries. 2022-02-17 13:22:36 +00:00
mike12345567 4f52960afa Fixing test case. 2022-02-08 17:41:54 +00:00
mike12345567 9298071cc2 Addomg a fix for #4370 - allow queries to contain newlines, they will always be escaped. 2022-02-07 17:56:01 +00:00
mike12345567 ad97dc09a1 Fixing merge conflict. 2022-02-03 20:32:20 +00:00
mike12345567 61283e465d Fix for #4308 - triple brace conversion was not working correctly, wrote this into the string templates instead - also fixing an issue with the RBAC for Rest. 2022-02-03 18:44:34 +00:00
mike12345567 04934a544a Adding the ability to filter using the filter drawer for formula fields, getting them based on the enriched contents of a row - adding functionality to denote to each table which other tables depend on them for formula. 2022-01-21 16:24:24 +00:00
Andrew Kingston c377cb42a5 Merge branch 'develop' of github.com:Budibase/budibase into ak-fixes 2022-01-18 15:27:14 +00:00
Andrew Kingston 99f9b4bf07 Transform the output of JS expressions to be actual types rather than strings 2022-01-18 13:20:06 +00:00
mike12345567 018e0bd73b Getting client partially working, having an issue with search fields not updating for a table block. 2022-01-14 17:42:14 +00:00
Andrew Kingston a0d8bffbc6 Remove the pre-execution validation in string templates to double performance and prevent JS binding issues when mutating context 2021-12-06 17:58:43 +00:00
mike12345567 be8979e50a Fixing bug #3195 with zero/falsy values not being passed out of bindings. 2021-11-02 16:55:16 +00:00
mike12345567 8b2c505050 Fixing #2718 - disabling handlebars helpers for queries. 2021-10-26 20:04:36 +01:00
Andrew Kingston 403f64d1ac Use vm2 for JS execution in node, and a vm polyfill for the browser. Use 2 standalone entrypoints for string-templates depending on env 2021-10-14 11:51:05 +01:00
Andrew Kingston 9ec1992522 Update JS HBS helper tests 2021-10-13 14:37:29 +01:00
Andrew Kingston 4cd8171a91 Add tests to HBS JS helper 2021-10-13 13:45:14 +01:00
mike12345567 38e6956b19 Fixes for #2634 - make sure string templates library handles conversion of raw JSON objects to stringified correctly. 2021-09-17 17:18:52 +01:00
Andrew Kingston fc4aa07495
Merge pull request #1834 from Budibase/design-panel-v2
Design panel V2 + big performance improvements + misc features
2021-06-28 11:11:00 +01:00
Andrew Kingston 545c710ce5 Fix tests 2021-06-28 10:00:22 +01:00
mike12345567 1df459a5bf Fixing issues discovered with hbs escaping. 2021-06-24 11:37:26 +01:00
mike12345567 c51f1dae13 Updating examples, adding length tests and updating HBS helpers library. 2021-06-10 13:44:44 +01:00
Andrew Kingston e05d9f5e7f
Merge pull request #1678 from Budibase/form-fixes
Form fixes
2021-06-09 14:42:59 +01:00
Andrew Kingston 7e082a18d8 Allow string templates to handle null objects without failing 2021-06-09 14:17:11 +01:00
mike12345567 f9ba157f97 Updating test. 2021-06-09 12:11:40 +01:00
mike12345567 3ffd340450 Updating date helper to allow timezone capabilites. 2021-06-09 11:44:24 +01:00
mike12345567 1470e601aa Updating date helper to use UTC. 2021-05-27 15:21:00 +01:00
mike12345567 4c5bcb11a2 Adding test case for issue found by Andrew with formulas, HBS in deep context objects was being evaluated which is not valid and breaks things. 2021-05-27 11:45:17 +01:00
Andrew Kingston 9d08a8f6a6 Merge branch 'lab-day-search' of github.com:Budibase/budibase into lab-day-search 2021-05-11 16:08:41 +01:00
mike12345567 3a1be567b8 Fixing an issue with date objects not being managed by handlebars correctly. 2021-05-11 16:07:55 +01:00
mike12345567 4068a29624 Fixing complex test case. 2021-04-30 16:21:59 +01:00
mike12345567 a6e282c19b Moving drawers around to be a common component as they are utilised in a few places, keep all the binding work together, as well as some fixing for readable/runtime binding detection and conversion. 2021-04-30 16:17:57 +01:00
Andrew Kingston ac75c3cd65 Update string-templates tests 2021-04-07 10:56:06 +01:00
Andrew Kingston d1be0a58b4 Fix edge case bug where the literal handlebars helper would not work with objects including a dash character 2021-03-16 18:16:56 +00:00
mike12345567 a86b6db772 Quick addition of a duration helper which can be used to create relative humanized date strings. 2021-02-04 10:17:10 +00:00
mike12345567 9ae53caa4d Removing the use of helper-date which was causing some problems, instead took what we needed of it out of the package and updated to use dayjs instead of moment. 2021-02-03 13:55:33 +00:00
mike12345567 c10cd53eb6 Some more fixes, getting a balance of validity checking, not letting package output anything non-sensical. 2021-02-03 12:38:06 +00:00
mike12345567 96acfc6563 Fixing an issue with the new validity checking being too lenient. 2021-02-03 12:10:39 +00:00
Michael Drury 8d40cb6b32 Widening the allowance criteria for handlebars validity, check for any errors which suggest a simple type error from the context and allowing these through. 2021-02-02 20:28:27 +00:00
mike12345567 20c2413c6f Merge branch 'feature/handlebars-helpers-update' of github.com:Budibase/budibase into bug/integration-fixes 2021-02-02 18:04:18 +00:00
mike12345567 08cf4bf292 Fixing issue with regex helper - escape test used the word 'test' a lot which breaks the helper. 2021-02-02 18:01:41 +00:00
mike12345567 2d82969350 Some quick fixes to allow custom verbs. 2021-02-02 17:28:11 +00:00
mike12345567 92ab3631ea Adding object and regex helpers as well as a complex test case for forIn. 2021-02-02 14:22:10 +00:00
mike12345567 d350dd2c2b Updating manifest tests. 2021-02-01 13:17:42 +00:00
Michael Drury ff75f8e8a5 Some rollup fixes - the handlebars-helper library needs dynamic requires removed from it, likely best to fork it and do this. 2021-01-30 02:54:52 +00:00
mike12345567 bd3bdfa9aa Work in progress, fixing issue with some helpers not getting translated, now running into rollup issue. 2021-01-29 20:03:09 +00:00