132 Commits

Author SHA1 Message Date
lovasoa 7ea9457c6f add support for <select> as a form input
docker / docker (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Create Release (push) Has been cancelled
Closes https://github.com/lovasoa/SQLpage/issues/5
2023-06-11 02:10:48 +02:00
lovasoa af4225e6b9 add support for header-only responses 2023-06-11 01:26:04 +02:00
lovasoa f91f0d57c3 fix rendering of components without a shell
Create Release / build (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
docker / docker (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Create Release (push) Has been cancelled
Pages where the first component was not "shell" were broken
2023-06-07 03:03:51 +02:00
lovasoa 48e2a91d8b fmt
docker / docker (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage, ubuntu-20.04) (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Create Release (push) Has been cancelled
2023-06-07 02:29:30 +02:00
lovasoa 2e21f1eb19 clippy 2023-06-07 02:27:03 +02:00
lovasoa 65b0271613 v0.6.7 : add support for markdown 2023-06-07 02:25:56 +02:00
lovasoa 53ad6c60a4 fmt 2023-06-04 15:28:23 +02:00
lovasoa 80e1de5f6d clippy fixes 2023-06-04 12:49:46 +02:00
lovasoa 750132b74a fix handling of spaces and special characters in file names 2023-06-04 12:46:11 +02:00
lovasoa 261f434bf4 fix large integers truncated in sqlite 2023-06-04 01:08:39 +02:00
lovasoa 0cb79962c6 handle non-200 status codes 2023-06-04 00:38:57 +02:00
lovasoa bbd7abea97 embed external js and css resources in the distributed binary
docker / docker (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage, macos-latest) (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage, ubuntu-18.04) (push) Has been cancelled
Create Release / build (target/superoptimized/sqlpage.exe, windows-latest) (push) Has been cancelled
Create Release / Create Release (push) Has been cancelled
2023-06-01 03:46:39 +02:00
lovasoa 75804d03f1 speed up page loads
improve caching when serving custom files
2023-05-29 23:32:26 +02:00
lovasoa 0c5aa60ae7 improve the documentation, add better error messages 2023-05-24 00:23:05 +02:00
lovasoa 2a5fe04b07 add support for dynamic shell properties 2023-05-23 23:36:30 +02:00
lovasoa e5b826b741 perf: update default sqlite max connections 2023-05-21 18:18:29 +02:00
lovasoa 559eeb3b71 improve error handling 2023-05-21 17:29:58 +02:00
lovasoa 5e6b4b2d58 clippy fix 2023-05-20 09:07:58 +02:00
lovasoa 062af96b40 Include index.sql by default 2023-05-14 19:53:54 +02:00
lovasoa e6030f0b0a allow overriding predefined components
This allows faster local development of sqlpage components themselves by not requiring recompilation.

It also allows users to define their own overriden components easily.
2023-05-14 19:03:28 +02:00
lovasoa bfd6ecb57c update rust dependencies 2023-03-26 16:54:29 +02:00
lovasoa f16df36812 fix tests 2023-02-12 11:11:40 +01:00
lovasoa 82ecb7dfb2 fix clippy lints 2023-02-12 11:05:48 +01:00
lovasoa 5be32315e6 easier configuration, better default configuration 2023-02-02 01:41:59 +01:00
lovasoa 5b3c848325 improve dynamic component 2023-01-31 23:45:05 +01:00
lovasoa 0cc7a7d5e7 fix error message 2023-01-31 23:16:59 +01:00
lovasoa 0c58c56138 improve the shell component
Fix errors and improve the style and layout of pages
2023-01-29 01:06:50 +01:00
lovasoa d89f9bc740 add new template helpers 2023-01-23 01:02:01 +01:00
lovasoa ee2a7ec4dd add proper logging of migrations 2023-01-23 01:01:34 +01:00
lovasoa 1e8d49763f allow serving static files from the database
serve static files from the virtual filesystem
2023-01-19 23:42:49 +01:00
lovasoa e1c5d8048d bytes instead of strings in file-system interface
also adds a test
2023-01-19 22:36:53 +01:00
lovasoa 3208d25e6f fix file loading from database 2023-01-15 17:21:42 +01:00
lovasoa 3c3cff4779 in-database embedded file-system for true serverless usage 2023-01-15 16:16:03 +01:00
lovasoa 800b6a1cf3 better error handling in file cache 2023-01-14 23:03:44 +01:00
lovasoa 7d139a671b Rune filesystem operations asynchronously 2023-01-14 22:51:09 +01:00
lovasoa 74a50cdc22 use a concurrent hashmap instead of an RwLock<HashMap>
this makes the code more readable, and will make it easier to implement sql files stored in the database itself
2023-01-14 21:08:49 +01:00
lovasoa 83ed35f4f6 fix clippy 2023-01-10 10:42:18 +01:00
lovasoa 228f2d35d3 default headers: add a CSP and compress responses 2023-01-10 01:08:01 +01:00
lovasoa c71cfb5124 split application creation and actual server launch 2023-01-10 00:40:21 +01:00
lovasoa 9b834c72e5 Update to upstream sqlparser
sqlparser has finally merged my mutable statement visitor, so we can use the official sqlparser

We don't have any git dependencies anymore
2023-01-02 20:23:59 +01:00
lovasoa 790bcddda8 fmt 2022-11-20 12:16:31 +01:00
lovasoa d1f4b8c980 better static asset caching 2022-11-20 12:14:55 +01:00
lovasoa 47d78497ed more descriptive SQL syntax error messages 2022-11-20 11:18:56 +01:00
lovasoa dfbaad774d better top-level error display 2022-11-20 10:15:10 +01:00
lovasoa da989b1006 fmt 2022-11-20 09:39:02 +01:00
lovasoa e98132a3e9 update http headers definition 2022-11-20 09:38:33 +01:00
lovasoa e0c2527b44 new feature: HTTP headers
This gives the SQL files control over the HTTP headers with which the request is served.
This also changes the convention for personalizing the page context, the global page options such as the page title can now be used as a normal component called 'shell'
2022-11-19 22:22:28 +01:00
lovasoa c634ac4e41 replace low-level tokio primitives with ones from actix web 2022-11-14 01:12:41 +01:00
lovasoa 5bd4bfe391 architecture changes to allow future dynamic headers 2022-11-14 01:00:56 +01:00
lovasoa ef48bb91d3 improve logging during page rendering 2022-11-13 15:39:55 +01:00