Commit graph

42 commits

Author SHA1 Message Date
Max
621290d578 Enhance guard handling and template configuration merging
- Update the OAuth guard to prevent automatic response writing on failure, allowing for custom error handling.
- Introduce a mechanism to register default guard redirects from template configurations, improving guard management.
- Refactor the page configuration merging process to prioritize page-specific settings while allowing inheritance from templates.
- Ensure guards can be explicitly disabled in page configurations, enhancing flexibility in guard application.
2026-02-15 16:34:31 +08:00
Max
19c2d6b547 Implement dynamic route resolution using rewrite rules
- Introduce a new `RewriteRule` type and associated functions for managing URL rewrite rules in `service/static.go`.
- Add `GetRewriteRules` and `ResolveRoute` functions to facilitate the retrieval and application of rewrite rules.
- Update the `sui/api/run.go` to utilize the new route resolver for handling dynamic routes when the config file is not found.
- Define `RouteResolver` in `sui/core/interfaces.go` to allow for dynamic route resolution across the application.
2026-02-13 23:44:28 +08:00
Max
0825e06dbe Implement Multi-Directory Watching and Enhance Locale File Handling
- Introduced the IWatchDirs interface to support watching multiple directories for changes, allowing templates to specify directories dynamically.
- Updated the watch command to handle multiple directories and display watched directories in the output.
- Added functionality to write locale files from a page's __locales directory to the public directory, improving localization support.
- Enhanced error handling during directory watching and locale file processing for better reliability and logging.
2026-01-03 14:39:57 +08:00
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
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
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
28537e2163 [add] Support for JIT mode in SUI component imports ( dev ) 2024-07-02 20:40:35 +08:00
Max
6fa9eb51ab refactor: Update SUI page build process to execute before and after build scripts 2024-06-29 21:38:40 +08:00
Max
c01b4ccb97 refactor: Improve SUI page build performance by adding script execution time measurement 2024-06-29 20:44:48 +08:00
Max
76b78e2102 [add] sui.sync.assetfile process 2024-03-13 19:39:53 +08:00
Max
a80393dee5 [add] sui preview render api and fix page build bug 2023-12-13 18:23:34 +08:00
Max
10126c50c2 [add] sui page duplicate api 2023-12-12 21:20:21 +08:00
Max
b81e4f2003 [add] builder create page api 2023-12-11 23:54:42 +08:00
Max
8698c42607 [add] SUI Template Engine command 2023-12-07 23:14:39 +08:00
Max
a5f4764a0c [add] sui page build Add default Sid if not set 2023-12-06 13:45:06 +08:00
Max
5bce0f6081 [add] sui template global data support 2023-11-24 13:55:22 +08:00
Max
b0d9631559 [add] sui editor render with mock request 2023-11-24 11:30:18 +08:00
Max
dc91443217 [add] sui page route parser 2023-11-23 13:00:07 +08:00
Max
1baaede53f [add] SUI Template MediaSearch 2023-11-18 17:41:17 +08:00
Max
45e333d7f8 [add] sui media api (mock) 2023-11-08 19:57:12 +08:00
Max
92d22afb0d [add] sui template asset upload api 2023-10-31 19:25:36 +08:00
Max
598cdf69a8 [add] sui api guard and support session vars 2023-10-23 13:00:17 +08:00
Max
39cfeb38dd [add] sui setting api 2023-10-19 11:25:05 +08:00
Max
5e371f1dfb [add] block export and media api 2023-10-18 21:18:54 +08:00
Max
9a088ce461 [add] page build interface 2023-10-10 21:12:53 +08:00
Max
7943453c46 [add] page preview api 2023-10-09 19:17:35 +08:00
Max
71183fa17c [add] page config 2023-10-09 12:10:06 +08:00
Max
b43f83aa61 [add] page builder page CURD 2023-10-05 19:07:26 +08:00
Max
9af92308bb [add] template & page asset api 2023-10-01 17:20:30 +08:00
Max
1aade992b2 [add] active & extend support 2023-09-29 12:44:05 +08:00
Max
8a7903db1e [add] page api and change api route 2023-09-29 12:20:20 +08:00
Max
f0ccba6db4 [add] block, component api 2023-09-28 11:57:31 +08:00
Max
688e06e548 [add] editor source api 2023-09-28 10:47:18 +08:00
Max
2f42e13c04 [add] editor render API 2023-09-28 10:11:01 +08:00
Max
ab7ace8a24 [add] SUI API 2023-09-27 18:56:25 +08:00
Max
d005a64786 [add] page RenderEditor 2023-09-27 17:44:45 +08:00
Max
5d18028cfc [add] Locales & Themes 2023-09-26 08:28:41 +08:00
Max
70f6931eb7 [add] Page Builder page load 2023-09-25 18:30:40 +08:00
Max
137e8ad971 [add] Page Builder API ( 25% ) 2023-09-24 22:09:08 +08:00
Max
198fd88449 [add] SUI & Page Builder API (10%) 2023-09-24 17:27:03 +08:00