512 Commits

Author SHA1 Message Date
Gus Power 261f76c2bc Add unsafe_contents_md to text component, add related file tests, add documentation parameters 2025-03-17 11:08:36 +00:00
Saturos 7eba2efdbd Revert sqlpage.json (#857) 2025-03-17 12:05:09 +01:00
Gus Power ec31de229f Merge branch 'sqlpage:main' into optional-html-blocks-in-markdown 2025-03-16 10:19:29 +00:00
Gus Power 7d93aa6050 rename unsafe -> allow_unsafe (unsafe was a bad choice as it clashes with the rust keyword) 2025-03-15 09:08:11 +00:00
Gus Power 2702cbcc36 introduce MarkdownConfig trait to simplify testing; introduce allow_unsafe optional parameter to MarkdownHelper, add tests for various permutations, extend text.handlebars to pass through parameter 2025-03-13 11:15:20 +00:00
lovasoa e35c49126d add support for columns without buttons
closes https://github.com/sqlpage/SQLPage/issues/851
2025-03-11 00:18:30 +01:00
lovasoa 1d833c1de8 fix https://github.com/sqlpage/SQLPage/issues/840 2025-03-05 23:23:43 +01:00
lovasoa e8d97f3220 add support for rtl languages
fixes https://github.com/sqlpage/SQLPage/issues/838
2025-03-02 10:19:11 +01:00
francesco-cattoglio 35583a5f3e Option to completely hide the footer from the shell.handlebars template (#836)
* shell.handlebars: remove footer when it is exactly an empty string

With this patch, if the user specifies the footer for the shell as exactly the empty string, then the whole footer is removed from the page. Leaving the footer as null or undefined still shows the "Build with SQLPage" default footer.

* Update CHANGELOG.md
2025-02-28 14:14:02 +01:00
lovasoa 0969495806 better error handling in select fields 2025-02-27 21:43:58 +01:00
lovasoa 8284501d8c escape css class names 2025-02-27 13:43:16 +01:00
lovasoa 5ec0335f78 list delete with POST requests 2025-02-27 13:33:07 +01:00
lovasoa b236a870ff fix https://github.com/sqlpage/SQLPage/issues/830 2025-02-27 13:32:57 +01:00
lovasoa b11136a591 update dependencies
fixes https://github.com/sqlpage/SQLPage/issues/797
2025-02-22 14:47:20 +01:00
lovasoa a10a77794d fix navbar muted color
fixes https://github.com/sqlpage/SQLPage/issues/822
2025-02-22 14:36:29 +01:00
lovasoa c677023e6a center table descriptions 2025-02-19 09:41:00 +01:00
lovasoa aa3149d546 fix date sorting 2025-02-18 23:39:56 +01:00
lovasoa a9f02161e9 fix missing space between attrs 2025-02-18 23:26:11 +01:00
lovasoa f83fdee729 fix NaN displayed for empty cells in number columns 2025-02-18 23:24:44 +01:00
lovasoa 63385f6234 fix https://github.com/sqlpage/SQLPage/issues/812 2025-02-16 17:40:03 +01:00
francesco-cattoglio c57d82c12a Added an option to format numbers using toLocaleString() for table columns (#807)
* Added an option to format numbers using `toLocaleString()` for table columns

* format numbers in tables

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-02-11 23:57:18 +01:00
lovasoa 92790048bd fix markdown rendering in form
@theochr72
2025-02-11 23:56:35 +01:00
theochr72 3a03b92ffc feature/add_markdown_to_forms (#809)
add description_md to the form component

---------

Co-authored-by: Theo Cochereau <tcochereau@cosium.com>
Co-authored-by: Théo Cochereau <theotheboss@MacBook-Air-de-Theo.local>
2025-02-11 22:23:03 +01:00
lovasoa b892a72257 tablerupdate tabler 2025-02-10 23:27:39 +01:00
lovasoa 5a79514d14 make page embedding and custom layouts easier and less error prone
- The `embed` property now automatically adds the `_sqlpage_embed` parameter to the embedded page URL to render it as an embeddable fragment.
  - When an embedded page is rendered, the `shell` component is automatically replaced by a `shell-empty` component, to avoid displaying a duplicate shell and creating invalid duplicated page metadata in the response.

see https://github.com/sqlpage/SQLPage/issues/799
2025-02-10 23:04:53 +01:00
lovasoa 49f696de6f map component: support pins with description but no title 2025-02-08 23:09:56 +01:00
lovasoa 725c896603 fmt 2025-02-05 21:18:31 +01:00
lovasoa 8ba15fdcc5 form select 2025-02-05 18:06:32 +01:00
lovasoa 69b3207f04 new auto_submit parameter in the form component 2025-02-05 13:54:25 +01:00
lovasoa f58befe2b7 update dependencies 2025-02-05 13:11:44 +01:00
lovasoa 95214dfb93 fix https://github.com/sqlpage/SQLPage/issues/769#issuecomment-2582740208 2025-01-10 23:05:27 +01:00
lovasoa 6651a1b2cd Fix a bug where the table component would not add the right css classes to table cells
fixes https://github.com/sqlpage/SQLPage/issues/762
2025-01-05 23:39:01 +01:00
lovasoa df8cd48f76 Fix bug in list component
Fix a bug in the [link](https://sql-page.com/component.sql?component=link) component where the properties `view_link`, `edit_link`, and `delete_link` had become incompatible with the main `link` property.

fixes https://github.com/sqlpage/SQLPage/issues/759
2025-01-02 12:40:25 +01:00
lovasoa e17d3d0e98 add align_center to the table component
Closes https://github.com/sqlpage/SQLPage/discussions/752
2024-12-30 13:27:14 +01:00
lovasoa 521328f678 Fix an issue with radio buttons default state
fixes https://github.com/sqlpage/SQLPage/issues/751
2024-12-30 13:26:42 +01:00
lovasoa 3dd4f90c4e update tabler
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
and dry leaflet
2024-12-29 00:30:59 +01:00
lovasoa 84bc1287f1 format 2024-12-28 23:41:39 +01:00
lovasoa 2c8d14edbc When using the map component without a basemap, use a light background color that respects the theme color. 2024-12-28 23:02:52 +01:00
lovasoa 9e804ccfab improve links in lists
and improve docs
2024-12-28 22:57:45 +01:00
lovasoa 50d22992e8 tutorials 2024-12-28 12:04:19 +01:00
lovasoa 75462bd664 checked = value for checkboxes 2024-12-25 12:27:09 +01:00
lovasoa eb4c0ce4be rewrite "SQLPage versus No-Code tools" 2024-12-24 23:17:42 +01:00
lovasoa fb43436091 fmt 2024-12-24 09:59:10 +01:00
lovasoa 8ba2fd21c8 new article prop 2024-12-24 09:58:31 +01:00
Floflobel fbc4f29d7e fix cards that have embedded contents (#744)
* fix https://github.com/sqlpage/SQLPage/issues/743

* fix https://github.com/sqlpage/SQLPage/issues/743

* handle icons separately

* remove description test, since descriptions are overwritten by card embeds anyway

---------

Co-authored-by: Florian Bellencontre <fbellencontre@cosium.com>
Co-authored-by: lovasoa <contact@ophir.dev>
2024-12-22 20:41:36 +01:00
lovasoa ef82b78f38 update apex charts
fixes https://github.com/sqlpage/SQLPage/issues/733
fixes
fixes https://github.com/sqlpage/SQLPage/issues/726
2024-12-21 01:11:15 +01:00
lovasoa ad1beeae70 update apex charts 2024-12-12 18:29:18 +01:00
lovasoa b1866d5c39 readd sqlpage db file 2024-12-11 16:08:04 +01:00
lovasoa d8c25dfbfb Format 2024-12-11 16:03:02 +01:00
lovasoa 63f1ff5e6f fix apexcharts bug
See https://github.com/sqlpage/SQLPage/issues/733
2024-12-10 14:25:34 +01:00