Commit graph

56 commits

Author SHA1 Message Date
Max
276f29d777 [feat] SUI support BeforeRender hook for dataset processing, and deprecating the s:set method. 2024-07-25 17:56:40 +08:00
Max
8b93c3b219 Refactor SUI core to remove unnecessary code in BuildScripts function 2024-07-25 16:14:40 +08:00
Max
fe247d1e28 Refactor SUI core to load backend scripts for templates 2024-07-25 16:10:21 +08:00
Max
58ca39a32b [feat] Sharing the Constants variable between frontend and backend scripts 2024-07-25 15:37:23 +08:00
Max
47064422a9 Optimize error handling in SUI core build and compile functions 2024-07-24 08:15:50 +08:00
Max
9101efb4b6 Refactor component initialization in SUI core 2024-07-22 20:37:51 +08:00
Max
2f828b643d add ToCamelCase function in SUI core 2024-07-22 17:28:27 +08:00
Max
e802599795 Refactor statement attributes copying logic in SUI core 2024-07-22 11:18:12 +08:00
Max
dc8cfb66df fix missing trans-text attribute bug 2024-07-21 07:09:59 +08:00
Max
258163497a Refactor event binding logic in SUI core 2024-07-20 15:42:08 +08:00
Max
fbfd3f270a Refactor event binding logic in SUI core 2024-07-20 10:47:46 +08:00
Max
bafe3bb20f Refactor event binding logic in SUI core 2024-07-20 09:44:58 +08:00
Max
ebc399bfe1 add event binding logic in SUI core 2024-07-20 08:44:02 +08:00
Max
69e0070b0a Refactor prop regex patterns and methods in SUI core 2024-07-19 16:08:00 +08:00
Max
8e8a0ac885 Fix trans passing bug in SUI components 2024-07-19 07:20:57 +08:00
Max
3014d6f2e9 Refactor copySlots method to use slot.Contents() instead of slot.Children() 2024-07-18 19:28:04 +08:00
Max
58534f532f Refactor copySlots method to use slot.Contents() instead of slot.Children() 2024-07-18 19:13:22 +08:00
Max
49c66870f8 Refactor copySlots method to remove unnecessary context parameter 2024-07-18 18:45:38 +08:00
Max
55e3a2b4dd fix: Escape translation variables in SUI page parser 2024-07-16 10:43:43 +08:00
Max
1ed1973c7d Optimize i18n key generation logic 2024-07-15 05:52:44 +08:00
Max
98f2f2a190 refactor: Update BuildContext components to use boolean values instead of strings 2024-07-12 10:24:07 +08:00
Max
5b19ef3d19 refactor: Update BuildContext components to use boolean values instead of strings 2024-07-12 08:39:57 +08:00
Max
61205ced5f refactor i18n support 2024-07-11 20:20:36 +08:00
Max
8dd5f02a7b feat: output warning messages during sui page build 2024-07-09 05:56:29 +08:00
Max
ffb858b76f refactor: Update parsing logic for JIT components 2024-07-08 10:31:35 +08:00
Max
78d8d9fbc2 refactor: Update namespace handling in SUI page builder 2024-07-08 02:02:03 +08:00
Max
e4c8eeb180 optimize the SUI compiler & add http server gzip support 2024-07-07 15:29:50 +08:00
Max
536621d72e refactor: Update parsing logic for JIT components 2024-07-07 02:33:12 +08:00
Max
3f95dd7d75 [add] sui recursive build detected 2024-07-07 01:19:15 +08:00
Max
57e72a698d refactor: Copy slots in BuildAsComponent method 2024-07-07 00:51:07 +08:00
Max
6542c6e46b refactor: optimize the SUI page compiler 2024-07-06 21:24:36 +08:00
Max
a4f28368d4 refactor: Update build process to include SUI CompileAsComponent support (dev) 2024-07-05 19:54:26 +08:00
Max
cf45040a1c feat: Add and optimize SUI CompileAsComponent support 2024-07-05 16:19:57 +08:00
Max
671a6b409e refactor: Update go.mod dependencies to latest versions 2024-07-04 03:12:30 +08:00
Max
35e23f29ae refactor: Create context if not exists in SUI page build 2024-07-02 20:51:57 +08:00
Max
28537e2163 [add] Support for JIT mode in SUI component imports ( dev ) 2024-07-02 20:40:35 +08:00
Max
481a9589ac refactor: Add option to minify style code during SUI page build 2024-06-28 20:31:30 +08:00
Max
80d28ab8c5 refactor: Minify script and style code during SUI page build 2024-06-28 20:17:06 +08:00
Max
4a1a1b2dbc Optimize the SUI compiler to better support component code 2024-06-28 19:46:08 +08:00
Max
7db3940914 refactor: Update code to support translation attributes and nodes 2024-06-28 16:20:57 +08:00
Max
6ff2ad2ead [add] Generating language packs during SUI compilation 2024-06-27 17:15:36 +08:00
Max
93fb007280 refactor: Update Namespace function to handle special characters in name
The Namespace function in utils.go has been updated to handle special characters in the name parameter. This ensures that the generated namespace is valid and avoids any potential issues with naming conflicts. The function now replaces forward slashes, square brackets, and hyphens with underscores before generating the namespace. This change improves the reliability and robustness of the code.
2024-06-14 16:20:52 +08:00
Max
971246d090 chore: Update cssRe regular expression to include hyphen in selectors 2024-06-11 17:26:37 +08:00
Max
8583f1a0f0 chore: Deprecate $slot and $prop in favor of $slots and $props
Deprecate the usage of $slot and $prop in the code and introduce $slots and $props as their replacements. This change ensures consistency and improves clarity in the codebase.
2024-06-11 10:40:19 +08:00
Max
cb2f6e8748 Refactor attribute handling in build and parser functions 2024-01-10 14:51:16 +08:00
Max
669ccfb1e1 Refactor document creation in build.go and parser.go 2024-01-10 13:20:22 +08:00
Max
7f4b80d0c7 [fix] sui slot variables in data 2024-01-04 18:03:02 +08:00
Max
5031904964 Add asset path replacement in JavaScript and TypeScript code 2024-01-03 16:12:58 +08:00
Max
5fba7cd41f [add]support for attributes in BuildForImport method 2023-12-17 15:17:21 +08:00
Max
5e3fc81d09 [add] sui page render wrapper option 2023-12-13 23:43:12 +08:00