You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,8 @@
11
11
-[Updated SQL parser](https://github.com/sqlparser-rs/sqlparser-rs/blob/main/CHANGELOG.md#0470-2024-06-01). Fixes support for `AT TIME ZONE` in postgres. Fixes `GROUP_CONCAT()` in MySQL.
12
12
- Add a new warning message in the logs when trying to use `SET $x = ` when there is already a form field named `x`.
13
13
-**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_path` and `sqlpage.uploaded_file_mime_type`. This is now fixed, and these functions will return `NULL` when the user does not upload a file. `sqlpage.persist_uploaded_file` will not create an empty file in the target directory when the user does not upload a file, instead it will do nothing and return `NULL`.
14
-
- In the [map](https://sql.ophir.dev/documentation.sql?component=map#component) component, when top-level latitude and longitude attributes are omitted, the map will now center on its markers. This makes it easier to create zoomed maps with a single marker.
14
+
- In the [map](https://sql.ophir.dev/documentation.sql?component=map#component) 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.
15
+
- In the [button](https://sql.ophir.dev/documentation.sql?component=button#component) component, add a `download` property to make the button download a file when clicked, a `target` property to open the link in a new tab, and a `rel` property to prevent search engines from following the link.
15
16
16
17
## 0.22.0 (2024-05-29)
17
18
-**Important Security Fix:** The behavior of `SET $x` has been modified to match `SELECT $x`.
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/18_button.sql
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
21
21
('icon_after', 'Name of an icon to display after the text in the button', 'ICON', FALSE, TRUE),
22
22
('icon', 'Name of an icon to be displayed on the left side of the button.', 'ICON', FALSE, TRUE),
23
23
('form', 'Identifier (id) of the form to which the button should submit.', 'TEXT', FALSE, TRUE),
24
+
('rel', '"nofollow" when the contents of the target link are not endorsed, "noopener" when the target is not trusted, and "noreferrer" to hide where the user came from when they open the link.', 'TEXT', FALSE, TRUE),
25
+
('target', '"_blank" to open the link in a new tab, "_self" to open it in the same tab, "_parent" to open it in the parent frame, or "_top" to open it in the full body of the window.', 'TEXT', FALSE, TRUE),
26
+
('download', 'If defined, the link will download the target instead of navigating to it. Set the value to the desired name of the downloaded file.', 'TEXT', FALSE, TRUE),
24
27
('id', 'HTML Identifier to add to the button element.', 'TEXT', FALSE, TRUE)
25
28
) x;
26
29
@@ -77,4 +80,15 @@ In the target page, we could then use the GET variable `$action` to determine wh
0 commit comments