From e0806cda3b2251ca259cb97d541e4670890904b1 Mon Sep 17 00:00:00 2001 From: abdulmohsen Date: Tue, 18 Jun 2024 22:35:22 +0300 Subject: [PATCH 1/8] Use updated_at for displaying records instead of updated as it's only updated when action happens from backends. --- frontend/pages/history/index.vue | 5 +++-- frontend/pages/index.vue | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/pages/history/index.vue b/frontend/pages/history/index.vue index 5fcdde7d..af376145 100644 --- a/frontend/pages/history/index.vue +++ b/frontend/pages/history/index.vue @@ -170,8 +170,9 @@
  - - {{ moment.unix(item.updated_at).fromNow() }} + + {{ moment.unix(item.updated_at ?? item.updated).fromNow() }}
diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index 4a227256..ba6ad975 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -28,8 +28,9 @@
  - - {{ moment.unix(history.updated).fromNow() }} + + {{ moment.unix(history.updated_at ?? history.updated).fromNow() }}
From 5b36ea6a9f0e91116cec234c1984e202a7e3a604 Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A." Date: Wed, 19 Jun 2024 14:31:26 +0300 Subject: [PATCH 2/8] Added Backup to the API and exposed via WebUI. Also made it possible to delete queued task from WebUI. --- frontend/layouts/default.vue | 5 ++ frontend/pages/backup.vue | 153 +++++++++++++++++++++++++++++++++++ frontend/pages/tasks.vue | 33 +++++--- frontend/utils/index.js | 3 + src/API/Logs/Index.php | 2 +- src/API/System/Backup.php | 83 +++++++++++++++++++ src/API/Tasks/Index.php | 10 ++- 7 files changed, 274 insertions(+), 15 deletions(-) create mode 100644 frontend/pages/backup.vue create mode 100644 src/API/System/Backup.php diff --git a/frontend/layouts/default.vue b/frontend/layouts/default.vue index d694b5ca..94b81267 100644 --- a/frontend/layouts/default.vue +++ b/frontend/layouts/default.vue @@ -90,6 +90,11 @@ Log Suppression + + + + Backups +
diff --git a/frontend/pages/backup.vue b/frontend/pages/backup.vue new file mode 100644 index 00000000..d65a215f --- /dev/null +++ b/frontend/pages/backup.vue @@ -0,0 +1,153 @@ + + + diff --git a/frontend/pages/tasks.vue b/frontend/pages/tasks.vue index 56ac7cdb..20a2a70a 100644 --- a/frontend/pages/tasks.vue +++ b/frontend/pages/tasks.vue @@ -65,7 +65,9 @@
Prev Run: