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