diff --git a/.env.development b/.env.development index d98f940f..7dbe72ee 100755 --- a/.env.development +++ b/.env.development @@ -1,18 +1,17 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" -APP_ID="18" +APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_SERVER="freeplanet_serverside" SERVERDIR_WEBSITE="" SERVERPW_WEBSITE="" APP_URL="https://localhost" URL_FACEBOOK="https://www.facebook.com/freeplanetapp" -PROVA_PAOLO="PROVA ENV FUNZIONA!" LANG_DEFAULT="it" PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" MONGODB_HOST="https://localhost:3000" -LOGO_REG='gruppomacro-logo-full.png' +LOGO_REG='riso-logo-full.png' TEST_NAME="Paolo" TEST_SURNAME="Arena" TEST_EMAIL="" @@ -25,5 +24,5 @@ DEBUG="1" TELEGRAM_SUPPORT="" PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" TEST_CELL="" -VUE_APP_ISTEST=1 -VUE_APP_INLOCALE=1 \ No newline at end of file +VUE_APP_ISTEST="1" +VUE_APP_INLOCALE="1" diff --git a/.env.example.production b/.env.example.production index 699db15d..f1cce647 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.prod.gruppomacro b/.env.prod.gruppomacro index 8bd2ad9f..f089ebc1 100644 --- a/.env.prod.gruppomacro +++ b/.env.prod.gruppomacro @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="18" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.prod.pcb b/.env.prod.pcb index 04280f9f..963c5849 100644 --- a/.env.prod.pcb +++ b/.env.prod.pcb @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="17" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.prod.riso b/.env.prod.riso index 57ba4f04..37198c8b 100644 --- a/.env.prod.riso +++ b/.env.prod.riso @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.test.abitaregliiblei.it b/.env.test.abitaregliiblei.it index feb215f4..80217f39 100755 --- a/.env.test.abitaregliiblei.it +++ b/.env.test.abitaregliiblei.it @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="19" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.test.gruppomacro b/.env.test.gruppomacro index f921be98..4d55d2b8 100755 --- a/.env.test.gruppomacro +++ b/.env.test.gruppomacro @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="18" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.test.pcb b/.env.test.pcb index ac3ff397..fc6e6107 100755 --- a/.env.test.pcb +++ b/.env.test.pcb @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="17" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.test.risosrv b/.env.test.risosrv index ac141d7e..1845b08e 100755 --- a/.env.test.risosrv +++ b/.env.test.risosrv @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.test2 b/.env.test2 index bfa496a7..d57c5670 100755 --- a/.env.test2 +++ b/.env.test2 @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.test_riso.pcb b/.env.test_riso.pcb index 47cbd74d..e2cbd383 100755 --- a/.env.test_riso.pcb +++ b/.env.test_riso.pcb @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/abitaregliiblei.it/.env.development b/_ALL_SITES/abitaregliiblei.it/.env.development index 7a4a33a4..ea2b6c23 100755 --- a/_ALL_SITES/abitaregliiblei.it/.env.development +++ b/_ALL_SITES/abitaregliiblei.it/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="19" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/abitaregliiblei.it/package.json b/_ALL_SITES/abitaregliiblei.it/package.json index 3b7cbd33..cd57d426 100755 --- a/_ALL_SITES/abitaregliiblei.it/package.json +++ b/_ALL_SITES/abitaregliiblei.it/package.json @@ -1,6 +1,6 @@ { "name": "abitaregliiblei", - "version": "1.1.7", + "version": "1.1.9", "description": "Abitare Gli Iblei", "productName": "AbitareGliIblei", "author": "Paolo Arena", diff --git a/_ALL_SITES/fioredellavita.riso.app/.env.development b/_ALL_SITES/fioredellavita.riso.app/.env.development index 78704d44..428fcd92 100755 --- a/_ALL_SITES/fioredellavita.riso.app/.env.development +++ b/_ALL_SITES/fioredellavita.riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="15" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/fioredellavita.riso.app/.env.test b/_ALL_SITES/fioredellavita.riso.app/.env.test index 55c89a1d..677b803f 100755 --- a/_ALL_SITES/fioredellavita.riso.app/.env.test +++ b/_ALL_SITES/fioredellavita.riso.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="15" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/fioredellavita.riso.app/package.json b/_ALL_SITES/fioredellavita.riso.app/package.json index 2524778d..1aa0b83b 100755 --- a/_ALL_SITES/fioredellavita.riso.app/package.json +++ b/_ALL_SITES/fioredellavita.riso.app/package.json @@ -1,6 +1,6 @@ { "name": "fioredellavita", - "version": "1.1.7", + "version": "1.1.9", "description": "Fiore Della Vita", "productName": "Fiore Della Vita", "author": "Paolo Arena", diff --git a/_ALL_SITES/gruppomacro.app/.env.development b/_ALL_SITES/gruppomacro.app/.env.development index d98f940f..d709fa12 100755 --- a/_ALL_SITES/gruppomacro.app/.env.development +++ b/_ALL_SITES/gruppomacro.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="18" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/gruppomacro.app/.env.test b/_ALL_SITES/gruppomacro.app/.env.test index 443cb077..b1c6103e 100755 --- a/_ALL_SITES/gruppomacro.app/.env.test +++ b/_ALL_SITES/gruppomacro.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="16" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/gruppomacro.app/package.json b/_ALL_SITES/gruppomacro.app/package.json index 9c169042..5898a42d 100755 --- a/_ALL_SITES/gruppomacro.app/package.json +++ b/_ALL_SITES/gruppomacro.app/package.json @@ -1,6 +1,6 @@ { "name": "gruppomacro", - "version": "1.1.7", + "version": "1.1.9", "description": "GruppoMacro", "productName": "Gruppo Macro", "author": "Paolo Arena", diff --git a/_ALL_SITES/piuchebuono.app/.env.development b/_ALL_SITES/piuchebuono.app/.env.development index d70bfd0d..7e97fbf5 100755 --- a/_ALL_SITES/piuchebuono.app/.env.development +++ b/_ALL_SITES/piuchebuono.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="17" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/piuchebuono.app/.env.test b/_ALL_SITES/piuchebuono.app/.env.test index ac3ff397..fc6e6107 100755 --- a/_ALL_SITES/piuchebuono.app/.env.test +++ b/_ALL_SITES/piuchebuono.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="17" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/piuchebuono.app/package.json b/_ALL_SITES/piuchebuono.app/package.json index c20f70ec..bc02fc70 100755 --- a/_ALL_SITES/piuchebuono.app/package.json +++ b/_ALL_SITES/piuchebuono.app/package.json @@ -1,6 +1,6 @@ { "name": "piuchebuono", - "version": "1.1.7", + "version": "1.1.9", "description": "PiuCheBuono", "productName": "PiuCheBuono", "author": "Paolo Arena", diff --git a/_ALL_SITES/riso.app/.env.development b/_ALL_SITES/riso.app/.env.development index 224d5dab..7dbe72ee 100755 --- a/_ALL_SITES/riso.app/.env.development +++ b/_ALL_SITES/riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/riso.app/.env.production b/_ALL_SITES/riso.app/.env.production index 8cec022c..d7dd1f6f 100644 --- a/_ALL_SITES/riso.app/.env.production +++ b/_ALL_SITES/riso.app/.env.production @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/.env.test b/_ALL_SITES/riso.app/.env.test index 443cb077..b1c6103e 100755 --- a/_ALL_SITES/riso.app/.env.test +++ b/_ALL_SITES/riso.app/.env.test @@ -1,4 +1,4 @@ -APP_VERSION="1.1.7" +APP_VERSION="1.1.9" SERVICE_WORKER_FILE="service-worker.js" APP_ID="16" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/package.json b/_ALL_SITES/riso.app/package.json index 498e784b..365dd7bd 100755 --- a/_ALL_SITES/riso.app/package.json +++ b/_ALL_SITES/riso.app/package.json @@ -1,6 +1,6 @@ { "name": "riso", - "version": "1.1.7", + "version": "1.1.9", "description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.", "productName": "Riso", "author": "Paolo Arena", diff --git a/__inizia.sh b/__inizia.sh index e4db2717..aea4bfdb 100644 --- a/__inizia.sh +++ b/__inizia.sh @@ -31,7 +31,11 @@ else cp -R _ALL_SITES/$site/favicon.ico ./public/ rm -R ./public/upload/products/* + rm -R ./public/upload/pages/* + rm -R ./public/upload/catalogo/* cp -R _ALL_SITES/$site/upload/products/* ./public/upload/products/ + cp -R _ALL_SITES/$site/upload/pages/* ./public/upload/pages/ + cp -R _ALL_SITES/$site/upload/catalogo/* ./public/upload/catalogo/ rm -R ./public/images/* cp -R _ALL_SITES/$site/images/* ./public/images/ diff --git a/now.txt b/now.txt index e5f5d4ff..63f31c52 100644 --- a/now.txt +++ b/now.txt @@ -1 +1 @@ -TERMINA DI LAVORARE SU riso.app: (Sovrascrivo !) +TERMINA DI LAVORARE SU gruppomacro.app: (Sovrascrivo !) diff --git a/package.json b/package.json index 9c169042..365dd7bd 100755 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "gruppomacro", - "version": "1.1.7", - "description": "GruppoMacro", - "productName": "Gruppo Macro", + "name": "riso", + "version": "1.1.9", + "description": "Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.", + "productName": "Riso", "author": "Paolo Arena", "private": true, "keywords": [], @@ -54,11 +54,9 @@ "graphql": "^16.9.0", "graphql-tag": "^2.12.6", "gsap": "^3.12.5", - "html2canvas": "^1.4.1", "html2pdf.js": "^0.10.2", "jquery": "^3.7.1", "js-cookie": "^3.0.5", - "jspdf": "^2.5.2", "leaflet": "^1.9.4", "leaflet-routing-machine": "^3.2.12", "leaflet.markercluster": "^1.5.3", @@ -129,6 +127,7 @@ "jest": "^29.7.0", "json-loader": "^0.5.7", "node-sass": "^9.0.0", + "nodemon": "^3.1.7", "npm-check-updates": "^17.1.3", "optimize-css-assets-webpack-plugin": "^6.0.1", "parcel": "^2.12.0", diff --git a/public/images/ferrara.jpg b/public/images/ferrara.jpg new file mode 100644 index 00000000..b4615a3a Binary files /dev/null and b/public/images/ferrara.jpg differ diff --git a/public/images/freeplanet-logo-full.odg b/public/images/freeplanet-logo-full.odg new file mode 100755 index 00000000..854da650 Binary files /dev/null and b/public/images/freeplanet-logo-full.odg differ diff --git a/public/images/freeplanet-logo-full.svg b/public/images/freeplanet-logo-full.svg new file mode 100755 index 00000000..b9c10df3 --- /dev/null +++ b/public/images/freeplanet-logo-full.svg @@ -0,0 +1,1186 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/gm-android-icon-192x192.png b/public/images/gm-android-icon-192x192.png deleted file mode 100644 index cd503622..00000000 Binary files a/public/images/gm-android-icon-192x192.png and /dev/null differ diff --git a/public/images/gm-android-icon-512x512.png b/public/images/gm-android-icon-512x512.png deleted file mode 100644 index 1669de97..00000000 Binary files a/public/images/gm-android-icon-512x512.png and /dev/null differ diff --git a/public/images/gm-apple-touch-icon.png b/public/images/gm-apple-touch-icon.png deleted file mode 100644 index 9626b275..00000000 Binary files a/public/images/gm-apple-touch-icon.png and /dev/null differ diff --git a/public/images/gruppomacro-logo-full.png b/public/images/gruppomacro-logo-full.png deleted file mode 100644 index d6e578b8..00000000 Binary files a/public/images/gruppomacro-logo-full.png and /dev/null differ diff --git a/public/images/riso-android-icon-144x144.png b/public/images/riso-android-icon-144x144.png new file mode 100644 index 00000000..37dcd661 Binary files /dev/null and b/public/images/riso-android-icon-144x144.png differ diff --git a/public/images/riso-android-icon-192x192.png b/public/images/riso-android-icon-192x192.png new file mode 100644 index 00000000..95b960e9 Binary files /dev/null and b/public/images/riso-android-icon-192x192.png differ diff --git a/public/images/riso-android-icon-36x36.png b/public/images/riso-android-icon-36x36.png new file mode 100644 index 00000000..c78a13a3 Binary files /dev/null and b/public/images/riso-android-icon-36x36.png differ diff --git a/public/images/riso-android-icon-384x384.png b/public/images/riso-android-icon-384x384.png new file mode 100644 index 00000000..ce1ffc47 Binary files /dev/null and b/public/images/riso-android-icon-384x384.png differ diff --git a/public/images/riso-android-icon-48x48.png b/public/images/riso-android-icon-48x48.png new file mode 100644 index 00000000..499e8674 Binary files /dev/null and b/public/images/riso-android-icon-48x48.png differ diff --git a/public/images/riso-android-icon-512x512.png b/public/images/riso-android-icon-512x512.png new file mode 100644 index 00000000..e1c31acd Binary files /dev/null and b/public/images/riso-android-icon-512x512.png differ diff --git a/public/images/riso-android-icon-72x72.png b/public/images/riso-android-icon-72x72.png new file mode 100644 index 00000000..f95f7320 Binary files /dev/null and b/public/images/riso-android-icon-72x72.png differ diff --git a/public/images/riso-android-icon-96x96.png b/public/images/riso-android-icon-96x96.png new file mode 100644 index 00000000..98dbf9d9 Binary files /dev/null and b/public/images/riso-android-icon-96x96.png differ diff --git a/public/images/riso-apple-icon-114x114.png b/public/images/riso-apple-icon-114x114.png new file mode 100644 index 00000000..882dd21c Binary files /dev/null and b/public/images/riso-apple-icon-114x114.png differ diff --git a/public/images/riso-apple-icon-120x120.png b/public/images/riso-apple-icon-120x120.png new file mode 100644 index 00000000..734b0503 Binary files /dev/null and b/public/images/riso-apple-icon-120x120.png differ diff --git a/public/images/riso-apple-icon-144x144.png b/public/images/riso-apple-icon-144x144.png new file mode 100644 index 00000000..923da7be Binary files /dev/null and b/public/images/riso-apple-icon-144x144.png differ diff --git a/public/images/riso-apple-icon-152x152.png b/public/images/riso-apple-icon-152x152.png new file mode 100644 index 00000000..84fd455d Binary files /dev/null and b/public/images/riso-apple-icon-152x152.png differ diff --git a/public/images/riso-apple-icon-180x180.png b/public/images/riso-apple-icon-180x180.png new file mode 100644 index 00000000..e457d906 Binary files /dev/null and b/public/images/riso-apple-icon-180x180.png differ diff --git a/public/images/riso-apple-icon-57x57.png b/public/images/riso-apple-icon-57x57.png new file mode 100644 index 00000000..f5f538db Binary files /dev/null and b/public/images/riso-apple-icon-57x57.png differ diff --git a/public/images/riso-apple-icon-60x60.png b/public/images/riso-apple-icon-60x60.png new file mode 100644 index 00000000..4121f834 Binary files /dev/null and b/public/images/riso-apple-icon-60x60.png differ diff --git a/public/images/riso-apple-icon-72x72.png b/public/images/riso-apple-icon-72x72.png new file mode 100644 index 00000000..5efd872d Binary files /dev/null and b/public/images/riso-apple-icon-72x72.png differ diff --git a/public/images/riso-apple-icon-76x76.png b/public/images/riso-apple-icon-76x76.png new file mode 100644 index 00000000..6db4b76f Binary files /dev/null and b/public/images/riso-apple-icon-76x76.png differ diff --git a/public/images/riso-apple-icon.png b/public/images/riso-apple-icon.png new file mode 100644 index 00000000..cfaeb3c0 Binary files /dev/null and b/public/images/riso-apple-icon.png differ diff --git a/public/images/riso-logo-full.png b/public/images/riso-logo-full.png new file mode 100644 index 00000000..38a9695f Binary files /dev/null and b/public/images/riso-logo-full.png differ diff --git a/public/images/riso_home.png b/public/images/riso_home.png new file mode 100644 index 00000000..3d065405 Binary files /dev/null and b/public/images/riso_home.png differ diff --git a/public/images/riso_home_dark.png b/public/images/riso_home_dark.png new file mode 100644 index 00000000..fe6b8225 Binary files /dev/null and b/public/images/riso_home_dark.png differ diff --git a/public/images/riso_services.png b/public/images/riso_services.png new file mode 100644 index 00000000..85a940bc Binary files /dev/null and b/public/images/riso_services.png differ diff --git a/quasar.conf.js b/quasar.conf.js index a9d1c456..652989b2 100755 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -17,6 +17,8 @@ const webpack = require('webpack') const helpers = require('./helpers') const envparser = require('./config/envparser') +const package = require('./package.json'); + // const ESLintPlugin = require('eslint-webpack-plugin') module.exports = configure((ctx) => ({ @@ -87,6 +89,7 @@ module.exports = configure((ctx) => ({ // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build build: { env: envparser(), + versionCode: package.version, vueRouterMode: 'history', vueCompiler: true, gzip: false, // gzip true @@ -149,9 +152,9 @@ module.exports = configure((ctx) => ({ }, devServer: { https: false, - port: 8089, + port: 8084, open: false, // opens browser window automatically - hot: true, // Disable hot module replacement + hot: false, // Disable hot module replacement headers: { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': '*', @@ -248,6 +251,8 @@ module.exports = configure((ctx) => ({ 'Cookies', 'Loading', 'AppVisibility', + 'LocalStorage', + 'SessionStorage', ], get plugins_1() { return this._plugins; @@ -308,9 +313,9 @@ module.exports = configure((ctx) => ({ }, manifest: { - name: 'Gruppo Macro', - short_name: 'GruppoMacro', - description: '', + name: 'Riso', + short_name: 'Riso', + description: 'Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.', display: 'standalone', orientation: 'portrait', background_color: '#fff', @@ -320,24 +325,54 @@ module.exports = configure((ctx) => ({ start_url: "/?homescreen=1", icons: [ { - src: 'images/gm-android-icon-512x512.png', + src: 'images/riso-android-icon-512x512.png', sizes: '512x512', type: 'image/png', }, { - src: 'images/gm-android-icon-192x192.png', + src: 'images/riso-android-icon-384x384.png', + sizes: '384x384', + type: 'image/png', + }, + { + src: 'images/riso-android-icon-192x192.png', sizes: '192x192', type: 'image/png', }, { - src: 'images/gm-apple-touch-icon.png', + src: 'images/riso-android-icon-144x144.png', + sizes: '144x144', + type: 'image/png', + }, + { + src: 'images/riso-android-icon-96x96.png', + sizes: '96x96', + type: 'image/png', + }, + { + src: 'images/riso-apple-icon-120x120.png', + sizes: '120x120', + type: 'image/png', + }, + { + src: 'images/riso-apple-icon-144x144.png', + sizes: '144x144', + type: 'image/png', + }, + { + src: 'images/riso-apple-icon-152x152.png', + sizes: '152x152', + type: 'image/png', + }, + { + src: 'images/riso-apple-icon-180x180.png', sizes: '180x180', type: 'image/png', }, ], related_applications: [{ "platform": "webapp", - "url": "https://www.gruppomacro.app/manifest.json" + "url": "https://www.riso.app/manifest.json" }] }, }, @@ -372,7 +407,7 @@ module.exports = configure((ctx) => ({ builder: { // https://www.electron.build/configuration/configuration - appId: 'GruppoMacro', + appId: 'Riso', }, // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain diff --git a/src-pwa/custom-service-worker.js b/src-pwa/custom-service-worker.js index 2e7dadd1..fc6c0b19 100755 --- a/src-pwa/custom-service-worker.js +++ b/src-pwa/custom-service-worker.js @@ -34,7 +34,7 @@ self.addEventListener('activate', (event) => { }); -const APP_VERSION = "1.1.7"; +const APP_VERSION = "1.1.9"; console.log(' [ VER-' + APP_VERSION + ' ] _---------________------ PAO: this is my custom service worker'); diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index 97b1ad62..e08669af 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -298,11 +298,15 @@ export const shared_consts = { // Condivise TABLES_FAVORITE_BOOKMARK: ['myskills', 'mygoods', 'mybachecas', 'myhosps', 'attivitas'], + TABLEFORUSERS: [ + 'myskills', + 'mygoods', + 'mybachecas', + 'myhosps', + ], // Solo per VUE.JS - - TABLES_INSERT_ALMOST_ONE_TO_ENABLE_CIRCUIT: ['myskills', 'myhosps', 'mygoods'], TABLES_WITH_FILTER_FIELD: ['caldate'], TABLES_WITH_SPECIAL_FILTER: ['pub_to_share'], @@ -1930,6 +1934,16 @@ export const shared_consts = { return (trovatorec) ? trovatorec.label : '' }, + getDirectoryImgByTable(table: string, username: string) { + let ris = '' + if (this.TABLEFORUSERS.includes(table)) { + ris = 'profile/' + username + '/' + table + '/'; + } + + return ris; + + }, + getLabelByValueAndArr(value: number, array: any) { const trovatorec = array.find((rec: any) => rec.value === value) return (trovatorec) ? trovatorec.label : '' @@ -2089,6 +2103,7 @@ export const shared_consts = { website: 1, organisedBy: 1, contact_phone: 1, + contact_email: 1, contact_telegram: 1, address: 1, min_partecip: 1, @@ -2163,6 +2178,7 @@ export const shared_consts = { }, getDirectoryByTable(table: string, barre?: boolean) { + let add = ''; if (barre) add = '/'; diff --git a/src/components/CBorders/CBorders.scss b/src/components/CBorders/CBorders.scss new file mode 100755 index 00000000..e69de29b diff --git a/src/components/CBorders/CBorders.ts b/src/components/CBorders/CBorders.ts new file mode 100755 index 00000000..35406821 --- /dev/null +++ b/src/components/CBorders/CBorders.ts @@ -0,0 +1,67 @@ +import { defineComponent, ref, computed, PropType, toRef, reactive, watch } from 'vue' +import { IBorder, IOperators, ISize } from 'model' + +import { useI18n } from '@/boot/i18n' +import { useQuasar } from 'quasar' + +import { CMySlider } from '@src/components/CMySlider' + +import { shared_consts } from '@/common/shared_vuejs' + +export default defineComponent({ + name: 'CBorders', + emits: ['update:modelValue'], + components: { CMySlider }, + props: { + modelValue: { + type: Object as PropType, + required: true, + }, + label: { + type: String, + required: true, + }, + disable: { + type: Boolean, + required: false, + default: false, + }, + }, + setup(props, { emit }) { + const $q = useQuasar() + const { t } = useI18n() + + const internalModel = reactive({ ...props.modelValue }) + + function modifValueTop(value: any) { + emit('update:modelValue', { ...internalModel, top: value }); + } + + function modifValueBottom(value: any) { + emit('update:modelValue', { ...internalModel, bottom: value }); + } + + function modifValueLeft(value: any) { + emit('update:modelValue', { ...internalModel, left: value }); + } + + function modifValueRight(value: any) { + emit('update:modelValue', { ...internalModel, right: value }); + } + + // Sincronizzare i cambiamenti esterni con internalModel quando props cambiano + watch(() => props.modelValue, (newModel: any) => { + Object.assign(internalModel, newModel); + }, { immediate: true }); + + return { + t, + shared_consts, + modifValueTop, + modifValueBottom, + modifValueLeft, + modifValueRight, + internalModel, + } + } +}) diff --git a/src/components/CBorders/CBorders.vue b/src/components/CBorders/CBorders.vue new file mode 100755 index 00000000..6c319f2b --- /dev/null +++ b/src/components/CBorders/CBorders.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/CBorders/index.ts b/src/components/CBorders/index.ts new file mode 100755 index 00000000..9c7e9c26 --- /dev/null +++ b/src/components/CBorders/index.ts @@ -0,0 +1 @@ +export {default as CBorders} from './CBorders.vue' diff --git a/src/components/CCatalogoCard/CCatalogoCard.ts b/src/components/CCatalogoCard/CCatalogoCard.ts index 6d5fdb6b..cbc0a37f 100755 --- a/src/components/CCatalogoCard/CCatalogoCard.ts +++ b/src/components/CCatalogoCard/CCatalogoCard.ts @@ -12,7 +12,7 @@ import { CPrice } from '../CPrice' import { func_tools, toolsext } from '@store/Modules/toolsext' -import { IBaseOrder, ICatalogo, IGasordine, IOrder, IOrderCart, IProduct, IVariazione } from '@src/model' +import { IBaseOrder, ICatalogo, IGasordine, IMyScheda, IOrder, IOrderCart, IProduct, IVariazione } from '@src/model' import { tools } from '@store/Modules/tools' import { useProducts } from '@store/Products' @@ -69,6 +69,13 @@ export default defineComponent({ backgroundimage: '', }), }, + scheda: { + type: Object as PropType, + required: false, + default: () => ({ + + }), + }, }, components: { CTitleBanner, CCardState, CCopyBtn, CMyValueDb, VuePdfApp, CPrice }, setup(props, { emit }) { diff --git a/src/components/CCatalogoCard/CCatalogoCard.vue b/src/components/CCatalogoCard/CCatalogoCard.vue index 7e9fc434..36b55f31 100755 --- a/src/components/CCatalogoCard/CCatalogoCard.vue +++ b/src/components/CCatalogoCard/CCatalogoCard.vue @@ -4,8 +4,8 @@ ' items-start q-gutter-sm': true, }" :style=" - optcatalogo.height - ? ' height: ' + optcatalogo.height + ' !important; ' + scheda.height + ? ' height: ' + scheda.height + 'px !important; ' : '' " > @@ -49,7 +49,7 @@ :class="[ 'flex q-pa-xs', // Classi comuni { 'shadow-2': options.in_3d }, // Classe condizionale - optcatalogo.posiz_text === costanti.POSIZ_TESTO.IN_BASSO + scheda.posiz_text === costanti.POSIZ_TESTO.IN_BASSO ? 'flex-col' : 'flex-row', // Layout flessibile ]" @@ -79,11 +79,11 @@ }" :style="{ width: - optcatalogo.posiz_text === costanti.POSIZ_TESTO.IN_BASSO + scheda.posiz_text === costanti.POSIZ_TESTO.IN_BASSO ? '50%' : '45%', - ...(optcatalogo.width && { - width: optcatalogo.width + ' !important', + ...(scheda.dimensioni.immagine_prodotto.width && { + width: scheda.dimensioni.immagine_prodotto.width + ' !important', }), display: 'block', }" @@ -109,19 +109,19 @@
diff --git a/src/components/CContainerCatalogoCard/CContainerCatalogoCard.ts b/src/components/CContainerCatalogoCard/CContainerCatalogoCard.ts index 34fbde2f..f3cc2c25 100755 --- a/src/components/CContainerCatalogoCard/CContainerCatalogoCard.ts +++ b/src/components/CContainerCatalogoCard/CContainerCatalogoCard.ts @@ -15,7 +15,7 @@ import { shared_consts } from '@src/common/shared_vuejs' import { useRouter } from 'vue-router' import { costanti } from '@costanti' -import { ICatalogo } from '@src/model' +import { ICatalogo, IMyScheda } from '@src/model' export default defineComponent({ @@ -56,6 +56,13 @@ export default defineComponent({ backgroundimage: '', }), }, + scheda: { + type: Object as PropType, + required: false, + default: () => ({ + + }), + }, }, components: { CCatalogoCard }, setup(props, { emit }) { diff --git a/src/components/CContainerCatalogoCard/CContainerCatalogoCard.vue b/src/components/CContainerCatalogoCard/CContainerCatalogoCard.vue index fcc7d419..0b1c05cf 100755 --- a/src/components/CContainerCatalogoCard/CContainerCatalogoCard.vue +++ b/src/components/CContainerCatalogoCard/CContainerCatalogoCard.vue @@ -7,6 +7,7 @@ @selauthor="selauthor" @opendetail="opendetail" :optcatalogo="optcatalogo" + :scheda="scheda" > diff --git a/src/components/CGridTableRec/CGridTableRec.ts b/src/components/CGridTableRec/CGridTableRec.ts index 2daecf5f..0076078d 100755 --- a/src/components/CGridTableRec/CGridTableRec.ts +++ b/src/components/CGridTableRec/CGridTableRec.ts @@ -1831,8 +1831,13 @@ export default defineComponent({ editRecordBool.value = true } else { + let mymsgquestion = translate(col.askaction) + '?' + if (col.action === lists.MenuAction.DELETE_RECTABLE) { + mymsgquestion = 'Cancellare ' + tools.getNomeTabellaStrByTable(table, item) + '?'; + } + return $q.dialog({ - message: translate(col.askaction) + '?', + message: mymsgquestion, html: true, ok: { label: ok, diff --git a/src/components/CMyCardService/CMyCardService.vue b/src/components/CMyCardService/CMyCardService.vue index 91176b53..91de00a1 100644 --- a/src/components/CMyCardService/CMyCardService.vue +++ b/src/components/CMyCardService/CMyCardService.vue @@ -598,6 +598,25 @@ + + + + + + + + + + + + + Nome File Web: {{ myel.catalogo.backgroundimage }}
+ + + + Nome File Printable: + {{ myel.catalogo.backgroundimage_printable }} + + + +
+
Scheda {{ ind + 1 }} - '{{ - recscheda.scheda.name - }}' + + '{{ recscheda.scheda.name }}' +
+ + + +
+
+ + + Nome File Web: {{ recscheda.scheda.bgimg }}
+ + + + + + + Nome File Printable: + {{ recscheda.scheda.bgimg_printable }} + + + +
+
+ +
@@ -1659,44 +1777,32 @@ color="red" @update:model-value="modifElem" > - - + > - + > - + > +
@@ -1732,9 +1838,9 @@ - -
- - - -
-
@@ -1789,29 +1859,6 @@ - - Nome File Web: {{ myel.catalogo.backgroundimage }}
- - -
-
- - - Nome File Printable: - {{ myel.catalogo.backgroundimage_printable }} - - diff --git a/src/components/CMySize/CMySize.scss b/src/components/CMySize/CMySize.scss new file mode 100755 index 00000000..e69de29b diff --git a/src/components/CMySize/CMySize.ts b/src/components/CMySize/CMySize.ts new file mode 100755 index 00000000..1531d261 --- /dev/null +++ b/src/components/CMySize/CMySize.ts @@ -0,0 +1,61 @@ +import { defineComponent, ref, computed, PropType, toRef, reactive, watch } from 'vue' +import { IOperators, ISize } from 'model' + +import { useI18n } from '@/boot/i18n' +import { useQuasar } from 'quasar' + +import { CMySlider } from '@src/components/CMySlider' + +import { shared_consts } from '@/common/shared_vuejs' + +export default defineComponent({ + name: 'CMySize', + emits: ['update:modelValue'], + components: { CMySlider }, + props: { + modelValue: { + type: Object as PropType, + required: true, + default: () => ({ + width: '', + height: '', + }), + }, + label: { + type: String, + required: true, + }, + disable: { + type: Boolean, + required: false, + default: false, + }, + }, + setup(props, { emit }) { + const $q = useQuasar() + const { t } = useI18n() + + const internalModel = reactive({ ...props.modelValue }) + + function modifValueWidth(value: any) { + emit('update:modelValue', { ...internalModel, width: value }); + } + + function modifValueHeight(value: any) { + emit('update:modelValue', { ...internalModel, height: value }); + } + + // Sincronizzare i cambiamenti esterni con internalModel quando props cambiano + watch(() => props.modelValue, (newModel: any) => { + Object.assign(internalModel, newModel); + }, { immediate: true }); + + return { + t, + shared_consts, + modifValueWidth, + modifValueHeight, + internalModel, + } + } +}) diff --git a/src/components/CMySize/CMySize.vue b/src/components/CMySize/CMySize.vue new file mode 100755 index 00000000..5f4d5724 --- /dev/null +++ b/src/components/CMySize/CMySize.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/src/components/CMySize/index.ts b/src/components/CMySize/index.ts new file mode 100755 index 00000000..3e1d8688 --- /dev/null +++ b/src/components/CMySize/index.ts @@ -0,0 +1 @@ +export {default as CMySize} from './CMySize.vue' diff --git a/src/components/CMySlider/CMySlider.ts b/src/components/CMySlider/CMySlider.ts index 26e87cc6..c6e09a49 100755 --- a/src/components/CMySlider/CMySlider.ts +++ b/src/components/CMySlider/CMySlider.ts @@ -35,6 +35,11 @@ export default defineComponent({ required: false, default: '', }, + disable: { + type: Boolean, + required: false, + default: false, + }, }, setup(props, { emit }) { const $q = useQuasar() diff --git a/src/components/CMySlider/CMySlider.vue b/src/components/CMySlider/CMySlider.vue index 70432154..75e05875 100755 --- a/src/components/CMySlider/CMySlider.vue +++ b/src/components/CMySlider/CMySlider.vue @@ -1,15 +1,16 @@ diff --git a/src/db/lang/ws_it.js b/src/db/lang/ws_it.js index ab3d8ef2..9cd59a3d 100755 --- a/src/db/lang/ws_it.js +++ b/src/db/lang/ws_it.js @@ -1,9 +1,9 @@ const msg_website_it = { ws: { - sitename: 'Gruppo Macro', - siteshortname: 'Gruppo Macro', - description: '', - keywords: '', + sitename: 'Riso', + siteshortname: 'RISO', + description: 'Siamo la Rete Italiana di Scambio Orizzontale, abbiamo creato questa piattaforma per metterla al servizio di chi vuole riscoprire il valore della condivisione e della cooperazione. Valori semplici e profondi che ci aiutano a ritrovare il Senso della Vita, perduto in questa società consumista, e riporti quei Sani Pricìpi Naturali ed Umani di Fratellanza che intere popolazioni antiche conoscevano bene.', + keywords: 'riso, piattaforma di scambio, rete italiana scambio orizzontale, riso app, riso piattaforma, scambio e baratto, momenta RIS', }, hours: { descr: 'Descrizione', @@ -16,35 +16,23 @@ const msg_website_it = { pages: { home: 'Home', profile: 'Profilo', - install_site: 'Installa Sito', profile2: 'ProfiloU', mypage2: 'mypage2', myservice2: 'myservice2', myhosps2: 'myhosps2', mygood2: 'mygood2', - catalogo: 'Catalogo', fundraising: 'Sostieni il Progetto', notifs: 'Configura le Notifiche', unsubscribe: 'Disiscriviti', - unsubscribe_user: 'Disiscriviti User', test: 'Test', projects: 'Progetti', report: 'Report Ore', producer: 'Produttore', orderinfo: 'Ordini Effettuati', products: 'Prodotti', - cash: 'Cassa', - productInfos: 'Info Prodotti', - listinoprodotti: 'Listino Prodotti', productslist: 'Lista Prodotti', collabora: 'Collabora', - categories: 'Categorie', storehouses: 'Magazzino', - providers: 'Fornitori', - catprods: 'Categorie', - subcatprods: 'Sotto-Categorie', - gasordine: 'Gas Ordine', - scontisticas: 'Scontistica', departments: 'Uffici', orders: 'Ordini Ricevuti', orders2: 'Ordini Ricevuti', @@ -133,11 +121,15 @@ const msg_website_it = { only_residenti: 'Solo Residenti', only_consiglio: 'Solo Consiglieri', color: 'Colore', - gasordini: 'Gas Ordini', - gestoreordini: 'Gestore Ordini', + mainMenu: 'Menu Principale', + subtitle: 'Sottotitolo', + lang: 'Lingua', + keywords: 'Parole Chiave', + desctiption: 'Descrizione', + heightimg: 'Altezza Immagine', }, msg: { - myAppName: 'Più che Buono', + myAppName: 'Riso', myAppDescription: 'Il primo Vero Social Libero, Equo e Solidale, dove Vive Consapevolezza e Aiuto Comunitario. Gratuito', underconstruction: 'App in costruzione...', myDescriz: '', diff --git a/src/db/static_data.ts b/src/db/static_data.ts index 91805981..a5950655 100755 --- a/src/db/static_data.ts +++ b/src/db/static_data.ts @@ -67,6 +67,39 @@ function getDynamicPages(site: ISites): IListRoutes[] { inmenu: false, infooter: false, }, + { + 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: '/activities', + materialIcon: 'fas fa-house-user', + name: 'mypages.activities', + component: () => import('@/root/activities/activities.vue'), + meta: { requiresAuth: true }, + inmenu: false, + infooter: false, + }, { active: true, order: 15, @@ -78,6 +111,17 @@ function getDynamicPages(site: ISites): IListRoutes[] { 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: site.confpages && site.confpages.enableCircuits, order: 16, @@ -165,7 +209,7 @@ function getDynamicPages(site: ISites): IListRoutes[] { meta: { requiresAuth: true, newpage: true }, inmenu: false, infooter: false, - }, + }, { active: true, order: 137, @@ -232,7 +276,7 @@ function getDynamicPages(site: ISites): IListRoutes[] { { active: true, order: 150, - path: '/fundraising', + path: '/sostieniilprogetto', materialIcon: 'fas fa-hand-holding-heart', name: 'pages.fundraising', component: () => import('@src/root/fundraising/fundraising.vue'), diff --git a/src/index.template.html b/src/index.template.html index ae28cd56..54ace6d8 100755 --- a/src/index.template.html +++ b/src/index.template.html @@ -10,7 +10,7 @@ - + diff --git a/src/model/GlobalStore.ts b/src/model/GlobalStore.ts index b5b7f31f..b0a4b443 100755 --- a/src/model/GlobalStore.ts +++ b/src/model/GlobalStore.ts @@ -684,24 +684,53 @@ export interface IMyCard { link?: string } +export interface ISize { + width?: string + height?: string +} + +export interface IBorder { + top?: string + bottom?: string + left?: string + right?: string +} +export interface IDimensioni { + size?: ISize + margini?: IBorder + padding?: IBorder +} + +export interface IElementiPagina { + pagina: IDimensioni + riga: IDimensioni +} + +export interface IElementiScheda { + pagina: IDimensioni + riga: IDimensioni + scheda_prodotto: IDimensioni + immagine_prodotto: IDimensioni +} + export interface IMyScheda { - _id: string, - idapp: string, - isTemplate: boolean, - name: string, - widthscheda?: string + _id?: string, + idapp?: string, + isTemplate?: boolean, + name?: string, line_height?: number - widthpag?: number - width?: number - height?: number numschede_perRiga?: number numschede_perCol?: number - margine_top?: number - margine_pagina?: string - margine_riga?: string text?: string posiz_text?: number + dimensioni: IElementiScheda + + bgimg?: string + bgimg_printable?: string + bgSize?: string + bgSize_printable?: string + productTypes?: number[] excludeproductTypes?: number[] editore?: string[] @@ -709,8 +738,6 @@ export interface IMyScheda { sort?: number arrProdottiSpeciali?: string[] - // In Memoria: - arrProdToShow?: IProduct[][] } export interface ISchedaSingola { @@ -718,6 +745,9 @@ export interface ISchedaSingola { scheda?: IMyScheda, order?: number, numSchede?: number, + + // In Memoria + arrProdToShow?: IProduct[][] } export interface ICatalogo { @@ -728,15 +758,14 @@ export interface ICatalogo { Categoria: string[] Editore: string[] pdf: boolean + printable?: boolean + + dimensioni: IElementiPagina, + backgroundimage?: string backgroundimage_printable?: string - widthpag?: number - widthpagPrintable?: number - width?: string - height?: string - printable?: boolean - margine_paginaPrintable?: string - margine_rigaPrintable?: string + backgroundSize?: string + backgroundSize_printable?: string first_page_img?: string first_page_html?: string diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js index ee6c1dbf..f46b2688 100755 --- a/src/statics/lang/it.js +++ b/src/statics/lang/it.js @@ -1063,6 +1063,7 @@ const msg_it = { max_partecip: 'Massimo partecipanti', contribstr: 'Contributo (esempio: 5€ + 5 RIS)', contact_phone: 'Telefono per info', + contact_email: 'Email per info', contact_telegram: 'Username Telegram', }, disc: { diff --git a/src/store/Api/index.ts b/src/store/Api/index.ts index 54cd60df..cddf96eb 100755 --- a/src/store/Api/index.ts +++ b/src/store/Api/index.ts @@ -242,7 +242,7 @@ export const Api = { setAuthToken = false, evitaloop = false, retryCount = 5, - retryDelay = 3000 + retryDelay = 5000 ): Promise { try { const response = await this.SendReqBase(url, method, mydata, setAuthToken, evitaloop); diff --git a/src/store/Modules/costanti.ts b/src/store/Modules/costanti.ts index a5e0e53a..a37e7163 100755 --- a/src/store/Modules/costanti.ts +++ b/src/store/Modules/costanti.ts @@ -39,6 +39,7 @@ export const costanti = { 'widthpag', 'Printable', 'height', + 'height_Printable', 'numschede_perCol', 'numschede_perRiga', 'margine_pagina', @@ -54,6 +55,13 @@ export const costanti = { 'text', ], + SCHEDA_FIELDS: [ + 'bgimg', + 'bgimg_printable', + 'bgSize', + 'bgSize_printable', + ], + TIPOFAVBOOK: { FAVORITE: 1, BOOKMARK: 2, @@ -350,6 +358,7 @@ export const costanti = { DIR_UPLOAD: 'upload/', DIR_PRODUCTS: 'products/', DIR_CATALOGO: 'catalogo/', + DIR_SCHEDA: 'scheda/', FRIENDS: 1, ASK_TRUST: 2, diff --git a/src/store/Modules/fieldsTable.ts b/src/store/Modules/fieldsTable.ts index 9c3eba94..eb24be63 100755 --- a/src/store/Modules/fieldsTable.ts +++ b/src/store/Modules/fieldsTable.ts @@ -147,22 +147,43 @@ export const colmylistcards = [ AddCol({ name: 'link', label_trans: 'link' }), ] +export const IBorder = [ + AddCol({ name: 'top', label_trans: 'size.top', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'bottom', label_trans: 'size.bottom', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'left', label_trans: 'size.left', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'right', label_trans: 'size.right', fieldtype: costanti.FieldType.string }), +] + +export const colISize = [ + AddCol({ name: 'width', label_trans: 'size.width', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'height', label_trans: 'size.height', fieldtype: costanti.FieldType.string }), +] + export const colmyScheda = [ AddCol({ name: 'name', label_trans: 'scheda.name', fieldtype: costanti.FieldType.string }), AddCol({ name: 'isTemplate', label_trans: 'scheda.isTemplate', fieldtype: costanti.FieldType.boolean }), - AddCol({ name: 'widthscheda', label_trans: 'scheda.widthscheda', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'widthscheda', label_trans: 'scheda.widthscheda', fieldtype: costanti.FieldType.number }), AddCol({ name: 'widthpag', label_trans: 'scheda.widthpag', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'width', label_trans: 'scheda.width', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'height', label_trans: 'scheda.height', fieldtype: costanti.FieldType.number }), + AddCol({ name: 'widthimg', label_trans: 'scheda.widthimg', fieldtype: costanti.FieldType.number }), + AddCol({ name: 'heightimg', label_trans: 'scheda.heightimg', fieldtype: costanti.FieldType.number }), + AddCol({ name: 'height_Printable', label_trans: 'scheda.height_Printable', fieldtype: costanti.FieldType.number }), AddCol({ name: 'numschede_perCol', label_trans: 'scheda,numschede_perCol', fieldtype: costanti.FieldType.number }), AddCol({ name: 'numschede_perRiga', label_trans: 'scheda.numschede_perRiga', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'margine_top', label_trans: 'scheda.margine_top', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'margine_top', label_trans: 'scheda.margine_top', fieldtype: costanti.FieldType.number }), AddCol({ name: 'margine_pagina', label_trans: 'scheda.margine_pagina', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'margine_paginaPrintable', label_trans: 'scheda.margine_paginaPrintable', fieldtype: costanti.FieldType.string }), AddCol({ name: 'margine_riga', label_trans: 'scheda.margine_riga', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'margine_rigaPrintable', label_trans: 'scheda.margine_rigaPrintable', fieldtype: costanti.FieldType.string }), AddCol({ name: 'text', label_trans: 'catalogo.text', fieldtype: costanti.FieldType.html }), AddCol({ name: 'posiz_text', label_trans: 'catalogo.posiz_text', fieldtype: costanti.FieldType.number }), AddCol({ name: 'line_height', label_trans: 'catalogo.line_height', fieldtype: costanti.FieldType.number }), + AddCol({ name: 'bgimg', label_trans: 'scheda.bgimg', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'bgimg_printable', label_trans: 'scheda.bgimg_printable', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'bgSize', label_trans: 'scheda.bgimg', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'bgSize_printable', label_trans: 'scheda.bgSize', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'widthPPrintable', label_trans: 'scheda.widthPPrintable', fieldtype: costanti.FieldType.number }), + AddCol({ name: 'productTypes', label_trans: 'productTypes', fieldtype: costanti.FieldType.number }), AddCol({ name: 'excludeproductTypes', label_trans: 'excludeproductTypes', fieldtype: costanti.FieldType.number }), AddCol({ name: 'Editore', label_trans: 'Editore' }), @@ -176,14 +197,12 @@ export const colmyelCatalogo = [ AddCol({ name: 'excludeproductTypes', label_trans: 'excludeproductTypes', fieldtype: costanti.FieldType.number }), AddCol({ name: 'pdf', label_trans: 'pdf' }), AddCol({ name: 'Editore', label_trans: 'Editore' }), - AddCol({ name: 'backgroundimage', label_trans: 'backgroundimage', fieldtype: costanti.FieldType.image }), - AddCol({ name: 'backgroundimage_printable', label_trans: 'backgroundimage_printable', fieldtype: costanti.FieldType.image }), - AddCol({ name: 'widthpag', label_trans: 'widthpag', fieldtype: costanti.FieldType.number }), - AddCol({ name: 'widthpagPrintable', label_trans: 'widthpagPrintable', fieldtype: costanti.FieldType.number }), AddCol({ name: 'width', label_trans: 'width', fieldtype: costanti.FieldType.string }), AddCol({ name: 'height', label_trans: 'height', fieldtype: costanti.FieldType.string }), AddCol({ name: 'optcatalogo.', label_trans: 'catalogo.optcatalogo.', fieldtype: costanti.FieldType.number }), + AddCol({ name: 'margine_pagina', label_trans: 'margine_pagina', fieldtype: costanti.FieldType.string }), AddCol({ name: 'margine_paginaPrintable', label_trans: 'margine_paginaPrintable', fieldtype: costanti.FieldType.string }), + AddCol({ name: 'margine_riga', label_trans: 'margine_riga', fieldtype: costanti.FieldType.string }), AddCol({ name: 'margine_rigaPrintable', label_trans: 'margine_rigaPrintable', fieldtype: costanti.FieldType.string }), AddCol({ name: 'first_page_img', label_trans: 'catalogo.first_page_img', fieldtype: costanti.FieldType.image }), AddCol({ name: 'last_page_img', label_trans: 'catalogo.last_page_img', fieldtype: costanti.FieldType.image }), @@ -191,6 +210,13 @@ export const colmyelCatalogo = [ AddCol({ name: 'first_page_height', label_trans: 'catalogo.first_page_height', fieldtype: costanti.FieldType.number }), AddCol({ name: 'last_page_height', label_trans: 'catalogo.last_page_html', fieldtype: costanti.FieldType.number }), AddCol({ name: 'last_page_html', label_trans: 'catalogo.last_page_html', fieldtype: costanti.FieldType.html }), + + AddCol({ name: 'backgroundimage', label_trans: 'backgroundimage', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'backgroundimage_printable', label_trans: 'backgroundimage_printable', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'backgroundSize', label_trans: 'scheda.bgimg', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'backgroundSize_printable', label_trans: 'scheda.bgSize', fieldtype: costanti.FieldType.image }), + AddCol({ name: 'widthpagPrintable', label_trans: 'widthpag', fieldtype: costanti.FieldType.number }), + AddCol({ name: 'widthpagPrintable', label_trans: 'widthpagPrintable', fieldtype: costanti.FieldType.number }), ] export const colmyelems = [ @@ -1541,7 +1567,7 @@ export const colmySkills = [ showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist, numpag_carousel: 6, }), - AddCol({ + /*AddCol({ name: 'numLevel', label_trans: 'level.name', fieldtype: costanti.FieldType.star3, @@ -1552,7 +1578,7 @@ export const colmySkills = [ icon: 'grading', isadvanced_field: true, numpag_carousel: 7, - }), + }),*/ AddCol({ name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate, required: false, @@ -1878,6 +1904,11 @@ export const colmyBachecas = [ label_trans: 'event.contact_phone', fieldtype: costanti.FieldType.string, }), + AddCol({ + name: 'contact_email', + label_trans: 'event.contact_email', + fieldtype: costanti.FieldType.string, + }), AddCol({ name: 'contact_telegram', label_trans: 'event.contact_telegram', @@ -3931,12 +3962,6 @@ export const fieldsTable = { }, - tableForUsers: [ - 'myskills', - 'mygoods', - 'mybachecas', - 'myhosps', - ], tableRemotePickup: [ 'countries', @@ -4186,8 +4211,8 @@ export const fieldsTable = { collabel: 'title', }, { - value: 'scheda', - label: 'Elementi SCheda', + value: 'myschedas', + label: 'Elementi Scheda', columns: colmyScheda, colkey: '_id', collabel: 'name', diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts index 391cde64..56165f79 100644 --- a/src/store/Modules/tools.ts +++ b/src/store/Modules/tools.ts @@ -7895,7 +7895,7 @@ export const tools = { }, getTitleGall(table: string) { - if (fieldsTable.tableForUsers.includes(table)) { + if (shared_consts.TABLEFORUSERS.includes(table)) { return 'Profilo' } else { return fieldsTable.getTitleImgByTable(table) @@ -7919,7 +7919,7 @@ export const tools = { if (username === '') { username = userStore.my.username } - if (fieldsTable.tableForUsers.includes(table)) { + if (shared_consts.TABLEFORUSERS.includes(table)) { ris = 'profile/' + username + '/' + table } else if (table === 'users') { ris = 'profile/' + userStore.my.username @@ -8271,6 +8271,30 @@ export const tools = { return null }, + getNomeTabellaStrByTable(table: string, rec: any) { + let str = '' + let nome = '' + if (table === toolsext.TABMYBACHECAS) { + nome = rec ? rec.descr : '' + str = 'l\'Evento "' + nome + '"' + } else if (table === toolsext.TABMYSKILLS) { + nome = rec ? rec.descr : '' + str = 'il Servizio "' + nome + '"' + } else if (table === toolsext.TABMYGOODS) { + nome = rec ? rec.descr : '' + str = 'il Bene "' + nome + '"' + } else if (table === toolsext.TABMYHOSPS) { + nome = rec ? rec.descr : '' + str = 'l\'Ospitalità "' + nome + '"' + } + + if (!str) { + str = 'il record selezionato' + } + + return str + }, + extraparams(table: string, extra?: any) { if (table === toolsext.TABMYGROUPS) { diff --git a/src/store/Products.ts b/src/store/Products.ts index 71bd14d3..d8e2743c 100755 --- a/src/store/Products.ts +++ b/src/store/Products.ts @@ -52,7 +52,7 @@ function getRecordProductInfoEmpty(): IProductInfo { stars: 0, date: tools.getDateNow(), icon: '', - img: '', + imagefile: '', } } diff --git a/src/views/ecommerce/catalogo/catalogo.ts b/src/views/ecommerce/catalogo/catalogo.ts index b9ebb2e1..1e0cb7a3 100755 --- a/src/views/ecommerce/catalogo/catalogo.ts +++ b/src/views/ecommerce/catalogo/catalogo.ts @@ -14,7 +14,7 @@ import { CProductCard } from '@src/components/CProductCard' import { CMySelect } from '@src/components/CMySelect' import { CContainerCatalogoCard } from '@src/components/CContainerCatalogoCard' import { CSelectUserActive } from '@src/components/CSelectUserActive' -import { ICatalogo, IFilterCatalogo, IMyScheda, IProdView, IProduct, ISearchList } from 'model' +import { ICatalogo, IFilterCatalogo, IMyScheda, IProdView, IProduct, ISchedaSingola, ISearchList } from 'model' import html2canvas from 'html2canvas' // import { VueHtmlToPaper } from 'vue-html-to-paper' @@ -412,9 +412,9 @@ export default defineComponent({ } } - function getProdBySchedaRigaCol(scheda: IMyScheda, riga: number, col: number) { + function getProdBySchedaRigaCol(recscheda: ISchedaSingola, riga: number, col: number) { try { - return scheda.arrProdToShow![riga][col] + return recscheda.arrProdToShow![riga][col] } catch (e) { return null } @@ -436,10 +436,7 @@ export default defineComponent({ const arrProdFiltrati = getProductsFilteredByScheda(recscheda.scheda) let indprod = 0 let indadded = 0 - recscheda.scheda.arrProdToShow = [] - - let riga = 0 - let col = 0 + recscheda.arrProdToShow = [] for (let giro = 0; giro < schedePerPagina; giro++) { // Aggiunge il prossimo prodotto che non è stato ancora inserito @@ -450,21 +447,22 @@ export default defineComponent({ if (result.indprod) indprod = result.indprod // Aggiorna indprod per il prossimo giro if (result.myrec) { - indadded++ let riga = Math.floor(indadded / schedePerCol) let col = indadded % schedePerCol - if (!recscheda.scheda.arrProdToShow[riga]) { - recscheda.scheda.arrProdToShow[riga] = []; + if (!recscheda.arrProdToShow[riga]) { + recscheda.arrProdToShow[riga] = []; } - recscheda.scheda.arrProdToShow[riga][col] = result.myrec + recscheda.arrProdToShow[riga][col] = result.myrec + + indadded++ } } } - console.log('*** arrProdToShow', recscheda.scheda.arrProdToShow) + console.log('*** arrProdToShow', recscheda.arrProdToShow) } } } @@ -712,6 +710,57 @@ export default defineComponent({ } + function generateStyleCatalogo(optcatalogo: ICatalogo) { + const fileimg = (optcatalogo.printable + ? optcatalogo.backgroundimage_printable + : optcatalogo.backgroundimage) + + const marginBottom = optcatalogo.dimensioni.pagina.margini!.bottom || '' + + const backgroundImage = fileimg ? `url(${costanti.DIR_UPLOAD + + costanti.DIR_CATALOGO + fileimg})` : '' + + const backgroundSize = `${optcatalogo.printable + ? optcatalogo.backgroundSize_printable + : optcatalogo.backgroundSize}`; + + const width = optcatalogo.dimensioni.pagina.size?.width + + return { + backgroundImage, + backgroundSize, + marginBottom, + '--width': width + }; + } + + function generateStylePageScheda(optcatalogo: ICatalogo, scheda: IMyScheda) { + const marginTop = `${scheda.dimensioni.pagina.margini!.top}` + + const marginBottom = scheda.dimensioni.pagina.margini!.bottom + + const fileimg = (optcatalogo.printable + ? scheda.bgimg_printable + : scheda.bgimg) + + const backgroundImage = fileimg ? `url(${costanti.DIR_UPLOAD + + costanti.DIR_SCHEDA + fileimg})` : '' + + const backgroundSize = `${optcatalogo.printable + ? scheda.bgSize_printable + : scheda.bgSize}`; + + const width = scheda.dimensioni.pagina.size?.width + + return { + marginBottom, + marginTop, + backgroundImage, + backgroundSize, + '--width': width + }; + } + onMounted(mounted) @@ -754,6 +803,8 @@ export default defineComponent({ groupedPages, getNextProd, getProdBySchedaRigaCol, + generateStylePageScheda, + generateStyleCatalogo, } } }) diff --git a/src/views/ecommerce/catalogo/catalogo.vue b/src/views/ecommerce/catalogo/catalogo.vue index ad7145a4..3762406d 100755 --- a/src/views/ecommerce/catalogo/catalogo.vue +++ b/src/views/ecommerce/catalogo/catalogo.vue @@ -216,7 +216,11 @@ ? optcatalogo.first_page_img : optcatalogo.first_page_img) })`, - backgroundSize: 'cover', + backgroundSize: `${ + optcatalogo.printable + ? scheda.bgSize_printable + : scheda.bgSize + }`, height: optcatalogo.first_page_height + 'px', width: optcatalogo.first_page_width + 'px', }" @@ -226,24 +230,7 @@ v-html="optcatalogo.first_page_html" > -
+
@@ -337,26 +325,26 @@ :style=" 'place-content: center; ' + ('flex: 0 1 ' + - recscheda.scheda.widthscheda || - '100px' + '; ') + recscheda.scheda.dimensioni.scheda_prodotto.width + || '100px' + '; ') " > -
+
Sfondo Stampa: {{ costanti.DIR_UPLOAD +