lovasoa
1af44a79d0
fmt
2026-04-13 02:44:47 +02:00
lovasoa
637f198b57
error handling: improve visual presentation of error messages
...
- Updated error messages to be more user-friendly and visually appealing in the browser.
- Introduced a new method for retrieving static files from the cache.
- Improved error reporting for invalid UTF-8 encoding in SQL files.
2025-08-30 17:16:13 +02:00
lovasoa
4eb8008a7d
clippy
2025-08-18 14:57:24 +02:00
lovasoa
9f3e12e1ac
fmt
2024-11-14 23:17:43 +01:00
lovasoa
589f2b1cf1
improve error messages
2024-11-14 22:30:25 +01:00
lovasoa
df715a7f3c
handlebars-rs v6
2024-07-23 22:49:35 +02:00
lovasoa
a016cdb815
embed prefix addition in the static_path helper
2024-05-14 00:17:20 +02:00
lovasoa
f83592c44d
slightly improve error messages on invalid templates
...
https://github.com/lovasoa/SQLpage/discussions/275#discussion-6413288
2024-03-24 19:13:31 +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
Ophir LOJKINE
e3fb2f8acc
Introduce SQLPAGE_CONFIGURATION_DIRECTORY ( #243 )
...
* Introduce SQLPAGE_CONFIGURATION_DIRECTORY
Makes the configuration directory configurable instead of it being hardcoded to "./sqlpage/"
* logging
2024-02-25 19:23:17 +01:00
lovasoa
17681fb672
add support for geojson in the map component
...
this adds support for new geometries, including polygons
Closes https://github.com/lovasoa/SQLpage/issues/119
2023-11-07 23:52:38 +01:00
lovasoa
5e56c85b3b
Support non-string values in markdown fields
...
`NULL` values are now displayed as empty strings, numeric values are displayed as strings, booleans as `true` or `false`, and arrays as lines of text. This avoids the need to cast values to strings in SQL queries.
2023-11-01 01:24:17 +01:00
lovasoa
1b5a19ca89
When NULL is passed as an icon name, display no icon instead of raising an error.
2023-10-16 00:12:03 +02:00
lovasoa
22b625db1a
clippy
2023-09-24 20:03:00 +02:00
lovasoa
ab9eefc0e0
Easier configuration for multiple menu items. Syntax like SELECT 'shell' as component, '["page 1", "page 2"]' as menu_item' now works as expected.
2023-09-24 19:03:22 +02:00
lovasoa
251ea0307d
add integration test, and expose more as library
2023-08-27 21:56:59 +02:00
lovasoa
a2b9fbe6c8
improve top-level error handling
2023-08-20 22:47:12 +02:00
lovasoa
d7aa1fd634
improve page load speed
...
split the charts javascript code from the rest of the frontend code,
and load it only when necessary.
This greatly diminishes the amount of js loaded by default, and achieves very good performance scores by default.
2023-08-03 12:24:22 +02:00
lovasoa
1a46d24321
clippy fixes
2023-08-02 17:09:46 +02:00
lovasoa
53288a587d
fix icons in tables
2023-08-02 16:46:58 +02:00
lovasoa
1b4e612216
inline svg icons in the SQLPage binary
...
icons are now loaded directly from the sqlpage binary instead of loading them from a CDN
This makes it possible to host a SQLPage website on an intranet without access to the internet.
Fixes https://github.com/lovasoa/SQLpage/issues/37
2023-08-02 16:20:11 +02:00
lovasoa
40c1076e61
custom background colors in tables
...
Closes #25
2023-07-15 19:41:41 +02:00
lovasoa
f6b6d2703e
new "footer" component for pages
2023-07-03 01:52:00 +02:00
lovasoa
12b3514590
Add support for markdown in tables
...
Closes https://github.com/lovasoa/SQLpage/issues/4
See https://github.com/lovasoa/SQLpage/discussions/11
2023-06-12 00:35:59 +02:00
lovasoa
5151749d34
add support for <select> as a form input
...
Closes https://github.com/lovasoa/SQLpage/issues/5
2023-06-11 02:10:48 +02:00
lovasoa
d93cf9fbeb
fmt
2023-06-07 02:29:30 +02:00
lovasoa
c8ca9415b2
clippy
2023-06-07 02:27:03 +02:00
lovasoa
8fde0507a6
v0.6.7 : add support for markdown
2023-06-07 02:25:56 +02:00
lovasoa
f0d0cf9c4b
clippy fixes
2023-06-04 12:49:46 +02:00
lovasoa
f1690e8421
embed external js and css resources in the distributed binary
2023-06-01 03:46:39 +02:00
lovasoa
a130dd5bc9
improve error handling
2023-05-21 17:29:58 +02:00
lovasoa
a19f8dadb2
improve the shell component
...
Fix errors and improve the style and layout of pages
2023-01-29 01:06:50 +01:00
lovasoa
076b8e8a51
add new template helpers
2023-01-23 01:02:01 +01:00
lovasoa
3d191afbf9
pedantic clippy
2022-11-12 13:03:33 +01:00
lovasoa
0f11dc9ae4
Fix delayed rendering and add a test for it
2022-09-24 23:23:00 +02:00
lovasoa
cf5381e04a
fmt
2022-09-24 21:41:00 +02:00
lovasoa
ae2e1f7ceb
remove unsafe and use new handlebars features instead
2022-09-24 21:40:34 +02:00
lovasoa
85fe971349
Embed template files in the executable in order to be able to distribute a single binary
2022-09-17 11:29:08 +04:00
lovasoa
17a4308ed7
fmt
2022-09-14 13:00:16 +04:00
lovasoa
d5148540ae
Temporary solution for dynamic template loading
2022-09-14 00:46:33 +04:00
lovasoa
f7dab8b281
implement AsyncFromStrWithState for SplitTemplate
2022-09-12 02:29:15 +04:00
lovasoa
6b106e0818
Make the file cache generic
2022-09-12 02:01:39 +04:00
lovasoa
71e63b9dd4
start moving the template-loading logic to the templates module
2022-09-12 00:37:44 +04:00
lovasoa
e854828393
format
2022-09-03 13:55:36 +02:00
lovasoa
32240dcf72
Improve error handling
2022-09-03 13:49:19 +02:00
lovasoa
2956411c7a
rename sqlsite to sqlpage
2022-08-28 01:04:10 +02:00
lovasoa
5fd3e55a08
split template engine initialization and template rendering
2022-08-25 22:36:27 +02:00