-
- fix a bug in the [csv](https://sql.ophir.dev/documentation.sql?component=csv#component) component. The `separator` parameter now works as expected. This facilitates creating excel-compatible CSVs in european countries where excel expects the separat…
发布于
2024-06-09 20:00:45 +00:00 | 1718 次提交 在此版本后已推送到 main…or to be
;instead of,.- new
tooltipproperty in the button component. - New
search_valueproperty in the shell component. - Fixed a display issue in the hero component when the button text is long and the viewport is narrow.
- reuse the existing opened database connection for the current query in
sqlpage.run_sqlinstead of opening a new one. This makes it possible to create a temporary table in a file, and reuse it in an included script, create a SQL transaction that spans over multiple run_sql calls, and should generally make run_sql more performant. - Fixed a bug in the cookie component where removing a cookie from a subdirectory would not work.
- Updated SQL parser. Fixes support for
AT TIME ZONEin postgres. FixesGROUP_CONCAT()in MySQL. - Add a new warning message in the logs when trying to use
SET $x =when there is already a form field namedx. - Empty Uploaded files: when a form contains an optional file upload field, and the user does not upload a file, the field used to still be accessible to SQLPage file-related functions such as
sqlpage.uploaded_file_pathandsqlpage.uploaded_file_mime_type. This is now fixed, and these functions will returnNULLwhen the user does not upload a file.sqlpage.persist_uploaded_filewill not create an empty file in the target directory when the user does not upload a file, instead it will do nothing and returnNULL. - In the map component, when top-level latitude and longitude properties are omitted, the map will now center on its markers. This makes it easier to create zoomed maps with a single marker.
- In the button component, add a
downloadproperty to make the button download a file when clicked, atargetproperty to open the link in a new tab, and arelproperty to prevent search engines from following the link. - New
timeoutoption in the sqlpage.fetch function to set a timeout for the request. This is useful when working with slow or unreliable APIs, large payloads, or when you want to avoid waiting too long for a response. - In the hero component, add a
posterproperty to display a video poster image, aloopproperty to loop the video (useful for short animations), amutedproperty to mute the video, and anocontrolsproperty to hide video controls. - Fix a bug where icons would disappear when serving a SQLPage website from a subdirectory and not the root of the (sub)domain using the
site_prefixconfiguration option.
下载附件
- new