From d4a636c15df981402718d6615cc5a6fef87778d2 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 14 Feb 2022 23:27:26 +0100 Subject: [PATCH] Renamed the render virtual to render_index. --- web/http/web_node.cpp | 2 +- web/http/web_node.h | 2 +- .../folder_serve_nodes/browsable_folder_serve_node.cpp | 2 +- web_modules/folder_serve_nodes/browsable_folder_serve_node.h | 2 +- web_modules/list_page/list_page.cpp | 4 ++-- web_modules/list_page/list_page.h | 2 +- web_modules/paged_article/paged_article.cpp | 4 ++-- web_modules/paged_article/paged_article.h | 2 +- web_modules/paged_article/paged_articles.cpp | 4 ++-- web_modules/paged_article/paged_articles.h | 2 +- web_modules/paged_article/paged_articles_md_index.cpp | 4 ++-- web_modules/paged_article/paged_articles_md_index.h | 2 +- web_modules/static_pages/static_page.cpp | 4 ++-- web_modules/static_pages/static_page.h | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/web/http/web_node.cpp b/web/http/web_node.cpp index 90b41a0..87c01ca 100644 --- a/web/http/web_node.cpp +++ b/web/http/web_node.cpp @@ -154,7 +154,7 @@ void WebNode::handle_error_send_request(Request *request, const int error_code) request->send(); } -void WebNode::render(Request *request) { +void WebNode::render_index(Request *request) { } void WebNode::render_preview(Request *request) { } diff --git a/web/http/web_node.h b/web/http/web_node.h index 5b0d7f0..a523283 100644 --- a/web/http/web_node.h +++ b/web/http/web_node.h @@ -47,7 +47,7 @@ public: virtual void _handle_request_main(Request *request); virtual void handle_error_send_request(Request *request, const int error_code); - virtual void render(Request *request); + virtual void render_index(Request *request); virtual void render_preview(Request *request); virtual void render_menu(Request *request); diff --git a/web_modules/folder_serve_nodes/browsable_folder_serve_node.cpp b/web_modules/folder_serve_nodes/browsable_folder_serve_node.cpp index 6aafff5..24e7d47 100644 --- a/web_modules/folder_serve_nodes/browsable_folder_serve_node.cpp +++ b/web_modules/folder_serve_nodes/browsable_folder_serve_node.cpp @@ -23,7 +23,7 @@ void BrowsableFolderServeNode::_handle_request_main(Request *request) { request->compile_and_send_body(); } -void BrowsableFolderServeNode::render(Request *request) { +void BrowsableFolderServeNode::render_index(Request *request) { String *s = _folder_indexes["/"]; if (!s) { diff --git a/web_modules/folder_serve_nodes/browsable_folder_serve_node.h b/web_modules/folder_serve_nodes/browsable_folder_serve_node.h index cc3905c..ec00eb0 100644 --- a/web_modules/folder_serve_nodes/browsable_folder_serve_node.h +++ b/web_modules/folder_serve_nodes/browsable_folder_serve_node.h @@ -12,7 +12,7 @@ class BrowsableFolderServeNode : public FolderServeNode { public: void _handle_request_main(Request *request); - void render(Request *request); + void render_index(Request *request); void render_preview(Request *request); virtual void load(); diff --git a/web_modules/list_page/list_page.cpp b/web_modules/list_page/list_page.cpp index 846d0e1..ec6415a 100644 --- a/web_modules/list_page/list_page.cpp +++ b/web_modules/list_page/list_page.cpp @@ -26,7 +26,7 @@ void ListPage::handle_request_main(Request *request) { if (cs == "") { render_menu(request); - render(request); + render_index(request); request->compile_and_send_body(); return; } @@ -50,7 +50,7 @@ void ListPage::handle_request_main(Request *request) { request->compile_and_send_body(); } -void ListPage::render(Request *request) { +void ListPage::render_index(Request *request) { request->body += _pages[0]; } void ListPage::render_preview(Request *request) { diff --git a/web_modules/list_page/list_page.h b/web_modules/list_page/list_page.h index c29b84f..1a5e711 100644 --- a/web_modules/list_page/list_page.h +++ b/web_modules/list_page/list_page.h @@ -33,7 +33,7 @@ class ListPage : public WebNode { public: void handle_request_main(Request *request); - void render(Request *request); + void render_index(Request *request); void render_preview(Request *request); void load(); diff --git a/web_modules/paged_article/paged_article.cpp b/web_modules/paged_article/paged_article.cpp index 3813eb5..22d7cc7 100644 --- a/web_modules/paged_article/paged_article.cpp +++ b/web_modules/paged_article/paged_article.cpp @@ -29,7 +29,7 @@ void PagedArticle::handle_request_main(Request *request) { if (rp == "") { render_menu(request); - render(request); + render_index(request); request->compile_and_send_body(); return; @@ -48,7 +48,7 @@ void PagedArticle::handle_request_main(Request *request) { request->compile_and_send_body(); } -void PagedArticle::render(Request *request) { +void PagedArticle::render_index(Request *request) { // summary page request->body += index_page; } diff --git a/web_modules/paged_article/paged_article.h b/web_modules/paged_article/paged_article.h index 9f0f160..cc35eef 100644 --- a/web_modules/paged_article/paged_article.h +++ b/web_modules/paged_article/paged_article.h @@ -16,7 +16,7 @@ class PagedArticle : public WebNode { public: void handle_request_main(Request *request); - void render(Request *request); + void render_index(Request *request); void render_preview(Request *request); void load(); diff --git a/web_modules/paged_article/paged_articles.cpp b/web_modules/paged_article/paged_articles.cpp index 17611ed..d0648e0 100644 --- a/web_modules/paged_article/paged_articles.cpp +++ b/web_modules/paged_article/paged_articles.cpp @@ -11,12 +11,12 @@ void PagedArticles::_handle_request_main(Request *request) { render_menu(request); - render(request); + render_index(request); request->compile_and_send_body(); } -void PagedArticles::render(Request *request) { +void PagedArticles::render_index(Request *request) { // summary page request->body += index_page; } diff --git a/web_modules/paged_article/paged_articles.h b/web_modules/paged_article/paged_articles.h index 405825a..963688f 100644 --- a/web_modules/paged_article/paged_articles.h +++ b/web_modules/paged_article/paged_articles.h @@ -17,7 +17,7 @@ class PagedArticles : public WebNode { public: void _handle_request_main(Request *request); - void render(Request *request); + void render_index(Request *request); void render_preview(Request *request); void load(); diff --git a/web_modules/paged_article/paged_articles_md_index.cpp b/web_modules/paged_article/paged_articles_md_index.cpp index 8782ce0..65c564a 100644 --- a/web_modules/paged_article/paged_articles_md_index.cpp +++ b/web_modules/paged_article/paged_articles_md_index.cpp @@ -21,8 +21,8 @@ void PagedArticlesMDIndex::handle_request_main(Request *request) { articles->handle_request_main(request); } -void PagedArticlesMDIndex::render(Request *request) { - main_page->render(request); +void PagedArticlesMDIndex::render_index(Request *request) { + main_page->render_index(request); } void PagedArticlesMDIndex::render_preview(Request *request) { diff --git a/web_modules/paged_article/paged_articles_md_index.h b/web_modules/paged_article/paged_articles_md_index.h index 542a0d8..b95f50d 100644 --- a/web_modules/paged_article/paged_articles_md_index.h +++ b/web_modules/paged_article/paged_articles_md_index.h @@ -17,7 +17,7 @@ class PagedArticlesMDIndex : public WebNode { public: void handle_request_main(Request *request); - void render(Request *request); + void render_index(Request *request); void render_preview(Request *request); void load(); diff --git a/web_modules/static_pages/static_page.cpp b/web_modules/static_pages/static_page.cpp index d9ba9c1..6600c54 100644 --- a/web_modules/static_pages/static_page.cpp +++ b/web_modules/static_pages/static_page.cpp @@ -11,11 +11,11 @@ void StaticPage::_handle_request_main(Request *request) { render_menu(request); } - render(request); + render_index(request); request->compile_and_send_body(); } -void StaticPage::render(Request *request) { +void StaticPage::render_index(Request *request) { request->body += data; } diff --git a/web_modules/static_pages/static_page.h b/web_modules/static_pages/static_page.h index 9c9b1b3..3783a70 100644 --- a/web_modules/static_pages/static_page.h +++ b/web_modules/static_pages/static_page.h @@ -11,7 +11,7 @@ class StaticPage : public WebNode { public: void _handle_request_main(Request *request); - void render(Request *request); + void render_index(Request *request); void render_preview(Request *request); void load_file(const String &path);