diff --git a/src/db/static_data.ts b/src/db/static_data.ts index 114cd4f..e934020 100755 --- a/src/db/static_data.ts +++ b/src/db/static_data.ts @@ -19,10 +19,11 @@ const functionality: IFunctionality = { SHOW_NEWSLETTER: false, SHOW_ONLY_POLICY: true, ENABLE_TODOS_LOADING: false, - ENABLE_PROJECTS_LOADING: true, + ENABLE_PROJECTS_LOADING: false, SHOW_IF_IS_SERVER_CONNECTION: true, SHOW_MESSAGES: false, - BOOKING_EVENTS: false + BOOKING_EVENTS: true, + ENABLE_ECOMMERCE: true, } const routes_admin: IListRoutes[] = [ @@ -118,6 +119,29 @@ const routes_projects: IListRoutes[] = [ ] +const routes_ecommerce: IListRoutes[] = [ + { + active: functionality.ENABLE_ECOMMERCE, + order: 10, + path: '/' + RouteNames.ecommerce, + materialIcon: 'shop', + name: RouteNames.ecommerce, + 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_newsletter: IListRoutes[] = [ { active: true, @@ -360,7 +384,7 @@ const baseroutes: IListRoutes[] = [ infooter: false }, { - active: true, + active: functionality.ENABLE_PROJECTS_LOADING, path: '', order: 10001, faIcon: 'fa fa-list-alt', @@ -372,6 +396,19 @@ const baseroutes: IListRoutes[] = [ infooter: true }, ...routes_projects, + { + active: functionality.ENABLE_ECOMMERCE, + path: '', + order: 10002, + faIcon: 'fa fa-list-alt', + materialIcon: 'next_week', + name: 'pages.ecommerce', + routes2: routes_ecommerce, + inmenu: true, + solotitle: true, + infooter: true + }, + ...routes_projects, { active: true, order: 2000, diff --git a/src/root/home/home.ts b/src/root/home/home.ts index fa41264..2b315ab 100755 --- a/src/root/home/home.ts +++ b/src/root/home/home.ts @@ -1,16 +1,14 @@ import Vue from 'vue' import { Component } from 'vue-property-decorator' -import { GlobalStore, UserStore, NotevoleStore } from '@store' +import { GlobalStore, UserStore } from '@store' import { Logo } from '../../components/logo' import { Footer } from '../../components/Footer' import { CMyPage } from '../../components/CMyPage/index' -import VueScrollReveal from 'vue-scroll-reveal' import { tools } from '@src/store/Modules/tools' import { func_tools, toolsext } from '@src/store/Modules/toolsext' -import { Screen } from 'quasar' import MixinMetaTags from '@src/mixins/mixin-metatags' import { CCardCarousel, @@ -19,28 +17,28 @@ import { CStatus, CStatusReg, CNextZoom, - CVerifyTelegram, CVerifyEmail + CVerifyTelegram, CVerifyEmail, CECommerce } from '@components' import MixinBase from '@src/mixins/mixin-base' import { static_data } from '@src/db/static_data' import { INotData } from '@src/model' -// Vue.use(VueScrollReveal, { -// class: 'v-scroll-reveal', // A CSS class applied to elements with the v-scroll-reveal directive; useful for animation overrides. -// duration: 1200, -// scale: 0.95, -// distance: '10px', -// rotate: { -// x: 0, -// y: 0, -// z: 0 -// } -// // mobile: true -// }) - @Component({ mixins: [MixinBase], - components: { Logo, Footer, CMyPage, CCardCarousel, CTitleBanner, CImgText, CStatus, CStatusReg, CNextZoom, CVerifyTelegram, CVerifyEmail } + components: { + Logo, + Footer, + CMyPage, + CCardCarousel, + CTitleBanner, + CImgText, + CStatus, + CStatusReg, + CNextZoom, + CVerifyTelegram, + CVerifyEmail, + CECommerce + } }) export default class Home extends MixinBase { public text: string = '' @@ -71,66 +69,12 @@ export default class Home extends MixinBase { value: 0, title: { it: 'Passo 1 - Contributore Finanziario

' + - 'A) Capisco come funziona e lo condivido ad altre 2 persone che vogliono partecipare.
' + - 'B) Entro nella chat e dono i 33€ al gestore della Billettera.', + 'A) Capisco come funziona e lo condivido ad altre 2 persone che vogliono partecipare.
' + + 'B) Entro nella chat e dono i 33€ al gestore della Billettera.', es: '', enUs: '' }, myicon: 'fas fa-donate', - }, - { - label: '2', - value: 1, - title: { - it: 'Passo 2 - Contributore solidale

' + - 'Invio il link per registrarsi alle mie 2 persone, che cosí verseranno i 33€.', - es: '', - enUs: '' - }, - myicon: 'fas fa-user-friends', - myicon2: 'fas fa-coins' - }, - { - label: '3', - value: 2, - title: { - it: 'Passo 3 - Tesoriere/segretario

' + - 'Collaboro, aggiorno la lista dei doni, fornisco informazioni, ma anche conosco, condivido esperienze, passioni e sogni.', - es: '', - enUs: '' - }, - myicon: 'fas fa-piggy-bank', - myicon2: 'far fa-laugh', - myicon3: 'far fa-comments' - }, - { - label: '4', - value: 3, - title: { - it: 'Passo 4 - Apertura tua Billettera
' + - 'Creo il mio gruppo Telegram nel quale entrano i miei 2 ospiti, i 2 ospiti dei miei 2 ospiti, che porteranno altre 8 persone (4x2).
' + - '
Ricevuti i 33€ da queste 8 persone (264€), mi tengo i mei iniziali 33€ e dono 231 € alla Billettera "Mas Antigua".', - es: '', - enUs: '' - }, - myicon: 'fab fa-whatsapp', - myicon2: 'fas fa-wallet' - }, - { - label: '5', - value: 4, - title: { - it: 'Passo 5
' + - 'Aspetto, da parte delle 8 nuove Billettere, le donazioni di 231€, per un totale di 1848€.
' + - '
Ringrazio l\'Universo per il dono ricevuto e fornisco aiuto a chi ne ha bisogno.
' + - 'Se desidero, posso ricominciare!', - es: '', - enUs: '' - }, - myicon: 'far fa-clock', - myicon2: 'fas fa-euro-sign', - myicon3: 'fas fa-praying-hands', - myimg: '/' + tools.getimglogo(), } ] @@ -144,26 +88,6 @@ export default class Home extends MixinBase { color: 'white', icon: 'fas fa-hands-helping', textcolor: 'black' }, - { - title: { - it: 'È un lavoro di squadra, dove ognuno fa la sua parte.', - es: '', - enUs: '' - }, - color: 'white', - icon: 'fas fa-users', - textcolor: 'black' - }, - { - title: { - it: 'E\' un\'opportunità di risentire vecchi amici, ed avere un intento comune, per risentirci e di riconnetterci.
', - es: '', - enUs: '' - }, - color: 'white', - icon: 'fas fa-hand-holding-heart', - textcolor: 'black' - } ] constructor() { diff --git a/src/root/home/home.vue b/src/root/home/home.vue index c23f84c..8fc1f88 100755 --- a/src/root/home/home.vue +++ b/src/root/home/home.vue @@ -57,8 +57,8 @@ @input="changetab" > - - + + @@ -83,6 +83,10 @@ + + + + @@ -93,5 +97,5 @@ diff --git a/src/root/intro/intro.vue b/src/root/intro/intro.vue index 43d079f..2ebd43c 100755 --- a/src/root/intro/intro.vue +++ b/src/root/intro/intro.vue @@ -15,9 +15,9 @@ - + - + diff --git a/src/router/route-names.ts b/src/router/route-names.ts index fe88794..34e7a75 100755 --- a/src/router/route-names.ts +++ b/src/router/route-names.ts @@ -7,5 +7,6 @@ export const RouteNames = { myprojects: 'myprojects', favouriteprojects: 'favproj', listprojects: 'listproj', - livelli: 'livelli' + livelli: 'livelli', + ecommerce: 'ecommerce' }