diff --git a/package.json b/package.json index d8e2e18..38e5405 100755 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "dependencies": { "@babel/plugin-transform-runtime": "^7.4.0", "@babel/runtime": "^7.0.0", - "@quasar/extras": "^1.3.1", + "@quasar/extras": "^1.3.2", "@types/vuelidate": "^0.7.0", "@vue/eslint-config-standard": "^4.0.0", "acorn": "^6.0.0", @@ -50,7 +50,7 @@ "normalize.css": "^8.0.0", "npm": "^6.10.1", "nprogress": "^0.2.0", - "quasar": "^1.1.0", + "quasar": "^1.1.6", "quasar-extras": "^2.0.8", "register-service-worker": "^1.0.0", "vee-validate": "^2.1.2", @@ -85,7 +85,8 @@ "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-syntax-import-meta": "^7.2.0", "@babel/preset-env": "^7.4.2", - "@quasar/app": "^1.0.6", + "@quasar/app": "^1.1.2", + "@quasar/quasar-app-extension-colorize": "^1.0.0-alpha.1", "@quasar/quasar-app-extension-typescript": "^1.0.0-alpha.11", "@types/dotenv": "^4.0.3", "@types/jest": "^23.1.4", diff --git a/src/App.vue b/src/App.vue index d0403c1..68ecb38 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,10 @@ + + + + @@ -12,6 +16,7 @@ + + diff --git a/src/components/CImgTitle/index.ts b/src/components/CImgTitle/index.ts new file mode 100644 index 0000000..884ac1f --- /dev/null +++ b/src/components/CImgTitle/index.ts @@ -0,0 +1 @@ +export {default as CImgTitle} from './CImgTitle.vue' diff --git a/src/components/CPreloadImages/CPreloadImages.scss b/src/components/CPreloadImages/CPreloadImages.scss new file mode 100644 index 0000000..8b6ae01 --- /dev/null +++ b/src/components/CPreloadImages/CPreloadImages.scss @@ -0,0 +1,66 @@ +$heightBtn: 100%; +$grayshadow: #555; + +.text-subtitle-carica { + font-size: 1rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .00937em; + text-shadow: .1rem .1rem .1rem $grayshadow; +} + +.text-subtitle-certificato { + font-size: 0.75rem; + line-height: 1rem; +} + +@media (max-width: 718px) { + // PER VERSIONE MOBILE + .text-subtitle-carica { + font-size: 1rem; + } +} + +.op { + text-align: center !important; + font-size: 1rem; + font-weight: 400; + line-height: 1.75rem; + letter-spacing: .00937em; + text-shadow: .1rem .1rem .1rem $grayshadow; + + &__cell { + font-size: 1rem; + color: red; + } + + &__email { + font-size: 1rem; + color: #3b5998; + } + + &__email a { + text-decoration: none; + } + + &__facebook a { + font-size: 1rem; + text-decoration: none; + } + + &__storia { + margin-top: 1rem; + margin-bottom: 1rem; + text-align: justify; + } +} + +.myimg { + border-radius: 300px !important; +} + +.q-img { + &__image { + border-radius: 300px !important; + } +} diff --git a/src/components/CPreloadImages/CPreloadImages.ts b/src/components/CPreloadImages/CPreloadImages.ts new file mode 100644 index 0000000..9303774 --- /dev/null +++ b/src/components/CPreloadImages/CPreloadImages.ts @@ -0,0 +1,29 @@ +import Vue from 'vue' +import { Component, Prop, Watch } from 'vue-property-decorator' + +import { tools } from '../../store/Modules/tools' +import { toolsext } from '@src/store/Modules/toolsext' +import { IPreloadImages } from '../../model' + +@Component({ + name: 'CPreloadImages' +}) + +export default class CPreloadImages extends Vue { + @Prop({ required: true }) public arrimg: IPreloadImages[] + + get tools() { + return tools + } + + public getimg(recimg: IPreloadImages) { + if (recimg.mobile) { + const filefull = tools.getimgFullpathbysize(recimg.imgname) + + return tools.getimgbysize(filefull.path, filefull.file) + } else { + return recimg.imgname + } + } + +} diff --git a/src/components/CPreloadImages/CPreloadImages.vue b/src/components/CPreloadImages/CPreloadImages.vue new file mode 100644 index 0000000..704f450 --- /dev/null +++ b/src/components/CPreloadImages/CPreloadImages.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/components/CPreloadImages/index.ts b/src/components/CPreloadImages/index.ts new file mode 100644 index 0000000..3e5e65a --- /dev/null +++ b/src/components/CPreloadImages/index.ts @@ -0,0 +1 @@ +export {default as CPreloadImages} from './CPreloadImages.vue' diff --git a/src/components/Header/Header.ts b/src/components/Header/Header.ts index ac24d5e..0f90b5e 100644 --- a/src/components/Header/Header.ts +++ b/src/components/Header/Header.ts @@ -320,7 +320,6 @@ export default class Header extends Vue { get mySurname() { return UserStore.state.surname } - get Verificato() { return UserStore.state.verified_email } diff --git a/src/components/Header/Header.vue b/src/components/Header/Header.vue index cf005c8..45cf3d2 100644 --- a/src/components/Header/Header.vue +++ b/src/components/Header/Header.vue @@ -125,12 +125,12 @@
-
+
- + -
{{ Username }}
+
{{ Username }} - {{ Name }}
{{ $t('user.loggati') }}
diff --git a/src/db/static_data.ts b/src/db/static_data.ts index 0dfc350..97fb2ff 100644 --- a/src/db/static_data.ts +++ b/src/db/static_data.ts @@ -266,11 +266,9 @@ const functionality: IFunctionality = { SHOW_NEWSLETTER: false, SHOW_ONLY_POLICY: false, BOOKING_EVENTS: false - } export const static_data = { - routes, functionality, ds_operatori, lang_available, diff --git a/src/js/storage.js___jb_tmp___ b/src/js/storage.js___jb_tmp___ new file mode 100644 index 0000000..e69de29 diff --git a/src/model/BookingStore.ts b/src/model/BookingStore.ts new file mode 100644 index 0000000..b960836 --- /dev/null +++ b/src/model/BookingStore.ts @@ -0,0 +1,7 @@ +import { IAction } from '@src/model/Projects' +import { Component } from 'vue-router/types/router' +import { IEvents } from '@src/model/Calendar' + +export interface IBookingState { + bookinglist: IEvents[] +} diff --git a/src/quasar.d.ts b/src/quasar.d.ts new file mode 100644 index 0000000..86030c8 --- /dev/null +++ b/src/quasar.d.ts @@ -0,0 +1 @@ +declare module 'quasar' diff --git a/src/root/home/home.scss b/src/root/home/home.scss index 68e8888..ae93e28 100644 --- a/src/root/home/home.scss +++ b/src/root/home/home.scss @@ -27,7 +27,7 @@ h4 { } .landing_background { - background: #000 url(../../statics/images/cover.jpg) no-repeat 50% fixed; + background: #000 url(../../statics/images/foto1.jpg) no-repeat 50% fixed; background-size: cover } @@ -281,17 +281,17 @@ body.mobile .landing:before { } .homep-cover-img-1 { - background: #000 url(../../statics/images/cover.jpg) no-repeat 50% fixed; + background: #000 url(../../statics/images/foto1.jpg) no-repeat 50% fixed; //transition: background-image 1s ease-in-out; } .homep-cover-img-2 { - background: #000 url(../../statics/images/hand_people.jpg) no-repeat 50% fixed; + background: #000 url(../../statics/images/foto2.jpg) no-repeat 50% fixed; //transition: background-image 1s ease-in-out; } .homep-cover-img-3 { - background: #000 url(../../statics/images/cibo_sano.jpg) no-repeat 50% fixed; + background: #000 url(../../statics/images/foto3.jpg) no-repeat 50% fixed; //transition: background-image 1s ease-in-out; } diff --git a/src/root/policy/policy.scss b/src/root/policy/policy.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/root/policy/policy.ts b/src/root/policy/policy.ts new file mode 100644 index 0000000..6f33d1b --- /dev/null +++ b/src/root/policy/policy.ts @@ -0,0 +1,21 @@ +import Vue from 'vue' +import { Component } from 'vue-property-decorator' + +import { static_data } from '@src/db/static_data' + +import { PagePolicy } from '../../components/PagePolicy' + +@Component({ + name: 'Policy', + components: { PagePolicy } +}) + +export default class Policy extends Vue { + + public mioalert = false + + get static_data() { + return static_data + } + +} diff --git a/src/root/policy/policy.vue b/src/root/policy/policy.vue new file mode 100644 index 0000000..afb657a --- /dev/null +++ b/src/root/policy/policy.vue @@ -0,0 +1,28 @@ + + + diff --git a/src/shims-quasar.d.ts b/src/shims-quasar.d.ts new file mode 100644 index 0000000..e5b079e --- /dev/null +++ b/src/shims-quasar.d.ts @@ -0,0 +1,13 @@ +import Vue from 'vue' + +declare module 'vue/types/vue' { + interface Vue { + $q: any + } +} + +declare module 'vue/types/options' { + interface ComponentOptions { + preFectch?: (options: any) => void | Promise + } +} diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts new file mode 100644 index 0000000..d9f24fa --- /dev/null +++ b/src/shims-vue.d.ts @@ -0,0 +1,4 @@ +declare module '*.vue' { + import Vue from 'vue' + export default Vue +} diff --git a/src/statics/images/imglogonotif.png b/src/statics/images/imglogonotif.png new file mode 100644 index 0000000..b5e10db Binary files /dev/null and b/src/statics/images/imglogonotif.png differ diff --git a/src/statics/js/workbox-sw-3-0-0.js b/src/statics/js/workbox-sw-3-0-0.js new file mode 100644 index 0000000..86617af --- /dev/null +++ b/src/statics/js/workbox-sw-3-0-0.js @@ -0,0 +1,3 @@ +var workbox=function(){"use strict";try{self.workbox.v["workbox:sw:3.0.0"]=1}catch(t){}const t="https://storage.googleapis.com/workbox-cdn/releases/3.0.0",e={backgroundSync:"background-sync",core:"core",expiration:"cache-expiration",googleAnalytics:"google-analytics",strategies:"strategies",precaching:"precaching",routing:"routing",cacheableResponse:"cacheable-response",broadcastUpdate:"broadcast-cache-update",rangeRequests:"range-requests"};return new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.e=this.t.debug?"dev":"prod",this.s=!1,new Proxy(this,{get(t,s){if(t[s])return t[s];const o=e[s];return o&&t.loadModule(`workbox-${o}`),t[s]}})}setConfig(t={}){if(this.s)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.e=this.t.debug?"dev":"prod"}skipWaiting(){self.addEventListener("install",()=>self.skipWaiting())}clientsClaim(){self.addEventListener("activate",()=>self.clients.claim())}loadModule(t){const e=this.o(t);try{importScripts(e),this.s=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}o(e){if(this.t.modulePathCb)return this.t.modulePathCb(e,this.t.debug);let s=[t];const o=`${e}.${this.e}.js`,r=this.t.modulePathPrefix;return r&&""===(s=r.split("/"))[s.length-1]&&s.splice(s.length-1,1),s.push(o),s.join("/")}}}(); + +//# sourceMappingURL=workbox-sw.js.map diff --git a/src/statics/js/workbox-sw.js b/src/statics/js/workbox-sw.js new file mode 100644 index 0000000..0908b00 --- /dev/null +++ b/src/statics/js/workbox-sw.js @@ -0,0 +1,3 @@ +var workbox=function(){"use strict";try{self.workbox.v["workbox:sw:3.4.1"]=1}catch(t){}const t="https://storage.googleapis.com/workbox-cdn/releases/3.4.1",e={backgroundSync:"background-sync",broadcastUpdate:"broadcast-cache-update",cacheableResponse:"cacheable-response",core:"core",expiration:"cache-expiration",googleAnalytics:"google-analytics",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};return new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.e=this.t.debug?"dev":"prod",this.s=!1,new Proxy(this,{get(t,s){if(t[s])return t[s];const o=e[s];return o&&t.loadModule(`workbox-${o}`),t[s]}})}setConfig(t={}){if(this.s)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.e=this.t.debug?"dev":"prod"}skipWaiting(){self.addEventListener("install",()=>self.skipWaiting())}clientsClaim(){self.addEventListener("activate",()=>self.clients.claim())}loadModule(t){const e=this.o(t);try{importScripts(e),this.s=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}o(e){if(this.t.modulePathCb)return this.t.modulePathCb(e,this.t.debug);let s=[t];const o=`${e}.${this.e}.js`,r=this.t.modulePathPrefix;return r&&""===(s=r.split("/"))[s.length-1]&&s.splice(s.length-1,1),s.push(o),s.join("/")}}}(); + +//# sourceMappingURL=workbox-sw.js.map diff --git a/src/statics/js/workbox-sw3-4-1.js b/src/statics/js/workbox-sw3-4-1.js new file mode 100644 index 0000000..0908b00 --- /dev/null +++ b/src/statics/js/workbox-sw3-4-1.js @@ -0,0 +1,3 @@ +var workbox=function(){"use strict";try{self.workbox.v["workbox:sw:3.4.1"]=1}catch(t){}const t="https://storage.googleapis.com/workbox-cdn/releases/3.4.1",e={backgroundSync:"background-sync",broadcastUpdate:"broadcast-cache-update",cacheableResponse:"cacheable-response",core:"core",expiration:"cache-expiration",googleAnalytics:"google-analytics",navigationPreload:"navigation-preload",precaching:"precaching",rangeRequests:"range-requests",routing:"routing",strategies:"strategies",streams:"streams"};return new class{constructor(){return this.v={},this.t={debug:"localhost"===self.location.hostname,modulePathPrefix:null,modulePathCb:null},this.e=this.t.debug?"dev":"prod",this.s=!1,new Proxy(this,{get(t,s){if(t[s])return t[s];const o=e[s];return o&&t.loadModule(`workbox-${o}`),t[s]}})}setConfig(t={}){if(this.s)throw new Error("Config must be set before accessing workbox.* modules");Object.assign(this.t,t),this.e=this.t.debug?"dev":"prod"}skipWaiting(){self.addEventListener("install",()=>self.skipWaiting())}clientsClaim(){self.addEventListener("activate",()=>self.clients.claim())}loadModule(t){const e=this.o(t);try{importScripts(e),this.s=!0}catch(s){throw console.error(`Unable to import module '${t}' from '${e}'.`),s}}o(e){if(this.t.modulePathCb)return this.t.modulePathCb(e,this.t.debug);let s=[t];const o=`${e}.${this.e}.js`,r=this.t.modulePathPrefix;return r&&""===(s=r.split("/"))[s.length-1]&&s.splice(s.length-1,1),s.push(o),s.join("/")}}}(); + +//# sourceMappingURL=workbox-sw.js.map diff --git a/src/store/Modules/BookingStore.ts b/src/store/Modules/BookingStore.ts new file mode 100644 index 0000000..a85c148 --- /dev/null +++ b/src/store/Modules/BookingStore.ts @@ -0,0 +1,65 @@ +import { ICfgServer, IConfig, IBookingState, IListRoutes, IMenuList, StateConnection } from 'model' +import { storeBuilder } from './Store/Store' + +import Vue from 'vue' + +import translate from './../../globalroutines/util' + +import urlBase64ToUint8Array from '../../js/utility' + +import Api from '@api' +import * as Types from '@src/store/Api/ApiTypes' +import { costanti } from '@src/store/Modules/costanti' +import { tools } from '@src/store/Modules/tools' +import { toolsext } from '@src/store/Modules/toolsext' +import { GlobalStore, Projects, Todos, UserStore } from '@store' + +import { static_data } from '@src/db/static_data' +import { db_data } from '@src/db/db_data' +import { IEvents } from '../../model' +import { serv_constants } from '@src/store/Modules/serv_constants' + +const state: IBookingState = { + bookinglist: [] +} + +const b = storeBuilder.module('BookingModule', state) + +// Getters +namespace Getters { + export const getters = { + + } +} + +namespace Mutations { + export const mutations = { + + } + +} + +namespace Actions { + async function loadAfterLogin(context) { + return true + } + + export const actions = { + loadAfterLogin: b.dispatch(loadAfterLogin) + } + +} + +const stateGetter = b.state() + +// Module +const BookingModule = { + get state() { + return stateGetter() + }, + actions: Actions.actions, + getters: Getters.getters, + mutations: Mutations.mutations +} + +export default BookingModule diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 95f9e8e..0000000 --- a/tslint.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "defaultSeverity": "error", - "extends": [ - "tslint:recommended" - ], - "jsRules": {}, - "rules": { - "no-console": false, - "curly": [false], - "object-literal-sort-keys": false, -// "no-restricted-syntax": [ -// "error", -// { -// "selector": "CallExpression[callee.object.nametranslate='console'][callee.property.nametranslate!=/^(log|warn|error|info|trace)$/]", -// "message": "Unexpected property on console object was called" -// } -// ], - "class-name": true, - "comment-format": [ - true, - "check-space" - ], - "indent": [ - true, - "spaces" - ], - "ordered-imports": false, - "no-duplicate-variable": true, - "no-eval": true, - "no-internal-module": false, - "no-trailing-whitespace": false, - "no-var-keyword": true, - "max-line-length": false, - "one-line": [ - true, - "check-open-brace", - "check-whitespace" - ], - "quotemark": [ - true, - "single" - ], - "semicolon": [true, "never"], - "trailing-comma": [true, {"multiline": "never", "singleline": "never"}], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "variable-name": [ - true, - "ban-keywords" - ], - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ] - } -}