From 0c1d58f921cd953c552f2c2686849684223daad1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 23 Jul 2022 12:25:11 +0200 Subject: [PATCH] Cleanups to the todos, and some notes. --- TODO.md | 13 +++++-------- modules/users/web/web_nodes/user_web_page.h | 8 ++++++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/TODO.md b/TODO.md index 28749f24a..1b8d26a12 100644 --- a/TODO.md +++ b/TODO.md @@ -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. diff --git a/modules/users/web/web_nodes/user_web_page.h b/modules/users/web/web_nodes/user_web_page.h index 864e170a5..0e7e9d2aa 100644 --- a/modules/users/web/web_nodes/user_web_page.h +++ b/modules/users/web/web_nodes/user_web_page.h @@ -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();