1
0
Fork 0
mirror of synced 2024-08-06 21:58:12 +12:00
Commit graph

109 commits

Author SHA1 Message Date
mike12345567
a506ce05a1 Fixing issue with string templates importing vm2 which requires other prebuilts for JS in the CLI - no need for these to add to build size when JS is unused. 2022-09-05 19:04:45 +01:00
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
d0f5b67cf1 Fixes for #4736 - I believe the issue was that the dynamic variables were not being saved, removing the need for the user to be aware of this, also making it possible to pass the entire data structure from one call to another if desired. 2022-05-04 15:26:19 +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
Rory Powell
f60aacb270 Merge branch 'master' into merge-master 2022-02-23 12:14:04 +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
664b43edfa Merge branch 'master' of github.com:Budibase/budibase into develop 2022-02-15 16:54:21 +00:00
mike12345567
676ec02380 Fix for safari, removing all usage of regex lookbehinds. 2022-02-15 14:48:32 +00:00
Andrew Kingston
b7e1aebaa8 Merge branch 'frontend-core' of github.com:Budibase/budibase into experimental-hbs-caching 2022-02-09 15:18:44 +00:00
mike12345567
9d0264fa93 Fixing issue with isValid function found by testcase. 2022-02-08 17:22:44 +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
Andrew Kingston
cfe7e9c262 Merge branch 'frontend-core' of github.com:Budibase/budibase into experimental-hbs-caching 2022-02-07 09:50:17 +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
Andrew Kingston
c7b78e135a Merge branch 'frontend-core' of github.com:Budibase/budibase into experimental-hbs-caching 2022-02-01 16:49:59 +00:00
mike12345567
8fbd101448 Merge branch 'develop' of github.com:Budibase/budibase into feature/formula-filtering 2022-01-31 15:21:15 +00:00
Andrew Kingston
e7b02aec04 Add experimental support for caching the creation of HBS template functions 2022-01-29 18:53:21 +00:00
mike12345567
135aff4a31 Bit of refactoring, adding in functionality to remove invalid static formula when the elements that the formula depends on are removed. 2022-01-24 18:22:59 +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
45142ba916 Update {{ now }} HBS helper to floor to the second instead of millisecond 2022-01-20 19:37:01 +00:00
Andrew Kingston
22c1eae1a9 Transform the output of JS expressions to be actual types rather than strings 2022-01-20 19:24:39 +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
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
Andrew Kingston
9b05990418 Update literal helper to return an empty string rather than the string 'undefined' when the value is undefined 2021-11-15 12:25:30 +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
0539f1a429 Remove optional chaining from string-templates 2021-10-14 13:04:57 +01:00
Andrew Kingston
1bd0897fd8 Block certain browser API's when executing JS in the browser 2021-10-14 12:02:34 +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
0dfa108ef5 Prevent executing JS bindings when running in a Node env 2021-10-13 14:37:14 +01:00
Andrew Kingston
4075d0d97c Add one second timeout to execution of JS bindings 2021-10-13 13:44:43 +01:00
Andrew Kingston
7d7c28d967 Fix issue deeply extract falsey values from context while executing JS bindings 2021-10-12 16:13:07 +01:00
Andrew Kingston
d6a1e3d248 Correctly handle JS nullish values by removing forced fallback value of HBS helper 2021-10-12 15:40:01 +01:00
Andrew Kingston
4174b88057 Ensure null or empty values don't cause raw JS to appear when executing JS HBS helper 2021-10-12 15:32:43 +01:00
Andrew Kingston
b06669fe32 Fix inserting bindings manually when using JS 2021-10-11 16:18:20 +01:00
Andrew Kingston
d114b3f1ed Fix bug determining if a binding is JS or not 2021-10-11 15:51:47 +01:00
Andrew Kingston
4fd31b9eac Add JS helper to string templates 2021-10-11 14:53:55 +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
mike12345567
e07792263e Adding a case for Firefox undefined bindings when checking validity. 2021-08-06 15:32:55 +01:00
Martin McKeaveney
742402f4c7 merge with master 2021-07-11 18:07:46 +01:00
Kyle Harrison
b4afda7b09 apply fixes for common spelling mistakes 2021-07-09 17:54:49 +01:00
mike12345567
5dd53f67ac Some work towards supporting many SQL relationships. 2021-06-28 17:42:39 +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
b2c843adb4 Lint 2021-06-25 17:27:06 +01:00
Andrew Kingston
9815a3ff8c Remove lodash functions and recursive context mutation in string templates to increase performance 2021-06-25 15:04:54 +01:00
mike12345567
1df459a5bf Fixing issues discovered with hbs escaping. 2021-06-24 11:37:26 +01:00