Commit Graph

11 Commits

Author SHA1 Message Date
Ophir LOJKINE e93056e6d8 Add sqlpage.set_variable(name, value) function and update docs (#1124)
* feat: Add sqlpage.set_variable function

Co-authored-by: contact <contact@ophir.dev>

* Refactor: Fix set_variable serialization and update tests

Co-authored-by: contact <contact@ophir.dev>

* fix tests: no json_extract on mssql

* Refactor: Update URLParameters handling in set_variable function

- Replaced serde_json::Map with a custom URLParameters struct for better management of URL parameters.
- Introduced methods for handling single and vector values in URLParameters.
- Updated tests to reflect changes in the set_variable function's behavior.

* cargo fmt

* clippy

* retsore set var test

* remove redundant test

* ensure set_variable only takes into account GET variables, not SET

* factor url parameter setting code

* v0.40

* sqlpage.set_variable links to "?" when no parameter is present

- Renamed URLParameters module for clarity and removed the deprecated url_parameter_deserializer.
- Updated the set_variable function to return parameters directly instead of appending to a URL.
- Adjusted related function calls to reflect changes in URL parameter management.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-11-24 12:55:32 +01:00
lovasoa 26e091a699 fix handling of one-element arrays in doc code generator
see https://github.com/sqlpage/SQLPage/issues/1079
2025-11-04 00:40:23 +01:00
lovasoa 61677ab5b7 landing page links 2025-05-26 01:30:48 +02:00
lovasoa 8ba2fd21c8 new article prop 2024-12-24 09:58:31 +01:00
lovasoa 52e995b3cd rework documentation 2024-12-03 01:46:26 +01:00
lovasoa 0778fb1412 add canonical URL for components doc pages 2024-11-04 22:57:18 +01:00
lovasoa 8ed6362ef7 improve tab component index 2024-11-04 22:45:51 +01:00
lovasoa c2ce9d5aac easier navigation in the functions documentation 2024-11-04 20:49:33 +01:00
lovasoa aef70fb7a4 fix breadcrumb links 2024-11-04 20:39:27 +01:00
lovasoa 1b3ddf028e update components docs file 2024-09-13 15:34:31 +02:00
lovasoa 831bbd0c27 move components docs to own page 2024-09-04 22:26:33 +02:00