Pass the `data` parameter to the `buildOperatHtml` function to support dynamic visibility checks for table operations. This allows operation visibility to be conditionally determined
based on the provided data.
Display the status of the DEBUG mode on the welcome page with a button that changes color
and text based on the value of `APP_DEBUG` environment variable. Include a grey badge
提示 to prompt users to switch off DEBUG mode in production environments.
- Add an attribute 'searchTableAutocomplete' to enable/disable form autocomplete.
- Set 'searchTableShow' attribute to control the visibility of the search form.
- Remove redundant form initialization code for a cleaner setup.
Removed the version parameter from the require.js src attribute to enable browser caching
of the script. This change will improve load times and performance by leveraging cached
versions of the script when users revisit the site.
Removed the version parameter from the require.js src attribute to enable browser caching
of the script. This change will improve load times and performance by leveraging cached
versions of the script when users revisit the site.
Correct the way wangEditor instances are accessed and stored in the window object. The previous
implementation using `eval` could lead to security risks and is removed in favor of direct
window property access. This change improves code security and reliability by eliminating `eval`
and clarifying the object property name construction.
Introduce the EasyMDE markdown editor into the admin interface, providing enhanced
markdown editing capabilities. This integration caters to users preferring a dedicated
markdown editor with additional features and a streamlined user experience.
Cast page and limit values to integers in AdminController's filter method to prevent
type-related errors. This change guarantees that these parameters are whole numbers,
which is essential for consistent database pagination and filtering operations.
To prevent cache data residuals between different versions, the default cache prefix
has been changed from an empty string to 'EA8TP'. This ensures each version's cache
is distinctly separated.
BREAKING CHANGE: The cache prefix 'EA8TP' is now used by default. If your application
depends on the default cache prefix being empty, you will need to explicitly set the
prefix to an empty string.
The renderToolbar function in easy-admin now checks if the provided data is an object before
attempting to iterate over it. This fix prevents errors when the data parameter is not an object,
ensuring that the function does not break down and correctly returns the provided data.
Admin welcome page has been redesigned to improve the layout and readability of displayed
information. Real-time statistics panels have been adjusted with new color schemes, and the
information presentation has been refined with appropriate heading sizes. Additionally, the
page now links to the layui documentation and includes a reminder about the open-source
nature of the framework.
- Redesign the overall layout of the welcome page.
- Refactor real-time statistics panels with updated styles and content.
- Improve the display of quick entry modules.
- Add links to layui documentation and policy reminders.
- Ensure consistent use of spaces and clean up the footer section.
Moved the RequireJS dynamic load of the controller-specific JavaScript to execute upon
the 'load' event of the window, guaranteeing that all required DOM elements are available
before the script execution begins. Also, added error handling to log any require failures
to the console for easier debugging.
Moved the RequireJS dynamic load of the controller-specific JavaScript to execute upon
the 'load' event of the window, guaranteeing that all required DOM elements are available
before the script execution begins. Also, added error handling to log any require failures
to the console for easier debugging.
Extend the CURD generation functionality to support command line operations, supplementing
the existing visual generation method. This update includes modifications to the admin interface, enabling the system to process both types of CURD generation commands effectively.
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.
Direct IP retrieval method has been updated to improve accuracy in the admin system log.
This change involves modifying the IP address retrieval logic from considering the
`HTTP_X_FORWARDED_FOR` header to directly using the `ip()` method, potentially enhancing
the security and reliability of IP logging.
After the admin session expires, the system now correctly redirects to the specified admin login URL, addressing the issue where the redirect would
sometimes point to an incorrect path.
Update the data-upload attribute on the upload button in the admin background
configuration page to correctly reference 'admin_background' instead of
'site_ico', ensuring the button functions as intended when uploading a new
background image.
The Alibaba Cloud client dependency has been updated to version 1.6.0 to add
PHP 8.1 compatibility. This change is reflected in the composer.json file under
the `require` section.
Additionally, the ordering of the `ext-mysqli` and `ext-pdo` dependencies has
been corrected for clarity and consistency.
Set a fixed width for the search input field in the easy-admin plugin to
enhance the consistency and readability of the search section. The update
modifies the easy-admin.js and public.css files to enforce the new styling.
Introduce the `laySearch` option to enable the search functionality on list
page search boxes. This improvement allows users to have a more intuitive
and interactive way of searching through the list data by providing a search
box with clear and concise feedback.
When `laySearch` is set to true, the corresponding search box will now
be equipped with the `lay-search` class which enhances the user interface
and experience.
Introduce the `laySearch` option to enable the search functionality on list
page search boxes. This improvement allows users to have a more intuitive
and interactive way of searching through the lists by providing a search
input alongside the dropdown options.
When the operat parameter passed to the easy-admin.js plugin is not an object,it previously caused a JavaScript error. This fix adds a check to ensure that operat is indeed an object before processing it, thus preventing the error.
The relationship between MallGoods and MallCate has been updated to reflect a HasOne
association rather than a BelongsTo. This change is reflected in the cate() method
of the MallGoods model, enhancing the flexibility of the model relationships.
category selection in both add and edit pages of the mall goods module.
- Modify the corresponding JS file to support the new category display format.
- Refactor controller code to assign categories using a more efficient method.
- Ensure consistent category data processing across all related views.
Note: This change updates the way categories are presented to the admin user,
enhancing usability and maintainability of the goods management system.
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.
The function signature for `editor_textarea` in common.php has been updated
to accept `$detail` as a nullable string. This change allows the function to handle cases
where `$detail` might not be provided or could be null.
```php
- function editor_textarea(string $detail, string $name = 'desc', string $placeholder = '请输入'): string
+ function editor_textarea(?string $detail, string $name = 'desc', string $placeholder = '请输入'): string
```