From 906456782a8d86e56f91f6a37bd7625e97b0a8c6 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Mon, 25 Sep 2023 04:22:27 -0700 Subject: [PATCH] Logs page now has paging (#136) --- gaseous-server/Controllers/LogsController.cs | 4 +- .../wwwroot/pages/settings/logs.html | 55 +++++++++++++------ gaseous-tools/Logging.cs | 20 ++++++- 3 files changed, 58 insertions(+), 21 deletions(-) diff --git a/gaseous-server/Controllers/LogsController.cs b/gaseous-server/Controllers/LogsController.cs index a9800ea8..04b2af07 100644 --- a/gaseous-server/Controllers/LogsController.cs +++ b/gaseous-server/Controllers/LogsController.cs @@ -13,9 +13,9 @@ public class LogsController : Controller { [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] - public List Logs() + public List Logs(long? StartIndex, int PageNumber = 1, int PageSize = 100) { - return Logging.GetLogs(); + return Logging.GetLogs(StartIndex, PageNumber, PageSize); } } } \ No newline at end of file diff --git a/gaseous-server/wwwroot/pages/settings/logs.html b/gaseous-server/wwwroot/pages/settings/logs.html index 69f29248..3e6b25df 100644 --- a/gaseous-server/wwwroot/pages/settings/logs.html +++ b/gaseous-server/wwwroot/pages/settings/logs.html @@ -7,30 +7,53 @@

Logs

+
+ +
+