Commit graph

90 commits

Author SHA1 Message Date
Max
219f71b00e chore: Refactor TemplateRender to handle optional request parameters 2024-08-23 12:20:33 +08:00
Max
02651085d7 Improve SUI TemplateRender 2024-08-10 19:34:36 +08:00
Max
ce96d89c31 Improve SUI TemplateRender 2024-08-10 18:12:32 +08:00
Max
0f6bc06172 fix render public root bug 2024-08-10 17:18:35 +08:00
Max
80779bb0fc [feat] add SUI template.render process 2024-08-10 16:58:38 +08:00
Max
3bacc297cf chore: Fix error handling in Run function and improve page config loading 2024-08-06 16:31:56 +08:00
Max
9977b62a09 [feat] SUI $backend function call supports custom Guard 2024-08-05 08:32:59 +08:00
yflau
c35d623fc8 Merge branch 'main' of https://github.com/yflau/yao 2024-08-04 14:32:18 +08:00
yflau
1ac37b048f return 401 for invalid token 2024-08-04 12:54:05 +08:00
Max
d170ab6e53 Optimize $backend function call 2024-08-04 11:40:15 +08:00
Max
8e47849e93 [feat] Add $Backend function call to directly invoke backend functions from frontend scripts. 2024-08-03 20:31:02 +08:00
Max
259b707ca8 Refactor utils.ts for improved code readability and maintainability 2024-08-03 18:57:29 +08:00
Max
a07c1ece51 Add s:render feature for data update rendering (dev) 2024-08-02 21:18:02 +08:00
Max
fc1f80e0f5 feat: Add sourceRoots to Static struct in types.go 2024-08-01 18:16:59 +08:00
Max
6bcede11d9 Refactor SUI core to handle backend script errors during page execution 2024-07-26 16:02:35 +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
41495a2de0 fix sui test cases 2024-07-17 16:44:42 +08:00
Max
08f3fbc1e4 fix sui page locale and theme data caching bug 2024-07-16 04:53:01 +08:00
Max
b85e5eecd8 Fix the bug in the SUI language pack path 2024-07-15 16:57:28 +08:00
Max
ef8b8027cf [add] sui.trans.all and sui.trans.page to support automatic translation 2024-07-15 09:24:44 +08:00
Max
8dd5f02a7b feat: output warning messages during sui page build 2024-07-09 05:56:29 +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
a435b1ad6e [chore] Update sui test cases 2024-07-04 17:06:42 +08:00
Max
28537e2163 [add] Support for JIT mode in SUI component imports ( dev ) 2024-07-02 20:40:35 +08:00
Max
671bba4aa4 [add] SUI language pack support (dev) 2024-06-28 11:25:22 +08:00
Max
c3644380ba refactor: Update Request struct to include data caching functionality 2024-06-27 21:11:38 +08:00
Max
6dcd704ea4 [add] Configuring SUI page caching to optimize static page loading speed 2024-06-27 20:02:03 +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
a1de910337 [add] support for retrieving cookies in sui Request struct 2024-06-25 19:37:55 +08:00
Max
a48c4cbe7d Refactor middleware and request handling code 2024-03-19 13:58:43 +08:00
Max
76b78e2102 [add] sui.sync.assetfile process 2024-03-13 19:39:53 +08:00
Max
b82f6f6029 Refactor build process and add data parameter to BuildOption 2024-02-28 21:21:56 +08:00
Max
2effd3c360 Update authorization error messages 2024-02-20 20:07:26 +08:00
Max
5104dab56b Add cookie-trace and cookie-jwt guards 2024-02-10 17:02:44 +08:00
Max
6ca148d76c Add support for rendering request data in template parser 2024-01-21 00:04:58 +08:00
Max
524a63d7af Refactor code to add context object and cookie function 2024-01-17 21:56:39 +08:00
Max
bf31ad4bf1 Add SetCookie function in guards.go 2024-01-17 21:39:04 +08:00
Max
a3862c1289 Add scriptGuardExec function to process script guards 2024-01-17 21:24:29 +08:00
Max
8e5109d3fd Add TypesQueryParam function to handle get Template request 2024-01-07 18:24:00 +08:00
Max
5ba6bfe749 Update Guards to accept Request object instead of gin.Context 2024-01-03 18:31:58 +08:00
Max
76d9811048 Add guard functionality and export page config 2024-01-03 18:03:27 +08:00
Max
a4a639568d [add] Update V8Go repository in GitHub Actions workflows 2023-12-22 20:43:35 +08:00
Max
243b0707a7 [add] refactor template parser to support printing data 2023-12-17 12:02:47 +08:00
Max
bd798b03cc [fix] Refactor URL handling in NewRequestContext and parseArgs functions 2023-12-16 14:01:46 +08:00
Max
a80393dee5 [add] sui preview render api and fix page build bug 2023-12-13 18:23:34 +08:00
Max
7b11ea82f0 [fix] route matching errors, reload matchers 2023-12-13 13:03:06 +08:00