Max
d598394337
Update asset metadata timestamps and enhance translation handling
...
- Update timestamps in `bindata.go` for various asset files to reflect recent modifications.
- Modify translation handling in `parser.go` to merge messages from YAML locale files with script messages, ensuring all translation keys are available at runtime.
- Refactor `writeLocaleFiles` in `page.go` to accept a build context, allowing for better integration of script translations during the build process.
2026-02-12 19:06:56 +08:00
Max
bdcc3585e2
Enhance script resolution logic and update asset metadata
...
- Refactor the `ResolveScript` function to improve the script path resolution strategy, allowing for better handling of assistant directories and module paths.
- Update asset metadata timestamps in `bindata.go` to reflect recent changes, ensuring accurate tracking of file modifications.
- Modify CSS component name formatting in `build.go` and TypeScript component selectors in `index.ts` for consistency in syntax.
- Improve locale handling in `locale.go` by implementing a fallback mechanism for locale file resolution based on language prefixes.
- Normalize locale values in `request.go` to lowercase for consistency across the application.
- Enhance component name sanitization in `utils.go` to replace additional characters, ensuring valid component naming conventions.
2026-02-09 18:32:24 +08:00
Max
574c2aad82
fix sui dynamic components render bug
2024-09-30 18:42:42 +08:00
Max
371490360e
fix misspelling
2024-09-30 17:07:29 +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
f531b32634
Improve SUI Component element manipulation methods and add queryAll method
2024-08-08 18:57:47 +08:00
Max
c5cf0babf9
Refactor component initialization script to include injected code
2024-08-07 11:02:43 +08:00
Max
d170ab6e53
Optimize $backend function call
2024-08-04 11:40:15 +08:00
Max
5f5af44018
Optimize libsui js-sdk loading logic
2024-08-03 08:37:54 +08:00
Max
dc3c637c5e
Refactor component event injection to handle missing event selectors
2024-07-29 16:46:21 +08:00
Max
b6e2d3ae8e
Refactor slot cloning logic in build.go
2024-07-29 11:46:09 +08:00
Max
4c5278938c
Refactor SUI core to improve import parsing and aliasing
2024-07-28 19:27:16 +08:00
Max
1763a4f2e7
feat: Support component import and aliasing in SUI
2024-07-28 19:16:02 +08:00
Max
93d36b7f03
Optimize SUI core to parse imports and set namespace attribute
2024-07-28 17:55:47 +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
b6c5c0fd31
Refactor SUI core to set attribute values in parseProps function
2024-07-26 08:03:23 +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
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