feat: refs #7220 update paths

This commit is contained in:
Javier Segarra 2024-09-26 09:09:43 +02:00
parent 653fd28e06
commit 10fa6758c9
11 changed files with 22 additions and 17 deletions

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref, onMounted, useSlots } from 'vue'; import { ref, onMounted, useSlots } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
const slots = useSlots(); const slots = useSlots();
const hasContent = ref(false); const hasContent = ref(false);

View File

@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
import { computed, ref } from 'vue'; import { computed, ref } from 'vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import axios from 'axios'; import axios from 'axios';
import useNotify from 'composables/useNotify'; import useNotify from 'src/composables/useNotify';
const MESSAGE_MAX_LENGTH = 160; const MESSAGE_MAX_LENGTH = 160;

View File

@ -1,5 +1,5 @@
<script setup> <script setup>
import { useStateStore } from 'stores/useStateStore'; import { useStateStore } from 'src/stores/useStateStore';
import LeftMenu from 'src/components/LeftMenu.vue'; import LeftMenu from 'src/components/LeftMenu.vue';
import { onMounted } from 'vue'; import { onMounted } from 'vue';

View File

@ -39,7 +39,7 @@ export default {
icon: 'vn:settings', icon: 'vn:settings',
}, },
component: () => component: () =>
import('pages/Route/Agency/Card/AgencyBasicData.vue'), import('src/pages/Route/Agency/Card/AgencyBasicData.vue'),
}, },
{ {
path: 'workCenter', path: 'workCenter',

View File

@ -37,7 +37,8 @@ export default {
title: 'basicData', title: 'basicData',
icon: 'vn:settings', icon: 'vn:settings',
}, },
component: () => import('pages/Parking/Card/ParkingBasicData.vue'), component: () =>
import('src/pages/Parking/Card/ParkingBasicData.vue'),
}, },
{ {
name: 'ParkingLog', name: 'ParkingLog',

View File

@ -27,7 +27,7 @@ export default {
title: 'summary', title: 'summary',
icon: 'open_in_new', icon: 'open_in_new',
}, },
component: () => import('pages/Route/Roadmap/RoadmapSummary.vue'), component: () => import('src/pages/Route/Roadmap/RoadmapSummary.vue'),
}, },
{ {
name: 'RoadmapBasicData', name: 'RoadmapBasicData',
@ -36,7 +36,8 @@ export default {
title: 'basicData', title: 'basicData',
icon: 'vn:settings', icon: 'vn:settings',
}, },
component: () => import('pages/Route/Roadmap/RoadmapBasicData.vue'), component: () =>
import('src/pages/Route/Roadmap/RoadmapBasicData.vue'),
}, },
{ {
name: 'RoadmapStops', name: 'RoadmapStops',
@ -45,7 +46,7 @@ export default {
title: 'stops', title: 'stops',
icon: 'vn:lines', icon: 'vn:lines',
}, },
component: () => import('pages/Route/Roadmap/RoadmapStops.vue'), component: () => import('src/pages/Route/Roadmap/RoadmapStops.vue'),
}, },
], ],
}, },

View File

@ -100,7 +100,7 @@ export default {
title: 'basicData', title: 'basicData',
icon: 'vn:settings', icon: 'vn:settings',
}, },
component: () => import('pages/Route/Card/RouteForm.vue'), component: () => import('src/pages/Route/Card/RouteForm.vue'),
}, },
{ {
name: 'RouteSummary', name: 'RouteSummary',
@ -109,7 +109,7 @@ export default {
title: 'summary', title: 'summary',
icon: 'open_in_new', icon: 'open_in_new',
}, },
component: () => import('pages/Route/Card/RouteSummary.vue'), component: () => import('src/pages/Route/Card/RouteSummary.vue'),
}, },
{ {
path: 'tickets', path: 'tickets',

View File

@ -59,7 +59,7 @@ export default {
{ {
name: 'ShelvingLayout', name: 'ShelvingLayout',
path: ':id', path: ':id',
component: () => import('pages/Shelving/Card/ShelvingCard.vue'), component: () => import('src/pages/Shelving/Card/ShelvingCard.vue'),
redirect: { name: 'ShelvingSummary' }, redirect: { name: 'ShelvingSummary' },
children: [ children: [
{ {
@ -68,7 +68,8 @@ export default {
meta: { meta: {
title: 'summary', title: 'summary',
}, },
component: () => import('pages/Shelving/Card/ShelvingSummary.vue'), component: () =>
import('src/pages/Shelving/Card/ShelvingSummary.vue'),
}, },
{ {
name: 'ShelvingBasicData', name: 'ShelvingBasicData',
@ -77,7 +78,7 @@ export default {
title: 'basicData', title: 'basicData',
icon: 'vn:settings', icon: 'vn:settings',
}, },
component: () => import('pages/Shelving/Card/ShelvingForm.vue'), component: () => import('src/pages/Shelving/Card/ShelvingForm.vue'),
}, },
{ {
name: 'ShelvingLog', name: 'ShelvingLog',

View File

@ -3,6 +3,6 @@ import VnSelect from 'src/components/common/VnSelect.vue';
describe('<VnSelect />', () => { describe('<VnSelect />', () => {
it('renders', () => { it('renders', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.mount(VnSelect); cy.vnMount(VnSelect);
}); });
}); });

View File

@ -1,4 +1,3 @@
import SendEmailDialog from 'src/components/common/SendEmailDialog.vue'; import SendEmailDialog from 'src/components/common/SendEmailDialog.vue';
describe('<SendEmailDialog />', () => { describe('<SendEmailDialog />', () => {

View File

@ -1,9 +1,12 @@
import VnSectionMain from 'src/components/common/VnSectionMain.vue'; import VnSectionMain from 'src/components/common/VnSectionMain.vue';
describe('<VnSectionMain />', () => { describe('<VnSectionMain />', () => {
it('TODO: boilerplate', () => { it('TODO: boilerplate', () => {
// see: https://on.cypress.io/mounting-vue // see: https://on.cypress.io/mounting-vue
cy.vnMount(VnSectionMain); cy.vnMount(VnSectionMain, {
props: {
leftDrawer: true,
},
});
}); });
}); });