- Aggiornato node.js alla versione 22.18.1

- Aggiornato tutti i pacchetti del server all'ultima versione.
- passato mongoose da versione 5 a versione 6
This commit is contained in:
Surya Paolo
2025-03-03 00:45:56 +01:00
parent 28ed99703d
commit 6d112b8e45
18 changed files with 76 additions and 234 deletions

View File

@@ -1,27 +1,13 @@
VITE_APP_VERSION="1.1.23"
VITE_SERVICE_WORKER_FILE="service-worker.js"
VITE_APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=freeplanet_serverside
SERVERDIR_WEBSITE=riso.app
SERVERPW_WEBSITE=<password-website-here>
VITE_APP_URL="https://riso.app"
URL_FACEBOOK=""
PROVA_PAOLO=""
VITE_LANG_DEFAULT="it"
VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
VITE_MONGODB_HOST="https://www.freeplanet.app:3000"
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'
TEST_NAME=""
TEST_SURNAME=""
TEST_EMAIL=""
TEST_USERNAME=""
TEST_PASSWORD=""
TEST_APORTADOR="------"
VITE_PUBLICKEY_PUSH="<publickey-push-here>"
VITE_DEBUG="1"
TELEGRAM_SUPPORT=""
VITE_PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL=""
VITE_VUE_APP_ISTEST=0
DIRECTORY_LOCAL=directory_sourcecode_local
DIRECTORY_SERVER=freeplanet_serverside
SERVERDIR_WEBSITE=miodominio.com
SERVERPW_WEBSITE=<password-website-here>

View File

@@ -1,27 +0,0 @@
VITE_APP_VERSION="1.1.0"
VITE_SERVICE_WORKER_FILE="service-worker_1.1.0.js"
VITE_APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=freeplanet_serverside
SERVERDIR_WEBSITE=riso.app
SERVERPW_WEBSITE=pwdadmin@1AOK
VITE_APP_URL="https://riso.app"
URL_FACEBOOK=""
PROVA_PAOLO=""
VITE_LANG_DEFAULT="it"
VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
VITE_MONGODB_HOST="https://www.freeplanet.app:3000"
VITE_LOGO_REG='riso-logo-full.png'
TEST_NAME=""
TEST_SURNAME=""
TEST_EMAIL=""
TEST_USERNAME=""
TEST_PASSWORD=""
TEST_APORTADOR="------"
VITE_PUBLICKEY_PUSH="BNM-cEpTbPVc_ujXf3QOC8ggf7b-X44P44esfJUWqNOFq1XhWCoZJpOi71_cbXC5SnfO9HassQ6OouAYgtBA9Pw"
VITE_DEBUG="1"
TELEGRAM_SUPPORT=""
VITE_PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL=""
VITE_VUE_APP_ISTEST=0

View File

@@ -1,28 +0,0 @@
VITE_APP_VERSION="1.1.23"
VITE_SERVICE_WORKER_FILE="service-worker.js"
VITE_APP_ID="19"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=/var/www/nodejs_test.riso_server
SERVERDIR_WEBSITE="/var/www/test.abitaregliiblei.it"
SERVERPW_WEBSITE="pwdadmin@1AOK"
VITE_APP_URL="https://test.abitaregliiblei.it"
URL_FACEBOOK=""
PROVA_PAOLO=""
VITE_LANG_DEFAULT="it"
VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
VITE_MONGODB_HOST="https://testapi.abitaregliiblei.it"
VITE_LOGO_REG='abitaregliiblei-logo-full.png'
TEST_NAME=""
TEST_SURNAME=""
TEST_EMAIL=""
TEST_USERNAME=""
TEST_PASSWORD=""
TEST_APORTADOR=""
VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs"
IN_CONSTRUCTION="0"
VITE_DEBUG="1"
TELEGRAM_SUPPORT=""
VITE_PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL=""
VITE_VUE_APP_ISTEST=1

View File

@@ -1,28 +1,12 @@
VITE_APP_VERSION="1.1.23"
VITE_SERVICE_WORKER_FILE="service-worker.js"
VITE_APP_ID="18"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=/var/www/nodejs_test.piuchebuono_server
SERVERDIR_WEBSITE="/var/www/test.gruppomacro.app"
VITE_APP_URL="https://test.gruppomacro.app"
URL_FACEBOOK=""
PROVA_PAOLO=""
VITE_LANG_DEFAULT="it"
VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
VITE_MONGODB_HOST="https://testapi.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"
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"
DIRECTORY_LOCAL=myprojplanet_vite
DIRECTORY_SERVER=/var/www/nodejs_test.piuchebuono_server
SERVERDIR_WEBSITE="/var/www/test.gruppomacro.app"
SERVERPW_WEBSITE="pwdadmin@1AOK"

View File

@@ -1,28 +0,0 @@
VITE_APP_VERSION="1.1.23"
VITE_SERVICE_WORKER_FILE="service-worker.js"
VITE_APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=test2.freeplanet_serverside
SERVERDIR_WEBSITE="test2.riso.app"
SERVERPW_WEBSITE="pwdadmin@1AOK"
VITE_APP_URL="https://test2.riso.app"
URL_FACEBOOK=""
PROVA_PAOLO=""
VITE_LANG_DEFAULT="it"
VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
VITE_MONGODB_HOST="https://freeplanet.app:3001"
VITE_LOGO_REG='riso-logo-full.png'
TEST_NAME=""
TEST_SURNAME=""
TEST_EMAIL=""
TEST_USERNAME=""
TEST_PASSWORD=""
TEST_APORTADOR=""
VITE_PUBLICKEY_PUSH="BGXRf1TgcqocqD6J7qnRgCG7AvM2lxAoW7peb7UEzB4SxBb6DxGRdJ0UvD9ewnrB9KrSrh0-aDCODXBm7sZ1DDs"
IN_CONSTRUCTION="0"
VITE_DEBUG="1"
TELEGRAM_SUPPORT=""
VITE_PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
TEST_CELL=""
VITE_VUE_APP_ISTEST=1

View File

@@ -1,28 +0,0 @@
VITE_APP_VERSION="1.1.23"
VITE_SERVICE_WORKER_FILE="service-worker.js"
VITE_APP_ID="13"
DIRECTORY_LOCAL=newfreeplanet
DIRECTORY_SERVER=/var/www/nodejs_test.riso_server
SERVERDIR_WEBSITE="/var/www/test.piuchebuono.app"
VITE_APP_URL="https://testriso.piuchebuono.app"
URL_FACEBOOK=""
PROVA_PAOLO=""
VITE_LANG_DEFAULT="it"
VITE_PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
VITE_MONGODB_HOST="https://testriso.piuchebuono.app:3001"
VITE_LOGO_REG='riso-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"

View File

@@ -43,7 +43,7 @@
"axios": "^1.8.1",
"bcryptjs": "^3.0.2",
"chart.js": "^4.4.8",
"core-js": "^3.40.0",
"core-js": "^3.41.0",
"crypto-browserify": "^3.12.1",
"date-fns": "^4.1.0",
"echarts": "5.6.0",
@@ -64,7 +64,7 @@
"nprogress": "^0.2.0",
"pinia": "^3.0.1",
"qrcode-vue3": "^1.7.1",
"quasar": "^2.17.7",
"quasar": "^2.18.0",
"quasar-extras": "^2.0.9",
"register-service-worker": "^1.7.2",
"scrollreveal": "^4.0.9",
@@ -102,7 +102,7 @@
"@types/google.maps": "^3.58.1",
"@types/jest": "^29.5.14",
"@types/js-cookie": "^3.0.6",
"@types/node": "^22.13.5",
"@types/node": "^22.13.8",
"@types/nprogress": "^0.2.3",
"@types/vue-tel-input": "^2.1.7",
"@types/vuelidate": "^0.7.22",
@@ -129,7 +129,7 @@
"typescript": "~5.8.2",
"vite-plugin-checker": "^0.9.0",
"vue-cli-plugin-element-ui": "^1.1.4",
"vue-tsc": "^2.2.4",
"vue-tsc": "^2.2.6",
"vueify": "^9.4.1",
"workbox-build": "^7.3.0"
},

View File

@@ -230,7 +230,7 @@ if (workbox) {
}
// Se riceviamo un errore CORS, prova con una richiesta no-cors
if (response.status === 0 || response.type === 'opaque') {
if (response.status === 0 || response.type === 'opaque' || response.headers.get('Access-Control-Allow-Origin') !== `https://${APP_DOMAIN}`) {
console.log('[Service Worker] Fallback to no-cors mode for:', request.url);
return fetch(new Request(request.url, {
method: 'GET',

View File

@@ -8,7 +8,7 @@ export default defineComponent({
title: String,
icon: String,
value_today: Number,
mytextval: Number,
mytextval: String,
classColor: String,
colBack: String,
mystyle: String,

View File

@@ -16,7 +16,7 @@
{{ mytextval }}
<q-badge
v-if="value_today > 0"
align="top"
:style="`text-align: top;`"
:label="`+` + value_today + ` oggi`"
:color="colBack"
>
@@ -30,5 +30,5 @@
</script>
<style lang="scss" scoped>
@import './CElemStat.scss';
@import "./CElemStat.scss";
</style>

View File

@@ -163,6 +163,16 @@ export default defineComponent({
transition: 'height 0.3s ease-in-out'
}))
const numpart = ref<number | null>(null);
const updatePart = () => {
numpart.value = calendarStore.getNumParticipants(
myrec.value,
true,
tools.peopleWhere.participants
);
};
const filtercustom: any = computed(() => {
let queryreact = {}
@@ -190,7 +200,7 @@ export default defineComponent({
}
async function load() {
console.log('load')
// console.log('load')
// Carica il record
if (props.idRec) {
await userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
@@ -218,6 +228,8 @@ export default defineComponent({
col.value = fieldsTable.getArrColsByTable(props.table)
updatePart()
ismounted.value = true
}
@@ -660,6 +672,7 @@ export default defineComponent({
emit('showInMap', rec)
}
onMounted(mounted)
return {
@@ -717,6 +730,8 @@ export default defineComponent({
toggleShowScheda,
showInMap,
ismounted,
updatePart,
numpart,
}
}
})

View File

@@ -190,11 +190,7 @@
costanti.TIPOFAVBOOK.ATTEND,
false,
$t('cmd.attend', {
num: calendarStore.getNumParticipants(
myrec,
true,
tools.peopleWhere.participants
),
num: numpart,
})
)
"
@@ -205,11 +201,7 @@
<q-item-section>
{{
$t("cmd.attend", {
num: calendarStore.getNumParticipants(
myrec,
true,
tools.peopleWhere.participants
),
num: numpart,
})
}}
</q-item-section>
@@ -287,13 +279,7 @@
text-color="primary"
color="white"
class="badge-favbook"
:label="
calendarStore.getNumParticipants(
myrec,
true,
tools.peopleWhere.participants
)
"
:label="numpart"
floating
transparent
/>
@@ -764,10 +750,7 @@
<q-item-section>
<q-item-label lines="1">
<span
v-html="
tools.getlinkEmail(myrec.email, t('services.email'))
"
<span v-html="tools.getlinkEmailTo(myrec.email)"
/></q-item-label>
</q-item-section>
</q-item>
@@ -809,12 +792,7 @@
<q-item
clickable
v-if="
table === shared_consts.TABLES_MYBACHECAS &&
calendarStore.getNumParticipants(
myrec,
true,
tools.peopleWhere.participants
) > 0
table === shared_consts.TABLES_MYBACHECAS && numpart > 0
"
>
<q-item-section avatar>
@@ -823,32 +801,19 @@
<q-item-section>
<q-item-label lines="1">
<span style="display: none">{{
(part = calendarStore.getNumParticipants(
myrec,
true,
tools.peopleWhere.participants
))
}}</span>
<q-btn
rounded
color="primary"
:label="
part
? $t('cmd.attend1', { num: part })
: $t('cmd.attend', { num: part })
numpart
? $t('cmd.attend1', { num: numpart })
: $t('cmd.attend', { num: numpart })
"
@click="
clicca(
costanti.TIPOFAVBOOK.ATTEND,
false,
$t('cmd.attend', {
num: calendarStore.getNumParticipants(
myrec,
true,
tools.peopleWhere.participants
),
})
$t('cmd.attend', { num: numpart })
)
"
>

View File

@@ -241,6 +241,7 @@
></CMySlider>
<CMySlider
v-if="myel.heightcard !== undefined"
label="Altezza Card:"
v-model="myel.heightcard"
:min="10"
@@ -2473,5 +2474,5 @@
<script lang="ts" src="./CMyEditElem.ts">
</script>
<style lang="scss" scoped>
@import './CMyEditElem.scss';
@import "./CMyEditElem.scss";
</style>

View File

@@ -59,7 +59,6 @@
:style="`background-color: ${myel.color} !important`"
@mouseenter="animarecard = false"
@mouseleave="animarecard = true"
@transition="handleTransition"
>
<template v-slot:control>
<q-carousel-control

View File

@@ -5,7 +5,7 @@ import { Api } from '@api'
import type * as Types from '@src/store/Api/ApiTypes'
async function sendRequest(url: string, method: string, mydata: any, myformdata?: any, responsedata?: any, options?: any) {
console.log('sendRequest', method, url, mydata)
// console.log('sendRequest', method, url, mydata)
let request
if (method === 'GET') request = Api.get(url, mydata, responsedata)

View File

@@ -4155,7 +4155,7 @@ export const fieldsTable = {
} else
return null
},
getArrColsByTable(mytable: string): any[] {
getArrColsByTable(mytable: string): any {
const tablerec: any = this.tablesList.find((rec) => rec.value === mytable)
if (tablerec && tablerec.columns) {
return tablerec.columns

View File

@@ -4832,15 +4832,6 @@ export const tools = {
return ''
}
},
getlinkEmail(myemail: string) {
if (myemail) {
return `<a href="${myemail}" >${myemail}</a>`
} else {
return ''
}
},
getlinkEmailTo(myemail: string) {

View File

@@ -2961,7 +2961,7 @@
dependencies:
"@types/node" "*"
"@types/node@*", "@types/node@>=10.0.0", "@types/node@^22.13.5":
"@types/node@*", "@types/node@>=10.0.0":
version "22.13.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.5.tgz#23add1d71acddab2c6a4d31db89c0f98d330b511"
integrity sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg==
@@ -2975,6 +2975,13 @@
dependencies:
undici-types "~6.19.2"
"@types/node@^22.13.8":
version "22.13.8"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.8.tgz#57e2450295b33a6518d6fd4f65f47236d3e41d8d"
integrity sha512-G3EfaZS+iOGYWLLRCEAXdWK9my08oHNZ+FHluRiggIYJPOXzhOiDgpVCUHaUvyIC5/fj7C/p637jdzC666AOKQ==
dependencies:
undici-types "~6.20.0"
"@types/nprogress@^0.2.3":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@types/nprogress/-/nprogress-0.2.3.tgz#b2150b054a13622fabcba12cf6f0b54c48b14287"
@@ -3330,10 +3337,10 @@
typescript-eslint "^8.23.0"
vue-eslint-parser "^9.4.3"
"@vue/language-core@2.2.4":
version "2.2.4"
resolved "https://registry.yarnpkg.com/@vue/language-core/-/language-core-2.2.4.tgz#5cad43a4cd6f388bebc3e8c6f303df489f5e8829"
integrity sha512-eGGdw7eWUwdIn9Fy/irJ7uavCGfgemuHQABgJ/hU1UgZFnbTg9VWeXvHQdhY+2SPQZWJqWXvRWIg67t4iWEa+Q==
"@vue/language-core@2.2.6":
version "2.2.6"
resolved "https://registry.yarnpkg.com/@vue/language-core/-/language-core-2.2.6.tgz#0f0256f7594d1825f84f91a868534700dea55252"
integrity sha512-7IQTvwVOvhYSzcizZ2hAdqJjI+SaJS2GO7EnDlSlQ77drwl5UzNa2IZm9pO9MdMxrlw24CGI/Lo3xpCjM26veg==
dependencies:
"@volar/language-core" "~2.4.11"
"@vue/compiler-dom" "^3.5.0"
@@ -4530,7 +4537,12 @@ core-js-compat@^3.40.0:
dependencies:
browserslist "^4.24.3"
core-js@^3.40.0, core-js@^3.6.0, core-js@^3.6.5, core-js@^3.8.3:
core-js@^3.41.0:
version "3.41.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.41.0.tgz#57714dafb8c751a6095d028a7428f1fb5834a776"
integrity sha512-SJ4/EHwS36QMJd6h/Rg+GyR4A5xE0FSI3eZ+iBVpfqf1x0eTSg1smWLHrA+2jQThZSh97fmSgFSU8B61nxosxA==
core-js@^3.6.0, core-js@^3.6.5, core-js@^3.8.3:
version "3.40.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.40.0.tgz#2773f6b06877d8eda102fc42f828176437062476"
integrity sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ==
@@ -9124,10 +9136,10 @@ quasar-extras@^2.0.9:
resolved "https://registry.yarnpkg.com/quasar-extras/-/quasar-extras-2.0.9.tgz#f3274f8cd8e054a76d0b52a2410ccf0cdfb197fd"
integrity sha512-ifwaaop0GNuxlcD7Ams0X3f7S49es+2NlR/fI4YAMAOW70ZxTkD4QkAFsVhk7dNPcpPodSOTKAWDOPaO+MqsBg==
quasar@^2.17.7:
version "2.17.7"
resolved "https://registry.yarnpkg.com/quasar/-/quasar-2.17.7.tgz#4a9b688a4b668ce0e63c9c343a317a5202ee8c55"
integrity sha512-nPJdHoONlcW7WEU2Ody907Wx945Zfyuea/KP4LBaEn5AcL95PUWp8Gz/0zDYNnFw0aCWRtye3SUAdQl5tmrn5w==
quasar@^2.18.0:
version "2.18.0"
resolved "https://registry.yarnpkg.com/quasar/-/quasar-2.18.0.tgz#984a353ccbb14cb05c0323e84721b4368cc03127"
integrity sha512-poaTNL9afzxieIE1D6G8AQB9gGCHhmQsCQTMCwkcd/FFZBQqqhKREWzgO7rEo6REDyPHLKBuBJ9QxLAahE55YA==
query-string@^4.1.0:
version "4.3.4"
@@ -11024,13 +11036,13 @@ vue-timeago3@^2.3.2:
dependencies:
date-fns "^2.28.0"
vue-tsc@^2.2.4:
version "2.2.4"
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-2.2.4.tgz#1e87eebbdde3078333304b9e5499b67157040305"
integrity sha512-3EVHlxtpMXcb5bCaK7QDFTbEkMusDfVk0HVRrkv5hEb+Clpu9a96lKUXJAeD/akRlkoA4H8MCHgBDN19S6FnzA==
vue-tsc@^2.2.6:
version "2.2.6"
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-2.2.6.tgz#497ac056928a350c9b4b7c2adbf8b0d56db94cce"
integrity sha512-TI6eAnWPatONEpVAZt1etbSrh8tDpHOLSlRqKGudOK5WKVnBGzHXUi0KR4UCsf2o5P+5285w4HF+5avhfH7IMA==
dependencies:
"@volar/typescript" "~2.4.11"
"@vue/language-core" "2.2.4"
"@vue/language-core" "2.2.6"
vue2-dragula@^2.5.5:
version "2.5.5"