295 lines
7.4 KiB
TypeScript
Executable File
295 lines
7.4 KiB
TypeScript
Executable File
import {
|
|
IListRoutes,
|
|
ILang,
|
|
IPreloadImages,
|
|
ISites,
|
|
} from '@model'
|
|
import { func } from '@store/Modules/fieldsTable'
|
|
|
|
|
|
// const SHOW_PROJINTHEMENU = false
|
|
//
|
|
// let arrlistafavourite = []
|
|
// let arrlistaprojtutti = []
|
|
// let arrlistaprojmiei = []
|
|
// if (SHOW_PROJINTHEMENU) {
|
|
// arrlistaprojtutti = Projects.getters.listaprojects(RouteNames.projectsall)
|
|
// arrlistaprojmiei = Projects.getters.listaprojects(RouteNames.myprojects)
|
|
// arrlistafavourite = Projects.getters.listaprojects(RouteNames.favouriteprojects)
|
|
// }
|
|
// PROGETTI -> FAVORITI :
|
|
|
|
// if (arrlistafavourite.length > 0) {
|
|
// arrMenu.push({
|
|
// icon: 'favorite_border',
|
|
// nametranslate: 'pages.' + RouteNames.favouriteprojects,
|
|
// urlroute: RouteNames.favouriteprojects,
|
|
// level_parent: 0.0,
|
|
// level_child: 0.5,
|
|
// routes2: arrlistafavourite,
|
|
// idelem: ''
|
|
// })
|
|
// }
|
|
|
|
const firstPage = {
|
|
active: true,
|
|
order: 5,
|
|
path: '/',
|
|
materialIcon: 'home',
|
|
name: 'pages.home',
|
|
component: () => import('@src/root/mainview/mainview.vue'),
|
|
reqauth: false,
|
|
inmenu: true,
|
|
infooter: true,
|
|
}
|
|
|
|
function getDynamicPages(site: ISites): IListRoutes[] {
|
|
|
|
const baseroutes: IListRoutes[] = [
|
|
{
|
|
active: true,
|
|
order: 5,
|
|
path: '/',
|
|
materialIcon: 'home',
|
|
name: 'pages.home',
|
|
component: () => import('@src/root/mainview/mainview.vue'),
|
|
reqauth: false,
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 12,
|
|
path: '/goods',
|
|
materialIcon: 'fas fa-tshirt',
|
|
name: 'mypages.goods',
|
|
component: () => import('@/root/goods/goods.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 15,
|
|
path: '/services',
|
|
materialIcon: 'fas fa-house-user',
|
|
name: 'mypages.services',
|
|
component: () => import('@/root/services/services.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 15,
|
|
path: '/provapao',
|
|
materialIcon: 'fas fa-house-user',
|
|
name: 'mypages.provapao',
|
|
component: () => import('@/root/provapao/provapao.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 15,
|
|
path: '/hosps',
|
|
materialIcon: 'fas fa-bed',
|
|
name: 'mypages.hosp',
|
|
component: () => import('@/root/hosp/hosp.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 20,
|
|
path: '/events',
|
|
materialIcon: 'fas fa-bullhorn',
|
|
name: 'mypages.events',
|
|
component: () => import('@/root/eventi/eventi.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 100,
|
|
path: '/presentazione',
|
|
materialIcon: 'fas fa-info',
|
|
name: 'pages.presentazione',
|
|
component: () => import('@src/root/presentazione/presentazione.vue'),
|
|
reqauth: false,
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 120,
|
|
path: '/myprofile',
|
|
materialIcon: 'fas fa-user',
|
|
name: 'pages.profile',
|
|
component: () => import('@/views/user/myprofile/myprofile.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 120,
|
|
path: '/editprofile',
|
|
materialIcon: 'fas fa-user',
|
|
name: 'pages.profile3',
|
|
component: () => import('@/views/user/editprofile/editprofile.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 130,
|
|
path: '/friends',
|
|
materialIcon: 'fas fa-user-friends',
|
|
name: 'mypages.iscritti',
|
|
component: () => import('@/views/user/myfriends/myfriends.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: site.confpages && site.confpages.enableGroups,
|
|
order: 132,
|
|
path: '/groups',
|
|
materialIcon: 'fas fa-users',
|
|
name: 'mypages.groups',
|
|
component: () => import('@/views/user/mygroups/mygroups.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: site.confpages && site.confpages.enableCircuits,
|
|
order: 133,
|
|
path: '/circuits',
|
|
materialIcon: 'fas fa-coins',
|
|
name: 'mypages.circuits',
|
|
component: () => import('@/views/user/mycircuits/mycircuits.vue'),
|
|
meta: { requiresAuth: true },
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 136,
|
|
path: '/grp/:groupname',
|
|
materialIcon: 'fas fa-user',
|
|
name: 'proj.group2',
|
|
component: () => import('@/views/user/mygroup/mygroup.vue'),
|
|
meta: { requiresAuth: true, newpage: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
}, {
|
|
active: true,
|
|
order: 137,
|
|
path: '/circuit/:path',
|
|
materialIcon: 'fas fa-user',
|
|
name: 'proj.circuit2',
|
|
component: () => import('@/views/user/mycircuit/mycircuit.vue'),
|
|
meta: { requiresAuth: true, newpage: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 130,
|
|
path: '/mypage/:idBacheca',
|
|
materialIcon: 'fas fa-user',
|
|
name: 'pages.mypage2',
|
|
component: () => import('@/views/user/mypagebacheca/mypagebacheca.vue'),
|
|
meta: { requiresAuth: true, newpage: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 130,
|
|
path: '/myservice/:idSkill',
|
|
materialIcon: '',
|
|
name: 'pages.myservice2',
|
|
component: () => import('@/views/user/myservice/myservice.vue'),
|
|
meta: { requiresAuth: true, newpage: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 135,
|
|
path: '/myhosps/:idHosp',
|
|
materialIcon: '',
|
|
name: 'pages.myhosps2',
|
|
component: () => import('@/views/user/mypagehosp/mypagehosp.vue'),
|
|
meta: { requiresAuth: true, newpage: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 132,
|
|
path: '/mygood/:idGood',
|
|
materialIcon: '',
|
|
name: 'pages.mygood2',
|
|
component: () => import('@/views/user/mypagegood/mypagegood.vue'),
|
|
meta: { requiresAuth: true, newpage: true },
|
|
inmenu: false,
|
|
infooter: false,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 150,
|
|
path: '/fundraising',
|
|
materialIcon: 'fas fa-hand-holding-heart',
|
|
name: 'pages.fundraising',
|
|
component: () => import('@src/root/fundraising/fundraising.vue'),
|
|
inmenu: true,
|
|
infooter: true,
|
|
},
|
|
{
|
|
active: true,
|
|
order: 80,
|
|
path: '/calendario-eventi',
|
|
materialIcon: 'event',
|
|
name: 'ris.calendario_eventi_riso',
|
|
component: () => import('@/root/calendarioeventi/calendarioeventi.vue'),
|
|
extraclass: 'isCalendar',
|
|
inmenu: true,
|
|
infooter: true
|
|
},
|
|
]
|
|
|
|
return baseroutes
|
|
}
|
|
|
|
export function firstimagehome() {
|
|
|
|
let img = 'statics/images/background.jpg'
|
|
return img
|
|
}
|
|
|
|
const preLoadImages: IPreloadImages[] = []
|
|
|
|
export const lang_available: ILang[] = []
|
|
export const arrLangUsed: string[] = []
|
|
|
|
export const preloadedimages = []
|
|
|
|
export const routes: IListRoutes[] = [firstPage]
|
|
|
|
export const static_data = {
|
|
routes,
|
|
arrLangUsed,
|
|
getDynamicPages,
|
|
lang_available,
|
|
preLoadImages,
|
|
preloadedimages,
|
|
}
|