154 Commits

Author SHA1 Message Date
lovasoa 6982681bd7 chart performance: use .textContent instead of .innerText 2024-03-25 09:41:17 +01:00
lovasoa ba4292b492 add an easy was to persist uploaded files
fixes https://github.com/lovasoa/SQLpage/issues/199
2024-03-23 13:03:47 +01:00
lovasoa 746541fa9b add a css class with the column name to table headers, and document the behavior
fixes https://github.com/lovasoa/SQLpage/discussions/264
2024-03-13 18:26:41 +01:00
lovasoa 38fad27b5d update tabler icons 2024-03-13 11:32:29 +01:00
lovasoa 378ed9c50e update apexcharts 2024-03-12 15:40:24 +01:00
olivierauverlot eaee6987d8 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:42:44 +01:00
olivierauverlot edb7bf4d0f 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-04 16:08:17 +01:00
olivierauverlot 318dec18d3 Table improvements (#242)
Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-02-25 19:09:06 +01:00
lovasoa 9974f082b9 update apex charts 2024-02-24 20:15:50 +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 ede6a2823b update charting library & add new icons 2024-02-03 18:14:21 +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
lorefnon 0ea62650dd Fix regression causing chart height to not be respected and title not showing up 2024-01-29 13:22:24 +05:30
lorefnon 6123bff033 Revert "fix height of charts"
This reverts commit 32abc041b0.
2024-01-29 13:07:32 +05:30
lovasoa 32abc041b0 fix height of charts
fixes bug introduced in https://github.com/lovasoa/SQLpage/pull/175
2024-01-28 21:25:14 +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
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
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 c8c6b05b58 remove unnecessary whitespaces 2024-01-01 14:52:35 +01:00
lovasoa b7f2200e00 fix identation and reduce margin in breadcrumb 2024-01-01 14:35:45 +01:00
lovasoa 6cdaea3f53 add margin to breadcrumb 2024-01-01 14:31:21 +01:00
lovasoa 1a32ae8697 remove extra whitespace 2024-01-01 14:29:22 +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 2c2acc3e08 Fix small display issue on cards without a title 2023-12-13 18:00:27 +01:00
lovasoa 4a4d1986fe disable series alignment for line charts
apexcharts handles unaligned series correctly

fixes https://github.com/lovasoa/SQLpage/issues/149
2023-12-12 05:48:38 +01:00
lovasoa f882797c4d new attributes in the datagrid component 2023-12-10 14:39:56 +01:00
lovasoa 3fe3a88161 new icons 2023-12-10 11:44:23 +01:00
lovasoa 35e945011d add an example for heatmaps 2023-12-09 15:13:08 +01:00
lovasoa 3bc76da105 selected in multiselect options
see https://github.com/lovasoa/SQLpage/discussions/147
2023-12-07 00:45:34 +01:00
lovasoa 51f58400a9 new configuration option: environment
allows hiding errors from users

closes https://github.com/lovasoa/SQLpage/issues/145

Thanks to @demogit-code
2023-12-04 00:27:15 +01:00
lovasoa a6bdec7cb2 Fix bad contrast in links in custom page footers. 2023-12-03 19:55:41 +01:00
lovasoa a7d6bd7a6c images in lists 2023-12-03 19:50:18 +01:00
lovasoa f5cf86875c change breakpoints in the hero component 2023-12-03 19:25:05 +01:00
lovasoa fa7369be58 add images to data grids 2023-12-03 19:20:00 +01:00
lovasoa c67f3266a1 small usability improvements 2023-12-01 01:28:33 +01:00
lovasoa 8e69339a6d update icons 2023-11-28 00:27:38 +01:00
lovasoa ea078188e4 responsive design in the card component 2023-11-27 23:00:47 +01:00
lovasoa 76b835eee8 fix a bug with input number min 2023-11-26 13:42:31 +01:00
Ophir LOJKINE 8216313fc9 http/2 and automatic https (#140)
* better docs for multi-select

* wip

* fix bug in corporate conundrum demo

* update dependencies

* Fix bug with variable assignment

fixes #138

* Files (#139)

* document future file functions

* make forms multipart when they contain a file field

* extract http request data reading logic

* start work on file upload

* multipart post data parsing

* millisecond precision in logs

* implement customizable upload file size limits

* wip: add file handling functions

* file handling pseudo-functions

* clippy

* fmt

* Add file upload functionality to changelog

* fix example

* update datetime parsing

* add support for samesite cookies and document cookie expiration

* add support for https

* clippy

* ignore certs

* revert changes to default config

* changelog
2023-11-25 12:55:21 +01:00
Ophir LOJKINE 332420bc18 Files (#139)
* document future file functions

* make forms multipart when they contain a file field

* extract http request data reading logic

* start work on file upload

* multipart post data parsing

* millisecond precision in logs

* implement customizable upload file size limits

* wip: add file handling functions

* file handling pseudo-functions

* clippy

* fmt
2023-11-24 23:49:53 +01:00
Ophir LOJKINE 23f834de71 null variables (#136)
* update dependencies

* Add support for resetting variables to a `NULL` value using `SET`. Previously, storing `NULL` in a variable would store the string `'null'` instead of the `NULL` value.
2023-11-19 20:09:18 +01:00