From f686d1ecc9e50442bce8216820f836a2a6c4d3c6 Mon Sep 17 00:00:00 2001 From: Benjamin CHARMES Date: Fri, 30 Aug 2024 11:18:52 +0100 Subject: [PATCH 01/19] Modification of the number of items per row --- webapp/src/components/SampleTablePrime.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/SampleTablePrime.vue b/webapp/src/components/SampleTablePrime.vue index 9e9b66d30..eff8eee20 100644 --- a/webapp/src/components/SampleTablePrime.vue +++ b/webapp/src/components/SampleTablePrime.vue @@ -10,7 +10,7 @@ selection-mode="multiple" :value="samples" paginator - :rows="10" + :rows="20" :rows-per-page-options="[10, 20, 50, 100]" filter-display="menu" :global-filter-fields="[ From 57f2f96cb2bf8a171ce29f4a24e906ab285ce413 Mon Sep 17 00:00:00 2001 From: Benjamin CHARMES Date: Fri, 30 Aug 2024 16:20:32 +0100 Subject: [PATCH 02/19] Add a dynamic datatable using prime for Samples, Collections, Inventory and Equipment Fix global-filter-fields for creators and collections Add dynamic prime table for starting materials + some cleaning Add dynamic prime table for equipments New ButtonPrimeTable component Fix deleteCollection Fix button still clickable after deleting a sample Add API tests for collections/ POST route --- webapp/src/components/ButtonPrimeTable.vue | 191 +++++++++++++ .../src/components/CollectionsPrimeTable.vue | 42 +++ .../src/components/CreateEquipmentModal.vue | 4 +- webapp/src/components/EquipmentPrimeTable.vue | 44 +++ webapp/src/components/Navbar.vue | 4 + webapp/src/components/PrimeTable.vue | 251 ++++++++++++++++++ webapp/src/components/SamplesPrimeTable.vue | 56 ++++ .../StartingMaterialsPrimeTable.vue | 42 +++ webapp/src/router/index.js | 26 ++ webapp/src/store/index.js | 2 +- webapp/src/views/TestPrime.vue | 38 +++ webapp/src/views/TestPrime2.vue | 38 +++ webapp/src/views/TestPrime3.vue | 38 +++ webapp/src/views/TestPrime4.vue | 38 +++ 14 files changed, 812 insertions(+), 2 deletions(-) create mode 100644 webapp/src/components/ButtonPrimeTable.vue create mode 100644 webapp/src/components/CollectionsPrimeTable.vue create mode 100644 webapp/src/components/EquipmentPrimeTable.vue create mode 100644 webapp/src/components/PrimeTable.vue create mode 100644 webapp/src/components/SamplesPrimeTable.vue create mode 100644 webapp/src/components/StartingMaterialsPrimeTable.vue create mode 100644 webapp/src/views/TestPrime.vue create mode 100644 webapp/src/views/TestPrime2.vue create mode 100644 webapp/src/views/TestPrime3.vue create mode 100644 webapp/src/views/TestPrime4.vue diff --git a/webapp/src/components/ButtonPrimeTable.vue b/webapp/src/components/ButtonPrimeTable.vue new file mode 100644 index 000000000..73394250a --- /dev/null +++ b/webapp/src/components/ButtonPrimeTable.vue @@ -0,0 +1,191 @@ + + + diff --git a/webapp/src/components/CollectionsPrimeTable.vue b/webapp/src/components/CollectionsPrimeTable.vue new file mode 100644 index 000000000..491baa5f6 --- /dev/null +++ b/webapp/src/components/CollectionsPrimeTable.vue @@ -0,0 +1,42 @@ + + + diff --git a/webapp/src/components/CreateEquipmentModal.vue b/webapp/src/components/CreateEquipmentModal.vue index cd784f304..d90ae74ad 100644 --- a/webapp/src/components/CreateEquipmentModal.vue +++ b/webapp/src/components/CreateEquipmentModal.vue @@ -187,7 +187,9 @@ export default { ) .then(() => { this.$emit("update:modelValue", false); // close this modal - document.getElementById(this.item_id).scrollIntoView({ behavior: "smooth" }); + if (document.getElementById(this.item_id)) { + document.getElementById(this.item_id).scrollIntoView({ behavior: "smooth" }); + } this.item_id = null; this.name = null; this.date = this.now(); // reset date to the new current time diff --git a/webapp/src/components/EquipmentPrimeTable.vue b/webapp/src/components/EquipmentPrimeTable.vue new file mode 100644 index 000000000..fa1f48de9 --- /dev/null +++ b/webapp/src/components/EquipmentPrimeTable.vue @@ -0,0 +1,44 @@ + + + diff --git a/webapp/src/components/Navbar.vue b/webapp/src/components/Navbar.vue index ecfda7916..837b48d00 100644 --- a/webapp/src/components/Navbar.vue +++ b/webapp/src/components/Navbar.vue @@ -22,9 +22,13 @@