From 645295311528d05309b4d5d4231597c81b4d21f2 Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Sun, 29 Dec 2019 01:54:23 +0100 Subject: [PATCH] - added Aportador Solidario to registration - added email_paypal and username_telegram --- src/db/i18n_website.js | 12 ++++++-- src/db/static_data.ts | 68 ++++++++++++++++++++++++++++++++++++++---- 2 files changed, 71 insertions(+), 9 deletions(-) diff --git a/src/db/i18n_website.js b/src/db/i18n_website.js index c0c25e6..c61ab49 100644 --- a/src/db/i18n_website.js +++ b/src/db/i18n_website.js @@ -2,7 +2,9 @@ const msg_website = { it: { pages: { home: 'Home', + profile: 'Profilo', SignUp: 'Registrazione', + SignUp2: 'Registrazione', SignIn: 'Login', vreg: 'Verifica Reg', Test: 'Test', @@ -49,7 +51,9 @@ const msg_website = { es: { pages: { home: 'Home', - SignUp: 'Registrazione', + profile: 'Perfil', + SignUp: 'Registro', + SignUp2: 'Registro', SignIn: 'Login', vreg: 'Verifica Reg', Test: 'Test', @@ -86,9 +90,11 @@ const msg_website = { enUs: { pages: { home: 'Home', - SignUp: 'Registrazione', + profile: 'Profile', + SignUp: 'Registration', + SignUp2: 'Registration', SignIn: 'Login', - vreg: 'Verifica Reg', + vreg: 'Check Registration', Test: 'Test', Category: 'Categorie', Admin: 'Admin', diff --git a/src/db/static_data.ts b/src/db/static_data.ts index 3349a65..48cb127 100644 --- a/src/db/static_data.ts +++ b/src/db/static_data.ts @@ -9,6 +9,7 @@ import { IFunctionality } from '@src/model/GlobalStore' const functionality: IFunctionality = { PWA: false, SHOW_USER_MENU: true, // Cambiare con true + SHOW_PROFILE: true, ENABLE_REGISTRATION: false, // Cambiare con true SHOW_NEWSLETTER: false, SHOW_ONLY_POLICY: true, @@ -19,6 +20,21 @@ const functionality: IFunctionality = { BOOKING_EVENTS: false } +const routes_admin: IListRoutes[] = [ + { + active: true, + path: '/admin/cfgserv', + materialIcon: 'event_seat', + name: 'pages.Admin', + component: () => import('@/views/admin/cfgServer/cfgServer.vue'), + level_parent: 0.0, + level_child: 0.5, + inmenu: true, + submenu: true, + onlyAdmin: true + }, +] + const routes_newsletter: IListRoutes[] = [ { active: true, @@ -170,16 +186,46 @@ const routes: IListRoutes[] = [ inmenu: true, infooter: true }, -/* { - path: '/page', - name: 'pages.scuolaoperatoreolistico', - materialIcon: 'school', - component: () => import('@/root/page/page.vue'), + active: true, + path: '/profile', + materialIcon: 'user', + name: 'pages.profile', + component: () => import('@/views/user/profile/profile.vue'), + reqauth: false, inmenu: true, infooter: true }, -*/ + { + active: true, + path: '/admin/newsletter/:idparam', + materialIcon: 'event', + name: 'pages.newsletter.menu', + component: () => import('@/rootgen/admin/newsletter/newsletter.vue'), + inmenu: false, + infooter: false + }, + { + active: true, + path: '/404error', + materialIcon: 'fas fa-calendar-plus', + name: 'otherpages.error404', + component: () => import('@/root/My404page/My404page.vue'), + inmenu: false, + infooter: false + }, + { + active: true, + path: '/admin', + materialIcon: 'fas fa-user-shield', + name: 'otherpages.admin.menu', + inmenu: true, + routes2: routes_admin, + solotitle: true, + infooter: true, + onlyAdmin: true + }, + ...routes_admin, { active: true, path: '/manage', @@ -215,6 +261,16 @@ const routes: IListRoutes[] = [ infooter: false, separator: false }, + { + active: functionality.ENABLE_REGISTRATION, + path: '/signup/:invited', + materialIcon: 'how_to_reg', + name: 'pages.SignUp2', + component: () => import('@/views/login/signup/signup.vue'), + inmenu: false, + infooter: false, + separator: false + }, { active: true, path: '/signin',