Commit graph

1523 commits

Author SHA1 Message Date
Max
7bee60c67c refactor: Update AI connector handling and add support for Moapi models
The code changes in `aigc.go` and `types.go` refactor the AI connector handling in the `DSL` struct. The `Connector` field now accepts an optional `moapi` prefix, allowing for the selection of Moapi models. If the `Connector` field starts with `moapi`, the code initializes a new Moapi instance with the specified model. Additionally, the `Connector` field is now marked as `omitempty` in the `types.go` file.

This update improves the flexibility of the AI connector configuration and enables the use of Moapi models in the AI system.
2024-06-15 15:57:36 +08:00
Max
da89223f9d
Merge pull request #621 from yflau/main
add migrate option for yao restore command
2024-06-14 20:25:19 +08:00
Max
cc3a9d9140
Merge pull request #622 from trheyi/main
refactor: Update Namespace function to handle special characters in name
2024-06-14 17:42: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
yflau
7675d72797
Merge branch 'YaoApp:main' into main 2024-06-13 20:02:35 +08:00
yflau
39b8ef6238 add migrate options support for restore cmd 2024-06-13 20:00:56 +08:00
Max
e881e9def4
Merge pull request #619 from trheyi/main
chore: Update cssRe regular expression to include hyphen in selectors
2024-06-11 17:30:11 +08:00
Max
971246d090 chore: Update cssRe regular expression to include hyphen in selectors 2024-06-11 17:26:37 +08:00
Max
56d2babba6
Merge pull request #618 from trheyi/main
chore: Deprecate $slot and $prop in favor of $slots and $props
2024-06-11 10:40:53 +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
c19df9282f
Merge pull request #617 from trheyi/main
feat: Clear modules before loading shared library
2024-06-06 15:45:18 +08:00
Max
26189fd61f feat: Clear modules before loading shared library
Clear the modules before loading the shared library to ensure a clean state. This is necessary to avoid any conflicts or issues with previously loaded modules.
2024-06-06 15:44:28 +08:00
Max
34e35ba51b
Merge pull request #616 from trheyi/main
[add] TypeScript import support (experimental)
2024-06-05 15:00:48 +08:00
Max
55ca180f7f [add] TypeScript import support (experimental)
- When YAO_RUNTIME_IMPORT is set to true, TypeScript import will be enabled.
2024-06-05 14:59:25 +08:00
Max
4b5316c6a0
Merge pull request #615 from trheyi/main
Update installation instructions in README
2024-06-03 19:32:24 +08:00
Max
8bf78c65d4 Update installation instructions in README 2024-05-31 17:11:11 +08:00
Max
cf8c6b012c
Merge pull request #614 from trheyi/main
feat: Add SelectModel command to DSL
2024-05-25 20:21:47 +08:00
Max
1f4e9e5a16 feat: Add SelectModel command to DSL
Add the SelectModel command to the DSL, allowing the selection of a specific model. This command takes a model name as input and sets the AI to use that model. It returns a success message with a status code of 200 if the selection is successful.
2024-05-25 20:17:25 +08:00
Max
dcb4ef1a18
Merge pull request #613 from trheyi/main
feat: Add hideLabel option to component and column DSL
2024-05-23 06:49:09 +08:00
Max
1a1ffabbd8 feat: Add hideLabel option to component and column DSL
Add the hideLabel option to the component and column DSLs. This allows hiding the label for the respective widgets. The hideLabel option is set to true in the component and column DSLs when necessary.
2024-05-23 06:48:12 +08:00
Max
4ca1c7f521
Merge pull request #612 from trheyi/main
chore: Set full configuration by default for list widget
2024-05-21 20:47:22 +08:00
Max
f38a2e4eb4 chore: Set full configuration by default for list widget
Set the full configuration by default for the list widget. This is a temporary solution and will be removed in the future. The full configuration should be set when the list is created.
2024-05-21 20:45:32 +08:00
Max
48ae099ea0
Merge pull request #610 from yflau/main
export rootCmd as public
2024-05-08 22:15:14 +08:00
yunfei.liu
fb82fcbdbd log roration 2024-05-08 20:58:09 +08:00
yflau
a42c556295
export rootCmd as public
export the rootCmd to support customized commands when use yao as lib
2024-05-08 19:51:46 +08:00
Max
9f7af5e4da
Merge pull request #608 from yflau/patch-1
support custom loaders
2024-05-08 06:26:49 +08:00
yflau
63df367bad
support custom loaders
it's useful for custom widgets or processes loaders to use the initialized config.Config in engine.Load
2024-05-07 16:52:43 +08:00
Max
922d3b306b
Merge pull request #607 from trheyi/main
chore: Update engine.Load calls with additional options
2024-05-05 17:55:06 +08:00
Max
9faf8f802f chore: Update engine.Load calls with additional options 2024-05-05 17:54:32 +08:00
Max
c11c0557cc
Merge pull request #606 from trheyi/main
[add] Form widget processes: load, reload, unload, read and exists.
2024-05-03 17:39:02 +08:00
Max
5a719b6469 [add] Form widget processes: load, reload, unload, read and exists. 2024-05-03 17:27:36 +08:00
Max
bc882b2694
Merge pull request #605 from trheyi/main
[add] Table widget processes: load, reload, unload, read and exists.
2024-05-03 13:15:04 +08:00
Max
f422dd29c6 [add] Table widget processes: load, reload, unload, read and exists. 2024-05-03 13:08:10 +08:00
Max
21e509e2ee
Merge pull request #604 from trheyi/main
Add AfterLoad process execution in Load and Reload functions
2024-05-02 19:50:52 +08:00
Max
0703743e72 Add AfterLoad process execution in Load and Reload functions 2024-05-02 19:49:43 +08:00
Max
76d1e576f3
Merge pull request #603 from trheyi/main
Securely update dependency packages
2024-05-02 16:53:23 +08:00
Max
64c6602beb Securely update dependency packages 2024-05-02 16:45:57 +08:00
Max
59e48854e7
Merge pull request #602 from trheyi/main
Update download and installation instructions in README files
2024-04-18 19:52:10 +08:00
Max
2e9c5b4585 Update download and installation instructions in README files 2024-04-18 19:51:39 +08:00
Max
07ded02606
Merge pull request #600 from trheyi/main
Add icon support to Section and TabsItem components
2024-04-09 11:53:14 +08:00
Max
e72463175f Add icon support to Section and TabsItem components 2024-04-09 11:52:19 +08:00
Max
b8cf10f4cb
Merge pull request #597 from trheyi/main
Refactor bind logic in DSL
2024-04-02 12:30:16 +08:00
Max
edad2e76f3 Refactor bind logic in DSL 2024-04-02 12:29:27 +08:00
Max
7e0d50a4ea
Merge pull request #596 from trheyi/main
Fix formMap initialization in FieldsDSL
2024-03-23 17:49:45 +08:00
Max
dff977590b Fix formMap initialization in FieldsDSL 2024-03-23 17:49:05 +08:00
Max
542d67a907
Merge pull request #595 from trheyi/main
Refactor middleware and request handling code
2024-03-19 14:04:50 +08:00
Max
a48c4cbe7d Refactor middleware and request handling code 2024-03-19 13:58:43 +08:00
Max
a8778aa1d5
Merge pull request #594 from imlida/lida
fix utils.env.Set bug
2024-03-18 17:06:58 +08:00
imcode
29f8dd87d4 fix utils.env.Set bug 2024-03-18 16:56:55 +08:00
Max
fe580d743a
Merge pull request #593 from trheyi/main
Update field values in model.trans.json
2024-03-14 12:48:08 +08:00