From 6db681a1f3c394809d3c94086a804ac49f3f11b4 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Wed, 6 Dec 2023 15:09:41 -0300 Subject: [PATCH] Continues refactor of Vue components logic for #794. --- .eslintrc.js | 3 +- .../components/navigation/tainacan-title.vue | 11 +- .../other/checkbox-radio-metadata-input.vue | 2 +- src/views/admin/js/event-bus-search.js | 4 +- .../blocks/carousel-collections-list/theme.js | 101 +--- .../carousel-collections-list/theme.vue | 298 ++++++----- .../blocks/carousel-items-list/theme.js | 129 ++--- .../blocks/carousel-items-list/theme.vue | 296 ++++++----- .../blocks/carousel-terms-list/theme.js | 104 +--- .../blocks/carousel-terms-list/theme.vue | 296 ++++++----- .../blocks/dynamic-items-list/theme.js | 142 ++--- .../blocks/dynamic-items-list/theme.vue | 492 +++++++++--------- .../theme-search/js/theme-router.js | 20 +- .../theme-search/theme-items-page.vue | 2 +- .../blocks/faceted-search/theme.js | 76 ++- .../blocks/item-submission-form/theme.js | 68 +-- 16 files changed, 894 insertions(+), 1150 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b2ab730f8..1737a72be 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,7 +26,8 @@ module.exports = { "vue/no-v-model-argument": "off", // ADD 'vue/multi-word-component-names': 'off', 'vue/require-default-prop': 'off', - 'vue/no-v-text-v-html-on-component': 'off' + 'vue/no-v-text-v-html-on-component': 'off', + 'vue/no-multiple-template-root': 'off' // In Vue3, this rule is deprecated }, globals: { 'wp': true, diff --git a/src/views/admin/components/navigation/tainacan-title.vue b/src/views/admin/components/navigation/tainacan-title.vue index 7a1e1993c..7c617c921 100644 --- a/src/views/admin/components/navigation/tainacan-title.vue +++ b/src/views/admin/components/navigation/tainacan-title.vue @@ -42,7 +42,9 @@  >  {{ childBreadCrumbItem.label }} + :to="{ path: childBreadCrumbItem.path, query: index === $i18n.get('items') ? { fromBreadcrumb: true } : null }"> + {{ childBreadCrumbItem.label }} + {{ childBreadCrumbItem.label }} @@ -52,6 +54,7 @@