Cleanups to the todos, and some notes.

This commit is contained in:
Relintai 2022-07-23 12:25:11 +02:00
parent 05fd41c5ac
commit 0c1d58f921
2 changed files with 13 additions and 8 deletions

13
TODO.md
View File

@ -76,18 +76,15 @@
## Web
- Test / fix HTML and BBCode parser, and make bindings for them.
- Move simple web server to a new module.
- Implement multi threading for the simple web server.
- Check how polling is implemented in sockets.
- Implement Cookie support for the web server.
- Implement file upload support.
- Implement proper mimetype support.
- Implement proper http header responses.
- Implement closing the connection only after answering the last query (by default, could be overrideable).
- Implement big (or not in-memory) file upload support.
- Move HTMLParser, BBCodeParser, and MarkDownRenderer to a new (parsers?) module.
- BlogWebPage <- BlogWepBageFile, BlogWebPageDB
- NewsWebPage <- NewsWebPageFile, NewsWebPageDB
- AdminWebPage <- UserAdminWebPage, AdminPanelWebPage
## Users
- Fix, and break UserController into smaller webnodes.
- Clean / flesh out the api of UserManager / UserDB. Also make UserManager register itself into UserDB.

View File

@ -13,6 +13,14 @@ class UserWebPage : public WebNode {
GDCLASS(UserWebPage, WebNode);
public:
enum RenderType {
RENDER_TYPE_RENDER = 0,
RENDER_TYPE_REDIRECT,
RENDER_TYPE_ERROR,
};
//Render type + sopport properties for it, when the user is logged in, and when not logged in
UserWebPage();
~UserWebPage();