|
9f39b21574
|
Moved Date from trantor to core/math. Also moved the methods from and Funcs.h to core.
|
2022-02-09 19:58:44 +01:00 |
|
|
4fd6ce10ea
|
Added an rwlock to the NodeTree. Not yet usable. Committing, as I just noticed what to do with trantor, and will mess with that instead.
|
2022-02-09 19:04:11 +01:00 |
|
|
ecf3daf5cb
|
Fix typo.
|
2022-02-06 13:44:21 +01:00 |
|
|
1060f85089
|
Added find_reversed and file_get_extension helpers to string.
|
2022-02-06 13:43:56 +01:00 |
|
|
679c08c314
|
Fix 2 typos.
|
2022-02-06 11:14:12 +01:00 |
|
|
a4e4df979d
|
Added a new path_get_prev_dir method to String.
|
2022-02-06 11:12:31 +01:00 |
|
|
1476a89304
|
Added more path related helpers to String.
|
2022-02-06 10:54:10 +01:00 |
|
|
aee3bd76c8
|
Apparently you can't use add empty strings as printf() parameters.
|
2022-02-06 10:11:20 +01:00 |
|
|
3b4d7a723d
|
Return an empty string in substr if len is 0.
|
2022-02-06 10:10:30 +01:00 |
|
|
5b31a47a21
|
Handle 2 edge cases in the new helpers.
|
2022-02-06 10:05:08 +01:00 |
|
|
6d6735717b
|
Added 2 new path slash related helper methods to string.
|
2022-02-06 09:58:48 +01:00 |
|
|
f711d413d6
|
Shorten the used prefixes in Logger.
|
2022-02-05 19:55:30 +01:00 |
|
|
079dd663ee
|
Added a specialized singleton convenience getter to DBSettings.
|
2022-02-05 19:19:52 +01:00 |
|
|
a47b6fb206
|
Moved FileCache from core to web.
|
2022-02-05 16:55:07 +01:00 |
|
|
c77cd4255a
|
FileCache now inherits from Object.
|
2022-02-05 16:52:24 +01:00 |
|
|
ffd1f7eb68
|
Created database_modules folder again, and moved db_settings from the core to it.
|
2022-02-05 16:36:27 +01:00 |
|
|
4b4a254601
|
Moved out more things from core. These files are not is the build yet, so nothing changed on that front.
|
2022-02-05 16:22:25 +01:00 |
|
|
0189370023
|
Moved core/hash into a new crypto/hash folder. Also cleaned up core/SCsub.
|
2022-02-05 16:19:24 +01:00 |
|
|
81780683a4
|
Moved core/databases to just datatbases. Also fox database module detection login.
|
2022-02-05 15:57:40 +01:00 |
|
|
80d2a379fe
|
Moved html and http from core to a new web folder.
|
2022-02-05 15:30:48 +01:00 |
|
|
d1e8def48d
|
Moved newline_to_br helper from Utils to String.
|
2022-02-05 15:12:37 +01:00 |
|
|
b9afc6f201
|
Moved the Utils class under core/html.
|
2022-02-05 15:10:56 +01:00 |
|
|
92e3f8a006
|
Added a new web_modules folder and moved every web related module to it.
|
2022-02-05 15:03:23 +01:00 |
|
|
4ca0d7032a
|
Added 2 append_path helper methods to string, and 2 append_str variants.
|
2022-02-05 14:53:19 +01:00 |
|
|
bfec926e60
|
Re-enabled skip specials logic in Directory.
|
2022-02-05 14:00:07 +01:00 |
|
|
8e49115f09
|
Reworked directory listing. Now only next need to be called in a while loop.
|
2022-02-05 13:56:30 +01:00 |
|
|
87a55d6a44
|
Improved Node's add_child and set_tree.
|
2022-02-05 02:45:40 +01:00 |
|
|
37fe94f99e
|
Improvements to the directory class.
|
2022-02-05 02:45:11 +01:00 |
|
|
6d1eabf64d
|
Zero out member variables.
|
2022-02-05 02:43:53 +01:00 |
|
|
5097d210d3
|
Renamed a few method in Directory.
|
2022-02-04 23:36:04 +01:00 |
|
|
5292da82ba
|
Now read_file_into in Directory will return an Error.
|
2022-02-04 23:33:39 +01:00 |
|
|
ef06a9e57d
|
Set skip specials to true by default.
|
2022-02-04 23:27:37 +01:00 |
|
|
d71db48661
|
Now FileCache uses the new Directory class.
|
2022-02-04 23:25:26 +01:00 |
|
|
0669bbbe55
|
Added a new open method to the directory class, and changed current_is_directory to current_is_dir.
|
2022-02-04 23:25:09 +01:00 |
|
|
b38b2f4755
|
Added a directory class to the core. It's directly using tinydir for now.
|
2022-02-04 23:17:46 +01:00 |
|
|
ae81caf9a1
|
Replaced the mutex in FileCache with an RWLock.
|
2022-02-04 22:12:08 +01:00 |
|
|
0514505cef
|
Fix compile.
|
2022-02-04 22:11:50 +01:00 |
|
|
60e7dfe7e9
|
Added clear method to FileCache.
|
2022-02-04 22:03:22 +01:00 |
|
|
60ed46b5e6
|
Added continue related error macros. Also added a new type where you can put commands before continuing.
|
2022-02-04 22:02:54 +01:00 |
|
|
3361d576de
|
Don't try to route requests when routing is disabled.
|
2022-02-04 20:26:08 +01:00 |
|
|
1bb16134ad
|
Made the routing getter and setter virtual.
|
2022-02-04 20:18:52 +01:00 |
|
|
7bd1b372ea
|
Merged WebRouterNode into WebNode. Also added a way to turn it off in case it's needed. It's too useful to not have it on all nodes.
|
2022-02-04 20:15:45 +01:00 |
|
|
c827f6fe64
|
Fix expected alphanumeric comparison logic in string.
|
2022-02-04 16:13:54 +01:00 |
|
|
65892ddd5a
|
Added get_parent_webnode, get_full_uri, and get_full_uri_parent helpers to WebNode.
|
2022-02-04 15:54:21 +01:00 |
|
|
53238c1265
|
Pass base_url by a reference in Utils-> pagination.
|
2022-02-04 15:53:31 +01:00 |
|
|
3172dfbcd9
|
Added 2 helper methods to Math.
|
2022-02-04 15:52:48 +01:00 |
|
|
a05ca2e261
|
SharedResource is now using an RWLock.
|
2022-02-04 13:53:30 +01:00 |
|
|
f434d1ff6c
|
Added error_list.h from Godot.
|
2022-02-04 13:53:05 +01:00 |
|
|
71947ea292
|
Now Image is enabled and it compiles.
|
2022-02-04 13:37:52 +01:00 |
|
|
e60cb3ab42
|
Declare memnew_arr and memdelete_arr macros in memory.h as I still can't decide about them.
|
2022-02-04 13:36:17 +01:00 |
|
|
5aa8f6ccd3
|
Added half bits to float conversions from the godot engine.
|
2022-02-04 13:25:11 +01:00 |
|
|
2c16563d97
|
Added abs helper method to Rect2 and Rect2i.
|
2022-02-04 13:21:15 +01:00 |
|
|
e34079ee46
|
Vector2 <-> Vector2i conversion operators.
|
2022-02-04 13:17:55 +01:00 |
|
|
cf8dd43fd7
|
Added Rect2 <-> Rect2i conversion operators. Also smaller helper methods.
|
2022-02-04 13:13:27 +01:00 |
|
|
334075aeca
|
Ported Rect2's clip from godot to both Rect2 and Rect2i.
|
2022-02-04 13:06:13 +01:00 |
|
|
69a2d2f1b7
|
Added ABS, GSN, MIN, MAX, CLAMP macros to math.h for convenience.
|
2022-02-04 13:05:49 +01:00 |
|
|
e28007085c
|
Added position and size helper methods to Rect2 and Rect2i.
|
2022-02-04 12:54:28 +01:00 |
|
|
53b9236c5f
|
Added Rect2i.
|
2022-02-04 11:56:43 +01:00 |
|
|
202df3bac6
|
Added Vector2i.
|
2022-02-04 11:54:46 +01:00 |
|
|
bfa4a96c2a
|
Fix 2 typos.
|
2022-02-04 11:52:40 +01:00 |
|
|
397459ce7b
|
Added the Color class from godot. Removed the ColorUInt8 typedef.
|
2022-02-04 11:34:07 +01:00 |
|
|
db531000c1
|
Added a few wchar_t based helper methods to string.
|
2022-02-04 11:33:35 +01:00 |
|
|
f5d525948b
|
Added ERR_FAIL_V_MSG error macro aswell.
|
2022-02-04 11:32:07 +01:00 |
|
|
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 |
|
|
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 |
|
|
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 |
|