diff --git a/.env.development b/.env.development index 4267996f..f4ae2ccf 100755 --- a/.env.development +++ b/.env.development @@ -1,13 +1,12 @@ -VITE_MONGODB_HOST="https://localhost:3000" -VITE_PUBLICKEY_PUSH='BDncvMiUZmjaCG2Kr1V9N0_33hOG-AuNSbHSvL24y2dzBiUjAxKm02emx5SeJvz2IGmtRf6YqCgopeQwCwUmZw8' -VITE_PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -VITE_VUE_APP_ISTEST="1" -VITE_VUE_APP_INLOCALE="1" -VITE_DEBUG="1" -VITE_APP_ID="13" -VITE_LOGO_REG='riso-logo-full.png' +VITE_APP_ID="17" VITE_APP_URL="https://localhost" -DIRECTORY_LOCAL=myprojplanet_vite -DIRECTORY_SERVER=freeplanet_serverside +VITE_MONGODB_HOST="https://localhost:3000" +VITE_LOGO_REG='piuchebuono-logo-full.png' +VITE_PUBLICKEY_PUSH='BDncvMiUZmjaCG2Kr1V9N0_33hOG-AuNSbHSvL24y2dzBiUjAxKm02emx5SeJvz2IGmtRf6YqCgopeQwCwUmZw8' +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST=1 +VITE_VUE_APP_INLOCALE=1 +DIRECTORY_LOCAL="newfreeplanet" +DIRECTORY_SERVER="freeplanet_serverside" SERVERDIR_WEBSITE="" -SERVERPW_WEBSITE="" \ No newline at end of file +SERVERPW_WEBSITE="" diff --git a/.env.example.production b/.env.example.production index 47a2681f..49f872e0 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,7 +1,6 @@ VITE_APP_ID="13" VITE_APP_URL="https://miodominio.com" VITE_PAO_APP_ID="KKP---------SDF" -MASTER_KEY="KKP---------R3T" VITE_MONGODB_HOST="https://www.miodominio.com:3000" VITE_LOGO_REG='riso-logo-full.png' VITE_PUBLICKEY_PUSH="" diff --git a/.env.prod.gruppomacro b/.env.prod.gruppomacro index a139a7b0..1ff1d2b6 100644 --- a/.env.prod.gruppomacro +++ b/.env.prod.gruppomacro @@ -1,26 +1,11 @@ VITE_APP_ID="18" +VITE_APP_URL="https://gruppomacro.app" +VITE_MONGODB_HOST="https://api.gruppomacro.app" +VITE_LOGO_REG='gruppomacro-logo-full.png' +VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST="0" DIRECTORY_LOCAL=newfreeplanet DIRECTORY_SERVER=/var/www/freeplanet_serverside SERVERDIR_WEBSITE="/var/www/gruppomacro.app" SERVERPW_WEBSITE=pwdadmin@1AOK -VITE_APP_URL="https://gruppomacro.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -VITE_LANG_DEFAULT="it" -VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -VITE_MONGODB_HOST="https://api.gruppomacro.app" -VITE_LOGO_REG='gruppomacro-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="------" -VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" -VITE_DEBUG="1" -TELEGRAM_SUPPORT="" -VITE_PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VITE_VUE_APP_ISTEST=0 -API_KEY_MSSQL="m68yADSr123MIVIDA@154$DSAGVOK" \ No newline at end of file diff --git a/.env.prod.pcb b/.env.prod.pcb index 8e893940..97ce984b 100644 --- a/.env.prod.pcb +++ b/.env.prod.pcb @@ -1,6 +1,5 @@ VITE_APP_ID="17" VITE_APP_URL="https://piuchebuono.app" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" VITE_MONGODB_HOST="https://api.piuchebuono.app" VITE_LOGO_REG="piuchebuono-logo-full.png" VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" diff --git a/.env.prod.riso b/.env.prod.riso index 458a9f1a..5e0af09a 100644 --- a/.env.prod.riso +++ b/.env.prod.riso @@ -1,6 +1,5 @@ VITE_APP_ID="13" VITE_APP_URL="https://riso.app" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" VITE_MONGODB_HOST="https://api.riso.app" VITE_LOGO_REG='riso-logo-full.png' VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" diff --git a/.env.production b/.env.production index 3d3de6cd..eed57b23 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,5 @@ VITE_APP_ID="13" VITE_APP_URL="https://test.riso.app" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" VITE_MONGODB_HOST="https://testapi.riso.app" VITE_LOGO_REG='riso-logo-full.png' VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" diff --git a/.env.test.gruppomacro b/.env.test.gruppomacro index 8de374a5..65c3e223 100755 --- a/.env.test.gruppomacro +++ b/.env.test.gruppomacro @@ -1,6 +1,5 @@ VITE_APP_ID="18" VITE_APP_URL="https://test.gruppomacro.app" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" VITE_MONGODB_HOST="https://testapi.gruppomacro.app" VITE_LOGO_REG='gruppomacro-logo-full.png' VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" diff --git a/.env.test.pcb b/.env.test.pcb index cbf47da7..90242b34 100755 --- a/.env.test.pcb +++ b/.env.test.pcb @@ -1,28 +1,11 @@ -VITE_APP_VERSION="1.1.23" -VITE_SERVICE_WORKER_FILE="service-worker.js" VITE_APP_ID="17" +VITE_APP_URL="https://test.piuchebuono.app" +VITE_MONGODB_HOST="https://testapi.piuchebuono.app" +VITE_LOGO_REG="piuchebuono-logo-full.png" +VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST="1" DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_SERVER="/var/www/nodejs_test.piuchebuono_server" SERVERDIR_WEBSITE="/var/www/test.piuchebuono.app" -VITE_APP_URL="https://test.piuchebuono.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -VITE_LANG_DEFAULT="it" -VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -VITE_MONGODB_HOST="https://testapi.piuchebuono.app" -VITE_LOGO_REG="piuchebuono-logo-full.png" -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="" -VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" -IN_CONSTRUCTION="0" -VITE_DEBUG="1" -TELEGRAM_SUPPORT="" -VITE_PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VITE_VUE_APP_ISTEST="1" -API_KEY_MSSQL="m68yADSr123MIVIDA@154$DSAGVOK" \ No newline at end of file +SERVERPW_WEBSITE="pwdadmin@1AOK" \ No newline at end of file diff --git a/.env.test.risosrv b/.env.test.risosrv index 3d3de6cd..eed57b23 100755 --- a/.env.test.risosrv +++ b/.env.test.risosrv @@ -1,6 +1,5 @@ VITE_APP_ID="13" VITE_APP_URL="https://test.riso.app" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" VITE_MONGODB_HOST="https://testapi.riso.app" VITE_LOGO_REG='riso-logo-full.png' VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" diff --git a/favicon.ico b/favicon.ico index d283c964..765302c2 100644 Binary files a/favicon.ico and b/favicon.ico differ diff --git a/images/android-chrome-192x192.png b/images/android-chrome-192x192.png index 95b960e9..0c81abf2 100644 Binary files a/images/android-chrome-192x192.png and b/images/android-chrome-192x192.png differ diff --git a/images/arcadei/borgovivo.png b/images/arcadei/borgovivo.png new file mode 100644 index 00000000..de6d475f Binary files /dev/null and b/images/arcadei/borgovivo.png differ diff --git a/images/arcadei/boscovivo.png b/images/arcadei/boscovivo.png new file mode 100644 index 00000000..0af031a9 Binary files /dev/null and b/images/arcadei/boscovivo.png differ diff --git a/images/arcadei/img1.png b/images/arcadei/img1.png new file mode 100644 index 00000000..8f25fe63 Binary files /dev/null and b/images/arcadei/img1.png differ diff --git a/images/arcadei/ortovivo-gsa.png b/images/arcadei/ortovivo-gsa.png new file mode 100644 index 00000000..4cb7eea8 Binary files /dev/null and b/images/arcadei/ortovivo-gsa.png differ diff --git a/images/arcadei/pandeldia.png b/images/arcadei/pandeldia.png new file mode 100644 index 00000000..9ff66ff1 Binary files /dev/null and b/images/arcadei/pandeldia.png differ diff --git a/images/arcadei/prospera.png b/images/arcadei/prospera.png new file mode 100644 index 00000000..1f3712f9 Binary files /dev/null and b/images/arcadei/prospera.png differ diff --git a/images/arcadei/saluteviva.png b/images/arcadei/saluteviva.png new file mode 100644 index 00000000..f8da1f0b Binary files /dev/null and b/images/arcadei/saluteviva.png differ diff --git a/images/arcadei/scuolaviva.png b/images/arcadei/scuolaviva.png new file mode 100644 index 00000000..b6e0c1a2 Binary files /dev/null and b/images/arcadei/scuolaviva.png differ diff --git a/images/badge-96x96.png b/images/badge-96x96.png index d1a5cddf..95f8f921 100644 Binary files a/images/badge-96x96.png and b/images/badge-96x96.png differ diff --git a/images/favicon-16x16.png b/images/favicon-16x16.png index c28cef9f..d5a67f48 100644 Binary files a/images/favicon-16x16.png and b/images/favicon-16x16.png differ diff --git a/images/favicon-32x32.png b/images/favicon-32x32.png index a02e38b0..f2149cac 100644 Binary files a/images/favicon-32x32.png and b/images/favicon-32x32.png differ diff --git a/images/favicon-96x96.png b/images/favicon-96x96.png deleted file mode 100644 index f741b210..00000000 Binary files a/images/favicon-96x96.png and /dev/null differ diff --git a/images/favicon.ico b/images/favicon.ico index d283c964..765302c2 100644 Binary files a/images/favicon.ico and b/images/favicon.ico differ diff --git a/images/ferrara.jpg b/images/ferrara.jpg deleted file mode 100644 index b4615a3a..00000000 Binary files a/images/ferrara.jpg and /dev/null differ diff --git a/images/freeplanet-logo-full.odg b/images/freeplanet-logo-full.odg deleted file mode 100755 index 854da650..00000000 Binary files a/images/freeplanet-logo-full.odg and /dev/null differ diff --git a/images/freeplanet-logo-full.svg b/images/freeplanet-logo-full.svg deleted file mode 100755 index b9c10df3..00000000 --- a/images/freeplanet-logo-full.svg +++ /dev/null @@ -1,1186 +0,0 @@ - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/imglogonotif.png b/images/imglogonotif.png index 95b960e9..785535fc 100644 Binary files a/images/imglogonotif.png and b/images/imglogonotif.png differ diff --git a/images/install_app_on_android_1.jpg b/images/install_app_on_android_1.jpg deleted file mode 100644 index ec5a0899..00000000 Binary files a/images/install_app_on_android_1.jpg and /dev/null differ diff --git a/images/install_app_on_android_2.jpg b/images/install_app_on_android_2.jpg deleted file mode 100644 index 97df25c1..00000000 Binary files a/images/install_app_on_android_2.jpg and /dev/null differ diff --git a/images/install_app_on_android_3.jpg b/images/install_app_on_android_3.jpg deleted file mode 100644 index 88c316cb..00000000 Binary files a/images/install_app_on_android_3.jpg and /dev/null differ diff --git a/images/install_app_on_ios_1.png b/images/install_app_on_ios_1.png deleted file mode 100644 index bfe9f9de..00000000 Binary files a/images/install_app_on_ios_1.png and /dev/null differ diff --git a/images/install_app_on_ios_1b.jpg b/images/install_app_on_ios_1b.jpg deleted file mode 100644 index a9ff9893..00000000 Binary files a/images/install_app_on_ios_1b.jpg and /dev/null differ diff --git a/images/install_app_on_ios_2.jpg b/images/install_app_on_ios_2.jpg deleted file mode 100644 index f05f86d8..00000000 Binary files a/images/install_app_on_ios_2.jpg and /dev/null differ diff --git a/images/pcb-android-icon-144x144.png b/images/pcb-android-icon-144x144.png new file mode 100644 index 00000000..fdea5eb1 Binary files /dev/null and b/images/pcb-android-icon-144x144.png differ diff --git a/images/pcb-android-icon-192x192.png b/images/pcb-android-icon-192x192.png new file mode 100644 index 00000000..93bb5fb7 Binary files /dev/null and b/images/pcb-android-icon-192x192.png differ diff --git a/images/pcb-android-icon-36x36.png b/images/pcb-android-icon-36x36.png new file mode 100644 index 00000000..f700c0d2 Binary files /dev/null and b/images/pcb-android-icon-36x36.png differ diff --git a/images/pcb-android-icon-48x48.png b/images/pcb-android-icon-48x48.png new file mode 100644 index 00000000..4018b080 Binary files /dev/null and b/images/pcb-android-icon-48x48.png differ diff --git a/images/pcb-android-icon-72x72.png b/images/pcb-android-icon-72x72.png new file mode 100644 index 00000000..fdaff445 Binary files /dev/null and b/images/pcb-android-icon-72x72.png differ diff --git a/images/pcb-android-icon-96x96.png b/images/pcb-android-icon-96x96.png new file mode 100644 index 00000000..74ae0a32 Binary files /dev/null and b/images/pcb-android-icon-96x96.png differ diff --git a/images/pcb-apple-icon-114x114.png b/images/pcb-apple-icon-114x114.png new file mode 100644 index 00000000..de67dfff Binary files /dev/null and b/images/pcb-apple-icon-114x114.png differ diff --git a/images/pcb-apple-icon-120x120.png b/images/pcb-apple-icon-120x120.png new file mode 100644 index 00000000..5864c9c8 Binary files /dev/null and b/images/pcb-apple-icon-120x120.png differ diff --git a/images/pcb-apple-icon-144x144.png b/images/pcb-apple-icon-144x144.png new file mode 100644 index 00000000..fdea5eb1 Binary files /dev/null and b/images/pcb-apple-icon-144x144.png differ diff --git a/images/pcb-apple-icon-152x152.png b/images/pcb-apple-icon-152x152.png new file mode 100644 index 00000000..6e92509a Binary files /dev/null and b/images/pcb-apple-icon-152x152.png differ diff --git a/images/pcb-apple-icon-180x180.png b/images/pcb-apple-icon-180x180.png new file mode 100644 index 00000000..4d59cedc Binary files /dev/null and b/images/pcb-apple-icon-180x180.png differ diff --git a/images/pcb-apple-icon-57x57.png b/images/pcb-apple-icon-57x57.png new file mode 100644 index 00000000..fb201a9d Binary files /dev/null and b/images/pcb-apple-icon-57x57.png differ diff --git a/images/pcb-apple-icon-60x60.png b/images/pcb-apple-icon-60x60.png new file mode 100644 index 00000000..3b5f1c33 Binary files /dev/null and b/images/pcb-apple-icon-60x60.png differ diff --git a/images/pcb-apple-icon-72x72.png b/images/pcb-apple-icon-72x72.png new file mode 100644 index 00000000..fdaff445 Binary files /dev/null and b/images/pcb-apple-icon-72x72.png differ diff --git a/images/pcb-apple-icon-76x76.png b/images/pcb-apple-icon-76x76.png new file mode 100644 index 00000000..2882992b Binary files /dev/null and b/images/pcb-apple-icon-76x76.png differ diff --git a/images/pcb-apple-icon.png b/images/pcb-apple-icon.png new file mode 100644 index 00000000..422a8dca Binary files /dev/null and b/images/pcb-apple-icon.png differ diff --git a/images/piuchebuono-logo-full.png b/images/piuchebuono-logo-full.png new file mode 100644 index 00000000..5465d80c Binary files /dev/null and b/images/piuchebuono-logo-full.png differ diff --git a/images/piuchebuono.jpg b/images/piuchebuono.jpg new file mode 100644 index 00000000..88e9bab0 Binary files /dev/null and b/images/piuchebuono.jpg differ diff --git a/images/riso-android-icon-144x144.png b/images/riso-android-icon-144x144.png deleted file mode 100644 index 37dcd661..00000000 Binary files a/images/riso-android-icon-144x144.png and /dev/null differ diff --git a/images/riso-android-icon-192x192.png b/images/riso-android-icon-192x192.png deleted file mode 100644 index 95b960e9..00000000 Binary files a/images/riso-android-icon-192x192.png and /dev/null differ diff --git a/images/riso-android-icon-36x36.png b/images/riso-android-icon-36x36.png deleted file mode 100644 index c78a13a3..00000000 Binary files a/images/riso-android-icon-36x36.png and /dev/null differ diff --git a/images/riso-android-icon-384x384.png b/images/riso-android-icon-384x384.png deleted file mode 100644 index ce1ffc47..00000000 Binary files a/images/riso-android-icon-384x384.png and /dev/null differ diff --git a/images/riso-android-icon-48x48.png b/images/riso-android-icon-48x48.png deleted file mode 100644 index 499e8674..00000000 Binary files a/images/riso-android-icon-48x48.png and /dev/null differ diff --git a/images/riso-android-icon-512x512.png b/images/riso-android-icon-512x512.png deleted file mode 100644 index e1c31acd..00000000 Binary files a/images/riso-android-icon-512x512.png and /dev/null differ diff --git a/images/riso-android-icon-72x72.png b/images/riso-android-icon-72x72.png deleted file mode 100644 index f95f7320..00000000 Binary files a/images/riso-android-icon-72x72.png and /dev/null differ diff --git a/images/riso-android-icon-96x96.png b/images/riso-android-icon-96x96.png deleted file mode 100644 index 98dbf9d9..00000000 Binary files a/images/riso-android-icon-96x96.png and /dev/null differ diff --git a/images/riso-apple-icon-114x114.png b/images/riso-apple-icon-114x114.png deleted file mode 100644 index 882dd21c..00000000 Binary files a/images/riso-apple-icon-114x114.png and /dev/null differ diff --git a/images/riso-apple-icon-120x120.png b/images/riso-apple-icon-120x120.png deleted file mode 100644 index 734b0503..00000000 Binary files a/images/riso-apple-icon-120x120.png and /dev/null differ diff --git a/images/riso-apple-icon-144x144.png b/images/riso-apple-icon-144x144.png deleted file mode 100644 index 923da7be..00000000 Binary files a/images/riso-apple-icon-144x144.png and /dev/null differ diff --git a/images/riso-apple-icon-152x152.png b/images/riso-apple-icon-152x152.png deleted file mode 100644 index 84fd455d..00000000 Binary files a/images/riso-apple-icon-152x152.png and /dev/null differ diff --git a/images/riso-apple-icon-180x180.png b/images/riso-apple-icon-180x180.png deleted file mode 100644 index e457d906..00000000 Binary files a/images/riso-apple-icon-180x180.png and /dev/null differ diff --git a/images/riso-apple-icon-57x57.png b/images/riso-apple-icon-57x57.png deleted file mode 100644 index f5f538db..00000000 Binary files a/images/riso-apple-icon-57x57.png and /dev/null differ diff --git a/images/riso-apple-icon-60x60.png b/images/riso-apple-icon-60x60.png deleted file mode 100644 index 4121f834..00000000 Binary files a/images/riso-apple-icon-60x60.png and /dev/null differ diff --git a/images/riso-apple-icon-72x72.png b/images/riso-apple-icon-72x72.png deleted file mode 100644 index 5efd872d..00000000 Binary files a/images/riso-apple-icon-72x72.png and /dev/null differ diff --git a/images/riso-apple-icon-76x76.png b/images/riso-apple-icon-76x76.png deleted file mode 100644 index 6db4b76f..00000000 Binary files a/images/riso-apple-icon-76x76.png and /dev/null differ diff --git a/images/riso-apple-icon.png b/images/riso-apple-icon.png deleted file mode 100644 index cfaeb3c0..00000000 Binary files a/images/riso-apple-icon.png and /dev/null differ diff --git a/images/riso-logo-full.png b/images/riso-logo-full.png deleted file mode 100644 index 51a29654..00000000 Binary files a/images/riso-logo-full.png and /dev/null differ diff --git a/images/riso_home.png b/images/riso_home.png deleted file mode 100644 index 3d065405..00000000 Binary files a/images/riso_home.png and /dev/null differ diff --git a/images/riso_services.png b/images/riso_services.png deleted file mode 100644 index 85a940bc..00000000 Binary files a/images/riso_services.png and /dev/null differ diff --git a/images/sito_in_manutenzione.jpg b/images/sito_in_manutenzione.jpg new file mode 100644 index 00000000..d257d138 Binary files /dev/null and b/images/sito_in_manutenzione.jpg differ diff --git a/launch.json b/launch.json index 62dacf9b..781a0ff5 100644 --- a/launch.json +++ b/launch.json @@ -4,13 +4,6 @@ // Per altre informazioni, visitare: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "command": "npm run dev_noCheck", - "name": "DEV (no-check-TS)", - "request": "launch", - "type": "node-terminal", - "sourceMaps": false, - }, { "command": "npm run dev", "name": "DEV", diff --git a/package.json b/package.json index 811df17b..1e08a1cc 100755 --- a/package.json +++ b/package.json @@ -1,58 +1,60 @@ { - "name": "riso", + "name": "piuchebuono", "version": "1.1.23", - "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", + "description": "PiuCheBuono", + "productName": "PiuCheBuono", "author": "Surya", "private": true, "keywords": [], "license": "MIT", - "type": "module", "scripts": { "dev": "quasar dev", - "dev_noCheck": "SKIP_TSC=true quasar dev", "build": "quasar build", - "buildpwa": "quasar build -m pwa", + "buildpwa": "NODE_ENV=production quasar build -m pwa", "buildpwatest": "NODE_ENV=test quasar build -m pwa", - "type-check": "vue-tsc --noEmit", - "type-check:watch": "vue-tsc --noEmit --watch", - "buildspa": "quasar build -m spa", - "lint": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\"", + "buildspa": "NODE_ENV=production quasar build -m spa", + "lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ./", "lintfile": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ./ > file.out.txt", "lintfileNoJS": "eslint --ext .ts,.vue --ignore-path .gitignore ./ > file.out.txt", - "fix": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\" --ignore-pattern .gitignore ./ --fix > file.out.txt", - "pwa": "quasar dev -m pwa", - "spa": "quasar dev", - "debug": "quasar dev --mode debug", + "fix": "eslint --ext .ts,.vue --ignore-path .gitignore ./ --fix > file.out.txt", + "pwa": "NODE_ENV=development NODE_OPTIONS=--max_old_space_size=6096 DEBUG=v8:* quasar dev -m pwa", + "spa": "NODE_ENV=development NODE_OPTIONS=--max_old_space_size=4096 DEBUG=v8:* quasar dev --debug", + "debug": "NODE_ENV=development NODE_OPTIONS=--max_old_space_size=4096 DEBUG=v8:* quasar dev --mode debug", "test": "echo \"No test specified\" && exit 0", - "generate-sw": "workbox generateSW workbox-config.js", - "postinstall": "quasar prepare" + "generate-sw": "workbox generateSW workbox-config.js" }, "dependencies": { - "@cubejs-client/core": "^1.2.13", - "@quasar/extras": "^1.16.17", - "@quasar/quasar-ui-qcalendar": "^4.1.2", - "@types/leaflet": "^1.9.16", - "@vue/compat": "^3.5.13", - "@vue/compiler-sfc": "^3.5.13", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/runtime": "^7.25.7", + "@cubejs-client/core": "^0.36.4", + "@quasar/extras": "^1.16.12", + "@quasar/quasar-ui-qcalendar": "^4.0.0-beta.19", + "@types/leaflet": "^1.9.12", + "@vue/compat": "^3.5.10", + "@vue/compiler-sfc": "^3.5.10", + "@vue/eslint-config-standard": "^8.0.1", "@vuelidate/core": "^2.0.3", "@vuelidate/validators": "^2.0.4", - "acorn": "^8.14.0", + "acorn": "^8.12.1", "animate.css": "^4.1.1", "autoprefixer": "^10.4.20", - "axios": "^1.8.1", - "bcryptjs": "^3.0.2", - "chart.js": "^4.4.8", - "core-js": "^3.41.0", - "crypto-browserify": "^3.12.1", + "axios": "^1.7.7", + "bcryptjs": "^2.4.3", + "chart.js": "^4.4.4", + "core-js": "^3.38.1", + "crypto-browserify": "^3.12.0", "date-fns": "^4.1.0", - "echarts": "5.6.0", - "eslint-plugin-n": "^17.15.1", + "dotenv": "^16.4.5", + "echarts": "5.5.1", + "eslint-plugin-n": "^17.10.3", "eslint-plugin-quasar": "^1.1.0", - "graphql": "^16.10.0", + "graphql": "^16.9.0", "graphql-tag": "^2.12.6", - "gsap": "^3.12.7", - "html2pdf.js": "^0.10.3", + "gsap": "^3.12.5", + "html2pdf.js": "^0.10.2", "jquery": "^3.7.1", "js-cookie": "^3.0.5", "leaflet": "^1.9.4", @@ -61,24 +63,25 @@ "localforage": "^1.10.0", "lodash": "^4.17.21", "normalize.css": "^8.0.1", + "npm": "^10.8.3", "nprogress": "^0.2.0", - "pinia": "^3.0.1", + "pinia": "^2.2.4", "qrcode-vue3": "^1.7.1", - "quasar": "^2.18.0", + "quasar": "^2.17.0", "quasar-extras": "^2.0.9", "register-service-worker": "^1.7.2", - "scrollreveal": "^4.0.9", - "typescript-eslint": "^8.25.0", - "vee-validate": "^4.15.0", - "vue": "^3.5.13", + "typescript-eslint": "^8.8.0", + "vee-validate": "^4.13.2", + "vue": "^3.5.10", "vue-class-component": "^8.0.0-rc.1", "vue-country-code": "^1.1.3", "vue-echarts": "^7.0.3", - "vue-i18n": "^11.1.1", + "vue-i18n": "^9.14.1", "vue-idb": "^0.2.0", - "vue-image-zoomer": "^2.4.4", + "vue-image-zoomer": "^2.4.1", + "vue-loader": "^17.4.2", "vue-property-decorator": "^10.0.0-rc.3", - "vue-router": "^4.5.0", + "vue-router": "^4.4.5", "vue-scroll-reveal": "^2.1.0", "vue-social-sharing": "^4.0.0-alpha4", "vue-svgicon": "^4.0.0-alpha.3", @@ -87,58 +90,78 @@ "vue3-pdf-app": "^1.0.3", "vue3-qr-reader": "^1.0.0", "vuex": "^4.1.0", - "vuex-router-sync": "^6.0.0-rc.1", - "workbox-core": "^7.3.0", - "workbox-precaching": "^7.3.0", - "workbox-routing": "^7.3.0", - "workbox-strategies": "^7.3.0", - "workbox-window": "^7.3.0" + "vuex-router-sync": "^6.0.0-rc.1" }, "devDependencies": { - "@eslint/js": "^9.21.0", - "@intlify/unplugin-vue-i18n": "^6.0.3", - "@quasar/app-vite": "^2.1.1", + "@babel/core": "^7.25.7", + "@babel/plugin-transform-class-properties": "^7.25.7", + "@babel/plugin-transform-export-namespace-from": "^7.25.7", + "@babel/plugin-transform-json-strings": "^7.25.7", + "@babel/plugin-transform-numeric-separator": "^7.25.7", + "@babel/plugin-transform-runtime": "^7.25.7", + "@quasar/app-webpack": "^3.14.0", "@types/bcryptjs": "^2.4.6", + "@types/dotenv": "^8.2.0", "@types/google.maps": "^3.58.1", - "@types/jest": "^29.5.14", + "@types/jest": "^29.5.13", "@types/js-cookie": "^3.0.6", - "@types/node": "^22.13.8", + "@types/node": "22.7.4", "@types/nprogress": "^0.2.3", "@types/vue-tel-input": "^2.1.7", - "@types/vuelidate": "^0.7.22", - "@vue/devtools": "^7.7.2", - "@vue/eslint-config-prettier": "^10.2.0", - "@vue/eslint-config-typescript": "^14.4.0", - "autoprefixer": "^10.4.20", - "eslint": "9", + "@types/vuelidate": "^0.7.21", + "@typescript-eslint/eslint-plugin": "^8.8.0", + "@typescript-eslint/parser": "^8.8.0", + "babel-loader": "^9.2.1", + "copy-webpack-plugin": "^12.0.2", + "eslint": "^9.11.1", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.31.0", - "eslint-plugin-vue": "^9.32.0", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^7.1.0", + "eslint-plugin-vue": "^9.28.0", "file-loader": "^6.2.0", - "globals": "^16.0.0", - "http-proxy-middleware": "^3.0.3", + "fork-ts-checker-webpack-plugin": "^9.0.2", + "friendly-errors-webpack-plugin": "^1.7.0", + "html-webpack-plugin": "^5.6.0", + "http-proxy-middleware": "^3.0.2", "jest": "^29.7.0", "json-loader": "^0.5.7", - "nodemon": "^3.1.9", - "npm-check-updates": "^17.1.15", - "parcel": "^2.13.3", - "postcss": "^8.5.3", + "node-sass": "^9.0.0", + "npm-check-updates": "^17.1.3", + "optimize-css-assets-webpack-plugin": "^6.0.1", + "parcel": "^2.12.0", + "postcss": "^8.4.47", "postcss-loader": "^8.1.1", - "prettier": "3", + "sass-loader": "^16.0.2", "strip-ansi": "=7.1.0", - "ts-jest": "^29.2.6", - "typescript": "~5.8.2", - "vite-plugin-checker": "^0.9.0", + "ts-jest": "^29.2.5", + "ts-loader": "^9.5.1", + "typescript": "5.6.2", "vue-cli-plugin-element-ui": "^1.1.4", - "vue-tsc": "^2.2.6", "vueify": "^9.4.1", - "workbox-build": "^7.3.0" + "webpack": "^5.95.0", + "webpack-dashboard": "^3.3.8", + "workbox-webpack-plugin": "^7.1.0" }, "browser": { "crypto": false }, + "browserslist": [ + "last 100 Chrome versions", + "last 40 Firefox versions", + "last 20 Edge versions", + "last 55 Safari versions", + "last 90 Android versions", + "last 250 ChromeAndroid versions", + "last 60 FirefoxAndroid versions", + "last 35 iOS versions", + "last 10 Opera versions", + "> 0.03%", + "not dead" + ], "engines": { - "node": "^28 || ^26 || ^24 || ^22 || ^20 || ^18", - "npm": ">= 6.13.4", + "node": ">= 18.18.0", + "npm": ">= 6.14.8", "yarn": ">= 1.21.1" } } \ No newline at end of file diff --git a/postcss.config.js b/postcss.config.js index 94ff1e7d..7f56ee3c 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,9 +1,8 @@ -// https://github.com/michael-ciniawsky/postcss-load-config +// postcss.config.js -import autoprefixer from 'autoprefixer' -// import rtlcss from 'postcss-rtlcss' +const autoprefixer = require('autoprefixer'); -export default { +module.exports = { plugins: [ // https://github.com/postcss/autoprefixer autoprefixer({ @@ -26,7 +25,7 @@ export default { // If you want to support RTL css, then // 1. yarn/pnpm/bun/npm install postcss-rtlcss // 2. optionally set quasar.config.js > framework > lang to an RTL language - // 3. uncomment the following line (and its import statement above): - // rtlcss() + // 3. uncomment the following line: + // require('postcss-rtlcss')() ] -} +}; diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 00000000..765302c2 Binary files /dev/null and b/public/favicon.ico differ diff --git a/quasar.config.ts b/quasar.config.ts index 669d2658..5531735b 100644 --- a/quasar.config.ts +++ b/quasar.config.ts @@ -215,7 +215,7 @@ export default defineConfig((ctx) => { // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer devServer: { https: false, - port: ctx.mode.spa ? 8084 : 8094, + port: ctx.mode.spa ? 8088 : 8098, vueDevtools: false, // automatically opening remote Vue Devtools open: false, // opens browser window automatically hot: true, // Disable hot module replacement diff --git a/scripts/_ALL_SITES/comunitanuovomondo.app/.env.production b/scripts/_ALL_SITES/comunitanuovomondo.app/.env.production index b53b8e85..e7268f73 100644 --- a/scripts/_ALL_SITES/comunitanuovomondo.app/.env.production +++ b/scripts/_ALL_SITES/comunitanuovomondo.app/.env.production @@ -1,27 +1,11 @@ -APP_VERSION="1.1.23" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="13" +VITE_APP_ID="...." +VITE_APP_URL="https://riso.app" +VITE_MONGODB_HOST="https://www.freeplanet.app:3000" +VITE_LOGO_REG='riso-logo-full.png' +VITE_PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw" +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST=0 DIRECTORY_LOCAL=newfreeplanet DIRECTORY_SERVER=freeplanet_serverside SERVERDIR_WEBSITE=riso.app SERVERPW_WEBSITE=pwdadmin@1AOK -APP_URL="https://riso.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://www.freeplanet.app:3000" -LOGO_REG='riso-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="------" -PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST=0 diff --git a/scripts/_ALL_SITES/comunitanuovomondo.app/.env.test b/scripts/_ALL_SITES/comunitanuovomondo.app/.env.test index aaa688cb..f8d3beae 100755 --- a/scripts/_ALL_SITES/comunitanuovomondo.app/.env.test +++ b/scripts/_ALL_SITES/comunitanuovomondo.app/.env.test @@ -1,28 +1,11 @@ -APP_VERSION="1.1.23" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="16" +VITE_APP_ID="16" +VITE_APP_URL="https://test.piuchebuono.app" +VITE_MONGODB_HOST="https://test.freeplanet.app:3001" +VITE_LOGO_REG='piuchebuono-logo-full.png' +VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST=1 DIRECTORY_LOCAL=newfreeplanet DIRECTORY_SERVER=test.freeplanet_serverside SERVERDIR_WEBSITE="test.piuchebuono.app" SERVERPW_WEBSITE="pwdadmin@1AOK" -APP_URL="https://test.piuchebuono.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://test.freeplanet.app:3001" -LOGO_REG='piuchebuono-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="" -PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" -IN_CONSTRUCTION="0" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST=1 diff --git a/scripts/_ALL_SITES/gruppomacro.app/.env.test b/scripts/_ALL_SITES/gruppomacro.app/.env.test index 2930c12b..22432a2d 100755 --- a/scripts/_ALL_SITES/gruppomacro.app/.env.test +++ b/scripts/_ALL_SITES/gruppomacro.app/.env.test @@ -1,28 +1,9 @@ -APP_VERSION="1.1.23" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="18" +VITE_APP_ID="18" DIRECTORY_LOCAL=newfreeplanet DIRECTORY_SERVER=/var/www/nodejs_test.piuchebuono_server SERVERDIR_WEBSITE="/var/www/test.gruppomacro.app" -APP_URL="https://test.gruppomacro.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://testapi.gruppomacro.app" -LOGO_REG='gruppomacro-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="" -PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" -IN_CONSTRUCTION="0" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST=1 -API_KEY_MSSQL="m68yADSr123MIVIDA@154$DSAGVOK" \ No newline at end of file +VITE_APP_URL="https://test.gruppomacro.app" +VITE_MONGODB_HOST="https://testapi.gruppomacro.app" +VITE_LOGO_REG='gruppomacro-logo-full.png' +VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" +VITE_VUE_APP_ISTEST=1 \ No newline at end of file diff --git a/scripts/_ALL_SITES/kolibrilab.it/.env.production b/scripts/_ALL_SITES/kolibrilab.it/.env.production index f126da3e..8f1dd466 100644 --- a/scripts/_ALL_SITES/kolibrilab.it/.env.production +++ b/scripts/_ALL_SITES/kolibrilab.it/.env.production @@ -1,27 +1,11 @@ -APP_VERSION="0.5.28" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="16" +VITE_APP_ID="16" +VITE_APP_URL="https://kolibrilab.it" +VITE_MONGODB_HOST="https://www.freeplanet.app:3000" +VITE_LOGO_REG='kolibrilab-logo-full.png' +VITE_PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw" +VITE_DEBUG="0" +VITE_VUE_APP_ISTEST=0 DIRECTORY_LOCAL=newfreeplanet DIRECTORY_SERVER=freeplanet_serverside SERVERDIR_WEBSITE=kolibrilab.it SERVERPW_WEBSITE=pwdadmin@1AOK -APP_URL="https://kolibrilab.it" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://www.freeplanet.app:3000" -LOGO_REG='kolibrilab-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="------" -PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST=0 diff --git a/scripts/_ALL_SITES/kolibrilab.it/.env.test b/scripts/_ALL_SITES/kolibrilab.it/.env.test index 930ae416..4bad83f1 100755 --- a/scripts/_ALL_SITES/kolibrilab.it/.env.test +++ b/scripts/_ALL_SITES/kolibrilab.it/.env.test @@ -1,28 +1,10 @@ -APP_VERSION="0.5.27" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="16" +VITE_APP_ID="16" +VITE_APP_URL="https://test.kolibrilab.it" +VITE_MONGODB_HOST="https://test.freeplanet.app:3001" +VITE_LOGO_REG='kolibrilab-logo-full.png' +VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" +VITE_VUE_APP_ISTEST=1 DIRECTORY_LOCAL=newfreeplanet DIRECTORY_SERVER=test.freeplanet_serverside SERVERDIR_WEBSITE="test.kolibrilab.it" SERVERPW_WEBSITE="pwdadmin@1AOK" -APP_URL="https://test.kolibrilab.it" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://test.freeplanet.app:3001" -LOGO_REG='kolibrilab-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="" -PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" -IN_CONSTRUCTION="0" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST=1 diff --git a/scripts/_ALL_SITES/piuchebuono.app/.env.production b/scripts/_ALL_SITES/piuchebuono.app/.env.production new file mode 100644 index 00000000..eed57b23 --- /dev/null +++ b/scripts/_ALL_SITES/piuchebuono.app/.env.production @@ -0,0 +1,11 @@ +VITE_APP_ID="13" +VITE_APP_URL="https://test.riso.app" +VITE_MONGODB_HOST="https://testapi.riso.app" +VITE_LOGO_REG='riso-logo-full.png' +VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST=1 +DIRECTORY_LOCAL=myprojplanet_vite +DIRECTORY_SERVER=/var/www/nodejs_test.riso_server +SERVERDIR_WEBSITE="/var/www/test.riso.app" +SERVERPW_WEBSITE="pwdadmin@1AOK" \ No newline at end of file diff --git a/scripts/_ALL_SITES/piuchebuono.app/.env.test b/scripts/_ALL_SITES/piuchebuono.app/.env.test index 28031d46..de806247 100755 --- a/scripts/_ALL_SITES/piuchebuono.app/.env.test +++ b/scripts/_ALL_SITES/piuchebuono.app/.env.test @@ -1,27 +1,9 @@ -APP_VERSION="1.1.23" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="17" +VITE_APP_ID="17" +VITE_APP_URL="https://test.piuchebuono.app" +VITE_MONGODB_HOST="https://testapi.piuchebuono.app" +VITE_LOGO_REG="piuchebuono-logo-full.png" +VITE_PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" +VITE_VUE_APP_ISTEST="1" DIRECTORY_LOCAL="newfreeplanet" DIRECTORY_SERVER="/var/www/nodejs_test.piuchebuono_server" SERVERDIR_WEBSITE="/var/www/test.piuchebuono.app" -APP_URL="https://test.piuchebuono.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://testapi.piuchebuono.app" -LOGO_REG="piuchebuono-logo-full.png" -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="" -PUBLICKEY_PUSH="BJgo8XR_upbnbMLWgCAUELo6DK7dRXffYAnFOxbaMMz5favBgcQBKT-eISqouO-jRad4Sw8l5nd2wCF6KorGiTc" -IN_CONSTRUCTION="0" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST="1" diff --git a/scripts/_ALL_SITES/piuchebuono.app/db/lang/languages.ts b/scripts/_ALL_SITES/piuchebuono.app/db/lang/languages.ts new file mode 100644 index 00000000..8a37deee --- /dev/null +++ b/scripts/_ALL_SITES/piuchebuono.app/db/lang/languages.ts @@ -0,0 +1,9 @@ +// import it from 'quasar/lang/it.mjs'; +// import en from 'quasar/lang/en.mjs'; + +// const languages = { +// it, +// en, +// }; + +// export default languages; diff --git a/scripts/_ALL_SITES/piuchebuono.app/quasar.conf.js b/scripts/_ALL_SITES/piuchebuono.app/quasar.conf.js index 964ee14f..68e59faf 100755 --- a/scripts/_ALL_SITES/piuchebuono.app/quasar.conf.js +++ b/scripts/_ALL_SITES/piuchebuono.app/quasar.conf.js @@ -252,7 +252,7 @@ module.exports = configure((ctx) => ({ 'Loading', 'AppVisibility', 'LocalStorage', - 'SessionStorage', + 'SessionStorage', ], get plugins_1() { return this._plugins; @@ -311,70 +311,6 @@ module.exports = configure((ctx) => ({ // chain.plugin('eslint-webpack-plugin') // .use(ESLintPlugin, [{ extensions: ['js'] }]) }, - - manifest: { - name: 'Più che Buono', - short_name: 'PiuCheBuono', - description: 'PiuCheBuono è un GAS e Bottega', - display: 'standalone', - orientation: 'portrait', - background_color: '#fff', - theme_color: '#027be3', - scope: "/", - id: "/?homescreen=1", - start_url: "/?homescreen=1", - icons: [ - { - src: 'images/pcb-android-icon-512x512.png', - sizes: '512x512', - type: 'image/png', - }, - { - src: 'images/pcb-android-icon-384x384.png', - sizes: '384x384', - type: 'image/png', - }, - { - src: 'images/pcb-android-icon-192x192.png', - sizes: '192x192', - type: 'image/png', - }, - { - src: 'images/pcb-android-icon-144x144.png', - sizes: '144x144', - type: 'image/png', - }, - { - src: 'images/pcb-android-icon-96x96.png', - sizes: '96x96', - type: 'image/png', - }, - { - src: 'images/pcb-apple-icon-120x120.png', - sizes: '120x120', - type: 'image/png', - }, - { - src: 'images/pcb-apple-icon-144x144.png', - sizes: '144x144', - type: 'image/png', - }, - { - src: 'images/pcb-apple-icon-152x152.png', - sizes: '152x152', - type: 'image/png', - }, - { - src: 'images/pcb-apple-icon-180x180.png', - sizes: '180x180', - type: 'image/png', - }, - ], - related_applications: [{ - "platform": "webapp", - "url": "https://www.piuchebuono.app/manifest.json" - }] - }, }, // Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova diff --git a/scripts/_ALL_SITES/piuchebuono.app/quasar.config.ts b/scripts/_ALL_SITES/piuchebuono.app/quasar.config.ts new file mode 100644 index 00000000..5531735b --- /dev/null +++ b/scripts/_ALL_SITES/piuchebuono.app/quasar.config.ts @@ -0,0 +1,481 @@ +import { defineConfig } from '#q-app/wrappers' +import { fileURLToPath } from 'node:url'; + +import path from 'path' + +export default defineConfig((ctx) => { + return { + // https://v2.quasar.dev/quasar-cli/supporting-ts + + // https://v2.quasar.dev/quasar-cli/prefetch-feature + // preFetch: true, + + // app boot file (/src/boot) + // --> boot files are part of "main.js" + // https://v2.quasar.dev/quasar-cli/boot-files + // boot: ['vue-i18n', 'vue-meta', 'axios', 'vee-validate', 'myconfig', 'local-storage', 'error-handler', 'globalroutines', 'vue-idb', 'dragula', 'guard'], + boot: ['i18n', 'axios', 'pinia', 'vee-validate', + 'myconfig', + 'local-storage', 'error-handler', 'globalroutines', + 'calendar', 'social-sharing', 'timeago', 'guard'], + + // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css + css: [ + 'app.scss', + // '~quasar-ui-qcalendar/src/css/calendar-day.sass' + ], + + // https://github.com/quasarframework/quasar/tree/dev/extras + extras: [ + // 'ionicons-v4', + // 'mdi-v5', + // 'eva-icons', + // 'themify', + // 'line-awesome', + 'ionicons-v4', + // 'mdi-v3', + 'fontawesome-v5', + 'roboto-font', // optional, you are not bound to it + 'material-icons', // optional, you are not bound to it + 'material-icons-outlined', + ], + + // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build + + build: { + target: { + browser: ['es2022', 'firefox115', 'chrome115', 'safari14'], + node: 'node20' + }, + // env: envparser(), + // versionCode: package.version, + vueRouterMode: 'history', + analyze: false, // true + transpile: true, + transpileDependencies: [ + /quasar-ui-qcalendar[\\/]src/ + ], + beforeDev(api) { + // Se la variabile d'ambiente SKIP_TSC è impostata, disabilita il type checking + if (process.env.SKIP_TSC === 'true') { + console.log('⚠️ TypeScript type checking is disabled'); + + // Disattiva TypeScript checking per Vite + if (api && api.chainWebpack) { + api.chainWebpack((chain) => { + chain.plugin('fork-ts-checker').tap((args) => { + args[0].typescript = false; + return args; + }); + }); + } + } + }, + // @quasar/app-vite v2.0.3+ + envFilter(originalEnv) { + const newEnv = {} + for (const key in originalEnv) { + /* ...decide if it goes in or not... */ + if (true) { + newEnv[key] = originalEnv[key] + } + } + + // remember to return your processed env + return newEnv + }, + + typescript: { + strict: false, + vueShim: true, + extendTsConfig(tsConfig) { + // You can use this hook to extend tsConfig dynamically + // For basic use cases, you can still update the usual tsconfig.json file to override some settings + }, + + /** + * Folder where Quasar CLI should look for .env* files. + * Can be an absolute path or a relative path to project root directory. + * + * @default project root directory + */ + // envFolder?: string + /** + * Additional .env* files to be loaded. + * Each entry can be an absolute path or a relative path to quasar.config > build > envFolder. + * + * @example ['.env.somefile', '../.env.someotherfile'] + */ + // envFiles?: string[]; + }, + + extendViteConf(viteConf, { isServer, isClient }) { + viteConf.resolve = { + ...(viteConf.resolve || {}), + alias: { + ...viteConf.resolve.alias, + '#q-app': path.resolve(__dirname, 'node_modules/quasar/app'), // Alias per #q-app + 'app': path.resolve(__dirname), + 'boot': path.resolve(__dirname, 'src/boot'), + 'src': path.resolve(__dirname, 'src'), + 'statics': path.resolve(__dirname, 'src/statics'), + 'components': path.resolve(__dirname, 'src/components'), + 'views': path.resolve(__dirname, 'src/views/index.ts'), + 'icons': path.resolve(__dirname, 'public/icons'), + 'images': path.resolve(__dirname, 'src/assets/images'), + 'maps': path.resolve(__dirname, 'public/maps'), + 'classes': path.resolve(__dirname, 'src/classes/index.ts'), + 'fonts': path.resolve(__dirname, 'src/assets/fonts'), + 'utils': path.resolve(__dirname, 'src/utils/index.ts'), + 'css': path.resolve(__dirname, 'public/css/variables.scss'), + 'router': path.resolve(__dirname, 'src/router/index.ts'), + 'validators': path.resolve(__dirname, 'src/utils/validators.ts'), + 'methods': path.resolve(__dirname, 'src/utils/methods.ts'), + 'filters': path.resolve(__dirname, 'src/utils/filters.ts'), + 'api': path.resolve(__dirname, 'src/store/Api/index.ts'), + 'paths': path.resolve(__dirname, 'src/store/Api/ApiRoutes.ts'), + 'modules': path.resolve(__dirname, 'src/store/Modules/index.ts'), + 'model': path.resolve(__dirname, 'src/model/index.ts'), + '@components': path.resolve(__dirname, 'src/components'), + '@boot': path.resolve(__dirname, 'src/boot'), + '@costanti': path.resolve(__dirname, 'src/store/Modules/costanti.ts'), + '@views': path.resolve(__dirname, 'src/views/index.ts'), + '@src': path.resolve(__dirname, 'src'), + '@css': path.resolve(__dirname, 'src/public/css/variables.scss'), + '@icons': path.resolve(__dirname, 'src/public/public/icons'), + '@images': path.resolve(__dirname, 'src/public/images/*'), + '@maps': path.resolve(__dirname, 'src/public/maps/*'), + '@classes': path.resolve(__dirname, 'src/classes/index.ts'), + '@utils': path.resolve(__dirname, 'src/utils/index.ts'), + '@router': path.resolve(__dirname, 'src/router/index.ts'), + '@validators': path.resolve(__dirname, 'src/utils/validators.ts'), + '@methods': path.resolve(__dirname, 'src/utils/methods.ts'), + '@api': path.resolve(__dirname, 'src/store/Api/index.ts'), + '@paths': path.resolve(__dirname, 'src/store/Api/ApiRoutes.ts'), + '@storemod': path.resolve(__dirname, 'src/store/Modules'), + '@store': path.resolve(__dirname, 'src/store'), + '@tools': path.resolve(__dirname, 'src/store/Modules/tools.ts'), + '@modules': path.resolve(__dirname, 'src/store/Modules/index.ts'), + '@model': path.resolve(__dirname, 'src/model/index.ts'), + }, + }; + }, + + vitePlugins: [ + ['@intlify/unplugin-vue-i18n/vite', { + // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false` + // compositionOnly: false, + + // if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}', + // you need to set `runtimeOnly: false` + // runtimeOnly: false, + + ssr: ctx.modeName === 'ssr', + + // you need to set i18n resource including paths ! + include: [fileURLToPath(new URL('./src/i18n', import.meta.url))] + }], + + ['vite-plugin-checker', { + vueTsc: false, + OFF_eslint: { + lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{ts,js,mjs,cjs,vue}"', + useFlatConfig: true + } + }, { server: false }] + + + ] + + // polyfillModulePreload: true, + + // viteVuePluginOptions: {}, + + // extractCSS: false, + // transpile: false, + + // Add dependencies for transpiling with Babel (Array of string/regex) + // (from node_modules, which are by default not transpiled). + // Applies only if "transpile" is set to true. + // transpileDependencies: [], + + // rtl: true, // https://v2.quasar.dev/options/rtl-support + // preloadChunks: true, + // showProgress: false, + // gzip: true, + // analyze: true, + + // Options below are automatically set depending on the env, set them if you want to override + // extractCSS: false, + + // https://v2.quasar.dev/quasar-cli/handling-webpack + // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer + devServer: { + https: false, + port: ctx.mode.spa ? 8088 : 8098, + vueDevtools: false, // automatically opening remote Vue Devtools + open: false, // opens browser window automatically + hot: true, // Disable hot module replacement + headers: { + 'Access-Control-Allow-Origin': '*', + 'Access-Control-Allow-Headers': '*', + }, + }, + + // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework + framework: { + config: {}, + + // iconSet: 'material-icons', // Quasar icon set + // lang: 'en-US', // Quasar language pack + + // For special cases outside of where the auto-import strategy can have an impact + // (like functional components as one of the examples), + // you can manually specify Quasar components/directives to be available everywhere: + // + components: [ + 'QLayout', + 'QDrawer', + 'QItemSection', + 'QHeader', + 'QFooter', + 'QPageContainer', + 'QPage', + 'QPopupProxy', + 'QToolbar', + 'QToolbarTitle', + 'QBtn', + 'QBtnDropdown', + 'QColor', + 'QIcon', + 'QList', + 'QKnob', + 'QItemLabel', + 'QItem', + 'QCard', + 'QMarkupTable', + 'QSpace', + 'QDialog', + 'QBadge', + 'QForm', + 'QCardSection', + 'QCardActions', + 'QField', + 'QInput', + 'QSelect', + 'QMenu', + 'QToggle', + 'QFab', + 'QInfiniteScroll', + 'QAjaxBar', + 'QChip', + 'QExpansionItem', + 'QCheckbox', + 'QBanner', + 'QInnerLoading', + 'QSpinnerGears', + 'QSpinnerDots', + 'QDate', + 'QTime', + 'QSlideTransition', + 'QTable', + 'QTh', + 'QTr', + 'QTd', + 'QLinearProgress', + 'QSlider', + 'QPopupEdit', + 'QCarousel', + 'QCarouselControl', + 'QCarouselSlide', + 'QPageScroller', + 'QAvatar', + 'QImg', + 'QSplitter', + 'QRating', + 'QParallax', + 'QTab', + 'QTabs', + 'QTabPanels', + 'QTabPanel', + 'QTree', + 'QSeparator', + ], + directives: [ + 'Ripple', + 'ClosePopup', + ], + _plugins: [ + 'Meta', + 'Dialog', + 'Notify', + 'Cookies', + 'Loading', + 'AppVisibility', + 'LocalStorage', + 'SessionStorage', + ], + get plugins_1() { + return this._plugins; + }, + set plugins_1(value) { + this._plugins = value; + }, + get plugins() { + return this._plugins; + }, + set plugins(value) { + this._plugins = value; + }, + iconSet: 'fontawesome-v5', + lang: 'it', // Quasar language + }, + + animations: 'all', // --- includes all animations + // https://v2.quasar.dev/options/animations + // animations: [], + + // https://v2.quasar.dev/quasar-cli/developing-ssr/configuring-ssr + ssr: { + pwa: false, + + // manualStoreHydration: true, + // manualPostHydrationTrigger: true, + + prodPort: 3000, // The default port that the production server should use + // (gets superseded if import.meta.env.PORT is specified at runtime) + + maxAge: 1000 * 60 * 60 * 24 * 30, + // Tell browser when a file from the server should expire from cache (in ms) + + + middlewares: [ + ctx.prod ? 'compression' : '', + 'render', // keep this as last one + ], + }, + + sourceFiles: { + pwaRegisterServiceWorker: 'src-pwa/register-service-worker', + pwaServiceWorker: 'src-pwa/custom-service-worker', + // pwaManifestFile: 'src-pwa/manifest.json', + // ... + }, + + // https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa + pwa: { + workboxPluginMode: 'InjectManifest', // 'GenerateSW' or 'InjectManifest' + workboxOptions: { + swSrc: 'src-pwa/custom-service-worker.js', // Assicurati che il file esista + }, + extendGenerateSWOptions(cfg) { + cfg.skipWaiting = false + cfg.clientsClaim = false + }, + // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts]) + // if using workbox in InjectManifest mode + manifest: { + 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', + theme_color: '#027be3', + scope: "/", + id: "/?homescreen=1", + start_url: "/?homescreen=1", + icons: [ + { + src: 'images/riso-android-icon-512x512.png', + sizes: '512x512', + type: 'image/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/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.riso.app/manifest.json" + }] + }, + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova + cordova: { + // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor + capacitor: { + hideSplashscreen: true, + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron + electron: { + bundler: 'packager', // 'packager' or 'builder' + + packager: { + // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options + + // OS X / Mac App Store + // appBundleId: '', + // appCategoryType: '', + // osxSign: '', + // protocol: 'myapp://path', + + // Windows only + // win32metadata: { ... } + }, + + builder: { + // https://www.electron.build/configuration/configuration + + appId: 'Riso', + }, + + + }, + } +}) diff --git a/scripts/_ALL_SITES/riso.app/.env.production b/scripts/_ALL_SITES/riso.app/.env.production index b53b8e85..eed57b23 100644 --- a/scripts/_ALL_SITES/riso.app/.env.production +++ b/scripts/_ALL_SITES/riso.app/.env.production @@ -1,27 +1,11 @@ -APP_VERSION="1.1.23" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="13" -DIRECTORY_LOCAL=newfreeplanet -DIRECTORY_SERVER=freeplanet_serverside -SERVERDIR_WEBSITE=riso.app -SERVERPW_WEBSITE=pwdadmin@1AOK -APP_URL="https://riso.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://www.freeplanet.app:3000" -LOGO_REG='riso-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="------" -PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST=0 +VITE_APP_ID="13" +VITE_APP_URL="https://test.riso.app" +VITE_MONGODB_HOST="https://testapi.riso.app" +VITE_LOGO_REG='riso-logo-full.png' +VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" +VITE_DEBUG="1" +VITE_VUE_APP_ISTEST=1 +DIRECTORY_LOCAL=myprojplanet_vite +DIRECTORY_SERVER=/var/www/nodejs_test.riso_server +SERVERDIR_WEBSITE="/var/www/test.riso.app" +SERVERPW_WEBSITE="pwdadmin@1AOK" \ No newline at end of file diff --git a/scripts/_ALL_SITES/riso.app/.env.test b/scripts/_ALL_SITES/riso.app/.env.test index aaa688cb..e77eefed 100755 --- a/scripts/_ALL_SITES/riso.app/.env.test +++ b/scripts/_ALL_SITES/riso.app/.env.test @@ -1,28 +1,10 @@ -APP_VERSION="1.1.23" -SERVICE_WORKER_FILE="service-worker.js" -APP_ID="16" +VITE_APP_ID="16" +VITE_APP_URL="https://test.piuchebuono.app" +VITE_MONGODB_HOST="https://test.freeplanet.app:3001" +VITE_LOGO_REG='piuchebuono-logo-full.png' +VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" +VITE_VUE_APP_ISTEST=1 DIRECTORY_LOCAL=newfreeplanet DIRECTORY_SERVER=test.freeplanet_serverside SERVERDIR_WEBSITE="test.piuchebuono.app" SERVERPW_WEBSITE="pwdadmin@1AOK" -APP_URL="https://test.piuchebuono.app" -URL_FACEBOOK="" -PROVA_PAOLO="" -LANG_DEFAULT="it" -PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF" -MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T" -MONGODB_HOST="https://test.freeplanet.app:3001" -LOGO_REG='piuchebuono-logo-full.png' -TEST_NAME="" -TEST_SURNAME="" -TEST_EMAIL="" -TEST_USERNAME="" -TEST_PASSWORD="" -TEST_APORTADOR="" -PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs" -IN_CONSTRUCTION="0" -DEBUG="1" -TELEGRAM_SUPPORT="" -PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a" -TEST_CELL="" -VUE_APP_ISTEST=1 diff --git a/scripts/_ALL_SITES/riso.app/db/lang/languages.ts b/scripts/_ALL_SITES/riso.app/db/lang/languages.ts new file mode 100644 index 00000000..8a37deee --- /dev/null +++ b/scripts/_ALL_SITES/riso.app/db/lang/languages.ts @@ -0,0 +1,9 @@ +// import it from 'quasar/lang/it.mjs'; +// import en from 'quasar/lang/en.mjs'; + +// const languages = { +// it, +// en, +// }; + +// export default languages; diff --git a/scripts/_ALL_SITES/riso.app/db/static_data.ts b/scripts/_ALL_SITES/riso.app/db/static_data.ts index de1ad4f1..fcbce6cc 100755 --- a/scripts/_ALL_SITES/riso.app/db/static_data.ts +++ b/scripts/_ALL_SITES/riso.app/db/static_data.ts @@ -1,4 +1,4 @@ -import { +import type { IListRoutes, ILang, IPreloadImages, @@ -301,7 +301,7 @@ function getDynamicPages(site: ISites): IListRoutes[] { export function firstimagehome() { - let img = 'statics/images/background.jpg' + const img = 'statics/images/background.jpg' return img } diff --git a/scripts/_ALL_SITES/riso.app/favicon.ico b/scripts/_ALL_SITES/riso.app/favicon.ico index d283c964..765302c2 100644 Binary files a/scripts/_ALL_SITES/riso.app/favicon.ico and b/scripts/_ALL_SITES/riso.app/favicon.ico differ diff --git a/images/layers-2x.png b/scripts/_ALL_SITES/riso.app/images/layers-2x.png similarity index 100% rename from images/layers-2x.png rename to scripts/_ALL_SITES/riso.app/images/layers-2x.png diff --git a/images/layers.png b/scripts/_ALL_SITES/riso.app/images/layers.png similarity index 100% rename from images/layers.png rename to scripts/_ALL_SITES/riso.app/images/layers.png diff --git a/images/marker-icon-2x.png b/scripts/_ALL_SITES/riso.app/images/marker-icon-2x.png similarity index 100% rename from images/marker-icon-2x.png rename to scripts/_ALL_SITES/riso.app/images/marker-icon-2x.png diff --git a/images/marker-icon.png b/scripts/_ALL_SITES/riso.app/images/marker-icon.png similarity index 100% rename from images/marker-icon.png rename to scripts/_ALL_SITES/riso.app/images/marker-icon.png diff --git a/scripts/_ALL_SITES/riso.app/package.json b/scripts/_ALL_SITES/riso.app/package.json index 4cea300d..811df17b 100755 --- a/scripts/_ALL_SITES/riso.app/package.json +++ b/scripts/_ALL_SITES/riso.app/package.json @@ -7,54 +7,52 @@ "private": true, "keywords": [], "license": "MIT", + "type": "module", "scripts": { "dev": "quasar dev", - "build": "NODE_ENV=production quasar build", - "buildpwa": "NODE_ENV=production quasar build -m pwa", + "dev_noCheck": "SKIP_TSC=true quasar dev", + "build": "quasar build", + "buildpwa": "quasar build -m pwa", "buildpwatest": "NODE_ENV=test quasar build -m pwa", - "buildspa": "NODE_ENV=production quasar build -m spa", - "lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ./", + "type-check": "vue-tsc --noEmit", + "type-check:watch": "vue-tsc --noEmit --watch", + "buildspa": "quasar build -m spa", + "lint": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\"", "lintfile": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ./ > file.out.txt", "lintfileNoJS": "eslint --ext .ts,.vue --ignore-path .gitignore ./ > file.out.txt", - "fix": "eslint --ext .ts,.vue --ignore-path .gitignore ./ --fix > file.out.txt", - "pwa": "NODE_ENV=development NODE_OPTIONS=--max_old_space_size=6096 DEBUG=v8:* quasar dev -m pwa", - "spa": "NODE_ENV=development NODE_OPTIONS=--max_old_space_size=4096 DEBUG=v8:* quasar dev --debug", - "debug": "NODE_ENV=development NODE_OPTIONS=--max_old_space_size=4096 DEBUG=v8:* quasar dev --mode debug", + "fix": "eslint -c ./eslint.config.js \"./src*/**/*.{ts,js,cjs,mjs,vue}\" --ignore-pattern .gitignore ./ --fix > file.out.txt", + "pwa": "quasar dev -m pwa", + "spa": "quasar dev", + "debug": "quasar dev --mode debug", "test": "echo \"No test specified\" && exit 0", - "generate-sw": "workbox generateSW workbox-config.js" + "generate-sw": "workbox generateSW workbox-config.js", + "postinstall": "quasar prepare" }, "dependencies": { - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-export-namespace-from": "^7.18.9", - "@babel/plugin-proposal-json-strings": "^7.18.6", - "@babel/plugin-proposal-numeric-separator": "^7.18.6", - "@babel/runtime": "^7.25.7", - "@cubejs-client/core": "^0.36.4", - "@quasar/extras": "^1.16.12", - "@quasar/quasar-ui-qcalendar": "^4.0.0-beta.19", - "@types/leaflet": "^1.9.12", - "@vue/compat": "^3.5.10", - "@vue/compiler-sfc": "^3.5.10", - "@vue/eslint-config-standard": "^8.0.1", + "@cubejs-client/core": "^1.2.13", + "@quasar/extras": "^1.16.17", + "@quasar/quasar-ui-qcalendar": "^4.1.2", + "@types/leaflet": "^1.9.16", + "@vue/compat": "^3.5.13", + "@vue/compiler-sfc": "^3.5.13", "@vuelidate/core": "^2.0.3", "@vuelidate/validators": "^2.0.4", - "acorn": "^8.12.1", + "acorn": "^8.14.0", "animate.css": "^4.1.1", "autoprefixer": "^10.4.20", - "axios": "^1.7.7", - "bcryptjs": "^2.4.3", - "chart.js": "^4.4.4", - "core-js": "^3.38.1", - "crypto-browserify": "^3.12.0", + "axios": "^1.8.1", + "bcryptjs": "^3.0.2", + "chart.js": "^4.4.8", + "core-js": "^3.41.0", + "crypto-browserify": "^3.12.1", "date-fns": "^4.1.0", - "dotenv": "^16.4.5", - "echarts": "5.5.1", - "eslint-plugin-n": "^17.10.3", + "echarts": "5.6.0", + "eslint-plugin-n": "^17.15.1", "eslint-plugin-quasar": "^1.1.0", - "graphql": "^16.9.0", + "graphql": "^16.10.0", "graphql-tag": "^2.12.6", - "gsap": "^3.12.5", - "html2pdf.js": "^0.10.2", + "gsap": "^3.12.7", + "html2pdf.js": "^0.10.3", "jquery": "^3.7.1", "js-cookie": "^3.0.5", "leaflet": "^1.9.4", @@ -63,25 +61,24 @@ "localforage": "^1.10.0", "lodash": "^4.17.21", "normalize.css": "^8.0.1", - "npm": "^10.8.3", "nprogress": "^0.2.0", - "pinia": "^2.2.4", + "pinia": "^3.0.1", "qrcode-vue3": "^1.7.1", - "quasar": "^2.17.0", + "quasar": "^2.18.0", "quasar-extras": "^2.0.9", "register-service-worker": "^1.7.2", - "typescript-eslint": "^8.8.0", - "vee-validate": "^4.13.2", - "vue": "^3.5.10", + "scrollreveal": "^4.0.9", + "typescript-eslint": "^8.25.0", + "vee-validate": "^4.15.0", + "vue": "^3.5.13", "vue-class-component": "^8.0.0-rc.1", "vue-country-code": "^1.1.3", "vue-echarts": "^7.0.3", - "vue-i18n": "^9.14.1", + "vue-i18n": "^11.1.1", "vue-idb": "^0.2.0", - "vue-image-zoomer": "^2.4.1", - "vue-loader": "^17.4.2", + "vue-image-zoomer": "^2.4.4", "vue-property-decorator": "^10.0.0-rc.3", - "vue-router": "^4.4.5", + "vue-router": "^4.5.0", "vue-scroll-reveal": "^2.1.0", "vue-social-sharing": "^4.0.0-alpha4", "vue-svgicon": "^4.0.0-alpha.3", @@ -90,79 +87,58 @@ "vue3-pdf-app": "^1.0.3", "vue3-qr-reader": "^1.0.0", "vuex": "^4.1.0", - "vuex-router-sync": "^6.0.0-rc.1" + "vuex-router-sync": "^6.0.0-rc.1", + "workbox-core": "^7.3.0", + "workbox-precaching": "^7.3.0", + "workbox-routing": "^7.3.0", + "workbox-strategies": "^7.3.0", + "workbox-window": "^7.3.0" }, "devDependencies": { - "@babel/core": "^7.25.7", - "@babel/plugin-transform-class-properties": "^7.25.7", - "@babel/plugin-transform-export-namespace-from": "^7.25.7", - "@babel/plugin-transform-json-strings": "^7.25.7", - "@babel/plugin-transform-numeric-separator": "^7.25.7", - "@babel/plugin-transform-runtime": "^7.25.7", - "@quasar/app-webpack": "^3.14.0", + "@eslint/js": "^9.21.0", + "@intlify/unplugin-vue-i18n": "^6.0.3", + "@quasar/app-vite": "^2.1.1", "@types/bcryptjs": "^2.4.6", - "@types/dotenv": "^8.2.0", "@types/google.maps": "^3.58.1", - "@types/jest": "^29.5.13", + "@types/jest": "^29.5.14", "@types/js-cookie": "^3.0.6", - "@types/node": "22.7.4", + "@types/node": "^22.13.8", "@types/nprogress": "^0.2.3", "@types/vue-tel-input": "^2.1.7", - "@types/vuelidate": "^0.7.21", - "@typescript-eslint/eslint-plugin": "^8.8.0", - "@typescript-eslint/parser": "^8.8.0", - "babel-loader": "^9.2.1", - "copy-webpack-plugin": "^12.0.2", - "eslint": "^9.11.1", - "eslint-config-prettier": "^9.1.0", + "@types/vuelidate": "^0.7.22", + "@vue/devtools": "^7.7.2", + "@vue/eslint-config-prettier": "^10.2.0", + "@vue/eslint-config-typescript": "^14.4.0", + "autoprefixer": "^10.4.20", + "eslint": "9", "eslint-plugin-import": "^2.31.0", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^7.1.0", - "eslint-plugin-vue": "^9.28.0", + "eslint-plugin-vue": "^9.32.0", "file-loader": "^6.2.0", - "fork-ts-checker-webpack-plugin": "^9.0.2", - "friendly-errors-webpack-plugin": "^1.7.0", - "html-webpack-plugin": "^5.6.0", - "http-proxy-middleware": "^3.0.2", + "globals": "^16.0.0", + "http-proxy-middleware": "^3.0.3", "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", - "postcss": "^8.4.47", + "nodemon": "^3.1.9", + "npm-check-updates": "^17.1.15", + "parcel": "^2.13.3", + "postcss": "^8.5.3", "postcss-loader": "^8.1.1", - "sass-loader": "^16.0.2", + "prettier": "3", "strip-ansi": "=7.1.0", - "ts-jest": "^29.2.5", - "ts-loader": "^9.5.1", - "typescript": "5.6.2", + "ts-jest": "^29.2.6", + "typescript": "~5.8.2", + "vite-plugin-checker": "^0.9.0", "vue-cli-plugin-element-ui": "^1.1.4", + "vue-tsc": "^2.2.6", "vueify": "^9.4.1", - "webpack": "^5.95.0", - "webpack-dashboard": "^3.3.8", - "workbox-webpack-plugin": "^7.1.0" + "workbox-build": "^7.3.0" }, "browser": { "crypto": false }, - "browserslist": [ - "last 100 Chrome versions", - "last 40 Firefox versions", - "last 20 Edge versions", - "last 55 Safari versions", - "last 90 Android versions", - "last 250 ChromeAndroid versions", - "last 60 FirefoxAndroid versions", - "last 35 iOS versions", - "last 10 Opera versions", - "> 0.03%", - "not dead" - ], "engines": { - "node": ">= 18.18.0", - "npm": ">= 6.14.8", + "node": "^28 || ^26 || ^24 || ^22 || ^20 || ^18", + "npm": ">= 6.13.4", "yarn": ">= 1.21.1" } } \ No newline at end of file diff --git a/scripts/_ALL_SITES/riso.app/quasar.conf.js b/scripts/_ALL_SITES/riso.app/quasar.conf.js deleted file mode 100755 index 2d89d6d2..00000000 --- a/scripts/_ALL_SITES/riso.app/quasar.conf.js +++ /dev/null @@ -1,425 +0,0 @@ -/* - * This file runs in a Node context (it's NOT transpiled by Babel), so use only - * the ES6 features that are supported by your Node version. https://node.green/ - */ - -// Configuration for your app -// https://v2.quasar.dev/quasar-cli/quasar-conf-js - -/* eslint-env node */ -/* eslint-disable @typescript-eslint/no-var-requires */ -/* eslint func-names: 0 */ -/* eslint global-require: 0 */ -const { configure } = require('quasar/wrappers'); - -const path = require('path') -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) => ({ - // https://v2.quasar.dev/quasar-cli/supporting-ts - supportTS: { - tsCheckerConfig: { - eslint: { - enabled: true, - files: './src/**/*.{ts,tsx,jsx,vue}', - }, - }, - }, - - // https://v2.quasar.dev/quasar-cli/prefetch-feature - // preFetch: true, - - // app boot file (/src/boot) - // --> boot files are part of "main.js" - // https://v2.quasar.dev/quasar-cli/boot-files - // boot: ['vue-i18n', 'vue-meta', 'axios', 'vee-validate', 'myconfig', 'local-storage', 'error-handler', 'globalroutines', 'vue-idb', 'dragula', 'guard'], - boot: ['i18n', 'axios', 'vee-validate', 'myconfig', 'local-storage', 'error-handler', 'globalroutines', 'calendar', 'social-sharing', 'timeago', 'guard'], - - // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css - css: [ - 'app.scss', - // '~quasar-ui-qcalendar/src/css/calendar-day.sass' - ], - - // https://github.com/quasarframework/quasar/tree/dev/extras - extras: [ - // 'ionicons-v4', - // 'mdi-v5', - // 'eva-icons', - // 'themify', - // 'line-awesome', - 'ionicons-v4', - // 'mdi-v3', - 'fontawesome-v5', - 'roboto-font', // optional, you are not bound to it - 'material-icons', // optional, you are not bound to it - 'material-icons-outlined', - ], - - aliases: { - quasar: path.resolve(__dirname, 'node_modules/@quasar/'), - src: path.resolve(__dirname, 'src'), - statics: path.resolve(__dirname, 'src/statics'), - components: path.resolve(__dirname, 'src/components'), - views: path.resolve(__dirname, 'src/views/index.ts'), - icons: path.resolve(__dirname, 'src/assets/icons'), - images: path.resolve(__dirname, 'src/assets/images'), - maps: path.resolve(__dirname, 'src/public/maps'), - classes: path.resolve(__dirname, 'src/classes/index.ts'), - fonts: path.resolve(__dirname, 'src/assets/fonts'), - utils: path.resolve(__dirname, 'src/utils/index.ts'), - css: path.resolve(__dirname, 'src/styles/variables.scss'), - router: path.resolve(__dirname, 'src/router/index.ts'), - validators: path.resolve(__dirname, 'src/utils/validators.ts'), - methods: path.resolve(__dirname, 'src/utils/methods.ts'), - filters: path.resolve(__dirname, 'src/utils/filters.ts'), - api: path.resolve(__dirname, 'src/store/Api/index.ts'), - paths: path.resolve(__dirname, 'src/store/Api/ApiRoutes.ts'), - store: path.resolve(__dirname, 'src/store/index.ts'), - modules: path.resolve(__dirname, 'src/store/Modules/index.ts'), - model: path.resolve(__dirname, 'src/model/index.ts'), - }, - - // 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 - analyze: false, // true - transpile: true, - transpileDependencies: [ - /quasar-ui-qcalendar[\\/]src/ - ], - - chainWebpack(chain, { isServer, isClient }) { - chain.resolve.alias - // .set('myalias', path.resolve(__dirname, './src/somefolder')) - .set('@', helpers.root('src')) - .set('@components', helpers.root('src/components/index.ts')) - .set('@boot', helpers.root('src/boot/*')) - .set('@costanti', helpers.root('src/store/Modules/costanti.ts')) - .set('@views', path.resolve(__dirname, 'src/views/index.ts')) - .set('@src', path.resolve(__dirname, 'src')) - .set('@css', path.resolve(__dirname, 'src/public/css/variables.scss')) - .set('@icons', path.resolve(__dirname, 'src/public/icons/*')) - .set('@images', path.resolve(__dirname, 'src/public/images/*')) - .set('@maps', path.resolve(__dirname, 'src/public/maps/*')) - .set('@classes', path.resolve(__dirname, 'src/classes/index.ts')) - .set('@utils', path.resolve(__dirname, 'src/utils/index.ts')) - .set('@utils', path.resolve(__dirname, 'src/utils/*')) - .set('@router', path.resolve(__dirname, 'src/router/index.ts')) - .set('@validators', path.resolve(__dirname, 'src/utils/validators.ts')) - .set('@methods', path.resolve(__dirname, 'src/utils/methods.ts')) - .set('@api', path.resolve(__dirname, 'src/store/Api/index.ts')) - .set('@paths', path.resolve(__dirname, 'src/store/Api/ApiRoutes.ts')) - .set('@storemod', path.resolve(__dirname, 'src/store/Modules/*')) - .set('@store', path.resolve(__dirname, 'src/store')) - .set('@modules', path.resolve(__dirname, 'src/store/Modules/index.ts')) - .set('@model', path.resolve(__dirname, 'src/model/index.ts')) - }, - // extractCSS: false, - // transpile: false, - - // Add dependencies for transpiling with Babel (Array of string/regex) - // (from node_modules, which are by default not transpiled). - // Applies only if "transpile" is set to true. - // transpileDependencies: [], - - // rtl: true, // https://v2.quasar.dev/options/rtl-support - // preloadChunks: true, - // showProgress: false, - // gzip: true, - // analyze: true, - - // Options below are automatically set depending on the env, set them if you want to override - // extractCSS: false, - - // https://v2.quasar.dev/quasar-cli/handling-webpack - // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain - }, - - // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer - dev: { - env: require('./.env.development'), - }, - devServer: { - https: false, - port: 8084, - open: false, // opens browser window automatically - hot: false, // Disable hot module replacement - headers: { - 'Access-Control-Allow-Origin': '*', - 'Access-Control-Allow-Headers': '*', - }, - }, - - // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework - framework: { - config: {}, - - // iconSet: 'material-icons', // Quasar icon set - // lang: 'en-US', // Quasar language pack - - // For special cases outside of where the auto-import strategy can have an impact - // (like functional components as one of the examples), - // you can manually specify Quasar components/directives to be available everywhere: - // - components: [ - 'QLayout', - 'QDrawer', - 'QItemSection', - 'QHeader', - 'QFooter', - 'QPageContainer', - 'QPage', - 'QPopupProxy', - 'QToolbar', - 'QToolbarTitle', - 'QBtn', - 'QBtnDropdown', - 'QColor', - 'QIcon', - 'QList', - 'QKnob', - 'QItemLabel', - 'QItem', - 'QCard', - 'QMarkupTable', - 'QSpace', - 'QDialog', - 'QBadge', - 'QForm', - 'QCardSection', - 'QCardActions', - 'QField', - 'QInput', - 'QSelect', - 'QMenu', - 'QToggle', - 'QFab', - 'QInfiniteScroll', - 'QAjaxBar', - 'QChip', - 'QExpansionItem', - 'QCheckbox', - 'QBanner', - 'QInnerLoading', - 'QSpinnerGears', - 'QSpinnerDots', - 'QDate', - 'QTime', - 'QSlideTransition', - 'QTable', - 'QTh', - 'QTr', - 'QTd', - 'QLinearProgress', - 'QSlider', - 'QPopupEdit', - 'QCarousel', - 'QCarouselControl', - 'QCarouselSlide', - 'QPageScroller', - 'QAvatar', - 'QImg', - 'QSplitter', - 'QRating', - 'QParallax', - 'QTab', - 'QTabs', - 'QTabPanels', - 'QTabPanel', - 'QTree', - 'QSeparator', - ], - directives: [ - 'Ripple', - 'ClosePopup', - ], - _plugins: [ - 'Meta', - 'Dialog', - 'Notify', - 'Cookies', - 'Loading', - 'AppVisibility', - 'LocalStorage', - 'SessionStorage', - ], - get plugins_1() { - return this._plugins; - }, - set plugins_1(value) { - this._plugins = value; - }, - get plugins() { - return this._plugins; - }, - set plugins(value) { - this._plugins = value; - }, - iconSet: 'fontawesome-v5', - lang: 'it', // Quasar language - }, - - animations: 'all', // --- includes all animations - // https://v2.quasar.dev/options/animations - // animations: [], - - // https://v2.quasar.dev/quasar-cli/developing-ssr/configuring-ssr - ssr: { - pwa: false, - - // manualStoreHydration: true, - // manualPostHydrationTrigger: true, - - prodPort: 3000, // The default port that the production server should use - // (gets superseded if process.env.PORT is specified at runtime) - - maxAge: 1000 * 60 * 60 * 24 * 30, - // Tell browser when a file from the server should expire from cache (in ms) - - chainWebpackWebserver(/* chain */) { - // - }, - - middlewares: [ - ctx.prod ? 'compression' : '', - 'render', // keep this as last one - ], - }, - - // https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa - pwa: { - workboxPluginMode: 'InjectManifest', // 'GenerateSW' or 'InjectManifest' - workboxOptions: {}, // only for GenerateSW - extendGenerateSWOptions(cfg) { - cfg.skipWaiting = false - cfg.clientsClaim = false - }, - // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts]) - // if using workbox in InjectManifest mode - chainWebpackCustomSW(chain) { - // chain.plugin('eslint-webpack-plugin') - // .use(ESLintPlugin, [{ extensions: ['js'] }]) - }, - - manifest: { - 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', - theme_color: '#027be3', - scope: "/", - id: "/?homescreen=1", - start_url: "/?homescreen=1", - icons: [ - { - src: 'images/riso-android-icon-512x512.png', - sizes: '512x512', - type: 'image/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/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.riso.app/manifest.json" - }] - }, - }, - - // Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova - cordova: { - // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing - }, - - // Full list of options: https://v2.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor - capacitor: { - hideSplashscreen: true, - }, - - // Full list of options: https://v2.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron - electron: { - bundler: 'packager', // 'packager' or 'builder' - - packager: { - // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options - - // OS X / Mac App Store - // appBundleId: '', - // appCategoryType: '', - // osxSign: '', - // protocol: 'myapp://path', - - // Windows only - // win32metadata: { ... } - }, - - builder: { - // https://www.electron.build/configuration/configuration - - appId: 'Riso', - }, - - // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain - chainWebpack(/* chain */) { - // do something with the Electron main process Webpack cfg - // extendWebpackMain also available besides this chainWebpackMain - }, - - // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain - chainWebpackPreload(/* chain */) { - // do something with the Electron main process Webpack cfg - // extendWebpackPreload also available besides this chainWebpackPreload - }, - }, -})) diff --git a/scripts/_ALL_SITES/riso.app/quasar.config.ts b/scripts/_ALL_SITES/riso.app/quasar.config.ts new file mode 100644 index 00000000..669d2658 --- /dev/null +++ b/scripts/_ALL_SITES/riso.app/quasar.config.ts @@ -0,0 +1,481 @@ +import { defineConfig } from '#q-app/wrappers' +import { fileURLToPath } from 'node:url'; + +import path from 'path' + +export default defineConfig((ctx) => { + return { + // https://v2.quasar.dev/quasar-cli/supporting-ts + + // https://v2.quasar.dev/quasar-cli/prefetch-feature + // preFetch: true, + + // app boot file (/src/boot) + // --> boot files are part of "main.js" + // https://v2.quasar.dev/quasar-cli/boot-files + // boot: ['vue-i18n', 'vue-meta', 'axios', 'vee-validate', 'myconfig', 'local-storage', 'error-handler', 'globalroutines', 'vue-idb', 'dragula', 'guard'], + boot: ['i18n', 'axios', 'pinia', 'vee-validate', + 'myconfig', + 'local-storage', 'error-handler', 'globalroutines', + 'calendar', 'social-sharing', 'timeago', 'guard'], + + // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css + css: [ + 'app.scss', + // '~quasar-ui-qcalendar/src/css/calendar-day.sass' + ], + + // https://github.com/quasarframework/quasar/tree/dev/extras + extras: [ + // 'ionicons-v4', + // 'mdi-v5', + // 'eva-icons', + // 'themify', + // 'line-awesome', + 'ionicons-v4', + // 'mdi-v3', + 'fontawesome-v5', + 'roboto-font', // optional, you are not bound to it + 'material-icons', // optional, you are not bound to it + 'material-icons-outlined', + ], + + // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build + + build: { + target: { + browser: ['es2022', 'firefox115', 'chrome115', 'safari14'], + node: 'node20' + }, + // env: envparser(), + // versionCode: package.version, + vueRouterMode: 'history', + analyze: false, // true + transpile: true, + transpileDependencies: [ + /quasar-ui-qcalendar[\\/]src/ + ], + beforeDev(api) { + // Se la variabile d'ambiente SKIP_TSC è impostata, disabilita il type checking + if (process.env.SKIP_TSC === 'true') { + console.log('⚠️ TypeScript type checking is disabled'); + + // Disattiva TypeScript checking per Vite + if (api && api.chainWebpack) { + api.chainWebpack((chain) => { + chain.plugin('fork-ts-checker').tap((args) => { + args[0].typescript = false; + return args; + }); + }); + } + } + }, + // @quasar/app-vite v2.0.3+ + envFilter(originalEnv) { + const newEnv = {} + for (const key in originalEnv) { + /* ...decide if it goes in or not... */ + if (true) { + newEnv[key] = originalEnv[key] + } + } + + // remember to return your processed env + return newEnv + }, + + typescript: { + strict: false, + vueShim: true, + extendTsConfig(tsConfig) { + // You can use this hook to extend tsConfig dynamically + // For basic use cases, you can still update the usual tsconfig.json file to override some settings + }, + + /** + * Folder where Quasar CLI should look for .env* files. + * Can be an absolute path or a relative path to project root directory. + * + * @default project root directory + */ + // envFolder?: string + /** + * Additional .env* files to be loaded. + * Each entry can be an absolute path or a relative path to quasar.config > build > envFolder. + * + * @example ['.env.somefile', '../.env.someotherfile'] + */ + // envFiles?: string[]; + }, + + extendViteConf(viteConf, { isServer, isClient }) { + viteConf.resolve = { + ...(viteConf.resolve || {}), + alias: { + ...viteConf.resolve.alias, + '#q-app': path.resolve(__dirname, 'node_modules/quasar/app'), // Alias per #q-app + 'app': path.resolve(__dirname), + 'boot': path.resolve(__dirname, 'src/boot'), + 'src': path.resolve(__dirname, 'src'), + 'statics': path.resolve(__dirname, 'src/statics'), + 'components': path.resolve(__dirname, 'src/components'), + 'views': path.resolve(__dirname, 'src/views/index.ts'), + 'icons': path.resolve(__dirname, 'public/icons'), + 'images': path.resolve(__dirname, 'src/assets/images'), + 'maps': path.resolve(__dirname, 'public/maps'), + 'classes': path.resolve(__dirname, 'src/classes/index.ts'), + 'fonts': path.resolve(__dirname, 'src/assets/fonts'), + 'utils': path.resolve(__dirname, 'src/utils/index.ts'), + 'css': path.resolve(__dirname, 'public/css/variables.scss'), + 'router': path.resolve(__dirname, 'src/router/index.ts'), + 'validators': path.resolve(__dirname, 'src/utils/validators.ts'), + 'methods': path.resolve(__dirname, 'src/utils/methods.ts'), + 'filters': path.resolve(__dirname, 'src/utils/filters.ts'), + 'api': path.resolve(__dirname, 'src/store/Api/index.ts'), + 'paths': path.resolve(__dirname, 'src/store/Api/ApiRoutes.ts'), + 'modules': path.resolve(__dirname, 'src/store/Modules/index.ts'), + 'model': path.resolve(__dirname, 'src/model/index.ts'), + '@components': path.resolve(__dirname, 'src/components'), + '@boot': path.resolve(__dirname, 'src/boot'), + '@costanti': path.resolve(__dirname, 'src/store/Modules/costanti.ts'), + '@views': path.resolve(__dirname, 'src/views/index.ts'), + '@src': path.resolve(__dirname, 'src'), + '@css': path.resolve(__dirname, 'src/public/css/variables.scss'), + '@icons': path.resolve(__dirname, 'src/public/public/icons'), + '@images': path.resolve(__dirname, 'src/public/images/*'), + '@maps': path.resolve(__dirname, 'src/public/maps/*'), + '@classes': path.resolve(__dirname, 'src/classes/index.ts'), + '@utils': path.resolve(__dirname, 'src/utils/index.ts'), + '@router': path.resolve(__dirname, 'src/router/index.ts'), + '@validators': path.resolve(__dirname, 'src/utils/validators.ts'), + '@methods': path.resolve(__dirname, 'src/utils/methods.ts'), + '@api': path.resolve(__dirname, 'src/store/Api/index.ts'), + '@paths': path.resolve(__dirname, 'src/store/Api/ApiRoutes.ts'), + '@storemod': path.resolve(__dirname, 'src/store/Modules'), + '@store': path.resolve(__dirname, 'src/store'), + '@tools': path.resolve(__dirname, 'src/store/Modules/tools.ts'), + '@modules': path.resolve(__dirname, 'src/store/Modules/index.ts'), + '@model': path.resolve(__dirname, 'src/model/index.ts'), + }, + }; + }, + + vitePlugins: [ + ['@intlify/unplugin-vue-i18n/vite', { + // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false` + // compositionOnly: false, + + // if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}', + // you need to set `runtimeOnly: false` + // runtimeOnly: false, + + ssr: ctx.modeName === 'ssr', + + // you need to set i18n resource including paths ! + include: [fileURLToPath(new URL('./src/i18n', import.meta.url))] + }], + + ['vite-plugin-checker', { + vueTsc: false, + OFF_eslint: { + lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{ts,js,mjs,cjs,vue}"', + useFlatConfig: true + } + }, { server: false }] + + + ] + + // polyfillModulePreload: true, + + // viteVuePluginOptions: {}, + + // extractCSS: false, + // transpile: false, + + // Add dependencies for transpiling with Babel (Array of string/regex) + // (from node_modules, which are by default not transpiled). + // Applies only if "transpile" is set to true. + // transpileDependencies: [], + + // rtl: true, // https://v2.quasar.dev/options/rtl-support + // preloadChunks: true, + // showProgress: false, + // gzip: true, + // analyze: true, + + // Options below are automatically set depending on the env, set them if you want to override + // extractCSS: false, + + // https://v2.quasar.dev/quasar-cli/handling-webpack + // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer + devServer: { + https: false, + port: ctx.mode.spa ? 8084 : 8094, + vueDevtools: false, // automatically opening remote Vue Devtools + open: false, // opens browser window automatically + hot: true, // Disable hot module replacement + headers: { + 'Access-Control-Allow-Origin': '*', + 'Access-Control-Allow-Headers': '*', + }, + }, + + // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework + framework: { + config: {}, + + // iconSet: 'material-icons', // Quasar icon set + // lang: 'en-US', // Quasar language pack + + // For special cases outside of where the auto-import strategy can have an impact + // (like functional components as one of the examples), + // you can manually specify Quasar components/directives to be available everywhere: + // + components: [ + 'QLayout', + 'QDrawer', + 'QItemSection', + 'QHeader', + 'QFooter', + 'QPageContainer', + 'QPage', + 'QPopupProxy', + 'QToolbar', + 'QToolbarTitle', + 'QBtn', + 'QBtnDropdown', + 'QColor', + 'QIcon', + 'QList', + 'QKnob', + 'QItemLabel', + 'QItem', + 'QCard', + 'QMarkupTable', + 'QSpace', + 'QDialog', + 'QBadge', + 'QForm', + 'QCardSection', + 'QCardActions', + 'QField', + 'QInput', + 'QSelect', + 'QMenu', + 'QToggle', + 'QFab', + 'QInfiniteScroll', + 'QAjaxBar', + 'QChip', + 'QExpansionItem', + 'QCheckbox', + 'QBanner', + 'QInnerLoading', + 'QSpinnerGears', + 'QSpinnerDots', + 'QDate', + 'QTime', + 'QSlideTransition', + 'QTable', + 'QTh', + 'QTr', + 'QTd', + 'QLinearProgress', + 'QSlider', + 'QPopupEdit', + 'QCarousel', + 'QCarouselControl', + 'QCarouselSlide', + 'QPageScroller', + 'QAvatar', + 'QImg', + 'QSplitter', + 'QRating', + 'QParallax', + 'QTab', + 'QTabs', + 'QTabPanels', + 'QTabPanel', + 'QTree', + 'QSeparator', + ], + directives: [ + 'Ripple', + 'ClosePopup', + ], + _plugins: [ + 'Meta', + 'Dialog', + 'Notify', + 'Cookies', + 'Loading', + 'AppVisibility', + 'LocalStorage', + 'SessionStorage', + ], + get plugins_1() { + return this._plugins; + }, + set plugins_1(value) { + this._plugins = value; + }, + get plugins() { + return this._plugins; + }, + set plugins(value) { + this._plugins = value; + }, + iconSet: 'fontawesome-v5', + lang: 'it', // Quasar language + }, + + animations: 'all', // --- includes all animations + // https://v2.quasar.dev/options/animations + // animations: [], + + // https://v2.quasar.dev/quasar-cli/developing-ssr/configuring-ssr + ssr: { + pwa: false, + + // manualStoreHydration: true, + // manualPostHydrationTrigger: true, + + prodPort: 3000, // The default port that the production server should use + // (gets superseded if import.meta.env.PORT is specified at runtime) + + maxAge: 1000 * 60 * 60 * 24 * 30, + // Tell browser when a file from the server should expire from cache (in ms) + + + middlewares: [ + ctx.prod ? 'compression' : '', + 'render', // keep this as last one + ], + }, + + sourceFiles: { + pwaRegisterServiceWorker: 'src-pwa/register-service-worker', + pwaServiceWorker: 'src-pwa/custom-service-worker', + // pwaManifestFile: 'src-pwa/manifest.json', + // ... + }, + + // https://v2.quasar.dev/quasar-cli/developing-pwa/configuring-pwa + pwa: { + workboxPluginMode: 'InjectManifest', // 'GenerateSW' or 'InjectManifest' + workboxOptions: { + swSrc: 'src-pwa/custom-service-worker.js', // Assicurati che il file esista + }, + extendGenerateSWOptions(cfg) { + cfg.skipWaiting = false + cfg.clientsClaim = false + }, + // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts]) + // if using workbox in InjectManifest mode + manifest: { + 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', + theme_color: '#027be3', + scope: "/", + id: "/?homescreen=1", + start_url: "/?homescreen=1", + icons: [ + { + src: 'images/riso-android-icon-512x512.png', + sizes: '512x512', + type: 'image/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/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.riso.app/manifest.json" + }] + }, + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova + cordova: { + // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor + capacitor: { + hideSplashscreen: true, + }, + + // Full list of options: https://v2.quasar.dev/quasar-cli/developing-electron-apps/configuring-electron + electron: { + bundler: 'packager', // 'packager' or 'builder' + + packager: { + // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options + + // OS X / Mac App Store + // appBundleId: '', + // appCategoryType: '', + // osxSign: '', + // protocol: 'myapp://path', + + // Windows only + // win32metadata: { ... } + }, + + builder: { + // https://www.electron.build/configuration/configuration + + appId: 'Riso', + }, + + + }, + } +}) diff --git a/scripts/__inizia.sh b/scripts/__inizia.sh index 0f8ada23..944a6daa 100644 --- a/scripts/__inizia.sh +++ b/scripts/__inizia.sh @@ -27,7 +27,7 @@ else cp -R _ALL_SITES/$site/.env.development ../ cp -R _ALL_SITES/$site/.env.production ../ cp -R _ALL_SITES/$site/.env.test ../ - cp -R _ALL_SITES/$site/favicon.ico ../public/ + cp -R _ALL_SITES/$site/favicon.ico ../ rm -R ../public/upload/products/* rm -R ../public/upload/pages/* @@ -37,17 +37,18 @@ else cp -R _ALL_SITES/$site/upload/pages/* ../public/upload/pages/ cp -R _ALL_SITES/$site/upload/catalogo/* ../public/upload/catalogo/ cp -R _ALL_SITES/$site/upload/scheda/* ../public/upload/scheda/ - rm -R ../public/images/* - cp -R _ALL_SITES/$site/images/* ../public/images/ + rm -R ../images/* + cp -R _ALL_SITES/$site/images/* ../images/ - #if [ "$site" = "piuchebuono.app" ]; then - # cp ../freeplanet_serverside/.env.dev.pcb ../freeplanet_serverside/.env.development - #elif [ "$site" = "riso.app" ]; then - # cp ../freeplanet_serverside/.env.dev.riso ../freeplanet_serverside/.env.development - #elif [ "$site" = "gruppomacro.app" ]; then - # cp ../freeplanet_serverside/.env.dev.pcb ../freeplanet_serverside/.env.development - #elif [ "$site" = "abitaregliiblei.it" ]; then - # cp ../freeplanet_serverside/.env.dev.abitaregliiblei ../freeplanet_serverside/.env.development - #fi + if [ "$site" = "piuchebuono.app" ]; then + echo "Copia il file .env.dev.pcb" + cp ../../freeplanet_serverside/.env.dev.pcb ../../freeplanet_serverside/.env.development + elif [ "$site" = "riso.app" ]; then + echo "Copia il file .env.dev.riso" + cp ../../freeplanet_serverside/.env.dev.riso ../../freeplanet_serverside/.env.development + elif [ "$site" = "gruppomacro.app" ]; then + echo "Copia il file .env.dev.pcb" + cp ../../freeplanet_serverside/.env.dev.pcb ../../freeplanet_serverside/.env.development + fi fi diff --git a/scripts/__termine.sh b/scripts/__termine.sh index 6365e76a..48cc7621 100644 --- a/scripts/__termine.sh +++ b/scripts/__termine.sh @@ -14,8 +14,6 @@ else echo "TERMINA DI LAVORARE SU $site: (Sovrascrivo !)" echo "TERMINA DI LAVORARE SU $site: (Sovrascrivo !)" > now.txt - rmdir __$site - cp -R _ALL_SITES/$site _BAK/5/ mkdir -p _ALL_SITES/$site/upload/products @@ -27,7 +25,7 @@ else rm -R _ALL_SITES/$site/upload/products/* rm -R _ALL_SITES/$site/images/* cp -R ../public/upload/products/* _ALL_SITES/$site/upload/products/ - cp -R ../public/images/* _ALL_SITES/$site/images/ + cp -R ../images/* _ALL_SITES/$site/images/ cp -R ../src/root_spec _ALL_SITES/$site/ cp -R .././quasar.config.ts _ALL_SITES/$site/ cp -R .././package.json _ALL_SITES/$site/ diff --git a/scripts/inizia_gruppomacro.app.sh b/scripts/inizia_gruppomacro.app.sh index 7486e2f8..f03655f8 100755 --- a/scripts/inizia_gruppomacro.app.sh +++ b/scripts/inizia_gruppomacro.app.sh @@ -1,30 +1,14 @@ #!/bin/bash +source __sites_list.sh + +for site in "${sites[@]}"; do + if [ -d "$site" ]; then + rmdir "$site" + fi +done + site=gruppomacro.app -if [ -d "__piuchebuono.app" ]; then - rmdir __piuchebuono.app -fi - -if [ -d "__freeplanet.app" ]; then - rmdir __freeplanet.app -fi - -if [ -d "__riso.app" ]; then - rmdir __riso.app -fi - -if [ -d "__fioredellavita.riso.app" ]; then - rmdir __fioredellavita.riso.app -fi - -if [ -d "__popolodelnuovomondo.app" ]; then - rmdir __popolodelnuovomondo.app -fi - -if [ -d "__terradellavisione.app" ]; then - rmdir __terradellavisione.app -fi - - source __inizia.sh + diff --git a/scripts/inizia_kolibrilab.it.sh b/scripts/inizia_kolibrilab.it.sh index 7375e06f..c2bf2e4b 100755 --- a/scripts/inizia_kolibrilab.it.sh +++ b/scripts/inizia_kolibrilab.it.sh @@ -1,34 +1,14 @@ #!/bin/bash +source __sites_list.sh + +for mysite in "${sites[@]}"; do + if [ -d "$mysite" ]; then + rmdir "my$site" + fi +done + site=kolibrilab.it -if [ -d "__freeplanet.app" ]; then - rmdir __freeplanet.app -fi - -if [ -d "__kolibrilab.it" ]; then - rmdir __kolibrilab.it -fi - -if [ -d "__arcadei.it" ]; then - rmdir __arcadei.it -fi - -if [ -d "__riso.app" ]; then - rmdir __riso.app -fi - -if [ -d "__fioredellavita.riso.app" ]; then - rmdir __fioredellavita.riso.app -fi - -if [ -d "__popolodelnuovomondo.app" ]; then - rmdir __popolodelnuovomondo.app -fi - -if [ -d "__terradellavisione.app" ]; then - rmdir __terradellavisione.app -fi - - source __inizia.sh + diff --git a/scripts/inizia_piuchebuono.app.sh b/scripts/inizia_piuchebuono.app.sh index d1b2e18a..3a120712 100755 --- a/scripts/inizia_piuchebuono.app.sh +++ b/scripts/inizia_piuchebuono.app.sh @@ -1,26 +1,14 @@ #!/bin/bash +source __sites_list.sh + +for mysite in "${sites[@]}"; do + if [ -d "$mysite" ]; then + rmdir "my$site" + fi +done + site=piuchebuono.app -if [ -d "__freeplanet.app" ]; then - rmdir __freeplanet.app -fi - -if [ -d "__riso.app" ]; then - rmdir __riso.app -fi - -if [ -d "__fioredellavita.riso.app" ]; then - rmdir __fioredellavita.riso.app -fi - -if [ -d "__popolodelnuovomondo.app" ]; then - rmdir __popolodelnuovomondo.app -fi - -if [ -d "__terradellavisione.app" ]; then - rmdir __terradellavisione.app -fi - - source __inizia.sh + diff --git a/scripts/inizia_riso.app.sh b/scripts/inizia_riso.app.sh index 0450ff8b..5da91bde 100755 --- a/scripts/inizia_riso.app.sh +++ b/scripts/inizia_riso.app.sh @@ -8,5 +8,7 @@ for site in "${sites[@]}"; do fi done +site=riso.app + source __inizia.sh diff --git a/scripts/now.txt b/scripts/now.txt new file mode 100644 index 00000000..e5f5d4ff --- /dev/null +++ b/scripts/now.txt @@ -0,0 +1 @@ +TERMINA DI LAVORARE SU riso.app: (Sovrascrivo !) diff --git a/src/components/CAITools/CAITools.ts b/src/components/CAITools/CAITools.ts index 858ab3f5..c39f6988 100755 --- a/src/components/CAITools/CAITools.ts +++ b/src/components/CAITools/CAITools.ts @@ -44,7 +44,7 @@ export default defineComponent({ const outputTypeList = [ { label: 'Formato Testo', value: 'Ritornami l\'output in formato testo' }, - { label: 'Per Telegram', value: 'Ritornami l\'output formattato per incollarlo sulla chat Telegram, usando delle emoticons in punti chiave e il grassetto (**) nelle parole chiave.' }, + { label: 'Per Telegram', value: 'Ritornami l\'output formattato per incollarlo sulla chat Telegram, usando delle emoticons in punti chiave e il grassetto (**) nelle parole chiave, usando la sintassi markdown.' }, { label: 'Formato JSON', value: 'Ritornami l\'output in formato JSON' }, { label: 'Formato CSV (campi separati da \'|\')', value: 'Ritornami l\'output in formato CSV, con i campi separati da \'|\'' }, ] diff --git a/src/components/CPhotosGallery/CPhotosGallery.ts b/src/components/CPhotosGallery/CPhotosGallery.ts index 25c01649..e765978e 100755 --- a/src/components/CPhotosGallery/CPhotosGallery.ts +++ b/src/components/CPhotosGallery/CPhotosGallery.ts @@ -98,7 +98,7 @@ export default defineComponent({ } function appname() { - return import.meta.env.APP_NAME + return import.meta.env.VITE_APP_NAME } function beforeDestroy() { diff --git a/src/db/lang/ws_enUs.js b/src/db/lang/ws_enUs.js index 4b20853c..25b51103 100755 --- a/src/db/lang/ws_enUs.js +++ b/src/db/lang/ws_enUs.js @@ -8,6 +8,8 @@ const msg_website_enUs = { products: { quantity: 'Quantità', quantityAvailable: 'Disponibili', + stockQty: 'In Magazzino', + stockBloccatiQty: 'Bloccati In Magazzino', weight: 'Peso', stars: 'Voto', color: 'Colore', @@ -36,6 +38,7 @@ const msg_website_enUs = { productslist: 'Lista Prodotti', collabora: 'Collabora', storehouses: 'Magazzino', + providers: 'Fornitori', departments: 'Uffici', orders: 'Ordini Ricevuti', orders2: 'Ordini Ricevuti', diff --git a/src/db/lang/ws_es.js b/src/db/lang/ws_es.js index 66a384d3..f143f859 100755 --- a/src/db/lang/ws_es.js +++ b/src/db/lang/ws_es.js @@ -8,6 +8,7 @@ const msg_website_es = { products: { quantity: 'Quantità', quantityAvailable: 'Disponibili', + stockQty: 'In Magazzino', weight: 'Peso', stars: 'Voto', color: 'Colore', diff --git a/src/db/lang/ws_it.js b/src/db/lang/ws_it.js index 9cd59a3d..4eff69bf 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: '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', + sitename: 'Più che Buono', + siteshortname: 'Più che Buono', + description: '', + keywords: '', }, hours: { descr: 'Descrizione', @@ -16,23 +16,35 @@ 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', @@ -121,15 +133,11 @@ const msg_website_it = { only_residenti: 'Solo Residenti', only_consiglio: 'Solo Consiglieri', color: 'Colore', - mainMenu: 'Menu Principale', - subtitle: 'Sottotitolo', - lang: 'Lingua', - keywords: 'Parole Chiave', - desctiption: 'Descrizione', - heightimg: 'Altezza Immagine', + gasordini: 'Gas Ordini', + gestoreordini: 'Gestore Ordini', }, msg: { - myAppName: 'Riso', + myAppName: 'Più che Buono', 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 fcbce6cc..5a32195b 100755 --- a/src/db/static_data.ts +++ b/src/db/static_data.ts @@ -1,4 +1,4 @@ -import type { +import { IListRoutes, ILang, IPreloadImages, @@ -7,30 +7,6 @@ import type { import { func } from '@store/Modules/fieldsTable' -// const SHOW_PROJINTHEMENU = false -// -// let arrlistafavourite = [] -// let arrlistaprojtutti = [] -// let arrlistaprojmiei = [] -// if (SHOW_PROJINTHEMENU) { -// arrlistaprojtutti = Projects.getters.listaprojects(RouteNames.projectsall) -// arrlistaprojmiei = Projects.getters.listaprojects(RouteNames.myprojects) -// arrlistafavourite = Projects.getters.listaprojects(RouteNames.favouriteprojects) -// } -// PROGETTI -> FAVORITI : - -// if (arrlistafavourite.length > 0) { -// arrMenu.push({ -// icon: 'favorite_border', -// nametranslate: 'pages.' + RouteNames.favouriteprojects, -// urlroute: RouteNames.favouriteprojects, -// level_parent: 0.0, -// level_child: 0.5, -// routes2: arrlistafavourite, -// idelem: '' -// }) -// } - const firstPage = { active: true, order: 5, @@ -64,76 +40,12 @@ function getDynamicPages(site: ISites): IListRoutes[] { materialIcon: 'fas fa-test', name: 'mypages.test', component: () => import('@src/views/testServer/testServer.vue'), - inmenu: false, - infooter: false, - }, - { - active: true, - order: 12, - path: '/goods', - materialIcon: 'fas fa-tshirt', - name: 'mypages.goods', - component: () => import('@src/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('@src/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('@src/root/activities/activities.vue'), meta: { requiresAuth: true }, inmenu: false, infooter: false, }, - { - active: true, - order: 15, - path: '/provapao', - materialIcon: 'fas fa-house-user', - name: 'mypages.provapao', - component: () => import('@src/root/provapao/provapao.vue'), - meta: { requiresAuth: true }, - inmenu: false, - infooter: false, - }, - { - active: true, - order: 15, - path: '/hosps', - materialIcon: 'fas fa-bed', - name: 'mypages.hosp', - component: () => import('@src/root/hosp/hosp.vue'), - meta: { requiresAuth: true }, - inmenu: true, - infooter: true, - }, - { - active: site.confpages && site.confpages.enableCircuits, - order: 16, - path: '/circuits', - materialIcon: 'fas fa-coins', - name: 'mypages.circuits', - component: () => import('@src/views/user/mycircuits/mycircuits.vue'), - meta: { requiresAuth: true }, - inmenu: true, - infooter: true, - }, - { + + /*{ active: true, order: 20, path: '/events', @@ -143,6 +55,17 @@ function getDynamicPages(site: ISites): IListRoutes[] { meta: { requiresAuth: true }, inmenu: true, infooter: true, + },*/ + { + active: site.confpages && site.confpages.showProfile, + order: 120, + path: '/myprofile', + materialIcon: 'fas fa-user', + name: 'pages.profile', + component: () => import('@src/views/user/myprofile/myprofile.vue'), + meta: { requiresAuth: true }, + inmenu: true, + infooter: true, }, { active: true, @@ -155,17 +78,6 @@ function getDynamicPages(site: ISites): IListRoutes[] { inmenu: false, infooter: false, }, - { - active: true, - order: 120, - path: '/myprofile', - materialIcon: 'fas fa-user', - name: 'pages.profile', - component: () => import('@src/views/user/myprofile/myprofile.vue'), - meta: { requiresAuth: true }, - inmenu: true, - infooter: true, - }, { active: true, order: 120, @@ -178,7 +90,7 @@ function getDynamicPages(site: ISites): IListRoutes[] { infooter: false, }, { - active: true, + active: site.confpages && site.confpages.showiscrittiMenu, order: 130, path: '/friends', materialIcon: 'fas fa-user-friends', @@ -188,6 +100,19 @@ function getDynamicPages(site: ISites): IListRoutes[] { inmenu: true, infooter: true, }, + { + active: site.confpages && site.confpages.enableCircuits, + order: 16, + path: '/circuits', + materialIcon: 'fas fa-coins', + name: 'mypages.circuits', + component: () => import('@src/views/user/mycircuits/mycircuits.vue'), + meta: { requiresAuth: true }, + inmenu: true, + infooter: true, + onlyAdmin: true, + onlyManager: true, + }, { active: site.confpages && site.confpages.enableGroups, order: 132, @@ -198,6 +123,8 @@ function getDynamicPages(site: ISites): IListRoutes[] { meta: { requiresAuth: true }, inmenu: true, infooter: false, + onlyAdmin: true, + onlyManager: true, }, { active: true, @@ -276,7 +203,7 @@ function getDynamicPages(site: ISites): IListRoutes[] { { active: true, order: 150, - path: '/sostieniilprogetto', + path: '/fundraising', materialIcon: 'fas fa-hand-holding-heart', name: 'pages.fundraising', component: () => import('@src/root/fundraising/fundraising.vue'), @@ -301,7 +228,7 @@ function getDynamicPages(site: ISites): IListRoutes[] { export function firstimagehome() { - const img = 'statics/images/background.jpg' + let img = 'statics/images/background.jpg' return img } diff --git a/src/store/Api/Instance.ts b/src/store/Api/Instance.ts index f6eccb4f..c3badd5a 100755 --- a/src/store/Api/Instance.ts +++ b/src/store/Api/Instance.ts @@ -25,14 +25,14 @@ export const axiosInstance: AxiosInstance = axios.create({ axiosInstance.interceptors.response.use( (response) => { - if (import.meta.env.DEBUGGING === '1') console.log(response) + if (import.meta.env.VITE_DEBUG === '1') console.log(response) return response }, (error) => { const globalStore = useGlobalStore() // console.log('error', error) if (error.response) { - if (import.meta.env.DEBUGGING === '1') console.log('Status = ', error.response.status) + if (import.meta.env.VITE_DEBUG === '1') console.log('Status = ', error.response.status) console.log('Request Error: ', error.response) if (error.response.status !== 0) { globalStore.setStateConnection('online') diff --git a/src/store/Api/index.ts b/src/store/Api/index.ts index 5482efc1..35af2b14 100755 --- a/src/store/Api/index.ts +++ b/src/store/Api/index.ts @@ -77,7 +77,7 @@ export const Api = { }, async checkSession({ token, refresh_token }: any) { - return axios.post(import.meta.env.API_URL + Paths.TOKEN_REFRESH, { + return axios.post(import.meta.env.VITE_API_URL + Paths.TOKEN_REFRESH, { refresh_token, }, { headers: { diff --git a/src/store/globalStore.ts b/src/store/globalStore.ts index 80f16866..017393b8 100644 --- a/src/store/globalStore.ts +++ b/src/store/globalStore.ts @@ -2253,7 +2253,7 @@ export const useGlobalStore = defineStore('GlobalStore', { try { let myserv = import.meta.env.VITE_MONGODB_HOST! - if (!import.meta.env.DEBUGGING) { + if (!import.meta.env.VITE_DEBUG) { if (tools.isTest()) { if (this.site && this.site.host_testapi) { myserv = this.site.host_testapi