288 Commits

Author SHA1 Message Date
lovasoa 0561724934 run_sql documentation in shell component 2024-03-12 13:25:18 +01:00
lovasoa 2770603b9c fix run_sql documentation 2024-03-09 17:04:57 +01:00
lovasoa 1ce38ef02a handle infinite loops in run_sql 2024-03-09 16:31:45 +01:00
lovasoa 1ce69d821e better error messages 2024-03-09 16:14:56 +01:00
lovasoa 34a8b5d630 improve carousel documentation
it wasn't very clear that we had a component to display images

https://github.com/lovasoa/SQLpage/pull/257
2024-03-09 10:41:35 +01:00
lovasoa 9cd126d3d9 documentation 2024-03-09 10:41:35 +01:00
lovasoa 4360010221 document run_sql 2024-03-09 10:40:21 +01:00
lovasoa 45e1d4e93f improve the documentation for the DEBUG component
closes #251
2024-03-05 19:52:37 +01:00
olivierauverlot f865b1f4ef New RSS component (#252)
* Produces a data flow in the RSS format

* add documentation and rss reference

* more complete rss component, with support for podcasts

* podcast changes

* documentation

* format dates as rfc2822

* extract template helpers

* extract more helpers

* remove unnecassary error handling

* fmt

* two-param helpers

* rfc2822_date_helper

* test rfc date formatter

* accept dates with or without time

* remove unneeded line breaks

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
Co-authored-by: lovasoa <pere.jobs@gmail.com>
2024-03-05 19:52:37 +01:00
olivierauverlot 75d7c46040 A unique identifier for the input, which can then be used to select and manage the field with Javascript code. (#250)
Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-03-05 19:52:37 +01:00
lovasoa 216de9adc0 update documentation about connection strings
https://github.com/lovasoa/SQLpage/discussions/244
2024-02-29 09:57:49 +01:00
lovasoa 66792ac4c4 fix picture upload example 2024-02-29 09:39:50 +01:00
olivierauverlot 318dec18d3 Table improvements (#242)
Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-02-25 19:09:06 +01:00
lovasoa beecaa1407 add support for new page layouts
Closes https://github.com/lovasoa/SQLpage/discussions/240
2024-02-24 20:08:39 +01:00
Ophir LOJKINE d14508d249 multishell (#234)
* New prefix and suffix attributes to create prepended and appended form fields

* fix indentation

* improve documentation

* add prefix_icon

* update changelog

* fix default cookie path

see https://github.com/lovasoa/SQLpage/discussions/200

* update dependencies

* multiple custom shells

* fmt

* clippy

* clippy

* tests and docs

* changelog

* update dependencies

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-02-24 19:23:13 +01:00
lovasoa dfe6dbbbf5 New edit_link, delete_link, and view_link...
...row-level attributes in the list component to add icons and links to each row.
2024-02-18 21:06:54 +01:00
olivierauverlot 29d56fa204 Refactoring of title and code components + documentation of these components (#224)
* New prefix and suffix attributes to create prepended and appended form fields

* Refactoring of code and title components. Documentation of code and title components.

* corrections

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-02-17 10:55:42 +01:00
olivierauverlot 2d68c6b767 forms: allow creating input groups with icons and text around form fields
* New prefix and suffix attributes to create prepended and appended form fields

* fix indentation

* improve documentation

* add prefix_icon

* update changelog

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
Co-authored-by: lovasoa <pere.jobs@gmail.com>
2024-02-11 10:58:29 +01:00
lovasoa e107919b3b update the documentation to match the new json_table support 2024-02-06 10:41:00 +01:00
lovasoa c8b675335e use json_table in the mysql json example 2024-02-06 09:59:06 +01:00
lovasoa ff00972b51 remove now obsolete attribute from carousel component 2024-02-04 10:47:06 +01:00
lovasoa b44519a0b7 Make the documentation for http_header clearer
closes https://github.com/lovasoa/SQLpage/pull/216

thanks @matthewlarkin
2024-02-04 10:38:34 +01:00
lovasoa 7791b794ae Fix syntax error in documentation
thanks @matthewlarkin

see https://github.com/lovasoa/SQLpage/pull/216
2024-02-04 10:22:25 +01:00
lovasoa 2bdfa09d4a documentation: reformat 2024-02-04 10:19:12 +01:00
Ophir LOJKINE 5fa50f374a carousel component (#214)
* Initial carousel component implementation

* change carousel example

* make the carousel text description more readable by adding a background

* update cat example

* carousel automatic cycling is now optional

* remove requirement for unique name attribute in carousel

see https://github.com/lovasoa/SQLpage/pull/179#discussion_r1445378383

* fix carousel buttons

* uodate deps

* fix official site docs

* lint

* update changelog

---------

Co-authored-by: Olivier Auverlot <@olivierauverlot>
2024-02-03 15:44:44 +01:00
lovasoa 4821c4b636 fix post date 2024-01-29 14:23:10 +01:00
lovasoa 75957959b8 v0.18.1
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql) (push) Has been cancelled
CI / test (mysql) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
2024-01-28 21:30:40 +01:00
lovasoa 987fb59a7a docs: mention that the id and class attributes are new in v0.18
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql) (push) Has been cancelled
CI / test (mysql) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / Build sqlpage binaries (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
fixes https://github.com/lovasoa/SQLpage/discussions/203
2024-01-28 20:51:19 +01:00
lovasoa 7c38f7abc0 implement sqlpage.uploaded_file_mime_type
fixes https://github.com/lovasoa/SQLpage/discussions/204
2024-01-26 18:37:34 +01:00
Greg Gaughan 3798078509 Fix typos (#205) 2024-01-26 14:09:52 +01:00
Greg Gaughan bf40f33386 An user -> a user (#206) 2024-01-26 12:35:16 +01:00
lovasoa c760ecc396 Fix problematic intra-page links wirh the text component
see https://github.com/lovasoa/SQLpage/discussions/203
2024-01-24 23:05:08 +01:00
Lorefnon 49fd4f07d4 Support iframe embed mode (#188) 2024-01-19 17:29:42 +01:00
lovasoa 8d8b4e455c remove double quote syntax error from docs
forgot to remove the sql quote escapes when moving to a separate markdown file

fixes https://github.com/lovasoa/SQLpage/issues/192
2024-01-19 13:38:49 +01:00
Kuro ea6c77716f Update 03_alert_component.sql
dismissible is a BOOLEAN not a TEXT
2024-01-16 18:23:06 +01:00
lovasoa 173152c08b add a link to the cookie component from the sqlpage.cookie function
closes https://github.com/lovasoa/SQLpage/discussions/187
2024-01-12 23:19:55 +01:00
Lorefnon 1fa4f9364a Add id/class to the components (#182) 2024-01-12 23:05:38 +01:00
olivierauverlot f6b78222f2 New 'center' parameter to whether to center the tracking component. (#178)
* New 'center' parameter to whether to center the trakcing component.

* Merge of documentation files about tracking component

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-01-08 22:48:37 +01:00
lovasoa e010692749 document postgres-specific syntax 2024-01-05 22:18:29 +01:00
Lorefnon 99c7e02499 Support lazy-loaded content fragments in card component (#175)
* Add support for embed parameter that skips the shell layout

* Add support for cards with remote content

* Adapt js to support lazy-loaded fragments

* Add example

* Reformat & Fix lint errors

* Update query param name and add docs

* Add example

* squash migrations

---------

Co-authored-by: lovasoa <pere.jobs@gmail.com>
2024-01-05 22:17:33 +01:00
lovasoa a165e9dbc2 chart component fixes & improvements 2024-01-05 09:47:24 +01:00
lovasoa 202ebdd655 fix card component and update example 2024-01-01 15:12:37 +01:00
lovasoa 2d40e246c0 update example for the breadcrumb component to avoid broken links 2024-01-01 14:40:26 +01:00
lovasoa 96803c5825 change breadcrumb icon 2024-01-01 14:35:24 +01:00
Olivier Auverlot d41f50436a Breadcrumb component 2023-12-31 18:20:24 +01:00
olivierauverlot ead3350177 Add tracking component (#162)
* Add tracking component

* Add divider component

* Update examples/official-site/sqlpage/migrations/28_tracking_component.sql

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

* Many improvements (color and title attributes, width of the component, spacing between items)

* New example with no optional parameters

* Empty lines removed

* Refactoring

* add newcomponents to changelog

* reduce margin in tracking component

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
2023-12-29 22:54:43 +01:00
lovasoa 6250e390d5 change link 2023-12-16 17:22:41 +01:00
lovasoa e78b24f881 improve dynamic component docs 2023-12-16 16:19:04 +01:00
lovasoa cbba28f254 fix bug in example form usage in documentation 2023-12-16 11:02:18 +01:00
lovasoa fcf702136f uploaded_file_path docs: avoid annoying debug output in example 2023-12-15 18:57:25 +01:00