diff --git a/package-lock.json b/package-lock.json
index e9adc1525..2595f5cd7 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1939,6 +1939,11 @@
"@vue/shared": "3.3.4"
}
},
+ "@vue/devtools-api": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.5.0.tgz",
+ "integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q=="
+ },
"@vue/reactivity": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.4.tgz",
@@ -6879,9 +6884,12 @@
}
},
"vue-router": {
- "version": "3.6.5",
- "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
- "integrity": "sha512-VYXZQLtjuvKxxcshuRAwjHnciqZVoXAjTjcqBTz4rKc8qih9g9pI3hbDjmqXaHdgL3v8pV6P8Z335XvHzESxLQ=="
+ "version": "4.2.4",
+ "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.2.4.tgz",
+ "integrity": "sha512-9PISkmaCO02OzPVOMq2w82ilty6+xJmQrarYZDkjZBfl4RvYAlt4PKnEX21oW4KTtWfa9OuO/b3qk1Od3AEdCQ==",
+ "requires": {
+ "@vue/devtools-api": "^6.5.0"
+ }
},
"vue-the-mask": {
"version": "0.11.1",
@@ -6902,9 +6910,12 @@
}
},
"vuex": {
- "version": "3.6.2",
- "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
- "integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw=="
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.1.0.tgz",
+ "integrity": "sha512-hmV6UerDrPcgbSy9ORAtNXDr9M4wlNP4pEFKye4ujJF8oqgFFuxDCdOLS3eNoRTtq5O3hoBDh9Doj1bQMYHRbQ==",
+ "requires": {
+ "@vue/devtools-api": "^6.0.0-beta.11"
+ }
},
"watchpack": {
"version": "2.4.0",
diff --git a/package.json b/package.json
index e510f000b..21715c7b5 100644
--- a/package.json
+++ b/package.json
@@ -32,11 +32,11 @@
"vue-apexcharts": "^1.6.2",
"vue-blurhash": "^0.1.4",
"vue-countup-v2": "^4.0.0",
- "vue-router": "^3.6.5",
+ "vue-router": "^4.2.4",
"vue-the-mask": "^0.11.1",
"vue2-leaflet": "^2.7.1",
"vuedraggable": "^2.24.3",
- "vuex": "^3.6.2"
+ "vuex": "^4.1.0"
},
"devDependencies": {
"@babel/core": "^7.21.0",
diff --git a/src/views/admin/components/edition/importer-edition-form.vue b/src/views/admin/components/edition/importer-edition-form.vue
index 289de0810..189b01d56 100644
--- a/src/views/admin/components/edition/importer-edition-form.vue
+++ b/src/views/admin/components/edition/importer-edition-form.vue
@@ -121,7 +121,6 @@
diff --git a/src/views/admin/components/edition/importer-mapping-form.vue b/src/views/admin/components/edition/importer-mapping-form.vue
index dcdd88bc5..8882d9ce4 100644
--- a/src/views/admin/components/edition/importer-mapping-form.vue
+++ b/src/views/admin/components/edition/importer-mapping-form.vue
@@ -11,16 +11,12 @@
diff --git a/src/views/admin/components/lists/collections-home-list.vue b/src/views/admin/components/lists/collections-home-list.vue
index 2865bfc07..470900a82 100644
--- a/src/views/admin/components/lists/collections-home-list.vue
+++ b/src/views/admin/components/lists/collections-home-list.vue
@@ -7,7 +7,6 @@
class="new-collection-menu">
@@ -35,8 +47,7 @@
-
@@ -50,7 +61,6 @@
:class="activeRoute == 'CollectionEditionForm' ? 'is-active':''"
class="level-item">
@@ -65,7 +75,6 @@
:class="activeRoute == 'CollectionMetadataPage' ? 'is-active':''"
class="level-item">
@@ -79,7 +88,6 @@
:class="activeRoute == 'CollectionFiltersPage' ? 'is-active':''"
class="level-item">
@@ -93,7 +101,6 @@
:class="activeRoute == 'CollectionActivitiesPage' ? 'is-active':''"
class="level-item">
@@ -107,7 +114,6 @@
:class="activeRoute == 'CollectionCapabilitiesPage' ? 'is-active':''"
class="level-item is-hidden-mobile">
diff --git a/src/views/admin/components/navigation/tainacan-header.vue b/src/views/admin/components/navigation/tainacan-header.vue
index 10e0687e3..1d8ebbc30 100644
--- a/src/views/admin/components/navigation/tainacan-header.vue
+++ b/src/views/admin/components/navigation/tainacan-header.vue
@@ -7,7 +7,6 @@
v-if="!$adminOptions.hideTainacanHeaderHomeButton"
class="level-item home-area">
diff --git a/src/views/admin/components/navigation/tainacan-repository-subheader.vue b/src/views/admin/components/navigation/tainacan-repository-subheader.vue
index c3a0356b7..2322ae136 100644
--- a/src/views/admin/components/navigation/tainacan-repository-subheader.vue
+++ b/src/views/admin/components/navigation/tainacan-repository-subheader.vue
@@ -10,12 +10,18 @@
-
-
-
+ custom
+ v-slot="{ navigate }">
+
diff --git a/src/views/admin/components/navigation/tainacan-title.vue b/src/views/admin/components/navigation/tainacan-title.vue
index 73ddf3bea..01f7c67fd 100644
--- a/src/views/admin/components/navigation/tainacan-title.vue
+++ b/src/views/admin/components/navigation/tainacan-title.vue
@@ -14,16 +14,13 @@
{{ childBreadCrumbItem.label }}
{{ childBreadCrumbItem.label }}
diff --git a/src/views/admin/components/other/processes-popup.vue b/src/views/admin/components/other/processes-popup.vue
index 75ff5a081..744b19b70 100644
--- a/src/views/admin/components/other/processes-popup.vue
+++ b/src/views/admin/components/other/processes-popup.vue
@@ -33,7 +33,6 @@
- {{ $i18n.getFrom('taxonomies', 'new_item') }}
+ :to="{ path: $routerHelper.getNewTaxonomyPath() }"
+ custom
+ v-slot="{ navigate }">
+
diff --git a/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/js/theme-router.js b/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/js/theme-router.js
index 257d44d7a..0a1c42cf2 100644
--- a/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/js/theme-router.js
+++ b/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/js/theme-router.js
@@ -1,14 +1,11 @@
-import Vue from 'vue';
-import VueRouter from 'vue-router'
+import { createRouter, createWebHistory } from 'vue-router';
import qs from 'qs';
-Vue.use(VueRouter);
-
const themeRoutes = [];
-export default new VueRouter ({
- mode: 'history',
- themeRoutes,
+export default createRouter ({
+ history: createWebHistory(),
+ routes: themeRoutes,
// set custom query resolver
parseQuery(query) {
return qs.parse(query);
diff --git a/src/views/reports/js/reports-router.js b/src/views/reports/js/reports-router.js
index 5de88c64d..b9097c8ae 100644
--- a/src/views/reports/js/reports-router.js
+++ b/src/views/reports/js/reports-router.js
@@ -1,21 +1,15 @@
-import Vue from 'vue';
-import VueRouter from 'vue-router'
+import { createRouter } from 'vue-router';
import qs from 'qs';
-
import ReportsList from '../pages/reports-list.vue';
const { __ } = wp.i18n;
-Vue.use(VueRouter);
-
const routes = [
{ path: '/', redirect:'/reports' },
{ path: '/reports', name: 'ReportsList', component: ReportsList, meta: { title: __('Tainacan Reports') } },
-
- { path: '*', redirect: '/'}
];
-export default new VueRouter ({
+export default createRouter({
routes,
// set custom query resolver
parseQuery(query) {
diff --git a/src/views/roles/js/roles-router.js b/src/views/roles/js/roles-router.js
index 4331b33cb..8f1fb143e 100644
--- a/src/views/roles/js/roles-router.js
+++ b/src/views/roles/js/roles-router.js
@@ -1,5 +1,4 @@
-import Vue from 'vue';
-import VueRouter from 'vue-router'
+import { createRouter } from 'vue-router';
import qs from 'qs';
import RolesList from '../pages/roles-list.vue';
@@ -7,17 +6,13 @@ import RoleEditionForm from '../pages/role-edition-form.vue'
const { __ } = wp.i18n;
-Vue.use(VueRouter);
-
const routes = [
{ path: '/', redirect:'/roles' },
{ path: '/roles', name: 'RolesList', component: RolesList, meta: { title: __('Tainacan User Roles') } },
{ path: '/roles/:roleSlug', name: 'RoleEditionForm', component: RoleEditionForm, meta: { title: __('Editing User Role') } },
-
- { path: '*', redirect: '/'}
];
-export default new VueRouter ({
+export default createRouter({
routes,
// set custom query resolver
parseQuery(query) {