From 4901e461aeb157f47250c750636bfd41edc20a80 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Fri, 6 Dec 2024 23:19:34 +0100 Subject: [PATCH] Pagination support #331 --- config.js | 3 ++ package.json | 4 +-- src/components/JobPanel.vue | 2 +- src/components/WorkPanelMixin.js | 3 +- src/store/files.js | 1 + src/store/index.js | 1 + src/store/jobs.js | 1 + src/store/services.js | 1 + src/store/storeFactory.js | 47 ++++++++++++++++++++++++++------ src/store/userProcesses.js | 1 + 10 files changed, 51 insertions(+), 13 deletions(-) diff --git a/config.js b/config.js index 855bd19e7..f20453807 100644 --- a/config.js +++ b/config.js @@ -101,5 +101,8 @@ export default { // Show or hide experimental and/or deprecated entites by default (e.g. processes, collections) showExperimentalByDefault: false, showDeprecatedByDefault: false, + + // number of items to show per page in the UI (jobs, services, files, UDPs) - null to disable pagination + pageLimit: 50, }; \ No newline at end of file diff --git a/package.json b/package.json index d9ebf764f..ceeeb7529 100644 --- a/package.json +++ b/package.json @@ -48,10 +48,10 @@ "dependencies": { "@kirtandesai/ol-geocoder": "^5.0.6", "@musement/iso-duration": "^1.0.0", - "@openeo/js-client": "^2.6.0", + "@openeo/js-client": "open-EO/openeo-js-client#pagination", "@openeo/js-commons": "^1.5.0", "@openeo/js-processgraphs": "^1.4.1", - "@openeo/vue-components": "^2.17.0", + "@openeo/vue-components": "open-EO/openeo-vue-components#load-more-table", "@radiantearth/stac-fields": "^1.5.0-beta.2", "@radiantearth/stac-migrate": "^2.0.0-beta.1", "@tmcw/togeojson": "^5.5.0", diff --git a/src/components/JobPanel.vue b/src/components/JobPanel.vue index 42cd43b01..fa9520ae8 100644 --- a/src/components/JobPanel.vue +++ b/src/components/JobPanel.vue @@ -1,5 +1,5 @@