From f1257907999111409fdfcc6fb42357ed909c4bda Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 10 Jul 2023 10:34:38 -0300 Subject: [PATCH] Removes instances of v-for and v-if in the same tag. First step towards #794. --- .eslintrc.js | 2 - .../modals/available-exporters-modal.vue | 21 +- .../modals/available-importers-modal.vue | 25 +- .../components/modals/bulk-edition-modal.vue | 30 +- .../modals/capability-edition-modal.vue | 40 +- .../modals/collection-creation-modal.vue | 21 +- .../components/modals/collections-modal.vue | 19 +- .../components/other/items-status-tabs.vue | 61 +-- .../components/search/filters-items-list.vue | 380 +++++++++--------- .../admin/components/search/pagination.vue | 15 +- .../admin/pages/lists/collections-page.vue | 14 +- src/views/admin/pages/lists/items-page.vue | 30 +- .../admin/pages/lists/taxonomies-page.vue | 13 +- .../components/view-mode-list.vue | 45 ++- .../theme-search/components/view-mode-map.vue | 73 ++-- .../components/view-mode-records.vue | 43 +- .../components/view-mode-slideshow.vue | 80 ++-- .../components/view-mode-table.vue | 260 ++++++------ .../theme-search/js/view-modes-mixin.js | 18 +- .../theme-search/theme-items-page.vue | 109 ++--- src/views/reports/components/number-block.vue | 47 +-- src/views/roles/pages/roles-list.vue | 17 +- 22 files changed, 721 insertions(+), 642 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 436951c26..a069f1636 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,8 +22,6 @@ module.exports = { 'vue/singleline-html-element-content-newline': 'off', 'vue/multiline-html-element-content-newline': 'off', 'vue/prop-name-casing': 'off', - 'vue/no-confusing-v-for-v-if': 'off', - 'vue/no-use-v-if-with-v-for': 'warn', 'vue/multi-word-component-names': 'off', 'vue/require-default-prop': 'off', 'vue/no-v-text-v-html-on-component': 'off' diff --git a/src/views/admin/components/modals/available-exporters-modal.vue b/src/views/admin/components/modals/available-exporters-modal.vue index 6c889d350..387224389 100644 --- a/src/views/admin/components/modals/available-exporters-modal.vue +++ b/src/views/admin/components/modals/available-exporters-modal.vue @@ -18,16 +18,17 @@
-
-

{{ exporterType.name }}

-

{{ exporterType.description }}

-
+