diff --git a/SConstruct b/SConstruct index 334ea52..7720c7d 100644 --- a/SConstruct +++ b/SConstruct @@ -33,9 +33,14 @@ import traceback folders = [ 'app', - 'app/buildings', - 'app/village', + 'app/alliance', 'app/assignments', + 'app/buildings', + 'app/changelog', + 'app/hero', + 'app/mail', + 'app/news', + 'app/village', 'app/weather', ] diff --git a/app/changelog/changelog_node.cpp b/app/changelog/changelog_node.cpp new file mode 100644 index 0000000..fa8aff6 --- /dev/null +++ b/app/changelog/changelog_node.cpp @@ -0,0 +1,42 @@ +#include "changelog_node.h" + +#include "web/html/form_validator.h" +#include "web/html/html_builder.h" +#include "web/http/cookie.h" +#include "web/http/http_enums.h" +#include "web/http/http_session.h" +#include "web/http/request.h" +#include "web/http/session_manager.h" + +#include "../html_macros.h" + +#include "database/database.h" +#include "database/database_manager.h" +#include "database/query_builder.h" +#include "database/query_result.h" +#include "database/table_builder.h" + +#include "crypto/hash/sha256.h" + +void ChangelogNode::handle_request_default(Request *request) { +} + +void ChangelogNode::admin_handle_request_main(Request *request) { + request->send_error(404); +} +String ChangelogNode::admin_get_section_name() { + return "Changelog"; +} +void ChangelogNode::admin_add_section_links(Vector *links) { + links->push_back(AdminSectionLinkInfo("- Changelog Editor", "")); +} +bool ChangelogNode::admin_full_render() { + return false; +} + +ChangelogNode::ChangelogNode() : + AdminNode() { +} + +ChangelogNode::~ChangelogNode() { +} diff --git a/app/changelog/changelog_node.h b/app/changelog/changelog_node.h new file mode 100644 index 0000000..055b110 --- /dev/null +++ b/app/changelog/changelog_node.h @@ -0,0 +1,28 @@ +#ifndef CHANGELOG_NODE_H +#define CHANGELOG_NODE_H + +#include "core/containers/vector.h" +#include "core/string.h" + +#include "web_modules/admin_panel/admin_node.h" + +class Request; +class FormValidator; +class QueryResult; + +class ChangelogNode : public AdminNode { + RCPP_OBJECT(ChangelogNode, AdminNode); + +public: + void handle_request_default(Request *request); + + void admin_handle_request_main(Request *request); + String admin_get_section_name(); + void admin_add_section_links(Vector *links); + bool admin_full_render(); + + ChangelogNode(); + ~ChangelogNode(); +}; + +#endif \ No newline at end of file diff --git a/app/hero/hero_node.cpp b/app/hero/hero_node.cpp new file mode 100644 index 0000000..5c08bad --- /dev/null +++ b/app/hero/hero_node.cpp @@ -0,0 +1,42 @@ +#include "hero_node.h" + +#include "web/html/form_validator.h" +#include "web/html/html_builder.h" +#include "web/http/cookie.h" +#include "web/http/http_enums.h" +#include "web/http/http_session.h" +#include "web/http/request.h" +#include "web/http/session_manager.h" + +#include "../html_macros.h" + +#include "database/database.h" +#include "database/database_manager.h" +#include "database/query_builder.h" +#include "database/query_result.h" +#include "database/table_builder.h" + +#include "crypto/hash/sha256.h" + +void HeroNode::handle_request_default(Request *request) { +} + +void HeroNode::admin_handle_request_main(Request *request) { + request->send_error(404); +} +String HeroNode::admin_get_section_name() { + return "Hero"; +} +void HeroNode::admin_add_section_links(Vector *links) { + links->push_back(AdminSectionLinkInfo("- Hero Editor", "")); +} +bool HeroNode::admin_full_render() { + return false; +} + +HeroNode::HeroNode() : + AdminNode() { +} + +HeroNode::~HeroNode() { +} diff --git a/app/hero/hero_node.h b/app/hero/hero_node.h new file mode 100644 index 0000000..9a915ab --- /dev/null +++ b/app/hero/hero_node.h @@ -0,0 +1,28 @@ +#ifndef HERO_NODE_H +#define HERO_NODE_H + +#include "core/containers/vector.h" +#include "core/string.h" + +#include "web_modules/admin_panel/admin_node.h" + +class Request; +class FormValidator; +class QueryResult; + +class HeroNode : public AdminNode { + RCPP_OBJECT(HeroNode, AdminNode); + +public: + void handle_request_default(Request *request); + + void admin_handle_request_main(Request *request); + String admin_get_section_name(); + void admin_add_section_links(Vector *links); + bool admin_full_render(); + + HeroNode(); + ~HeroNode(); +}; + +#endif \ No newline at end of file diff --git a/app/mail/mail_node.cpp b/app/mail/mail_node.cpp new file mode 100644 index 0000000..c8bb9b5 --- /dev/null +++ b/app/mail/mail_node.cpp @@ -0,0 +1,42 @@ +#include "mail_node.h" + +#include "web/html/form_validator.h" +#include "web/html/html_builder.h" +#include "web/http/cookie.h" +#include "web/http/http_enums.h" +#include "web/http/http_session.h" +#include "web/http/request.h" +#include "web/http/session_manager.h" + +#include "../html_macros.h" + +#include "database/database.h" +#include "database/database_manager.h" +#include "database/query_builder.h" +#include "database/query_result.h" +#include "database/table_builder.h" + +#include "crypto/hash/sha256.h" + +void MailNode::handle_request_default(Request *request) { +} + +void MailNode::admin_handle_request_main(Request *request) { + request->send_error(404); +} +String MailNode::admin_get_section_name() { + return "Mail"; +} +void MailNode::admin_add_section_links(Vector *links) { + links->push_back(AdminSectionLinkInfo("- Mail Editor", "")); +} +bool MailNode::admin_full_render() { + return false; +} + +MailNode::MailNode() : + AdminNode() { +} + +MailNode::~MailNode() { +} diff --git a/app/mail/mail_node.h b/app/mail/mail_node.h new file mode 100644 index 0000000..7a67352 --- /dev/null +++ b/app/mail/mail_node.h @@ -0,0 +1,28 @@ +#ifndef MAIL_NODE_H +#define MAIL_NODE_H + +#include "core/containers/vector.h" +#include "core/string.h" + +#include "web_modules/admin_panel/admin_node.h" + +class Request; +class FormValidator; +class QueryResult; + +class MailNode : public AdminNode { + RCPP_OBJECT(MailNode, AdminNode); + +public: + void handle_request_default(Request *request); + + void admin_handle_request_main(Request *request); + String admin_get_section_name(); + void admin_add_section_links(Vector *links); + bool admin_full_render(); + + MailNode(); + ~MailNode(); +}; + +#endif \ No newline at end of file diff --git a/app/news/news_node.cpp b/app/news/news_node.cpp new file mode 100644 index 0000000..d7629e6 --- /dev/null +++ b/app/news/news_node.cpp @@ -0,0 +1,42 @@ +#include "news_node.h" + +#include "web/html/form_validator.h" +#include "web/html/html_builder.h" +#include "web/http/cookie.h" +#include "web/http/http_enums.h" +#include "web/http/http_session.h" +#include "web/http/request.h" +#include "web/http/session_manager.h" + +#include "../html_macros.h" + +#include "database/database.h" +#include "database/database_manager.h" +#include "database/query_builder.h" +#include "database/query_result.h" +#include "database/table_builder.h" + +#include "crypto/hash/sha256.h" + +void NewsNode::handle_request_default(Request *request) { +} + +void NewsNode::admin_handle_request_main(Request *request) { + request->send_error(404); +} +String NewsNode::admin_get_section_name() { + return "Mail"; +} +void NewsNode::admin_add_section_links(Vector *links) { + links->push_back(AdminSectionLinkInfo("- Mail Editor", "")); +} +bool NewsNode::admin_full_render() { + return false; +} + +NewsNode::NewsNode() : + AdminNode() { +} + +NewsNode::~NewsNode() { +} diff --git a/app/news/news_node.h b/app/news/news_node.h new file mode 100644 index 0000000..91fff18 --- /dev/null +++ b/app/news/news_node.h @@ -0,0 +1,28 @@ +#ifndef NEWS_NODE_H +#define NEWS_NODE_H + +#include "core/containers/vector.h" +#include "core/string.h" + +#include "web_modules/admin_panel/admin_node.h" + +class Request; +class FormValidator; +class QueryResult; + +class NewsNode : public AdminNode { + RCPP_OBJECT(NewsNode, AdminNode); + +public: + void handle_request_default(Request *request); + + void admin_handle_request_main(Request *request); + String admin_get_section_name(); + void admin_add_section_links(Vector *links); + bool admin_full_render(); + + NewsNode(); + ~NewsNode(); +}; + +#endif \ No newline at end of file