From b8936c7674e17101de7d50099a796f0c1d5193df Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Fri, 29 Oct 2021 14:01:48 +0200 Subject: [PATCH] fix(ui): add basic pagination with after and enum attributes --- app/views/console/database/collection.phtml | 124 ++++++++++++++++-- app/views/console/database/document.phtml | 22 +++- public/dist/scripts/app-all.js | 2 +- public/dist/scripts/app.js | 2 +- public/scripts/filters.js | 132 ++++++++++---------- 5 files changed, 200 insertions(+), 82 deletions(-) diff --git a/app/views/console/database/collection.phtml b/app/views/console/database/collection.phtml index 80a1a137ac..e45640e8cc 100644 --- a/app/views/console/database/collection.phtml +++ b/app/views/console/database/collection.phtml @@ -42,9 +42,9 @@ $logs = $this->getParam('logs', null); data-service="database.listDocuments" data-event="load,database.createDocument,database.updateDocument,database.deleteDocument" data-param-collection-id="{{router.params.id}}" - data-param-search="{{router.params.search}}" + data-param-cursor="{{router.params.cursor}}" + data-param-cursor-direction="{{router.params.cursorDirection}}" data-param-limit="" - data-param-offset="{{router.params.offset}}" data-param-order-types="DESC" data-param-order-types-cast-to="array" data-scope="sdk" @@ -57,7 +57,7 @@ $logs = $this->getParam('logs', null);
-
documents found
+
+ documents found
@@ -76,7 +76,7 @@ $logs = $this->getParam('logs', null); @@ -85,37 +85,38 @@ $logs = $this->getParam('logs', null); -
+
- + data-success-param-state-keys="cursor,cursorDirection"> + + - -
- + data-success-param-state-keys="cursor,cursorDirection"> + +
@@ -237,6 +238,9 @@ $logs = $this->getParam('logs', null);
  • +
  • + +
  • @@ -1107,6 +1111,100 @@ $logs = $this->getParam('logs', null); + +
    - + n/a