- fixed server versioni precedenti (getEnableTokenExpiredByIdApp dava errore perchè confpages non esiste nelle vecchie versioni ...)
This commit is contained in:
@@ -9,6 +9,6 @@ if [[ $risposta == "Y" || $risposta == "y" ]]; then
|
|||||||
|
|
||||||
|
|
||||||
echo "Sincronizzazione in remoto $SERVERDIR_WEBSITE ..."
|
echo "Sincronizzazione in remoto $SERVERDIR_WEBSITE ..."
|
||||||
sshpass -p $SERVERPW_WEBSITE rsync -e 'ssh -p 8855' -a --exclude 'upload' dist/pwa/ ftpadmin@servereng:/var/www/$SERVERDIR_WEBSITE/
|
sshpass -p $SERVERPW_WEBSITE rsync -e 'ssh -p 8855' -avv --exclude 'upload' dist/pwa/ ftpadmin@servereng:/var/www/$SERVERDIR_WEBSITE/
|
||||||
echo "Finito $SERVERDIR_WEBSITE "
|
echo "Finito $SERVERDIR_WEBSITE "
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
watch(() => props.table, (newval, oldval) => {
|
watch(() => props.table, (newval, oldval) => {
|
||||||
tablesel.value = props.table
|
tablesel.value = props.table
|
||||||
console.log('CHANGE TABLESEL', tablesel.value)
|
// console.log('CHANGE TABLESEL', tablesel.value)
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(() => globalStore.myselector.data, (newval, oldval) => {
|
watch(() => globalStore.myselector.data, (newval, oldval) => {
|
||||||
@@ -270,7 +270,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
tablesel.value = props.table
|
tablesel.value = props.table
|
||||||
|
|
||||||
console.log(' . TABLE =', props.table)
|
// console.log(' . TABLE =', props.table)
|
||||||
mycolumns.value = fieldsTable.getArrColsByTable(props.table)
|
mycolumns.value = fieldsTable.getArrColsByTable(props.table)
|
||||||
|
|
||||||
searchList.value = [
|
searchList.value = [
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ export default defineComponent({
|
|||||||
recOrderCart.value = await productStore.CreateOrdersCart({ cart_id: mycart.value._id, status: 0, note: note.value })
|
recOrderCart.value = await productStore.CreateOrdersCart({ cart_id: mycart.value._id, status: 0, note: note.value })
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('myrec', myrec.value)
|
// console.log('myrec', myrec.value)
|
||||||
|
|
||||||
endload.value = true
|
endload.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1570,7 +1570,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
if (!shared_consts.TABLES_ORDER_DATE_UPDATED.includes(tablesel.value) &&
|
if (!shared_consts.TABLES_ORDER_DATE_UPDATED.includes(tablesel.value) &&
|
||||||
!shared_consts.TABLES_ORDER_DESCR.includes(tablesel.value)) {
|
!shared_consts.TABLES_ORDER_DESCR.includes(tablesel.value)) {
|
||||||
console.log('get cookie)')
|
// console.log('get cookie)')
|
||||||
let v1 = tools.getCookie('s_ordinamnew_' + tablesel.value, null)
|
let v1 = tools.getCookie('s_ordinamnew_' + tablesel.value, null)
|
||||||
if (v1)
|
if (v1)
|
||||||
ordinam.value = v1
|
ordinam.value = v1
|
||||||
@@ -2077,7 +2077,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function saverecModif() {
|
async function saverecModif() {
|
||||||
console.log('saverecModif')
|
// console.log('saverecModif')
|
||||||
const mydata = {
|
const mydata = {
|
||||||
table: mytable.value,
|
table: mytable.value,
|
||||||
data: {}
|
data: {}
|
||||||
|
|||||||
@@ -1524,7 +1524,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
if (!shared_consts.TABLES_ORDER_DATE_UPDATED.includes(tablesel.value) &&
|
if (!shared_consts.TABLES_ORDER_DATE_UPDATED.includes(tablesel.value) &&
|
||||||
!shared_consts.TABLES_ORDER_DESCR.includes(tablesel.value)) {
|
!shared_consts.TABLES_ORDER_DESCR.includes(tablesel.value)) {
|
||||||
console.log('get cookie)')
|
// console.log('get cookie)')
|
||||||
let v1 = tools.getCookie('s_ordinamnew_' + tablesel.value, null)
|
let v1 = tools.getCookie('s_ordinamnew_' + tablesel.value, null)
|
||||||
if (v1)
|
if (v1)
|
||||||
ordinam.value = v1
|
ordinam.value = v1
|
||||||
@@ -2021,7 +2021,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function saverecModif() {
|
async function saverecModif() {
|
||||||
console.log('saverecModif')
|
// console.log('saverecModif')
|
||||||
const mydata = {
|
const mydata = {
|
||||||
table: mytable.value,
|
table: mytable.value,
|
||||||
data: {}
|
data: {}
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ export default defineComponent({
|
|||||||
// Carica il record
|
// Carica il record
|
||||||
if (props.idRec) {
|
if (props.idRec) {
|
||||||
await userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
await userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
||||||
console.log('myrec', myrec)
|
// console.log('myrec', myrec)
|
||||||
myrec.value = ris
|
myrec.value = ris
|
||||||
notifStore.setAsRead(idnotif.value)
|
notifStore.setAsRead(idnotif.value)
|
||||||
})
|
})
|
||||||
@@ -182,7 +182,7 @@ export default defineComponent({
|
|||||||
} else {
|
} else {
|
||||||
// myrec.value = props.prop_myrec
|
// myrec.value = props.prop_myrec
|
||||||
await userStore.loadGeneric(props.table, props.prop_myrec._id, idnotif.value).then((ris) => {
|
await userStore.loadGeneric(props.table, props.prop_myrec._id, idnotif.value).then((ris) => {
|
||||||
console.log('myrec', myrec)
|
// console.log('myrec', myrec)
|
||||||
myrec.value = ris
|
myrec.value = ris
|
||||||
notifStore.setAsRead(idnotif.value)
|
notifStore.setAsRead(idnotif.value)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
console.log('load', mypathin.value)
|
// console.log('load', mypathin.value)
|
||||||
|
|
||||||
if (mypathin.value !== '') {
|
if (mypathin.value !== '') {
|
||||||
globalStore.loadPage('/' + mypathin.value, 'cmypageelem').then(ris => {
|
globalStore.loadPage('/' + mypathin.value, 'cmypageelem').then(ris => {
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function changevalRec(newval: any) {
|
function changevalRec(newval: any) {
|
||||||
console.log('changevalRec', newval)
|
// console.log('changevalRec', newval)
|
||||||
// if (!props.insertMode || (props.insertMode && col.value.fieldtype !== costanti.FieldType.multioption)) {
|
// if (!props.insertMode || (props.insertMode && col.value.fieldtype !== costanti.FieldType.multioption)) {
|
||||||
if (col.value && col.value.allowchar === costanti.ALLOWCHAR_CODE) {
|
if (col.value && col.value.allowchar === costanti.ALLOWCHAR_CODE) {
|
||||||
newval = tools.removespaces_slash(newval)
|
newval = tools.removespaces_slash(newval)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function change_field(fieldname: any) {
|
function change_field(fieldname: any) {
|
||||||
console.log('myrec', recOrderCart.value)
|
// console.log('myrec', recOrderCart.value)
|
||||||
|
|
||||||
const mydata = {
|
const mydata = {
|
||||||
[fieldname]: myrec.value[fieldname]
|
[fieldname]: myrec.value[fieldname]
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default defineComponent({
|
|||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
console.log('SETUP - CSigninNoreg')
|
// console.log('SETUP - CSigninNoreg')
|
||||||
|
|
||||||
function loginOk() {
|
function loginOk() {
|
||||||
tools.loginOk($router, route, $q, true)
|
tools.loginOk($router, route, $q, true)
|
||||||
|
|||||||
@@ -4452,7 +4452,7 @@ export const tools = {
|
|||||||
console.log('indcat', indcat)
|
console.log('indcat', indcat)
|
||||||
if (indcat >= 0) {
|
if (indcat >= 0) {
|
||||||
const myrec = todos.todos[indcat].find((rec: any) => rec._id === id)
|
const myrec = todos.todos[indcat].find((rec: any) => rec._id === id)
|
||||||
console.log('myrec', myrec)
|
// console.log('myrec', myrec)
|
||||||
let ris = null
|
let ris = null
|
||||||
if (myrec) {
|
if (myrec) {
|
||||||
ris = myrec[keystr]
|
ris = myrec[keystr]
|
||||||
@@ -7554,7 +7554,7 @@ export const tools = {
|
|||||||
|
|
||||||
let myrec = await this.loadrecProfile()
|
let myrec = await this.loadrecProfile()
|
||||||
|
|
||||||
console.log('myrec', myrec)
|
// console.log('myrec', myrec)
|
||||||
|
|
||||||
const sep = ';'
|
const sep = ';'
|
||||||
|
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ export const toolsext = {
|
|||||||
console.log('indcat', indcat)
|
console.log('indcat', indcat)
|
||||||
if (indcat >= 0) {
|
if (indcat >= 0) {
|
||||||
const myrec = todos.todos[indcat].find((rec: any) => rec._id === id)
|
const myrec = todos.todos[indcat].find((rec: any) => rec._id === id)
|
||||||
console.log('myrec', myrec)
|
// console.log('myrec', myrec)
|
||||||
let ris = null
|
let ris = null
|
||||||
if (myrec) {
|
if (myrec) {
|
||||||
ris = myrec[keystr]
|
ris = myrec[keystr]
|
||||||
|
|||||||
@@ -1142,7 +1142,7 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
if (myuser.profile !== undefined) tools.localStSetItem(toolsext.localStorage.img, (myuser.profile.img) ? String(myuser.profile.img) || '' : '')
|
if (myuser.profile !== undefined) tools.localStSetItem(toolsext.localStorage.img, (myuser.profile.img) ? String(myuser.profile.img) || '' : '')
|
||||||
else tools.localStSetItem(toolsext.localStorage.img, '')
|
else tools.localStSetItem(toolsext.localStorage.img, '')
|
||||||
localStorage.setItem(toolsext.localStorage.token, this.x_auth_token)
|
localStorage.setItem(toolsext.localStorage.token, this.x_auth_token)
|
||||||
console.log('updateLocalStorage: salva refreshtoken', this.refreshToken)
|
// console.log('updateLocalStorage: salva refreshtoken', this.refreshToken)
|
||||||
localStorage.setItem(toolsext.localStorage.refreshToken, this.refreshToken)
|
localStorage.setItem(toolsext.localStorage.refreshToken, this.refreshToken)
|
||||||
localStorage.setItem(toolsext.localStorage.expirationDate, expirationDate.toString())
|
localStorage.setItem(toolsext.localStorage.expirationDate, expirationDate.toString())
|
||||||
tools.localStSetItem(toolsext.localStorage.isLogged, String(true))
|
tools.localStSetItem(toolsext.localStorage.isLogged, String(true))
|
||||||
@@ -1452,7 +1452,7 @@ export const useUserStore = defineStore('UserStore', {
|
|||||||
|
|
||||||
this.isLogged = isok && isLogged
|
this.isLogged = isok && isLogged
|
||||||
|
|
||||||
console.log('this.isLogged', this.isLogged, 'isok', isok, 'isLogged', isLogged)
|
// console.log('this.isLogged', this.isLogged, 'isok', isok, 'isLogged', isLogged)
|
||||||
|
|
||||||
if (globalStore.site.confpages && globalStore.site.confpages.enableTodos)
|
if (globalStore.site.confpages && globalStore.site.confpages.enableTodos)
|
||||||
await todos.dbLoad({ checkPending: true })
|
await todos.dbLoad({ checkPending: true })
|
||||||
|
|||||||
@@ -810,7 +810,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
|
|
||||||
// Calling the Server to Save in the MongoDB the Subscriber
|
// Calling the Server to Save in the MongoDB the Subscriber
|
||||||
saveNewSubscriptionToServer(newSub: any) {
|
saveNewSubscriptionToServer(newSub: any) {
|
||||||
console.log('saveNewSubscriptionToServer')
|
// console.log('saveNewSubscriptionToServer')
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
@@ -862,8 +862,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
this.wasAlreadySubscribed = true
|
this.wasAlreadySubscribed = true
|
||||||
this.wasAlreadySubOnDb = true
|
this.wasAlreadySubOnDb = true
|
||||||
|
|
||||||
if (res)
|
// if (res)
|
||||||
console.log('saveNewSubscriptionToServer: OK')
|
// console.log('saveNewSubscriptionToServer: OK')
|
||||||
|
|
||||||
tools.localStSetItem(toolsext.localStorage.wasAlreadySubOnDb, String(this.wasAlreadySubOnDb))
|
tools.localStSetItem(toolsext.localStorage.wasAlreadySubOnDb, String(this.wasAlreadySubOnDb))
|
||||||
})
|
})
|
||||||
@@ -1635,13 +1635,13 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// const isLogged = localStorage.getItem(toolsext.localStorage.username)
|
// const isLogged = localStorage.getItem(toolsext.localStorage.username)
|
||||||
console.log('isLogged', isLogged)
|
// console.log('isLogged', isLogged)
|
||||||
|
|
||||||
// calendarStore.editable = userStore.isAdmin || userStore.isManager || userStore.isFacilitatore
|
// calendarStore.editable = userStore.isAdmin || userStore.isManager || userStore.isFacilitatore
|
||||||
if (res.data.myuser === null || (res.data.myuser.idapp !== process.env.APP_ID)) {
|
if (res.data.myuser === null || (res.data.myuser.idapp !== process.env.APP_ID)) {
|
||||||
if (isLogged) {
|
if (isLogged) {
|
||||||
// Fai Logout
|
// Fai Logout
|
||||||
console.log('Fai Logout', 'isLogged', isLogged)
|
// console.log('Fai Logout', 'isLogged', isLogged)
|
||||||
userStore.logout()
|
userStore.logout()
|
||||||
this.rightDrawerOpen = true
|
this.rightDrawerOpen = true
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user