PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -2,54 +2,49 @@ import {
|
||||
createMemoryHistory, createRouter, createWebHashHistory, createWebHistory,
|
||||
} from 'vue-router'
|
||||
|
||||
|
||||
import { cfgrouter } from './route-config'
|
||||
|
||||
import { useUserStore } from '@src/store/UserStore';
|
||||
const routermode = import.meta.env.VITE_VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory
|
||||
|
||||
export default function ({ store, /*ssrContext } */}: {store: any}) {
|
||||
const routermode = process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory
|
||||
// const userStore = useUserStore(store)
|
||||
|
||||
const userStore = useUserStore(store)
|
||||
const createHistory = import.meta.env.SERVER
|
||||
? createMemoryHistory
|
||||
: routermode
|
||||
|
||||
const createHistory = process.env.SERVER
|
||||
? createMemoryHistory
|
||||
: routermode
|
||||
const router = createRouter({
|
||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||
routes: cfgrouter.getmenu(),
|
||||
history: createHistory(
|
||||
import.meta.env.MODE === 'ssr' ? void 0 : import.meta.env.VUE_ROUTER_BASE,
|
||||
),
|
||||
});
|
||||
|
||||
const router = createRouter({
|
||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||
routes: cfgrouter.getmenu(),
|
||||
history: createHistory(
|
||||
process.env.MODE === 'ssr' ? void 0 : process.env.VUE_ROUTER_BASE,
|
||||
),
|
||||
});
|
||||
/*
|
||||
// Add the beforeEach hook
|
||||
router.beforeEach((to, from, next) => {
|
||||
console.log('beforeEach ROUTER')
|
||||
// Execute your command before each navigation
|
||||
// executeCommand();
|
||||
|
||||
/*
|
||||
// Add the beforeEach hook
|
||||
router.beforeEach((to, from, next) => {
|
||||
console.log('beforeEach ROUTER')
|
||||
// Execute your command before each navigation
|
||||
// executeCommand();
|
||||
const globalStore = useGlobalStore()
|
||||
try {
|
||||
globalStore.editOn = false
|
||||
} catch(e) {
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
try {
|
||||
globalStore.editOn = false
|
||||
} catch(e) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
//if (to.matched.some(record => record.meta.requiresAuth) && !userStore.isLogged) {
|
||||
// next({ name: 'login', query: { next: to.fullPath } })
|
||||
//} else {
|
||||
// next()
|
||||
//}
|
||||
|
||||
|
||||
// Continue with the navigation
|
||||
next();
|
||||
}); */
|
||||
|
||||
return router;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//if (to.matched.some(record => record.meta.requiresAuth) && !userStore.isLogged) {
|
||||
// next({ name: 'login', query: { next: to.fullPath } })
|
||||
//} else {
|
||||
// next()
|
||||
//}
|
||||
|
||||
|
||||
// Continue with the navigation
|
||||
next();
|
||||
}); */
|
||||
|
||||
export default router;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { static_data } from '@src/db/static_data'
|
||||
import { useProgressBar } from '@store/Modules/ProgressBar'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useNotifStore } from '@store/NotifStore'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { static_data } from '@src/db/static_data'
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
|
||||
interface IMyMeta {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IListRoutes, ISites } from '@src/model'
|
||||
import type { IListRoutes, ISites } from '@src/model'
|
||||
|
||||
function getRoutesAI(site: ISites) {
|
||||
|
||||
@@ -9,14 +9,14 @@ function getRoutesAI(site: ISites) {
|
||||
path: '/ai',
|
||||
materialIcon: 'fas fa-book',
|
||||
name: 'mypages.aitools',
|
||||
component: () => import('@/views/toolsAI/main/main.vue'),
|
||||
component: () => import('@src/views/toolsAI/main/main.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
level_child: 0.5,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
const routes_admin_ai: IListRoutes[] = [
|
||||
{
|
||||
active: true,
|
||||
@@ -24,7 +24,7 @@ function getRoutesAI(site: ISites) {
|
||||
path: '/admin/ai/catAI',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.catAI',
|
||||
component: () => import('@/rootgen/admin/catAI/catAI.vue'),
|
||||
component: () => import('@src/rootgen/admin/catAI/catAI.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -38,7 +38,7 @@ function getRoutesAI(site: ISites) {
|
||||
path: '/admin/ai/queryAI',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.queryAI',
|
||||
component: () => import('@/rootgen/admin/queryAI/queryAI.vue'),
|
||||
component: () => import('@src/rootgen/admin/queryAI/queryAI.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { IListRoutes, ISites } from '@src/model'
|
||||
import type { IListRoutes, ISites } from '@src/model'
|
||||
import { only } from 'node:test'
|
||||
|
||||
function getRoutesAd(site: ISites) {
|
||||
|
||||
@@ -9,7 +10,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/sites',
|
||||
materialIcon: 'event_seat',
|
||||
name: 'pages.Sites',
|
||||
component: () => import('@/rootgen/admin/sites/sites.vue'),
|
||||
component: () => import('@src/rootgen/admin/sites/sites.vue'),
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
inmenu: true,
|
||||
@@ -22,7 +23,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/cfgserv',
|
||||
materialIcon: 'event_seat',
|
||||
name: 'pages.Admin',
|
||||
component: () => import('@/views/admin/cfgServer/cfgServer.vue'),
|
||||
component: () => import('@src/views/admin/cfgServer/cfgServer.vue'),
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
inmenu: true,
|
||||
@@ -35,7 +36,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/dbop',
|
||||
materialIcon: 'event_seat',
|
||||
name: 'pages.dbop',
|
||||
component: () => import('@/views/admin/dbop/dbop.vue'),
|
||||
component: () => import('@src/views/admin/dbop/dbop.vue'),
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
inmenu: true,
|
||||
@@ -48,7 +49,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/server',
|
||||
materialIcon: 'event_seat',
|
||||
name: 'otherpages.server',
|
||||
component: () => import('@/views/admin/server/server.vue'),
|
||||
component: () => import('@src/views/admin/server/server.vue'),
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
inmenu: true,
|
||||
@@ -61,7 +62,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/importfile',
|
||||
materialIcon: 'event_seat',
|
||||
name: 'otherpages.manage.importfile',
|
||||
component: () => import('@/rootgen/admin/importdata/importdata.vue'),
|
||||
component: () => import('@src/rootgen/admin/importdata/importdata.vue'),
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
inmenu: true,
|
||||
@@ -74,7 +75,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/convertPDF',
|
||||
materialIcon: 'event_seat',
|
||||
name: 'otherpages.manage.convertPDF',
|
||||
component: () => import('@/rootgen/admin/convertPDF/convertPDF.vue'),
|
||||
component: () => import('@src/rootgen/admin/convertPDF/convertPDF.vue'),
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
inmenu: true,
|
||||
@@ -90,56 +91,56 @@ function getRoutesAd(site: ISites) {
|
||||
active: true,
|
||||
order: 10,
|
||||
name: 'newsletter.template', path: '/admin/newsletter/templemail', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 20,
|
||||
name: 'newsletter.sendemail', path: '/admin/newsletter/newnewsletter', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 30,
|
||||
name: 'newsletter.check', path: '/admin/newsletter/check', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 40,
|
||||
name: 'newsletter.sent', path: '/admin/newsletter/newslist', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 50,
|
||||
name: 'newsletter.mailinglist', path: '/admin/newsletter/mailinglist', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 60,
|
||||
name: 'newsletter.settings', path: '/admin/newsletter/settings', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 70,
|
||||
name: 'newsletter.serversettings', path: '/admin/newsletter/main_settings', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 80,
|
||||
name: 'newsletter.others', path: '/admin/newsletter/events', materialIcon: 'fas fa-users',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: true, submenu: true, level_parent: 0.5, level_child: 0.5, onlyManager: true, noroute: true
|
||||
}
|
||||
]
|
||||
@@ -151,7 +152,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/ris/circuitslist',
|
||||
materialIcon: 'fas fa-coins',
|
||||
name: 'otherpages.admin.circuitslist',
|
||||
component: () => import('@/rootgen/admin/circuitsList/circuitsList.vue'),
|
||||
component: () => import('@src/rootgen/admin/circuitsList/circuitsList.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0.5,
|
||||
@@ -165,7 +166,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/ris/accountslist',
|
||||
materialIcon: 'fas fa-users',
|
||||
name: 'otherpages.admin.accountslist',
|
||||
component: () => import('@/rootgen/admin/accountsList/accountsList.vue'),
|
||||
component: () => import('@src/rootgen/admin/accountsList/accountsList.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0.5,
|
||||
@@ -179,7 +180,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/ris/movslist',
|
||||
materialIcon: 'fas fa-users',
|
||||
name: 'otherpages.admin.movslist',
|
||||
component: () => import('@/rootgen/admin/movsList/movsList.vue'),
|
||||
component: () => import('@src/rootgen/admin/movsList/movsList.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0.5,
|
||||
@@ -197,7 +198,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/usereventlist',
|
||||
materialIcon: 'edit',
|
||||
name: 'otherpages.admin.usereventlist',
|
||||
component: () => import('@/rootgen/admin/eventlist/eventlist.vue'),
|
||||
component: () => import('@src/rootgen/admin/eventlist/eventlist.vue'),
|
||||
inmenu: site.confpages && site.confpages.bookingEvents,
|
||||
submenu: site.confpages && site.confpages.bookingEvents,
|
||||
level_parent: 0,
|
||||
@@ -213,7 +214,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/userlist',
|
||||
materialIcon: 'fas fa-users',
|
||||
name: 'otherpages.admin.userlist',
|
||||
component: () => import('@/rootgen/admin/usersList/usersList.vue'),
|
||||
component: () => import('@src/rootgen/admin/usersList/usersList.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -227,7 +228,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/userpanel',
|
||||
materialIcon: 'fas fa-users',
|
||||
name: 'otherpages.admin.userpanel',
|
||||
component: () => import('@/rootgen/admin/userPanel/userPanel.vue'),
|
||||
component: () => import('@src/rootgen/admin/userPanel/userPanel.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -242,7 +243,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/iscritticonacreis',
|
||||
materialIcon: 'fas fa-users',
|
||||
name: 'otherpages.admin.iscritticonacreis',
|
||||
component: () => import('@/rootgen/admin/iscritticonacreis/iscritticonacreis.vue'),
|
||||
component: () => import('@src/rootgen/admin/iscritticonacreis/iscritticonacreis.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -274,7 +275,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/zoomlist',
|
||||
materialIcon: 'fas fa-users',
|
||||
name: 'otherpages.admin.zoomlist',
|
||||
component: () => import('@/rootgen/admin/zoomList/zoomList.vue'),
|
||||
component: () => import('@src/rootgen/admin/zoomList/zoomList.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -288,7 +289,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/tableslist',
|
||||
materialIcon: 'fas fa-users',
|
||||
name: 'otherpages.admin.tableslist',
|
||||
component: () => import('@/rootgen/admin/tablesList/tablesList.vue'),
|
||||
component: () => import('@src/rootgen/admin/tablesList/tablesList.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -302,7 +303,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/pages',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'otherpages.admin.pages',
|
||||
component: () => import('@/rootgen/admin/pages/pages.vue'),
|
||||
component: () => import('@src/rootgen/admin/pages/pages.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -316,7 +317,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/home',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'otherpages.admin.elems',
|
||||
component: () => import('@/rootgen/admin/editElems/editElems.vue'),
|
||||
component: () => import('@src/rootgen/admin/editElems/editElems.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -329,7 +330,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/bot',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'otherpages.admin.bot',
|
||||
component: () => import('@/rootgen/admin/bot/bot.vue'),
|
||||
component: () => import('@src/rootgen/admin/bot/bot.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -342,7 +343,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/confsite',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'otherpages.admin.confsite',
|
||||
component: () => import('@/rootgen/admin/confsite/confsite.vue'),
|
||||
component: () => import('@src/rootgen/admin/confsite/confsite.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -372,7 +373,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/msg_template',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'msgs.messages',
|
||||
component: () => import('@/rootgen/admin/msg_template/msg_template.vue'),
|
||||
component: () => import('@src/rootgen/admin/msg_template/msg_template.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -387,7 +388,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/sendpushnotif',
|
||||
materialIcon: 'event_seat',
|
||||
name: 'otherpages.manage.sendpushnotif',
|
||||
component: () => import('@/rootgen/admin/sendpushnotif/sendpushnotif.vue'),
|
||||
component: () => import('@src/rootgen/admin/sendpushnotif/sendpushnotif.vue'),
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
inmenu: true,
|
||||
@@ -401,7 +402,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/gallery',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'otherpages.admin.gallery',
|
||||
component: () => import('@/rootgen/admin/gallery/gallery.vue'),
|
||||
component: () => import('@src/rootgen/admin/gallery/gallery.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -415,7 +416,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/media',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'otherpages.admin.media',
|
||||
component: () => import('@/rootgen/admin/uploader/uploader.vue'),
|
||||
component: () => import('@src/rootgen/admin/uploader/uploader.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -432,7 +433,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/my/:username',
|
||||
materialIcon: 'fas fa-user',
|
||||
name: 'pages.profile2',
|
||||
component: () => import('@/views/user/myprofile/myprofile.vue'),
|
||||
component: () => import('@src/views/user/myprofile/myprofile.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
@@ -443,7 +444,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/skills/:username',
|
||||
materialIcon: 'fas fa-user',
|
||||
name: 'otherpages.myactivities',
|
||||
component: () => import('@/views/user/myactivities/myactivities.vue'),
|
||||
component: () => import('@src/views/user/myactivities/myactivities.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
@@ -454,7 +455,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/attivita/:username',
|
||||
materialIcon: 'fas fa-user',
|
||||
name: 'mypages.attivita',
|
||||
component: () => import('@/views/user/myprofile/myprofile.vue'),
|
||||
component: () => import('@src/views/user/myprofile/myprofile.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
@@ -466,7 +467,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/notifs',
|
||||
materialIcon: 'fas fa-user',
|
||||
name: 'pages.notifs',
|
||||
component: () => import('@/views/user/usernotifs/usernotifs.vue'),
|
||||
component: () => import('@src/views/user/usernotifs/usernotifs.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
@@ -477,7 +478,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/unsubscribe',
|
||||
materialIcon: 'fas fa-envelope',
|
||||
name: 'pages.unsubscribe',
|
||||
component: () => import('@/views/email/unsubscribe/unsubscribe.vue'),
|
||||
component: () => import('@src/views/email/unsubscribe/unsubscribe.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
},
|
||||
@@ -487,7 +488,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/unsubscribe_user',
|
||||
materialIcon: 'fas fa-envelope',
|
||||
name: 'pages.unsubscribe_user',
|
||||
component: () => import('@/views/unsubscribe_user/unsubscribe_user.vue'),
|
||||
component: () => import('@src/views/unsubscribe_user/unsubscribe_user.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
},
|
||||
@@ -497,7 +498,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/provapao',
|
||||
materialIcon: 'fas fa-house-user',
|
||||
name: 'mypages.provapao',
|
||||
component: () => import('@/root/provapao/provapao.vue'),
|
||||
component: () => import('@src/root/provapao/provapao.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
@@ -508,7 +509,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/testlocal',
|
||||
materialIcon: 'fas fa-test',
|
||||
name: 'mypages.TestLocal',
|
||||
component: () => import('@/views/test/test.vue'),
|
||||
component: () => import('@src/views/test/test.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
@@ -569,7 +570,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/signup',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp5',
|
||||
component: () => import('@/views/login/signup_noteleg/signup_noteleg.vue'),
|
||||
component: () => import('@src/views/login/signup_noteleg/signup_noteleg.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -580,7 +581,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/registrati',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp7',
|
||||
component: () => import('@/views/login/signup_noteleg/signup_noteleg.vue'),
|
||||
component: () => import('@src/views/login/signup_noteleg/signup_noteleg.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -591,7 +592,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/signup/:invited',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp2',
|
||||
component: () => import('@/views/login/signup/signup.vue'),
|
||||
component: () => import('@src/views/login/signup/signup.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -602,7 +603,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/registrati/:invited',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp6',
|
||||
component: () => import('@/views/login/signup/signup.vue'),
|
||||
component: () => import('@src/views/login/signup/signup.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -613,7 +614,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/signup/:invited/:regexpire',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp3',
|
||||
component: () => import('@/views/login/signup/signup.vue'),
|
||||
component: () => import('@src/views/login/signup/signup.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -624,7 +625,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/signup_collettivo/:invited/:username_default/:name_default',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUpCollettivo',
|
||||
component: () => import('@/views/login/signup_collettivo/signup_collettivo.vue'),
|
||||
component: () => import('@src/views/login/signup_collettivo/signup_collettivo.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -635,7 +636,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/signup_collettivo',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUpCollettivo2',
|
||||
component: () => import('@/views/login/signup_collettivo/signup_collettivo.vue'),
|
||||
component: () => import('@src/views/login/signup_collettivo/signup_collettivo.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -646,7 +647,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/signup/:invited/:usernameteleg/:idteleg/:regexpire',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp',
|
||||
component: () => import('@/views/login/signup/signup.vue'),
|
||||
component: () => import('@src/views/login/signup/signup.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -657,7 +658,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/registrati/:invited/:usernameteleg/:idteleg/:regexpire',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp11',
|
||||
component: () => import('@/views/login/signup/signup.vue'),
|
||||
component: () => import('@src/views/login/signup/signup.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -668,7 +669,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/registrati/:invited/:usernameteleg/:idteleg',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.SignUp4',
|
||||
component: () => import('@/views/login/signup/signup.vue'),
|
||||
component: () => import('@src/views/login/signup/signup.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false
|
||||
@@ -679,7 +680,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/regok',
|
||||
materialIcon: 'how_to_reg',
|
||||
name: 'pages.regok',
|
||||
component: () => import('@/views/login/regok/regok.vue'),
|
||||
component: () => import('@src/views/login/regok/regok.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
separator: false,
|
||||
@@ -690,7 +691,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/signin',
|
||||
materialIcon: 'account_circle',
|
||||
name: 'pages.SignIn',
|
||||
component: () => import('@/views/login/signin_noreg/signin_noreg.vue'),
|
||||
component: () => import('@src/views/login/signin_noreg/signin_noreg.vue'),
|
||||
inmenu: false,
|
||||
infooter: true
|
||||
},
|
||||
@@ -700,28 +701,28 @@ function getRoutesAd(site: ISites) {
|
||||
order: 1000,
|
||||
path: '/vreg',
|
||||
name: 'pages.vreg',
|
||||
component: () => import('@/views/login/vreg/vreg.vue')
|
||||
component: () => import('@src/views/login/vreg/vreg.vue')
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 1000,
|
||||
path: '/requestresetpwd',
|
||||
name: 'pages.requestresetpwd',
|
||||
component: () => import('@/views/requestresetpwd/requestresetpwd.vue')
|
||||
component: () => import('@src/views/requestresetpwd/requestresetpwd.vue')
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 1000,
|
||||
path: '/updatepassword',
|
||||
name: 'pages.updatepassword',
|
||||
component: () => import('@/views/updatepassword/updatepassword.vue')
|
||||
component: () => import('@src/views/updatepassword/updatepassword.vue')
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 1000,
|
||||
path: '/offline',
|
||||
name: 'Offline',
|
||||
component: () => import('@/views/offline/offline.vue')
|
||||
component: () => import('@src/views/offline/offline.vue')
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
@@ -737,7 +738,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/calendario-eventi',
|
||||
materialIcon: 'event',
|
||||
name: 'ris.calendario_eventi_riso',
|
||||
component: () => import('@/root/calendarioeventi/calendarioeventi.vue'),
|
||||
component: () => import('@src/root/calendarioeventi/calendarioeventi.vue'),
|
||||
extraclass: 'isCalendar',
|
||||
inmenu: true,
|
||||
infooter: true
|
||||
@@ -750,7 +751,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/admin/newsletter/:idparam',
|
||||
materialIcon: 'event',
|
||||
name: 'pages.newsletter.menu',
|
||||
component: () => import('@/rootgen/admin/newsletter/newsletter.vue'),
|
||||
component: () => import('@src/rootgen/admin/newsletter/newsletter.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
onlyAdmin: true
|
||||
@@ -761,7 +762,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/event/:typol/:eventid',
|
||||
materialIcon: 'event',
|
||||
name: 'pages.evento',
|
||||
component: () => import('@/root/evento/evento.vue'),
|
||||
component: () => import('@src/root/evento/evento.vue'),
|
||||
inmenu: false,
|
||||
infooter: false
|
||||
},
|
||||
@@ -771,7 +772,7 @@ function getRoutesAd(site: ISites) {
|
||||
path: '/event/:typol',
|
||||
materialIcon: 'event',
|
||||
name: 'pages.eventodef',
|
||||
component: () => import('@/root/evento/evento.vue'),
|
||||
component: () => import('@src/root/evento/evento.vue'),
|
||||
inmenu: false,
|
||||
infooter: false
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IListRoutes, ISites } from '@src/model'
|
||||
import type { IListRoutes, ISites } from '@src/model'
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
|
||||
function getRoutesEcomm(site: ISites) {
|
||||
@@ -10,7 +10,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/products',
|
||||
materialIcon: 'fas fa-lemon',
|
||||
name: 'mypages.productslist',
|
||||
component: () => import('@/views/ecommerce/productsList/productsList.vue'),
|
||||
component: () => import('@src/views/ecommerce/productsList/productsList.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -22,7 +22,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/checkout',
|
||||
materialIcon: 'fas fa-shopping-cart',
|
||||
name: 'mypages.checkout',
|
||||
component: () => import('@/views/ecommerce/checkOut/checkOut.vue'),
|
||||
component: () => import('@src/views/ecommerce/checkOut/checkOut.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -34,7 +34,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/orderinfo',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.orderinfo',
|
||||
component: () => import('@/views/ecommerce/orderInfo/orderInfo.vue'),
|
||||
component: () => import('@src/views/ecommerce/orderInfo/orderInfo.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -46,7 +46,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/orders',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.orders',
|
||||
component: () => import('@/rootgen/admin/orders/orders.vue'),
|
||||
component: () => import('@src/rootgen/admin/orders/orders.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -54,7 +54,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
onlyDepartment: true
|
||||
},*/
|
||||
]
|
||||
|
||||
|
||||
const routes_admin_ecommerce: IListRoutes[] = [
|
||||
{
|
||||
active: true,
|
||||
@@ -62,7 +62,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/settings',
|
||||
materialIcon: 'fas fa-cogs',
|
||||
name: 'ecomm.settings',
|
||||
component: () => import('@/rootgen/admin/settings/settings.vue'),
|
||||
component: () => import('@src/rootgen/admin/settings/settings.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -76,7 +76,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/cash',
|
||||
materialIcon: 'fas fa-cash-register',
|
||||
name: 'mypages.cash',
|
||||
component: () => import('@/views/ecommerce/cash/cash.vue'),
|
||||
component: () => import('@src/views/ecommerce/cash/cash.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -90,7 +90,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/productInfos',
|
||||
materialIcon: 'fas fa-lemon',
|
||||
name: 'mypages.productInfos',
|
||||
component: () => import('@/rootgen/admin/productInfos/productInfos.vue'),
|
||||
component: () => import('@src/rootgen/admin/productInfos/productInfos.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -104,7 +104,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/gestoreordini',
|
||||
materialIcon: 'fas fa-lemon',
|
||||
name: 'mypages.gestoreordini',
|
||||
component: () => import('@/views/admin/gestoreordini/gestoreordini.vue'),
|
||||
component: () => import('@src/views/admin/gestoreordini/gestoreordini.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -118,7 +118,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/products',
|
||||
materialIcon: 'fas fa-lemon',
|
||||
name: 'mypages.listinoprodotti',
|
||||
component: () => import('@/rootgen/admin/products/products.vue'),
|
||||
component: () => import('@src/rootgen/admin/products/products.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -132,7 +132,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/producers',
|
||||
materialIcon: 'fas fa-tractor',
|
||||
name: 'mypages.producer',
|
||||
component: () => import('@/rootgen/admin/producer/producer.vue'),
|
||||
component: () => import('@src/rootgen/admin/producer/producer.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -146,7 +146,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/storehouses',
|
||||
materialIcon: 'fas fa-store',
|
||||
name: 'mypages.storehouses',
|
||||
component: () => import('@/rootgen/admin/storehouses/storehouses.vue'),
|
||||
component: () => import('@src/rootgen/admin/storehouses/storehouses.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -160,7 +160,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/providers',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.providers',
|
||||
component: () => import('@/rootgen/admin/providers/providers.vue'),
|
||||
component: () => import('@src/rootgen/admin/providers/providers.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -174,7 +174,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/gasordini',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.gasordini',
|
||||
component: () => import('@/rootgen/admin/gasordini/gasordini.vue'),
|
||||
component: () => import('@src/rootgen/admin/gasordini/gasordini.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -188,7 +188,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/scontistica',
|
||||
materialIcon: 'fas fa-gift',
|
||||
name: 'mypages.scontisticas',
|
||||
component: () => import('@/rootgen/admin/scontistica/scontistica.vue'),
|
||||
component: () => import('@src/rootgen/admin/scontistica/scontistica.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -202,7 +202,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/departments',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.departments',
|
||||
component: () => import('@/rootgen/admin/departments/departments.vue'),
|
||||
component: () => import('@src/rootgen/admin/departments/departments.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -216,7 +216,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/orders',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.orders',
|
||||
component: () => import('@/rootgen/admin/orders/orders.vue'),
|
||||
component: () => import('@src/rootgen/admin/orders/orders.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -230,7 +230,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/catprods',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.catprods',
|
||||
component: () => import('@/rootgen/admin/catprods/catprods.vue'),
|
||||
component: () => import('@src/rootgen/admin/catprods/catprods.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -244,7 +244,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/admin/ecommerce/collane',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'mypages.collane',
|
||||
component: () => import('@/rootgen/admin/collane/collane.vue'),
|
||||
component: () => import('@src/rootgen/admin/collane/collane.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
@@ -291,7 +291,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/product/:idprod/:cosa',
|
||||
materialIcon: 'event',
|
||||
name: 'otherpages.product',
|
||||
component: () => import('@/views/ecommerce/productInfo/productInfo.vue'),
|
||||
component: () => import('@src/views/ecommerce/productInfo/productInfo.vue'),
|
||||
inmenu: false,
|
||||
infooter: false
|
||||
},
|
||||
@@ -301,7 +301,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/catalogo/:idprod/:cosa',
|
||||
materialIcon: 'event',
|
||||
name: 'otherpages.catalogo',
|
||||
component: () => import('@/views/ecommerce/catalogoInfo/catalogoInfo.vue'),
|
||||
component: () => import('@src/views/ecommerce/catalogoInfo/catalogoInfo.vue'),
|
||||
inmenu: false,
|
||||
infooter: false
|
||||
},
|
||||
@@ -311,7 +311,7 @@ function getRoutesEcomm(site: ISites) {
|
||||
path: '/orderscart/:idorderscart',
|
||||
materialIcon: 'event',
|
||||
name: 'otherpages.orderscart',
|
||||
component: () => import('@/views/ecommerce/orderscart/orderscart.vue'),
|
||||
component: () => import('@src/views/ecommerce/orderscart/orderscart.vue'),
|
||||
inmenu: false,
|
||||
infooter: false
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user