Commit Graph

722 Commits

Author SHA1 Message Date
5503e58d54 added round to Math, and fixed the type of the double pow's arguments. 2022-02-04 11:31:43 +01:00
d0c80ffe6a Removed sdl rect conversion. 2022-02-04 11:30:40 +01:00
e9250d185f Added vector2 based constructors to rect2. 2022-02-04 11:30:01 +01:00
a723d748a7 Removed sdl color conversion from Color. 2022-02-04 10:39:53 +01:00
16746f513d Added sinh, cosh, tanh, sinc and sincn to the Math class. 2022-02-04 10:38:49 +01:00
d8e06e36f0 Added more error macro variants. 2022-02-04 10:38:18 +01:00
e946184d2c Fix typo. 2022-02-04 10:37:52 +01:00
8dda820a54 Renamed Color to ColorUInt8, and typedef-ed it to Color. 2022-02-04 10:37:36 +01:00
91a87ad63a Signal is not inherited from object anymore. 2022-02-04 08:59:15 +01:00
0d3db0979a Add the emitter object as a parameter. 2022-02-04 08:56:15 +01:00
d42311356f Added a signal class. 2022-02-04 08:53:57 +01:00
b613349a11 Added StringName from Godot. 2022-02-04 07:58:57 +01:00
88fafbe78e Added image from godot, and removed the sdl image/sprite/texture. 2022-02-04 07:58:36 +01:00
a834ef7e87 Added spin lock and rwlock from godot. 2022-02-04 07:57:57 +01:00
33ba5337b7 Added html special chars methods to the string. 2022-02-04 06:37:14 +01:00
33be242319 Implement handling [color=white] like bbcode tags. 2022-02-04 06:19:38 +01:00
0e4222e5af Remove warning from self closing tags, as it handles list items correctly. 2022-02-04 06:07:41 +01:00
cf8883fdd1 The bbcode parser should work now. Kept the self closing tag, as it might be useful for non standard tags. 2022-02-04 05:57:47 +01:00
15077110e2 Removed the script tag parsing from the bbcode parser. 2022-02-04 05:51:53 +01:00
b8969af324 Added a bbcode parser. It's a copy of the html parser for now. 2022-02-04 05:50:13 +01:00
a81dac1515 Fox include guard. 2022-02-04 05:47:51 +01:00
28c8df5836 Moved drogon from the modules dir to the backends dir. 2022-02-04 05:30:45 +01:00
97cb527bb4 Remove unneeded include. 2022-02-04 05:16:57 +01:00
5d75c5bda7 Removed resource properties, and most things from the base resource. 2022-02-04 05:16:40 +01:00
6416ecc5e0 Reworked migrations. Now they automatically propagate through the node hierarchy. Also they have parameters. 2022-01-13 23:45:38 +01:00
127219fe34 Added more helper methods to WebNode. Also a render_menu() virtual. 2022-01-13 22:58:59 +01:00
bde46b20cd Reworked how set_tree works. 2022-01-13 22:58:27 +01:00
f498628ee1 Split handle_request_main into handle_request_main and _handle_request_main. _handle_request_main should be responsible for actually rendering a page, while the normal one is responsible for routing by default. This makes the design simpler. 2022-01-09 18:35:12 +01:00
0c6c20bd64 Added csrf tokens to the existing forms. 2022-01-09 16:03:54 +01:00
73df53418a Process middleware now returns a bool, and processing the request now actually stops if a middleware returns true, as intended. 2022-01-09 16:03:27 +01:00
3873463dfa Improved the comments in WebRoot::setup_middleware. 2022-01-09 15:55:32 +01:00
8a64723710 Save the settion after the csrf token is added to it. 2022-01-09 15:53:58 +01:00
885d6cb4a6 Added url ignore support for the csrf token middleware. Also properly implemented create_token. 2022-01-09 15:53:40 +01:00
e728d826f1 Fis logic in has() in HTTPSession. 2022-01-09 15:48:54 +01:00
7323c38776 Make sha256's factory method return a ref<> instead of a raw pointer. 2022-01-09 15:29:03 +01:00
8e903f2695 Added a simple csrf token middleware. 2022-01-09 15:25:55 +01:00
4c6e02d07f Added an another csrf token helper. 2022-01-09 15:00:59 +01:00
58411bdb7d Made the more complex helper methods return the HTMLBuilder tself instead of the HTMLTags in HTMLBuilder . 2022-01-09 14:58:35 +01:00
3c8d2eaed9 Core support for csrf tokens. 2022-01-09 14:51:04 +01:00
a119251e09 Reworked HTTPSession, now it uses Variants instead of multiple classes. Also it's inherited from Reference now. Also smaller cleanups to the SessionManager. 2022-01-09 14:32:09 +01:00
bede579bf6 Fixed a few smalled issues with variant. Also added 2 new helper methods to it. 2022-01-09 14:30:42 +01:00
10effc3971 Delete children Nodes in Node's destructor. Also delet the tree in NodeTree's destructor. 2022-01-08 14:11:08 +01:00
bd93a2a9ce Don't call setup() in WebRoot's constructor. 2022-01-08 13:41:26 +01:00
d380d14152 Move middleware processing to a helper method. 2022-01-08 13:09:12 +01:00
7dc547b022 Added an another helper method to WebRouterNode. 2022-01-08 13:01:43 +01:00
bf7948be47 Updated PagedList aswell. 2022-01-08 12:54:36 +01:00
4cbea7fd06 Paged Article now also inherits from WebNode. 2022-01-08 12:53:50 +01:00
c6c9caed36 MessagePage now also inherits from WebNode. 2022-01-08 12:52:52 +01:00
f7cbad2e96 ListPage now inherits from WebNode. 2022-01-08 12:52:03 +01:00
3809ca5a38 Rename UserController's main handler method to the new proper one. 2022-01-08 12:49:34 +01:00