Commit Graph

11 Commits

Author SHA1 Message Date
wolfcode
6dfdffeab9 feat(console): add CRUD support and update usage warning
Extend the console command configuration to include 'crud' alongside the existing 'curd'
command for better supporting CRUD operations in the application. Additionally, update the
user warning message to recommend using the visual generation features for CRUD functionality
within the system, indicating that further support for command-line CURD/CRUD will be phased out.Adjust the related fields handling in the Curd command class methods to use 'onlyField' for
consistency with the singular form of field manipulations, and ensure correct method parameter
names are reflected in the relation setup.
2024-08-16 11:32:13 +08:00
wolfcode
c9f65c838e Update Curd.php 2024-08-06 19:49:24 +08:00
wolfcode
7f3a3a85f3 CURD生成器:增强字段类型设置和模板调整
本次更新增强了CURD生成器的字段类型自定义功能,允许开发者通过Web界面设置特定字段的类型,例如忽略字段、下拉字段、单选字段、多选字段、图片字段、多选图片字段、日期字段、日期时间字段和编辑器字段。这些设置会直接影响生成的控制器、模型和视图文件,从而提供更高的灵活性和定制化能力。此外,还对代码模板进行了调整,引入了`$notes`变量来存储字段定义,简化了视图中的脚本处理,并优化了控制器和模型中的代码结构。这些改动旨在改善代码的可读性和可维护性,同时使CURD生成器的使用更加直观和便捷。

通过这次更新,我们希望进一步提升CURD生成器的实用性和用户体验,减少开发者在日常 CRUD操作中重复编写代码的工作量。相关的代码改动包括对`BuildCurd.php`文件的多处调整,以实现新的字段类型设置功能;对`CommonTool.php`的修改,以支持新的数组字符串处理逻辑;对`controller.code`、`curd_generate.js`、`curd_generate.php`、`index.code`和`index.html`等文件的修改,以确保生成的代码与新的设置逻辑兼容,并改善前端交互体验。
2024-07-31 14:47:24 +08:00
wolfcode
58db4f4277 fix(common): correct spelling of 'selectFields' in Curd.php
Fix misspelling of 'selectFields' option throughout Curd.php, ensuring consistency and
correctness in the command's configuration options.
2024-07-10 11:53:07 +08:00
wolfcode
6b97ca12de feat(admin): add table order sorting functionality
初始化表格排序,js排序操作传递到服务端
2024-07-08 14:57:18 +08:00
wolfcode
88035326a4 refactor(admin): change default editor from ueditor to wangEditor
Due to the recommendation for better performance and user experience,
the default editor in both configuration files and view templates has been
switched from ueditor to wangEditor. The code changes reflect this update by
marking ueditor as '(不建议使用)' (not recommended) and WangEditor as
'(推荐使用)' (recommended). Additionally, the relevant controller file has
been updated to ensure that the correct default editor is loaded based on
the new configuration setting.
2024-06-19 15:30:03 +08:00
wolfcode
a6fd81b0ed 🚀 202405重置版 2024-05-13 11:16:20 +08:00
wolfcode
1d0b94009f 新增HTML编辑器,优化编辑器调用 2024-04-15 18:25:13 +08:00
wolfcode
cf086a7b6c 修改 NodeAnnotation 命名标准 2023-09-04 20:45:38 +08:00
wolfcode
f6e77598c7 Update Curd.php 2023-07-18 12:06:24 +08:00
wolfcode
e1c3216904 init 2023-06-15 16:18:27 +08:00