- AI
- Aggiornamento QUASAR
@@ -1,19 +1,20 @@
|
|||||||
APP_VERSION="1.1.20"
|
APP_VERSION="1.1.20"
|
||||||
SERVICE_WORKER_FILE="service-worker.js"
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
APP_ID="13"
|
APP_ID="18"
|
||||||
DIRECTORY_LOCAL="newfreeplanet"
|
DIRECTORY_LOCAL="newfreeplanet"
|
||||||
DIRECTORY_SERVER="freeplanet_serverside"
|
DIRECTORY_SERVER="freeplanet_serverside"
|
||||||
SERVERDIR_WEBSITE=""
|
SERVERDIR_WEBSITE=""
|
||||||
SERVERPW_WEBSITE=""
|
SERVERPW_WEBSITE=""
|
||||||
APP_URL="https://localhost"
|
APP_URL="https://localhost"
|
||||||
URL_FACEBOOK="https://www.facebook.com/freeplanetapp"
|
URL_FACEBOOK="https://www.facebook.com/freeplanetapp"
|
||||||
|
PROVA_PAOLO="PROVA ENV FUNZIONA!"
|
||||||
LANG_DEFAULT="it"
|
LANG_DEFAULT="it"
|
||||||
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
|
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
|
||||||
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
|
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
|
||||||
MONGODB_HOST="https://localhost:3000"
|
MONGODB_HOST="https://localhost:3000"
|
||||||
LOGO_REG='riso-logo-full.png'
|
LOGO_REG='gruppomacro-logo-full.png'
|
||||||
TEST_NAME="Paolo"
|
TEST_NAME="Surya"
|
||||||
TEST_SURNAME="Arena"
|
TEST_SURNAME=""
|
||||||
TEST_EMAIL=""
|
TEST_EMAIL=""
|
||||||
TEST_USERNAME=""
|
TEST_USERNAME=""
|
||||||
TEST_PASSWORD=""
|
TEST_PASSWORD=""
|
||||||
@@ -24,5 +25,5 @@ DEBUG="1"
|
|||||||
TELEGRAM_SUPPORT=""
|
TELEGRAM_SUPPORT=""
|
||||||
PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
|
PROJECT_ID_MAIN="5cc0a13fe5c9d156728f400a"
|
||||||
TEST_CELL=""
|
TEST_CELL=""
|
||||||
VUE_APP_ISTEST="1"
|
VUE_APP_ISTEST=1
|
||||||
VUE_APP_INLOCALE="1"
|
VUE_APP_INLOCALE=1
|
||||||
27
.env.production
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
APP_VERSION="1.1.20"
|
||||||
|
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
|
||||||
4
.gitignore
vendored
@@ -1,4 +1,6 @@
|
|||||||
.env.production
|
.env.development
|
||||||
|
.env.test.*
|
||||||
|
.env.prod.*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.thumbs.db
|
.thumbs.db
|
||||||
node_modules
|
node_modules
|
||||||
|
|||||||
27
_ALL_SITES/abitaregliiblei.it/.env.production
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
APP_VERSION="1.1.20"
|
||||||
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
|
APP_ID="19"
|
||||||
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
DIRECTORY_SERVER=freeplanet_serverside
|
||||||
|
SERVERDIR_WEBSITE=abitaregliiblei.it
|
||||||
|
SERVERPW_WEBSITE=pwdadmin@1AOK
|
||||||
|
APP_URL="https://abitaregliiblei.it"
|
||||||
|
URL_FACEBOOK=""
|
||||||
|
PROVA_PAOLO=""
|
||||||
|
LANG_DEFAULT="it"
|
||||||
|
PAO_APP_ID="KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF"
|
||||||
|
MASTER_KEY="KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T"
|
||||||
|
MONGODB_HOST="https://api.abitaregliiblei.it"
|
||||||
|
LOGO_REG='abitaregliiblei-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
|
||||||
27
_ALL_SITES/comunitanuovomondo.app/.env.production
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
APP_VERSION="1.1.20"
|
||||||
|
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
|
||||||
27
_ALL_SITES/fioredellavita.riso.app/.env.production
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
APP_VERSION="1.1.20"
|
||||||
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
|
APP_ID="15"
|
||||||
|
DIRECTORY_LOCAL=newfreeplanet
|
||||||
|
DIRECTORY_SERVER=freeplanet_serverside
|
||||||
|
SERVERDIR_WEBSITE=fioredellavita.riso.app
|
||||||
|
SERVERPW_WEBSITE=pwdadmin@1AOK
|
||||||
|
APP_URL="https://fioredellavita.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='fioredellavita-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
|
||||||
27
_ALL_SITES/kolibrilab.it/.env.production
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
APP_VERSION="0.5.28"
|
||||||
|
SERVICE_WORKER_FILE="service-worker.js"
|
||||||
|
APP_ID="16"
|
||||||
|
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
|
||||||
2
now.txt
@@ -1 +1 @@
|
|||||||
TERMINA DI LAVORARE SU gruppomacro.app: (Sovrascrivo !)
|
TERMINA DI LAVORARE SU riso.app: (Sovrascrivo !)
|
||||||
|
|||||||
102
package.json
@@ -28,32 +28,32 @@
|
|||||||
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
||||||
"@babel/plugin-proposal-json-strings": "^7.18.6",
|
"@babel/plugin-proposal-json-strings": "^7.18.6",
|
||||||
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|
||||||
"@babel/runtime": "^7.25.7",
|
"@babel/runtime": "^7.26.7",
|
||||||
"@cubejs-client/core": "^0.36.4",
|
"@cubejs-client/core": "^1.2.1",
|
||||||
"@quasar/extras": "^1.16.12",
|
"@quasar/extras": "^1.16.16",
|
||||||
"@quasar/quasar-ui-qcalendar": "^4.0.0-beta.19",
|
"@quasar/quasar-ui-qcalendar": "^4.1.1",
|
||||||
"@types/leaflet": "^1.9.12",
|
"@types/leaflet": "^1.9.16",
|
||||||
"@vue/compat": "^3.5.10",
|
"@vue/compat": "^3.5.13",
|
||||||
"@vue/compiler-sfc": "^3.5.10",
|
"@vue/compiler-sfc": "^3.5.13",
|
||||||
"@vue/eslint-config-standard": "^8.0.1",
|
"@vue/eslint-config-standard": "^8.0.1",
|
||||||
"@vuelidate/core": "^2.0.3",
|
"@vuelidate/core": "^2.0.3",
|
||||||
"@vuelidate/validators": "^2.0.4",
|
"@vuelidate/validators": "^2.0.4",
|
||||||
"acorn": "^8.12.1",
|
"acorn": "^8.14.0",
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.9",
|
||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
"chart.js": "^4.4.4",
|
"chart.js": "^4.4.7",
|
||||||
"core-js": "^3.38.1",
|
"core-js": "^3.40.0",
|
||||||
"crypto-browserify": "^3.12.0",
|
"crypto-browserify": "^3.12.1",
|
||||||
"date-fns": "^4.1.0",
|
"date-fns": "^4.1.0",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.7",
|
||||||
"echarts": "5.5.1",
|
"echarts": "5.6.0",
|
||||||
"eslint-plugin-n": "^17.10.3",
|
"eslint-plugin-n": "^17.15.1",
|
||||||
"eslint-plugin-quasar": "^1.1.0",
|
"eslint-plugin-quasar": "^1.1.0",
|
||||||
"graphql": "^16.9.0",
|
"graphql": "^16.10.0",
|
||||||
"graphql-tag": "^2.12.6",
|
"graphql-tag": "^2.12.6",
|
||||||
"gsap": "^3.12.5",
|
"gsap": "^3.12.7",
|
||||||
"html2pdf.js": "^0.10.2",
|
"html2pdf.js": "^0.10.2",
|
||||||
"jquery": "^3.7.1",
|
"jquery": "^3.7.1",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
@@ -63,25 +63,25 @@
|
|||||||
"localforage": "^1.10.0",
|
"localforage": "^1.10.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"npm": "^10.8.3",
|
"npm": "^10.8.0",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"pinia": "^2.2.4",
|
"pinia": "^2.3.1",
|
||||||
"qrcode-vue3": "^1.7.1",
|
"qrcode-vue3": "^1.7.1",
|
||||||
"quasar": "^2.17.0",
|
"quasar": "^2.17.7",
|
||||||
"quasar-extras": "^2.0.9",
|
"quasar-extras": "^2.0.9",
|
||||||
"register-service-worker": "^1.7.2",
|
"register-service-worker": "^1.7.2",
|
||||||
"typescript-eslint": "^8.8.0",
|
"typescript-eslint": "^8.23.0",
|
||||||
"vee-validate": "^4.13.2",
|
"vee-validate": "^4.15.0",
|
||||||
"vue": "^3.5.10",
|
"vue": "^3.5.13",
|
||||||
"vue-class-component": "^8.0.0-rc.1",
|
"vue-class-component": "^8.0.0-rc.1",
|
||||||
"vue-country-code": "^1.1.3",
|
"vue-country-code": "^1.1.3",
|
||||||
"vue-echarts": "^7.0.3",
|
"vue-echarts": "^7.0.3",
|
||||||
"vue-i18n": "^9.14.1",
|
"vue-i18n": "^11.1.0",
|
||||||
"vue-idb": "^0.2.0",
|
"vue-idb": "^0.2.0",
|
||||||
"vue-image-zoomer": "^2.4.1",
|
"vue-image-zoomer": "^2.4.4",
|
||||||
"vue-loader": "^17.4.2",
|
"vue-loader": "^17.4.2",
|
||||||
"vue-property-decorator": "^10.0.0-rc.3",
|
"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-scroll-reveal": "^2.1.0",
|
||||||
"vue-social-sharing": "^4.0.0-alpha4",
|
"vue-social-sharing": "^4.0.0-alpha4",
|
||||||
"vue-svgicon": "^4.0.0-alpha.3",
|
"vue-svgicon": "^4.0.0-alpha.3",
|
||||||
@@ -93,54 +93,54 @@
|
|||||||
"vuex-router-sync": "^6.0.0-rc.1"
|
"vuex-router-sync": "^6.0.0-rc.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.25.7",
|
"@babel/core": "^7.26.7",
|
||||||
"@babel/plugin-transform-class-properties": "^7.25.7",
|
"@babel/plugin-transform-class-properties": "^7.25.9",
|
||||||
"@babel/plugin-transform-export-namespace-from": "^7.25.7",
|
"@babel/plugin-transform-export-namespace-from": "^7.25.9",
|
||||||
"@babel/plugin-transform-json-strings": "^7.25.7",
|
"@babel/plugin-transform-json-strings": "^7.25.9",
|
||||||
"@babel/plugin-transform-numeric-separator": "^7.25.7",
|
"@babel/plugin-transform-numeric-separator": "^7.25.9",
|
||||||
"@babel/plugin-transform-runtime": "^7.25.7",
|
"@babel/plugin-transform-runtime": "^7.25.9",
|
||||||
"@quasar/app-webpack": "^3.14.0",
|
"@quasar/app-webpack": "3.15.1",
|
||||||
"@types/bcryptjs": "^2.4.6",
|
"@types/bcryptjs": "^2.4.6",
|
||||||
"@types/dotenv": "^8.2.0",
|
"@types/dotenv": "^8.2.0",
|
||||||
"@types/google.maps": "^3.58.1",
|
"@types/google.maps": "^3.58.1",
|
||||||
"@types/jest": "^29.5.13",
|
"@types/jest": "^29.5.14",
|
||||||
"@types/js-cookie": "^3.0.6",
|
"@types/js-cookie": "^3.0.6",
|
||||||
"@types/node": "22.7.4",
|
"@types/node": "22.13.1",
|
||||||
"@types/nprogress": "^0.2.3",
|
"@types/nprogress": "^0.2.3",
|
||||||
"@types/vue-tel-input": "^2.1.7",
|
"@types/vue-tel-input": "^2.1.7",
|
||||||
"@types/vuelidate": "^0.7.21",
|
"@types/vuelidate": "^0.7.22",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
||||||
"@typescript-eslint/parser": "^8.8.0",
|
"@typescript-eslint/parser": "^8.23.0",
|
||||||
"babel-loader": "^9.2.1",
|
"babel-loader": "^9.2.1",
|
||||||
"copy-webpack-plugin": "^12.0.2",
|
"copy-webpack-plugin": "^12.0.2",
|
||||||
"eslint": "^9.11.1",
|
"eslint": "^9.19.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-plugin-import": "^2.31.0",
|
"eslint-plugin-import": "^2.31.0",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^7.1.0",
|
"eslint-plugin-promise": "^7.2.1",
|
||||||
"eslint-plugin-vue": "^9.28.0",
|
"eslint-plugin-vue": "^9.32.0",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||||
"friendly-errors-webpack-plugin": "^1.7.0",
|
"friendly-errors-webpack-plugin": "^1.7.0",
|
||||||
"html-webpack-plugin": "^5.6.0",
|
"html-webpack-plugin": "^5.6.3",
|
||||||
"http-proxy-middleware": "^3.0.2",
|
"http-proxy-middleware": "^3.0.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"json-loader": "^0.5.7",
|
"json-loader": "^0.5.7",
|
||||||
"node-sass": "^9.0.0",
|
"node-sass": "^9.0.0",
|
||||||
"nodemon": "^3.1.7",
|
"nodemon": "^3.1.9",
|
||||||
"npm-check-updates": "^17.1.3",
|
"npm-check-updates": "^17.1.14",
|
||||||
"optimize-css-assets-webpack-plugin": "^6.0.1",
|
"optimize-css-assets-webpack-plugin": "^6.0.1",
|
||||||
"parcel": "^2.12.0",
|
"parcel": "^2.13.3",
|
||||||
"postcss": "^8.4.47",
|
"postcss": "^8.5.1",
|
||||||
"postcss-loader": "^8.1.1",
|
"postcss-loader": "^8.1.1",
|
||||||
"sass-loader": "^16.0.2",
|
"sass-loader": "^16.0.4",
|
||||||
"strip-ansi": "=7.1.0",
|
"strip-ansi": "=7.1.0",
|
||||||
"ts-jest": "^29.2.5",
|
"ts-jest": "^29.2.5",
|
||||||
"ts-loader": "^9.5.1",
|
"ts-loader": "^9.5.2",
|
||||||
"typescript": "5.6.2",
|
"typescript": "5.6.2",
|
||||||
"vue-cli-plugin-element-ui": "^1.1.4",
|
"vue-cli-plugin-element-ui": "^1.1.4",
|
||||||
"vueify": "^9.4.1",
|
"vueify": "^9.4.1",
|
||||||
"webpack": "^5.95.0",
|
"webpack": "^5.97.1",
|
||||||
"webpack-dashboard": "^3.3.8",
|
"webpack-dashboard": "^3.3.8",
|
||||||
"workbox-webpack-plugin": "^7.1.0"
|
"workbox-webpack-plugin": "^7.1.0"
|
||||||
},
|
},
|
||||||
|
|||||||
BIN
public/images/bestseller.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
3592316
public/images/comuni_italia.geojson
Normal file
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 90 KiB |
BIN
public/images/gm-android-icon-192x192.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
public/images/gm-android-icon-512x512.png
Normal file
|
After Width: | Height: | Size: 158 KiB |
BIN
public/images/gm-apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
public/images/gruppomacro-logo-full.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
public/images/novita.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/ombra.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 185 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 424 KiB |
|
Before Width: | Height: | Size: 279 KiB |
|
Before Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 124 KiB |
@@ -43,8 +43,7 @@ module.exports = configure((ctx) => ({
|
|||||||
|
|
||||||
// https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
|
// https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
|
||||||
css: [
|
css: [
|
||||||
'app.scss',
|
'app.scss' // '~quasar-ui-qcalendar/src/css/calendar-day.sass'
|
||||||
// '~quasar-ui-qcalendar/src/css/calendar-day.sass'
|
|
||||||
],
|
],
|
||||||
|
|
||||||
// https://github.com/quasarframework/quasar/tree/dev/extras
|
// https://github.com/quasarframework/quasar/tree/dev/extras
|
||||||
@@ -152,9 +151,9 @@ module.exports = configure((ctx) => ({
|
|||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
https: false,
|
https: false,
|
||||||
port: 8084,
|
port: 8089,
|
||||||
open: false, // opens browser window automatically
|
open: false, // opens browser window automatically
|
||||||
hot: false, // Disable hot module replacement
|
hot: true, // Disable hot module replacement
|
||||||
headers: {
|
headers: {
|
||||||
'Access-Control-Allow-Origin': '*',
|
'Access-Control-Allow-Origin': '*',
|
||||||
'Access-Control-Allow-Headers': '*',
|
'Access-Control-Allow-Headers': '*',
|
||||||
@@ -253,6 +252,7 @@ module.exports = configure((ctx) => ({
|
|||||||
'AppVisibility',
|
'AppVisibility',
|
||||||
'LocalStorage',
|
'LocalStorage',
|
||||||
'SessionStorage',
|
'SessionStorage',
|
||||||
|
|
||||||
],
|
],
|
||||||
get plugins_1() {
|
get plugins_1() {
|
||||||
return this._plugins;
|
return this._plugins;
|
||||||
@@ -313,9 +313,9 @@ module.exports = configure((ctx) => ({
|
|||||||
},
|
},
|
||||||
|
|
||||||
manifest: {
|
manifest: {
|
||||||
name: 'Riso',
|
name: 'Gruppo Macro',
|
||||||
short_name: 'Riso',
|
short_name: 'GruppoMacro',
|
||||||
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.',
|
description: '',
|
||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
orientation: 'portrait',
|
orientation: 'portrait',
|
||||||
background_color: '#fff',
|
background_color: '#fff',
|
||||||
@@ -325,54 +325,24 @@ module.exports = configure((ctx) => ({
|
|||||||
start_url: "/?homescreen=1",
|
start_url: "/?homescreen=1",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: 'images/riso-android-icon-512x512.png',
|
src: 'images/gm-android-icon-512x512.png',
|
||||||
sizes: '512x512',
|
sizes: '512x512',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/riso-android-icon-384x384.png',
|
src: 'images/gm-android-icon-192x192.png',
|
||||||
sizes: '384x384',
|
|
||||||
type: 'image/png',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
src: 'images/riso-android-icon-192x192.png',
|
|
||||||
sizes: '192x192',
|
sizes: '192x192',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: 'images/riso-android-icon-144x144.png',
|
src: 'images/gm-apple-touch-icon.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',
|
sizes: '180x180',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
related_applications: [{
|
related_applications: [{
|
||||||
"platform": "webapp",
|
"platform": "webapp",
|
||||||
"url": "https://www.riso.app/manifest.json"
|
"url": "https://www.gruppomacro.app/manifest.json"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -407,7 +377,7 @@ module.exports = configure((ctx) => ({
|
|||||||
builder: {
|
builder: {
|
||||||
// https://www.electron.build/configuration/configuration
|
// https://www.electron.build/configuration/configuration
|
||||||
|
|
||||||
appId: 'Riso',
|
appId: 'GruppoMacro',
|
||||||
},
|
},
|
||||||
|
|
||||||
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
||||||
|
|||||||
@@ -1,78 +1,10 @@
|
|||||||
.colmodif {
|
.response-content {
|
||||||
cursor: pointer;
|
white-space: pre-wrap;
|
||||||
}
|
word-break: break-word;
|
||||||
|
font-family: monospace;
|
||||||
.coldate {
|
font-size: 14px;
|
||||||
max-width: 250px;
|
line-height: 1.5;
|
||||||
min-width: 200px;
|
padding: 10px;
|
||||||
}
|
background-color: #f8f8f8;
|
||||||
|
border-radius: 4px;
|
||||||
.tdclass, .trclass{
|
|
||||||
min-height: 20px !important;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table td {
|
|
||||||
padding-left: 1px;
|
|
||||||
padding-right: 2px;
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
&__title {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.q-table {
|
|
||||||
&__col {
|
|
||||||
font-size: 1rem;
|
|
||||||
color: gray;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.newrec_fields{
|
|
||||||
display: flex;
|
|
||||||
padding: 2px;
|
|
||||||
margin: 2px;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.riduci_pad {
|
|
||||||
min-height: 30px;
|
|
||||||
padding: 4px 8px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.q-table__top{
|
|
||||||
padding-top: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.barselection {
|
|
||||||
padding: 0;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
.myitem {
|
|
||||||
padding: 0px 0px 0px 0px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.myitem-0 {
|
|
||||||
flex-grow: 0;
|
|
||||||
padding-left: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.myitem-1 {
|
|
||||||
flex-grow: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.myitem-2 {
|
|
||||||
flex-grow: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.myitem-3 {
|
|
||||||
flex-grow: 1;
|
|
||||||
}
|
}
|
||||||
@@ -11,6 +11,8 @@ import { useQuasar } from 'quasar'
|
|||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
|
import { serv_constants } from '@store/Modules/serv_constants'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CAITools',
|
name: 'CAITools',
|
||||||
props: {
|
props: {
|
||||||
@@ -26,14 +28,144 @@ export default defineComponent({
|
|||||||
|
|
||||||
const $router = useRouter()
|
const $router = useRouter()
|
||||||
|
|
||||||
|
const options = ref(<any>{})
|
||||||
|
|
||||||
const querySel = ref('')
|
const querySel = ref('')
|
||||||
|
|
||||||
|
const contestSysteList = [
|
||||||
|
{ label: 'Standard', value: '' },
|
||||||
|
{ label: 'Matematica', value: 'Sei un esperto in Matematica' },
|
||||||
|
{ label: 'Editoriale', value: 'Sei un esperto in Editoria e scrittura di articoli e blog' },
|
||||||
|
{ label: 'Programmazione', value: 'Sei un esperto in programmazione' },
|
||||||
|
]
|
||||||
|
const modelList = [
|
||||||
|
{ label: 'DeepSeek', value: 'deepseek-chat' },
|
||||||
|
]
|
||||||
|
|
||||||
|
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: '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 \'|\'' },
|
||||||
|
]
|
||||||
|
|
||||||
|
const tempList = [{ label: 'Temperatura a 0.3', value: 0.3 },
|
||||||
|
{ label: 'Temperatura a 0.5', value: 0.5 },
|
||||||
|
{ label: 'Temperatura a 1', value: 1 },
|
||||||
|
{ label: 'Temperatura a 1.2', value: 1.2 },
|
||||||
|
{ label: 'Temperatura a 1.5', value: 1.5 },
|
||||||
|
]
|
||||||
|
|
||||||
|
const tokenList = [
|
||||||
|
{ label: '50 Token', value: 50 },
|
||||||
|
{ label: '100 Token', value: 100 },
|
||||||
|
{ label: '200 Token', value: 200 },
|
||||||
|
{ label: '500 Token', value: 500 },
|
||||||
|
{ label: '1000 Token', value: 1000 },
|
||||||
|
{ label: '2500 Token', value: 2500 },
|
||||||
|
{ label: '4000 Token', value: 4000 },
|
||||||
|
{ label: '5000 Token', value: 5000 },
|
||||||
|
{ label: '10000 Token', value: 10000 },
|
||||||
|
]
|
||||||
|
|
||||||
|
const model = ref('deepseek-chat')
|
||||||
|
const max_tokens = ref(100)
|
||||||
|
const outputType = ref('')
|
||||||
|
const temp = ref(0.3)
|
||||||
|
const stream = ref(false)
|
||||||
|
const contestsystem = ref('')
|
||||||
|
|
||||||
|
const inputPrompt = ref('');
|
||||||
|
const result = ref('');
|
||||||
|
const isLoading = ref(false);
|
||||||
|
const errorMessage = ref('');
|
||||||
|
const finish_reason = ref('');
|
||||||
|
const withexplain = ref(false);
|
||||||
|
|
||||||
|
const querylist = ref(<any[]>[])
|
||||||
|
|
||||||
|
|
||||||
|
const modelLabel = computed(() => {
|
||||||
|
const foundModel = modelList.find((item: any) => item.value === model.value);
|
||||||
|
return foundModel ? foundModel.label : null;
|
||||||
|
})
|
||||||
|
|
||||||
function mount() {
|
function mount() {
|
||||||
// Mount
|
// Mount
|
||||||
|
|
||||||
|
querylist.value = globalStore.getQueryAI()
|
||||||
|
|
||||||
|
outputType.value = outputTypeList[0].value
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function handleSubmit() {
|
||||||
|
isLoading.value = true;
|
||||||
|
errorMessage.value = '';
|
||||||
|
result.value = '';
|
||||||
|
|
||||||
|
options.value = {
|
||||||
|
model: model.value,
|
||||||
|
max_tokens: max_tokens.value,
|
||||||
|
temp: temp.value,
|
||||||
|
stream: stream.value,
|
||||||
|
withexplain: withexplain.value,
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
const resdata = await globalStore.getQueryDS(inputPrompt.value, options.value)
|
||||||
|
|
||||||
|
if (resdata.code === serv_constants.RIS_CODE_OK) {
|
||||||
|
if (resdata.choice) {
|
||||||
|
finish_reason.value = resdata.choice.finish_reason || ''
|
||||||
|
}
|
||||||
|
if (resdata.choice.message) {
|
||||||
|
result.value = resdata.choice.message.content || ''
|
||||||
|
}
|
||||||
|
} else if (resdata.code === serv_constants.RIS_CODE_ERR) {
|
||||||
|
errorMessage.value = resdata.error.message || resdata.error;
|
||||||
|
$q.notify({
|
||||||
|
color: 'negative',
|
||||||
|
icon: 'error',
|
||||||
|
message: 'Errore durante la richiesta',
|
||||||
|
caption: errorMessage.value
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (error: any) {
|
||||||
|
errorMessage.value = error.response?.data?.error || error.message;
|
||||||
|
$q.notify({
|
||||||
|
color: 'negative',
|
||||||
|
icon: 'error',
|
||||||
|
message: 'Errore durante la richiesta',
|
||||||
|
caption: errorMessage.value
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
isLoading.value = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
const copyToClipboard = () => {
|
||||||
|
if (!result.value) return;
|
||||||
|
|
||||||
|
navigator.clipboard.writeText(result.value).then(() => {
|
||||||
|
$q.notify({
|
||||||
|
message: 'Copiato negli appunti!',
|
||||||
|
color: 'positive',
|
||||||
|
icon: 'check',
|
||||||
|
});
|
||||||
|
}).catch(err => {
|
||||||
|
console.error('Errore nella copia:', err);
|
||||||
|
$q.notify({
|
||||||
|
message: 'Errore nella copia!',
|
||||||
|
color: 'negative',
|
||||||
|
icon: 'error',
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(mount)
|
onMounted(mount)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -41,6 +173,26 @@ export default defineComponent({
|
|||||||
querySel,
|
querySel,
|
||||||
$q,
|
$q,
|
||||||
globalStore,
|
globalStore,
|
||||||
|
inputPrompt,
|
||||||
|
result,
|
||||||
|
isLoading,
|
||||||
|
errorMessage,
|
||||||
|
handleSubmit,
|
||||||
|
querylist,
|
||||||
|
copyToClipboard,
|
||||||
|
max_tokens,
|
||||||
|
tokenList,
|
||||||
|
modelList,
|
||||||
|
tempList,
|
||||||
|
stream,
|
||||||
|
model,
|
||||||
|
contestSysteList,
|
||||||
|
contestsystem,
|
||||||
|
finish_reason,
|
||||||
|
modelLabel,
|
||||||
|
withexplain,
|
||||||
|
outputType,
|
||||||
|
outputTypeList,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,15 +1,173 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<q-page class="q-pa-md">
|
||||||
|
<div class="column text-center">
|
||||||
|
<div class="row justify-center">
|
||||||
<q-select
|
<q-select
|
||||||
|
v-if="queryList"
|
||||||
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||||
outlined
|
outlined
|
||||||
v-model="querySel"
|
v-model="querySel"
|
||||||
:options="globalStore.getQueryAI()"
|
:options="queryList"
|
||||||
:label="t('ai.selectquery') + `:`"
|
:label="t('queryai.selectquery') + `:`"
|
||||||
emit-value
|
emit-value
|
||||||
|
style="min-width: 200px"
|
||||||
map-options
|
map-options
|
||||||
|
option-value="_id"
|
||||||
|
option-label="descr"
|
||||||
>
|
>
|
||||||
</q-select>
|
</q-select>
|
||||||
|
|
||||||
|
<q-select
|
||||||
|
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||||
|
outlined
|
||||||
|
v-model="model"
|
||||||
|
:options="modelList"
|
||||||
|
style="min-width: 200px"
|
||||||
|
:label="t('queryai.model') + `:`"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-value="value"
|
||||||
|
option-label="label"
|
||||||
|
>
|
||||||
|
</q-select>
|
||||||
|
<q-select
|
||||||
|
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||||
|
outlined
|
||||||
|
v-model="contestsystem"
|
||||||
|
:options="contestSysteList"
|
||||||
|
style="min-width: 200px"
|
||||||
|
:label="t('queryai.contestsystem') + `:`"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-value="value"
|
||||||
|
option-label="label"
|
||||||
|
>
|
||||||
|
</q-select>
|
||||||
|
<q-select
|
||||||
|
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||||
|
outlined
|
||||||
|
v-model="max_tokens"
|
||||||
|
style="min-width: 200px"
|
||||||
|
:options="tokenList"
|
||||||
|
:label="t('queryai.numtoken') + `:`"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-value="value"
|
||||||
|
option-label="label"
|
||||||
|
>
|
||||||
|
</q-select>
|
||||||
|
<q-select
|
||||||
|
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||||
|
outlined
|
||||||
|
v-model="temp"
|
||||||
|
style="min-width: 200px"
|
||||||
|
:options="tempList"
|
||||||
|
:label="t('queryai.temp') + `:`"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-value="value"
|
||||||
|
option-label="label"
|
||||||
|
>
|
||||||
|
</q-select>
|
||||||
|
<q-select
|
||||||
|
:behavior="$q.platform.is.ios === true ? 'dialog' : 'menu'"
|
||||||
|
outlined
|
||||||
|
v-model="outputType"
|
||||||
|
style="min-width: 200px"
|
||||||
|
:options="outputTypeList"
|
||||||
|
:label="t('queryai.numtoken') + `:`"
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-value="value"
|
||||||
|
option-label="label"
|
||||||
|
>
|
||||||
|
</q-select>
|
||||||
|
</div>
|
||||||
|
<div class="row justify-center">
|
||||||
|
<q-toggle
|
||||||
|
label="Stream"
|
||||||
|
v-model="stream"
|
||||||
|
color="green"
|
||||||
|
icon="fas fa-stream"
|
||||||
|
keep-color
|
||||||
|
>
|
||||||
|
</q-toggle>
|
||||||
|
<q-toggle
|
||||||
|
:label="t('queryai.withexplain')"
|
||||||
|
v-model="withexplain"
|
||||||
|
color="green"
|
||||||
|
icon="fas fa-comment"
|
||||||
|
keep-color
|
||||||
|
>
|
||||||
|
</q-toggle>
|
||||||
|
</div>
|
||||||
|
<q-separator></q-separator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="q-mt-md q-gutter-y-md">
|
||||||
|
<q-form @submit.prevent="handleSubmit">
|
||||||
|
<q-input
|
||||||
|
v-model="inputPrompt"
|
||||||
|
filled
|
||||||
|
autogrow
|
||||||
|
type="textarea"
|
||||||
|
label="Inserisci la tua richiesta"
|
||||||
|
hint="Scrivi qui il tuo prompt"
|
||||||
|
class="q-mb-md"
|
||||||
|
autofocus
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div class="text-center">
|
||||||
|
<q-btn
|
||||||
|
:label="`Invia a ` + modelLabel"
|
||||||
|
type="submit"
|
||||||
|
color="primary"
|
||||||
|
:loading="isLoading"
|
||||||
|
icon="send"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</q-form>
|
||||||
|
|
||||||
|
MARKDOWN:
|
||||||
|
<q-markdown :content="`L'altezza \( h \) di un triangolo isoscele con base 10 è \( h = \sqrt{l^2 - 25} \), dove \( l \) è la lunghezza dei lati congruenti.`" />
|
||||||
|
|
||||||
|
<q-card v-if="result" class="q-mt-md">
|
||||||
|
<q-card-section>
|
||||||
|
<div class="text-h6 row items-center justify-between">
|
||||||
|
<span>Risposta</span>
|
||||||
|
<q-btn
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
icon="content_copy"
|
||||||
|
@click="copyToClipboard"
|
||||||
|
v-tooltip="'Copia negli appunti'"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<q-markdown :content="result" />
|
||||||
|
<q-scroll-area style="height: 300px">
|
||||||
|
<pre class="response-content">{{ result }}</pre>
|
||||||
|
</q-scroll-area>
|
||||||
|
<pre class="response-reason">Esito: {{ finish_reason }}</pre>
|
||||||
|
</q-card-section>
|
||||||
|
</q-card>
|
||||||
|
|
||||||
|
<q-banner
|
||||||
|
v-if="errorMessage"
|
||||||
|
class="q-mt-md bg-negative text-white"
|
||||||
|
rounded
|
||||||
|
>
|
||||||
|
{{ errorMessage }}
|
||||||
|
</q-banner>
|
||||||
|
|
||||||
|
<q-inner-loading :showing="isLoading">
|
||||||
|
<q-spinner-gears size="50px" color="primary" />
|
||||||
|
<div class="q-mt-sm">Elaborazione richiesta...</div>
|
||||||
|
</q-inner-loading>
|
||||||
|
</div>
|
||||||
|
</q-page>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" src="./CAITools.ts">
|
<script lang="ts" src="./CAITools.ts">
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
const msg_website_it = {
|
const msg_website_it = {
|
||||||
ws: {
|
ws: {
|
||||||
sitename: 'Riso',
|
sitename: 'Gruppo Macro',
|
||||||
siteshortname: 'RISO',
|
siteshortname: 'Gruppo Macro',
|
||||||
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.',
|
description: '',
|
||||||
keywords: 'riso, piattaforma di scambio, rete italiana scambio orizzontale, riso app, riso piattaforma, scambio e baratto, momenta RIS',
|
keywords: '',
|
||||||
},
|
},
|
||||||
hours: {
|
hours: {
|
||||||
descr: 'Descrizione',
|
descr: 'Descrizione',
|
||||||
@@ -16,29 +16,20 @@ const msg_website_it = {
|
|||||||
pages: {
|
pages: {
|
||||||
home: 'Home',
|
home: 'Home',
|
||||||
profile: 'Profilo',
|
profile: 'Profilo',
|
||||||
|
install_site: 'Installa Sito',
|
||||||
profile2: 'ProfiloU',
|
profile2: 'ProfiloU',
|
||||||
mypage2: 'mypage2',
|
mypage2: 'mypage2',
|
||||||
myservice2: 'myservice2',
|
myservice2: 'myservice2',
|
||||||
myhosps2: 'myhosps2',
|
myhosps2: 'myhosps2',
|
||||||
mygood2: 'mygood2',
|
mygood2: 'mygood2',
|
||||||
|
catalogo: 'Catalogo',
|
||||||
fundraising: 'Sostieni il Progetto',
|
fundraising: 'Sostieni il Progetto',
|
||||||
notifs: 'Configura le Notifiche',
|
notifs: 'Configura le Notifiche',
|
||||||
unsubscribe: 'Disiscriviti',
|
unsubscribe: 'Disiscriviti',
|
||||||
|
unsubscribe_user: 'Disiscriviti User',
|
||||||
test: 'Test',
|
test: 'Test',
|
||||||
projects: 'Progetti',
|
projects: 'Progetti',
|
||||||
report: 'Report Ore',
|
report: 'Report Ore',
|
||||||
producer: 'Produttore',
|
|
||||||
orderinfo: 'Ordini Effettuati',
|
|
||||||
products: 'Prodotti',
|
|
||||||
productslist: 'Lista Prodotti',
|
|
||||||
collabora: 'Collabora',
|
|
||||||
storehouses: 'Magazzino',
|
|
||||||
departments: 'Uffici',
|
|
||||||
orders: 'Ordini Ricevuti',
|
|
||||||
orders2: 'Ordini Ricevuti',
|
|
||||||
sharewithus: 'Condividi con Noi',
|
|
||||||
checkout: 'Carrello',
|
|
||||||
payment: 'Pagamenti',
|
|
||||||
regok: 'Registrazione Confermata',
|
regok: 'Registrazione Confermata',
|
||||||
presentazione: 'Presentazione',
|
presentazione: 'Presentazione',
|
||||||
presentazione2: 'Presentazione',
|
presentazione2: 'Presentazione',
|
||||||
@@ -89,9 +80,6 @@ const msg_website_it = {
|
|||||||
projectsShared: 'Condivisi da me',
|
projectsShared: 'Condivisi da me',
|
||||||
myprojects: 'Privati',
|
myprojects: 'Privati',
|
||||||
favproj: 'Favoriti',
|
favproj: 'Favoriti',
|
||||||
admin_ecommerce: 'ECommerce',
|
|
||||||
ecommerce: 'Prodotti',
|
|
||||||
ecommerce_menu: 'ECommerce1',
|
|
||||||
hours: 'Ore',
|
hours: 'Ore',
|
||||||
department: 'Uffici',
|
department: 'Uffici',
|
||||||
title: 'Titolo',
|
title: 'Titolo',
|
||||||
@@ -121,15 +109,9 @@ const msg_website_it = {
|
|||||||
only_residenti: 'Solo Residenti',
|
only_residenti: 'Solo Residenti',
|
||||||
only_consiglio: 'Solo Consiglieri',
|
only_consiglio: 'Solo Consiglieri',
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
mainMenu: 'Menu Principale',
|
|
||||||
subtitle: 'Sottotitolo',
|
|
||||||
lang: 'Lingua',
|
|
||||||
keywords: 'Parole Chiave',
|
|
||||||
desctiption: 'Descrizione',
|
|
||||||
heightimg: 'Altezza Immagine',
|
|
||||||
},
|
},
|
||||||
msg: {
|
msg: {
|
||||||
myAppName: 'Riso',
|
myAppName: 'Più che Buono',
|
||||||
myAppDescription: 'Il primo Vero Social Libero, Equo e Solidale, dove Vive Consapevolezza e Aiuto Comunitario. Gratuito',
|
myAppDescription: 'Il primo Vero Social Libero, Equo e Solidale, dove Vive Consapevolezza e Aiuto Comunitario. Gratuito',
|
||||||
underconstruction: 'App in costruzione...',
|
underconstruction: 'App in costruzione...',
|
||||||
myDescriz: '',
|
myDescriz: '',
|
||||||
|
|||||||
@@ -67,39 +67,6 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
active: true,
|
|
||||||
order: 12,
|
|
||||||
path: '/goods',
|
|
||||||
materialIcon: 'fas fa-tshirt',
|
|
||||||
name: 'mypages.goods',
|
|
||||||
component: () => import('@/root/goods/goods.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
|
||||||
inmenu: true,
|
|
||||||
infooter: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
active: true,
|
|
||||||
order: 15,
|
|
||||||
path: '/services',
|
|
||||||
materialIcon: 'fas fa-house-user',
|
|
||||||
name: 'mypages.services',
|
|
||||||
component: () => import('@/root/services/services.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
|
||||||
inmenu: true,
|
|
||||||
infooter: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
active: true,
|
|
||||||
order: 15,
|
|
||||||
path: '/activities',
|
|
||||||
materialIcon: 'fas fa-house-user',
|
|
||||||
name: 'mypages.activities',
|
|
||||||
component: () => import('@/root/activities/activities.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
|
||||||
inmenu: false,
|
|
||||||
infooter: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 15,
|
order: 15,
|
||||||
@@ -111,17 +78,6 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
active: true,
|
|
||||||
order: 15,
|
|
||||||
path: '/hosps',
|
|
||||||
materialIcon: 'fas fa-bed',
|
|
||||||
name: 'mypages.hosp',
|
|
||||||
component: () => import('@/root/hosp/hosp.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
|
||||||
inmenu: true,
|
|
||||||
infooter: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
active: site.confpages && site.confpages.enableCircuits,
|
active: site.confpages && site.confpages.enableCircuits,
|
||||||
order: 16,
|
order: 16,
|
||||||
@@ -134,7 +90,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: true,
|
infooter: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.enableEvents,
|
||||||
order: 20,
|
order: 20,
|
||||||
path: '/events',
|
path: '/events',
|
||||||
materialIcon: 'fas fa-bullhorn',
|
materialIcon: 'fas fa-bullhorn',
|
||||||
@@ -156,7 +112,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.showProfile,
|
||||||
order: 120,
|
order: 120,
|
||||||
path: '/myprofile',
|
path: '/myprofile',
|
||||||
materialIcon: 'fas fa-user',
|
materialIcon: 'fas fa-user',
|
||||||
@@ -167,7 +123,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: true,
|
infooter: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.showProfile,
|
||||||
order: 120,
|
order: 120,
|
||||||
path: '/editprofile',
|
path: '/editprofile',
|
||||||
materialIcon: 'fas fa-user',
|
materialIcon: 'fas fa-user',
|
||||||
@@ -178,7 +134,7 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
active: true,
|
active: site.confpages && site.confpages.showiscrittiMenu,
|
||||||
order: 130,
|
order: 130,
|
||||||
path: '/friends',
|
path: '/friends',
|
||||||
materialIcon: 'fas fa-user-friends',
|
materialIcon: 'fas fa-user-friends',
|
||||||
@@ -273,16 +229,6 @@ function getDynamicPages(site: ISites): IListRoutes[] {
|
|||||||
inmenu: false,
|
inmenu: false,
|
||||||
infooter: false,
|
infooter: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
active: true,
|
|
||||||
order: 150,
|
|
||||||
path: '/sostieniilprogetto',
|
|
||||||
materialIcon: 'fas fa-hand-holding-heart',
|
|
||||||
name: 'pages.fundraising',
|
|
||||||
component: () => import('@src/root/fundraising/fundraising.vue'),
|
|
||||||
inmenu: false,
|
|
||||||
infooter: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
active: true,
|
active: true,
|
||||||
order: 80,
|
order: 80,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { CMyPage } from '@/components/CMyPage'
|
|||||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||||
|
|
||||||
import { colTableCatAI } from '@src/store/Modules/fieldsTable'
|
import { colTableQueryAI } from '@src/store/Modules/fieldsTable'
|
||||||
import MixinMetaTags from '@/mixins/mixin-metatags'
|
import MixinMetaTags from '@/mixins/mixin-metatags'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -17,7 +17,7 @@ export default defineComponent({
|
|||||||
const { setmeta } = MixinMetaTags()
|
const { setmeta } = MixinMetaTags()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
colTableCatAI,
|
colTableQueryAI,
|
||||||
setmeta,
|
setmeta,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<CGridTableRec
|
<CGridTableRec
|
||||||
prop_mytable="queryais"
|
prop_mytable="queryais"
|
||||||
prop_mytitle="Query AI"
|
prop_mytitle="Query AI"
|
||||||
:prop_mycolumns="colTableCatAI"
|
:prop_mycolumns="colTableQueryAI"
|
||||||
prop_colkey="name"
|
prop_colkey="name"
|
||||||
nodataLabel="Nessuna Query AI"
|
nodataLabel="Nessuna Query AI"
|
||||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ function getRoutesAI(site: ISites) {
|
|||||||
order: 30,
|
order: 30,
|
||||||
path: '/ai',
|
path: '/ai',
|
||||||
materialIcon: 'fas fa-book',
|
materialIcon: 'fas fa-book',
|
||||||
name: 'pages.aitools',
|
name: 'mypages.aitools',
|
||||||
component: () => import('@/views/toolsAI/main/main.vue'),
|
component: () => import('@/views/toolsAI/main/main.vue'),
|
||||||
inmenu: true,
|
inmenu: true,
|
||||||
submenu: true,
|
submenu: true,
|
||||||
@@ -23,7 +23,7 @@ function getRoutesAI(site: ISites) {
|
|||||||
order: 32,
|
order: 32,
|
||||||
path: '/admin/ai/catAI',
|
path: '/admin/ai/catAI',
|
||||||
materialIcon: 'fas fa-file-alt',
|
materialIcon: 'fas fa-file-alt',
|
||||||
name: 'pages.catAI',
|
name: 'mypages.catAI',
|
||||||
component: () => import('@/rootgen/admin/catAI/catAI.vue'),
|
component: () => import('@/rootgen/admin/catAI/catAI.vue'),
|
||||||
inmenu: true,
|
inmenu: true,
|
||||||
submenu: true,
|
submenu: true,
|
||||||
@@ -37,7 +37,7 @@ function getRoutesAI(site: ISites) {
|
|||||||
order: 32,
|
order: 32,
|
||||||
path: '/admin/ai/queryAI',
|
path: '/admin/ai/queryAI',
|
||||||
materialIcon: 'fas fa-file-alt',
|
materialIcon: 'fas fa-file-alt',
|
||||||
name: 'pages.queryAI',
|
name: 'mypages.queryAI',
|
||||||
component: () => import('@/rootgen/admin/queryAI/queryAI.vue'),
|
component: () => import('@/rootgen/admin/queryAI/queryAI.vue'),
|
||||||
inmenu: true,
|
inmenu: true,
|
||||||
submenu: true,
|
submenu: true,
|
||||||
@@ -56,7 +56,7 @@ function getRoutesAI(site: ISites) {
|
|||||||
order: 1402,
|
order: 1402,
|
||||||
faIcon: 'fas fa-lemon',
|
faIcon: 'fas fa-lemon',
|
||||||
materialIcon: 'fas fa-lemon',
|
materialIcon: 'fas fa-lemon',
|
||||||
name: 'pages.toolsAI',
|
name: 'mypages.toolsAI',
|
||||||
routes2: routes_ai,
|
routes2: routes_ai,
|
||||||
inmenu: true,
|
inmenu: true,
|
||||||
onlyif_logged: true,
|
onlyif_logged: true,
|
||||||
@@ -70,7 +70,7 @@ function getRoutesAI(site: ISites) {
|
|||||||
path: '/admin/ai',
|
path: '/admin/ai',
|
||||||
order: 1420,
|
order: 1420,
|
||||||
materialIcon: 'next_week',
|
materialIcon: 'next_week',
|
||||||
name: 'pages.admin_ai',
|
name: 'mypages.admin_ai',
|
||||||
routes2: routes_admin_ai,
|
routes2: routes_admin_ai,
|
||||||
inmenu: true,
|
inmenu: true,
|
||||||
solotitle: true,
|
solotitle: true,
|
||||||
|
|||||||
@@ -1241,6 +1241,11 @@ const msg_it = {
|
|||||||
date_updated: 'Ult. Aggiornamento',
|
date_updated: 'Ult. Aggiornamento',
|
||||||
},
|
},
|
||||||
mypages: {
|
mypages: {
|
||||||
|
catAI: 'Categorie AI',
|
||||||
|
toolsAI: 'Strumenti AI',
|
||||||
|
aitools: 'Ricerca',
|
||||||
|
queryAI: 'Query AI',
|
||||||
|
admin_ai: 'Gestione AI',
|
||||||
admin_ecommerce: 'ECommerce',
|
admin_ecommerce: 'ECommerce',
|
||||||
ecommerce: 'Prodotti',
|
ecommerce: 'Prodotti',
|
||||||
ecommerce_menu: 'ECommerce1',
|
ecommerce_menu: 'ECommerce1',
|
||||||
@@ -1949,9 +1954,6 @@ const msg_it = {
|
|||||||
confirmed: 'Confermato',
|
confirmed: 'Confermato',
|
||||||
causale: 'Causale',
|
causale: 'Causale',
|
||||||
},
|
},
|
||||||
ai: {
|
|
||||||
selectquery: 'Scegli',
|
|
||||||
},
|
|
||||||
reaction: {
|
reaction: {
|
||||||
mipiace: 'Mi piace',
|
mipiace: 'Mi piace',
|
||||||
tipiace: 'Ti piace',
|
tipiace: 'Ti piace',
|
||||||
@@ -2016,6 +2018,20 @@ const msg_it = {
|
|||||||
collane: 'Collane',
|
collane: 'Collane',
|
||||||
idPageAssigned: 'Pagina Assegnata',
|
idPageAssigned: 'Pagina Assegnata',
|
||||||
descr_introduttiva: 'Descrizione Introduttiva',
|
descr_introduttiva: 'Descrizione Introduttiva',
|
||||||
|
},
|
||||||
|
|
||||||
|
queryai: {
|
||||||
|
descr: 'Descrizione',
|
||||||
|
catAI: 'Categoria',
|
||||||
|
query: 'Query',
|
||||||
|
selectquery: 'Scegli la Query',
|
||||||
|
queryai: 'Chiedi',
|
||||||
|
output_type: 'Tipo di Output',
|
||||||
|
numtoken: 'Numero di Token max',
|
||||||
|
model: 'Modello',
|
||||||
|
contestsystem: 'Contesto',
|
||||||
|
withexplain: 'Con Spiegazione',
|
||||||
|
temperatura: 'Temperatura',
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -589,16 +589,16 @@ export const colTableCatAI = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
export const colTableQueryAI = [
|
export const colTableQueryAI = [
|
||||||
AddCol({ name: 'descr', label_trans: 'categories.name' }),
|
AddCol({ name: 'descr', label_trans: 'queryai.descr' }),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'catAI',
|
name: 'catAI',
|
||||||
label_trans: 'products.category',
|
label_trans: 'queryai.catAI',
|
||||||
fieldtype: costanti.FieldType.select,
|
fieldtype: costanti.FieldType.select,
|
||||||
jointable: 'catais',
|
jointable: 'catais',
|
||||||
}),
|
}),
|
||||||
AddCol({ name: 'query', label_trans: 'ai.query' }),
|
AddCol({ name: 'query', label_trans: 'queryai.query' }),
|
||||||
AddCol({ name: 'ask', label_trans: 'ai.ask' }),
|
AddCol({ name: 'ask', label_trans: 'queryai.ask' }),
|
||||||
AddCol({ name: 'output_type', label_trans: 'ai.output_type' }),
|
AddCol({ name: 'output_type', label_trans: 'queryai.output_type' }),
|
||||||
AddCol(DeleteRec),
|
AddCol(DeleteRec),
|
||||||
AddCol(DuplicateRec),
|
AddCol(DuplicateRec),
|
||||||
]
|
]
|
||||||
@@ -1236,6 +1236,17 @@ export const colmyGoods = [
|
|||||||
inline: true,
|
inline: true,
|
||||||
typeobj: 'radio',
|
typeobj: 'radio',
|
||||||
}),
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'descr',
|
||||||
|
label_trans: 'proj.shortdescr',
|
||||||
|
fieldtype: costanti.FieldType.string,
|
||||||
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||||
|
noshowlabel: true,
|
||||||
|
maxlength: 120,
|
||||||
|
required: true,
|
||||||
|
sortable: false,
|
||||||
|
numpag_carousel: 3,
|
||||||
|
}),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'photos',
|
name: 'photos',
|
||||||
label_trans: 'skill.photos',
|
label_trans: 'skill.photos',
|
||||||
@@ -1776,14 +1787,6 @@ export const colmyHosp = [
|
|||||||
sortable: false,
|
sortable: false,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
AddCol({
|
|
||||||
name: 'pub_to_share',
|
|
||||||
label_trans: 'skill.pub_to_share',
|
|
||||||
fieldtype: costanti.FieldType.select,
|
|
||||||
jointable: 'pub_to_share',
|
|
||||||
icon: 'fas fa-users',
|
|
||||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
|
||||||
}),
|
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'groupname',
|
name: 'groupname',
|
||||||
label_trans: 'proj.gruppo',
|
label_trans: 'proj.gruppo',
|
||||||
@@ -1793,17 +1796,6 @@ export const colmyHosp = [
|
|||||||
link: '/mygrp/groupname',
|
link: '/mygrp/groupname',
|
||||||
noshowlabel: true,
|
noshowlabel: true,
|
||||||
}),
|
}),
|
||||||
AddCol({
|
|
||||||
name: 'idContribType',
|
|
||||||
label_trans: 'contribtype.name',
|
|
||||||
fieldtype: costanti.FieldType.multiselect,
|
|
||||||
jointable: 'contribtypes',
|
|
||||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
|
||||||
noshowlabel: true,
|
|
||||||
icon: 'fas fa-hand-holding',
|
|
||||||
// icon: 'fas fa-hands-helping',
|
|
||||||
sortable: false,
|
|
||||||
}),
|
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'descr',
|
name: 'descr',
|
||||||
label_trans: 'proj.shortdescr',
|
label_trans: 'proj.shortdescr',
|
||||||
@@ -1821,6 +1813,17 @@ export const colmyHosp = [
|
|||||||
required: false,
|
required: false,
|
||||||
sortable: false,
|
sortable: false,
|
||||||
}),
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'idContribType',
|
||||||
|
label_trans: 'contribtype.name',
|
||||||
|
fieldtype: costanti.FieldType.multiselect,
|
||||||
|
jointable: 'contribtypes',
|
||||||
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||||
|
noshowlabel: true,
|
||||||
|
icon: 'fas fa-hand-holding',
|
||||||
|
// icon: 'fas fa-hands-helping',
|
||||||
|
sortable: false,
|
||||||
|
}),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'photos',
|
name: 'photos',
|
||||||
label_trans: 'skill.photos',
|
label_trans: 'skill.photos',
|
||||||
@@ -1844,6 +1847,15 @@ export const colmyHosp = [
|
|||||||
sortable: false,
|
sortable: false,
|
||||||
isadvanced_field: true,
|
isadvanced_field: true,
|
||||||
}),
|
}),
|
||||||
|
AddCol({
|
||||||
|
name: 'pub_to_share',
|
||||||
|
label_trans: 'skill.pub_to_share',
|
||||||
|
fieldtype: costanti.FieldType.select,
|
||||||
|
jointable: 'pub_to_share',
|
||||||
|
icon: 'fas fa-users',
|
||||||
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||||
|
isadvanced_field: true,
|
||||||
|
}),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'website', label_trans: 'reg.website', fieldtype: costanti.FieldType.link,
|
name: 'website', label_trans: 'reg.website', fieldtype: costanti.FieldType.link,
|
||||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||||
|
|||||||
@@ -2021,6 +2021,26 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async getQueryDS(prompt: string, options: any) {
|
||||||
|
|
||||||
|
const userStore = useUserStore()
|
||||||
|
|
||||||
|
const paramquery = {
|
||||||
|
locale: tools.getLocale(),
|
||||||
|
username: userStore.my.username,
|
||||||
|
prompt,
|
||||||
|
options,
|
||||||
|
}
|
||||||
|
|
||||||
|
return Api.SendReq('/aitools/ds', 'POST', paramquery)
|
||||||
|
.then((res) => {
|
||||||
|
return res.data
|
||||||
|
}).catch((error) => {
|
||||||
|
return {}
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
getItemDate(num: number, day: number, numdays: number, mystr: string) {
|
getItemDate(num: number, day: number, numdays: number, mystr: string) {
|
||||||
let mydate = tools.addDays(tools.getDateNow(), day)
|
let mydate = tools.addDays(tools.getDateNow(), day)
|
||||||
let mydateend = tools.addDays(mydate, numdays)
|
let mydateend = tools.addDays(mydate, numdays)
|
||||||
|
|||||||