From f93d47964252714bc3cc461775f770035c839dae Mon Sep 17 00:00:00 2001 From: Alex Velez Date: Thu, 23 Feb 2023 07:03:31 -0500 Subject: [PATCH] Downloads lists paginated --- .../DownloadsList/ConfirmationDeleteModal.vue | 56 +++++ .../PaginatedListContainerWithBackend.vue | 132 +++++++++++ .../DownloadsList/SelectionBottomBar.vue | 64 ++++++ .../assets/src/views/DownloadsList/index.vue | 213 ++++++++++++++++++ .../assets/src/views/MyDownloads.vue | 5 +- 5 files changed, 469 insertions(+), 1 deletion(-) create mode 100644 kolibri/plugins/my_downloads/assets/src/views/DownloadsList/ConfirmationDeleteModal.vue create mode 100644 kolibri/plugins/my_downloads/assets/src/views/DownloadsList/PaginatedListContainerWithBackend.vue create mode 100644 kolibri/plugins/my_downloads/assets/src/views/DownloadsList/SelectionBottomBar.vue create mode 100644 kolibri/plugins/my_downloads/assets/src/views/DownloadsList/index.vue diff --git a/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/ConfirmationDeleteModal.vue b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/ConfirmationDeleteModal.vue new file mode 100644 index 00000000000..50097e105e5 --- /dev/null +++ b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/ConfirmationDeleteModal.vue @@ -0,0 +1,56 @@ + + + + + + + diff --git a/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/PaginatedListContainerWithBackend.vue b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/PaginatedListContainerWithBackend.vue new file mode 100644 index 00000000000..ea2ea1e08f7 --- /dev/null +++ b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/PaginatedListContainerWithBackend.vue @@ -0,0 +1,132 @@ + + + + + + + diff --git a/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/SelectionBottomBar.vue b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/SelectionBottomBar.vue new file mode 100644 index 00000000000..b05f5984afb --- /dev/null +++ b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/SelectionBottomBar.vue @@ -0,0 +1,64 @@ + + + + + + + diff --git a/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/index.vue b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/index.vue new file mode 100644 index 00000000000..a8f36a38ac9 --- /dev/null +++ b/kolibri/plugins/my_downloads/assets/src/views/DownloadsList/index.vue @@ -0,0 +1,213 @@ + + + + + + + diff --git a/kolibri/plugins/my_downloads/assets/src/views/MyDownloads.vue b/kolibri/plugins/my_downloads/assets/src/views/MyDownloads.vue index fb877dbd902..bdcf0824dee 100644 --- a/kolibri/plugins/my_downloads/assets/src/views/MyDownloads.vue +++ b/kolibri/plugins/my_downloads/assets/src/views/MyDownloads.vue @@ -61,6 +61,7 @@ /> + @@ -72,11 +73,13 @@ import AppBarPage from 'kolibri.coreVue.components.AppBarPage'; import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin'; + import DownloadsList from './DownloadsList'; export default { name: 'MyDownloads', components: { AppBarPage, + DownloadsList, }, mixins: [commonCoreStrings, responsiveWindowMixin], data() { @@ -185,7 +188,7 @@