Commit graph

63 commits

Author SHA1 Message Date
Max
77efc03582 feat: Enhance global build context and component handling
- Update NewGlobalBuildContext to accept a template parameter for improved context management.
- Refactor component handling in Compile method to include JIT components, enhancing dynamic component loading.
- Modify TemplateRender to utilize the updated global context, improving template processing.
- Adjust component attribute parsing to use "s:route" for better clarity in component identification.
2025-04-23 16:08:10 +08:00
Max
574c2aad82 fix sui dynamic components render bug 2024-09-30 18:42:42 +08:00
Max
369d6cc4d8 fix sui dynamic components import bug 2024-09-30 17:02:24 +08:00
Max
67ad169bf5 Refactor dynamic component parsing in SUI core 2024-09-11 09:24:34 +08:00
Max
fb6518e91f Fix the bug in real-time rendering mode 2024-09-10 16:29:15 +08:00
Max
07353d0084 Add s:route attribute to real time render components 2024-09-03 17:40:31 +08:00
Max
db033a10fd [add] SUI real-time rendering mode supports event binding (page event only) 2024-09-02 17:04:22 +08:00
Max
a3d2baef40 Refactor component attribute handling to support spread operator 2024-08-30 10:42:25 +08:00
Max
d170ab6e53 Optimize $backend function call 2024-08-04 11:40:15 +08:00
Max
a2e5a52ad8 feat: Update event handling in sui/core to support event component names 2024-08-03 11:23:59 +08:00
Max
a07c1ece51 Add s:render feature for data update rendering (dev) 2024-08-02 21:18:02 +08:00
Max
76d0dde315 Optimize SUI component property parsing 2024-07-27 17:03:48 +08:00
Max
5050443e63 Optimize SUI core to load script with disableCache option 2024-07-27 10:28:17 +08:00
Max
99a77fdd8e Optimize SUI core to copy json-attr- to the prop in newJitComponentSel function 2024-07-27 10:14:13 +08:00
Max
89957a9405 Optimize SUI JIT mode component parsing logic 2024-07-26 19:36:48 +08:00
Max
602333bd02 Optimize SUI frontend and backend script data sharing 2024-07-26 15:25:04 +08:00
Max
002f409e67 Optimize SUI variable parsing logic 2024-07-26 12:06:08 +08:00
Max
43e37fbfe4 Optimize expression parsing in SUI 2024-07-26 10:01:41 +08:00
Max
7706439f8f Refactor SUI core to copy the script pointer to the request for page backend script execution 2024-07-25 19:07:50 +08:00
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
58ca39a32b [feat] Sharing the Constants variable between frontend and backend scripts 2024-07-25 15:37:23 +08:00
Max
9101efb4b6 Refactor component initialization in SUI core 2024-07-22 20:37:51 +08:00
Max
f32a677265 Refactor event binding logic in SUI core 2024-07-20 17:45:19 +08:00
Max
ebc399bfe1 add event binding logic in SUI core 2024-07-20 08:44:02 +08:00
Max
11a66d0aed [feat] SUI i18n client-side script support 2024-07-17 17:59:09 +08:00
Max
f6a94fdba3 [feat] sui i18n direction, timezone and format support 2024-07-17 16:23:53 +08:00
Max
b7ba391278 refactor: Improve SUI page parser logic for rendering i18n and escaping translation variables 2024-07-16 20:16:01 +08:00
Max
58f1e88bd1 optimize the logic for rendering i18n on SUI pages 2024-07-16 19:06:03 +08:00
Max
6e171fa7cb fix: Escape translation variables in SUI page parser 2024-07-16 17:47:55 +08:00
Max
55e3a2b4dd fix: Escape translation variables in SUI page parser 2024-07-16 10:43:43 +08:00
Max
b2822dd8bf sui page parser to escape i18n variables 2024-07-16 08:35:26 +08:00
Max
d5584ca9c4 fix misspelling 2024-07-15 20:20:23 +08:00
Max
d7dbcd767e feat: SUI i18n supports both attributes and variables. 2024-07-15 20:10:06 +08:00
Max
b85e5eecd8 Fix the bug in the SUI language pack path 2024-07-15 16:57:28 +08:00
Max
9bae50b500 fix the bug in handling the replaceNodeUse attribute 2024-07-09 05:12:52 +08:00
Max
ffb858b76f refactor: Update parsing logic for JIT components 2024-07-08 10:31:35 +08:00
Max
d188f967d0 refactor: Update parsing logic for JIT components 2024-07-08 02:21:36 +08:00
Max
7ea9953b69 [add] SUI component dynamic loading 2024-07-08 00:43:14 +08:00
Max
b4ed405e4e optimize sui page injection script 2024-07-07 22:34:10 +08:00
Max
265188bed1 refactor: Remove unused slotNode function and tidy up code 2024-07-07 16:00:28 +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
a2d1ee8ca9 refactor: Add conditional hiding of elements in forStatementNode 2024-07-07 02:09:21 +08:00
Max
671a6b409e refactor: Update go.mod dependencies to latest versions 2024-07-04 03:12:30 +08:00
Max
7db3940914 refactor: Update code to support translation attributes and nodes 2024-06-28 16:20:57 +08:00
Max
671bba4aa4 [add] SUI language pack support (dev) 2024-06-28 11:25:22 +08:00
Max
e170f6017e fix misspelling 2024-06-26 19:35:21 +08:00
Max
a52f0ed1a4 refactor: Update Request struct to use NewData method for setting data 2024-06-26 18:19:51 +08:00
Max
0a5105b9d0 refactor: Update TemplateParser to support debug mode and DisableCache 2024-06-26 17:09:41 +08:00
Max
287731da82 Trigger the __sui_data_ready event when the data is loaded 2024-02-22 22:52:08 +08:00