Project e Todos
This commit is contained in:
@@ -18,8 +18,8 @@ const functionality: IFunctionality = {
|
||||
ENABLE_REG_AYNI: false,
|
||||
SHOW_NEWSLETTER: false,
|
||||
SHOW_ONLY_POLICY: true,
|
||||
ENABLE_TODOS_LOADING: false,
|
||||
ENABLE_PROJECTS_LOADING: false,
|
||||
ENABLE_TODOS_LOADING: true,
|
||||
ENABLE_PROJECTS_LOADING: true,
|
||||
SHOW_IF_IS_SERVER_CONNECTION: true,
|
||||
SHOW_MESSAGES: false,
|
||||
BOOKING_EVENTS: true,
|
||||
@@ -72,65 +72,60 @@ const routes_admin: IListRoutes[] = [
|
||||
const routes_projects: IListRoutes[] = [
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 10,
|
||||
path: '/' + RouteNames.projectsall + '/:idProj',
|
||||
order: 5,
|
||||
path: '/admin/groups',
|
||||
materialIcon: 'accessibility_new',
|
||||
name: RouteNames.projectsall,
|
||||
name: 'pages.groups',
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
component: () => import('@/rootgen/admin/groups/groups.vue'),
|
||||
inmenu: true,
|
||||
onlyManager: true,
|
||||
onlyAdmin: true,
|
||||
infooter: functionality.ENABLE_PROJECTS_LOADING,
|
||||
},
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 10,
|
||||
path: '/projall/',
|
||||
materialIcon: 'accessibility_new',
|
||||
urlroute: 'projall',
|
||||
name: 'pages.projall',
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
inmenu: functionality.SHOW_MESSAGES,
|
||||
infooter: functionality.ENABLE_PROJECTS_LOADING,
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
async asyncData() {
|
||||
// await Todos.actions.dbLoad({ checkPending: false })
|
||||
await Projects.actions.dbLoad({ checkPending: false, onlyiffirsttime: true })
|
||||
}
|
||||
},
|
||||
idelem: process.env.PROJECT_ID_MAIN
|
||||
},
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 20,
|
||||
path: '/' + RouteNames.myprojects + '/:idProj',
|
||||
path: '/myprojects/',
|
||||
materialIcon: 'accessibility_new',
|
||||
name: RouteNames.myprojects,
|
||||
name: 'pages.myprojects',
|
||||
urlroute: 'myprojects',
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
inmenu: functionality.SHOW_MESSAGES,
|
||||
infooter: functionality.ENABLE_PROJECTS_LOADING,
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
async asyncData() {
|
||||
// await Todos.actions.dbLoad({ checkPending: false })
|
||||
await Projects.actions.dbLoad({ checkPending: false, onlyiffirsttime: true })
|
||||
}
|
||||
},
|
||||
idelem: process.env.PROJECT_ID_MAIN
|
||||
},
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 30,
|
||||
path: '/' + RouteNames.projectsshared + '/:idProj',
|
||||
path: '/projectsShared/',
|
||||
urlroute: 'projectsShared',
|
||||
materialIcon: 'accessibility_new',
|
||||
name: RouteNames.projectsshared,
|
||||
name: 'pages.projectsShared',
|
||||
level_parent: 0.0,
|
||||
level_child: 0.5,
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
inmenu: functionality.SHOW_MESSAGES,
|
||||
infooter: functionality.ENABLE_PROJECTS_LOADING,
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
async asyncData() {
|
||||
// await Todos.actions.dbLoad({ checkPending: false })
|
||||
await Projects.actions.dbLoad({ checkPending: false, onlyiffirsttime: true })
|
||||
}
|
||||
},
|
||||
idelem: process.env.PROJECT_ID_MAIN
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
const routes_ecommerce: IListRoutes[] = [
|
||||
@@ -158,6 +153,19 @@ const routes_ecommerce: IListRoutes[] = [
|
||||
level_parent: 0,
|
||||
level_child: 0.5,
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 35,
|
||||
path: '/admin/ecommerce/orders',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'pages.orders',
|
||||
component: () => import('@/rootgen/admin/orders/orders.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
level_child: 0.5,
|
||||
onlyDepartment: true
|
||||
},
|
||||
]
|
||||
|
||||
const routes_admin_ecommerce: IListRoutes[] = [
|
||||
@@ -203,6 +211,20 @@ const routes_admin_ecommerce: IListRoutes[] = [
|
||||
onlyManager: true,
|
||||
onlyTraduttrici: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 31,
|
||||
path: '/admin/ecommerce/departments',
|
||||
materialIcon: 'fas fa-file-alt',
|
||||
name: 'pages.departments',
|
||||
component: () => import('@/rootgen/admin/departments/departments.vue'),
|
||||
inmenu: true,
|
||||
submenu: true,
|
||||
level_parent: 0,
|
||||
level_child: 0.5,
|
||||
onlyManager: true,
|
||||
onlyTraduttrici: true
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
@@ -233,6 +255,22 @@ const routes_admin_ecommerce_menu: IListRoutes[] = [
|
||||
component: () => import('@/rootgen/admin/storehouses/storehouses.vue'),
|
||||
infooter: false,
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 32,
|
||||
path: '/admin/ecommerce/departments',
|
||||
name: 'pages.departments',
|
||||
component: () => import('@/rootgen/admin/departments/departments.vue'),
|
||||
infooter: false,
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
order: 35,
|
||||
path: '/admin/ecommerce/orders',
|
||||
name: 'pages.orders2',
|
||||
component: () => import('@/rootgen/admin/orders/orders.vue'),
|
||||
infooter: false,
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
@@ -382,7 +420,8 @@ const routes_manager: IListRoutes[] = [
|
||||
level_child: 0.5,
|
||||
solotitle: true,
|
||||
onlyAdmin: true,
|
||||
onlyManager: true
|
||||
onlyManager: true,
|
||||
onlyDepartment: true
|
||||
},
|
||||
{
|
||||
active: true,
|
||||
@@ -515,9 +554,10 @@ const baseroutes: IListRoutes[] = [
|
||||
routes2: routes_projects,
|
||||
inmenu: true,
|
||||
solotitle: true,
|
||||
infooter: true
|
||||
infooter: true,
|
||||
onlySocioResidente: true,
|
||||
onlyAdmin: true,
|
||||
},
|
||||
...routes_projects,
|
||||
{
|
||||
active: functionality.ENABLE_ECOMMERCE,
|
||||
path: '',
|
||||
@@ -650,7 +690,56 @@ const baseroutes: IListRoutes[] = [
|
||||
path: '/offline',
|
||||
name: 'Offline',
|
||||
component: () => import('@/views/offline/offline.vue')
|
||||
},
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 5,
|
||||
path: '/admin/groups',
|
||||
materialIcon: 'accessibility_new',
|
||||
name: 'pages.groups',
|
||||
component: () => import('@/rootgen/admin/groups/groups.vue'),
|
||||
inmenu: true,
|
||||
onlyManager: true,
|
||||
onlyAdmin: true,
|
||||
infooter: functionality.ENABLE_PROJECTS_LOADING,
|
||||
},
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 10,
|
||||
path: '/projall/:idProj',
|
||||
materialIcon: 'accessibility_new',
|
||||
name: 'pages.projall',
|
||||
urlroute: 'projall',
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
// idelem: process.env.PROJECT_ID_MAIN
|
||||
},
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 20,
|
||||
path: '/myprojects/:idProj',
|
||||
materialIcon: 'accessibility_new',
|
||||
name: 'pages.myprojects',
|
||||
urlroute: 'myprojects',
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
// idelem: process.env.PROJECT_ID_MAIN
|
||||
},
|
||||
{
|
||||
active: functionality.ENABLE_PROJECTS_LOADING,
|
||||
order: 30,
|
||||
path: '/projectsShared/:idProj',
|
||||
urlroute: 'projectsShared',
|
||||
materialIcon: 'accessibility_new',
|
||||
name: 'pages.projectsShared',
|
||||
component: () => import('@/views/projects/proj-list/proj-list.vue'),
|
||||
inmenu: false,
|
||||
infooter: false,
|
||||
// idelem: process.env.PROJECT_ID_MAIN
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
export const routes = baseroutes
|
||||
|
||||
Reference in New Issue
Block a user