Commit Graph

340 Commits

Author SHA1 Message Date
946092e6fc Fix size mismatch warning. 2024-06-18 10:17:25 +02:00
db1a38081b Set the status code in WebRoot::_handle_error_send_request(). 2024-05-22 07:25:16 +02:00
8953d84f29 Optimize _node_route_map's usage in WebNode. 2024-05-04 16:58:03 +02:00
942e7e802f Fixed docs, index node support has been moved from WebRoots to WebNodes a while ago. 2024-05-04 16:52:49 +02:00
0c5a35e07a Actually... always defer unmatched requests to index nodes if they are available. 2024-05-04 16:42:59 +02:00
d880ff660f Added an option to defer unmathed requests to index nodes in WebNode. 2024-05-04 16:40:23 +02:00
602d8a6836 Use HashMap in BrowsableFolderServeWebPage, as the bug that was preventing this was already fixed quite a while ago. 2024-05-04 16:13:52 +02:00
61cecf068a Expose FileCache in FolderServeWebPage to scripts. 2024-05-04 16:13:02 +02:00
225bfef3e6 Tweak WebNode::get_full_uri() to give back the output what you'd normally assume when the uri segment is "/" under a WebRoot. 2024-05-04 15:57:06 +02:00
ef3aa03887 Renamed clear to reset in TableBuilder. 2024-04-27 19:44:16 +02:00
e455b53c7b Hide result String in TableBuilder. Also add clear() method to it. 2024-04-27 19:32:29 +02:00
09ff5c90b9 Re-extracted class docs. 2024-04-26 18:21:17 +02:00
a92858914f Docs for the markdown renderer. 2024-04-26 18:20:41 +02:00
28b54937b7 Don't expose renderer_callback() for scripting. 2024-04-26 17:34:28 +02:00
6783cb92ab Re-extracted class docs. 2024-04-26 17:32:25 +02:00
fb3e87a9e3 Added the ability to script the rendering of the MarkdownRenderer. Also added a new render() method equivalent to render_to_html(). 2024-04-26 17:31:42 +02:00
f09ab537e0 Clang-format everything. 2024-04-21 15:27:36 +02:00
fb99db4585 Re-extracted class docs. 2024-03-10 10:36:13 +01:00
6f81a15fc0 Various doc fixes. 2024-03-10 10:10:02 +01:00
3f4cc73caa Updated docs for FileCache. 2024-03-10 10:09:19 +01:00
74c46ccfda Fix uninitialized variable. 2024-03-10 10:04:23 +01:00
27d97cf766 Added optional force parameter to WebServerRequest::move_file(). Also various fixes and improvements to the new upload temp file system. 2024-03-10 09:07:13 +01:00
6addb02bbb Added new wwwroot_get_simplified_abs_path() helper to FileCache. Also improved the other path helper methods. 2024-03-10 08:21:24 +01:00
f86c6440fb - Now WebServerSimple can also use temporary files for uploads.
- Added move_file() and is_file_moved()  helper methods to WebServerRequest.
- get_file_length() in WebServerRequest now returns uint64_t.
- Removed parse_files() from WebServerRequest. It's doesn't work well with how the http protocol works.
2024-03-09 23:39:33 +01:00
2b85fcdbb5 Backported ViewPanner from Godot4. It also got bindings, now inherited from Resource, and is registered in the ClassDB. 2024-03-01 22:39:19 +01:00
6a6d3acd96 Clang format everything. 2024-03-01 11:56:19 +01:00
df4379d766 Added a parameter to HTMLTemplate::process_template_expression_variable() to be able to control when to emit errors if a variable is not set. Now this is used when checking for the first argument for the q template method variants. 2024-02-26 21:58:35 +01:00
aa854f049a Updated the docs form HTMLTemplate. 2024-02-26 21:33:40 +01:00
aef18dd4f1 Fix 2 off-by-one errors. 2024-02-26 21:31:17 +01:00
6ea807be26 Added a q variant from all template methods. These use their first argument to decide whether to print anything or not. 2024-02-26 21:27:20 +01:00
af2ef6476e Document the new methods, also expression substitution. 2024-02-26 19:03:39 +01:00
984465ee0c Finished HTMLTemplate's template substitution implementation. 2024-02-26 18:16:25 +01:00
72c764f74c Also process the last variable in HTMLTemplate::process_template_expression(). 2024-02-26 13:22:54 +01:00
b0a72e933d HTMLTemplate::process_template_expression() initial implementation. 2024-02-26 13:11:31 +01:00
0d2fceecf0 Fix errors in HTMLTemplate::render_template. 2024-02-26 12:02:04 +01:00
d3535ef0ca Strip the expression string before passing it to process_template_expression(). 2024-02-26 11:56:30 +01:00
81c8e4aa75 Removed WebServerRequest parameter from get_and_render_template() in HTMLTemplate. 2024-02-26 11:56:01 +01:00
2fe82c604c Fix binds in HTMLTemplate. 2024-02-26 11:52:13 +01:00
af492fc79e HTMLTemplate template processing part 1. 2024-02-26 11:36:13 +01:00
89f9faa0e2 Added docs for the new classes. (Except for variable substitution rules, as those are not yet done.) 2024-02-25 23:37:46 +01:00
bf15aa0f87 Don't create empty keys. 2024-02-25 22:34:48 +01:00
0e9a926365 Fixed a few smaller typos. 2024-02-25 22:33:17 +01:00
66e0daf383 Created a built in editor using PROPERTY_HINT_BUTTON-s from HTMLTemplates. 2024-02-25 22:11:17 +01:00
c6c864a683 Hide template_overrides and template_defaults property from the inspector in HTMLTemplate. 2024-02-25 20:43:38 +01:00
ce638a69c1 Now HTMLTemplateDataEditorPlugin will only handle HTMLTemplateDatas, if they are on disk. 2024-02-25 19:25:58 +01:00
35e328576a Set up docs for the new classes. 2024-02-25 19:17:06 +01:00
87920a4ed7 Initial HTMLTemplate class setup. 2024-02-25 19:15:34 +01:00
5c9996fd58 Added an editor plugin for HTMLTemplateData. Double clicking one in the editor will open the underlying file on the text editor tab (if enabled). 2024-02-25 17:26:28 +01:00
83facbff3b Fix issues with HTMLTemplateData loading and serialization. 2024-02-25 16:33:53 +01:00
08864f0a25 Added an importer for HTMLTemplateData. 2024-02-25 16:23:36 +01:00