- 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 ..."
|
||||
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 "
|
||||
fi
|
||||
|
||||
@@ -147,7 +147,7 @@ export default defineComponent({
|
||||
|
||||
watch(() => props.table, (newval, oldval) => {
|
||||
tablesel.value = props.table
|
||||
console.log('CHANGE TABLESEL', tablesel.value)
|
||||
// console.log('CHANGE TABLESEL', tablesel.value)
|
||||
})
|
||||
|
||||
watch(() => globalStore.myselector.data, (newval, oldval) => {
|
||||
@@ -270,7 +270,7 @@ export default defineComponent({
|
||||
|
||||
tablesel.value = props.table
|
||||
|
||||
console.log(' . TABLE =', props.table)
|
||||
// console.log(' . TABLE =', props.table)
|
||||
mycolumns.value = fieldsTable.getArrColsByTable(props.table)
|
||||
|
||||
searchList.value = [
|
||||
|
||||
@@ -134,7 +134,7 @@ export default defineComponent({
|
||||
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
|
||||
}
|
||||
|
||||
@@ -1570,7 +1570,7 @@ export default defineComponent({
|
||||
|
||||
if (!shared_consts.TABLES_ORDER_DATE_UPDATED.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)
|
||||
if (v1)
|
||||
ordinam.value = v1
|
||||
@@ -2077,7 +2077,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function saverecModif() {
|
||||
console.log('saverecModif')
|
||||
// console.log('saverecModif')
|
||||
const mydata = {
|
||||
table: mytable.value,
|
||||
data: {}
|
||||
|
||||
@@ -1524,7 +1524,7 @@ export default defineComponent({
|
||||
|
||||
if (!shared_consts.TABLES_ORDER_DATE_UPDATED.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)
|
||||
if (v1)
|
||||
ordinam.value = v1
|
||||
@@ -2021,7 +2021,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function saverecModif() {
|
||||
console.log('saverecModif')
|
||||
// console.log('saverecModif')
|
||||
const mydata = {
|
||||
table: mytable.value,
|
||||
data: {}
|
||||
|
||||
@@ -174,7 +174,7 @@ export default defineComponent({
|
||||
// Carica il record
|
||||
if (props.idRec) {
|
||||
await userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
||||
console.log('myrec', myrec)
|
||||
// console.log('myrec', myrec)
|
||||
myrec.value = ris
|
||||
notifStore.setAsRead(idnotif.value)
|
||||
})
|
||||
@@ -182,7 +182,7 @@ export default defineComponent({
|
||||
} else {
|
||||
// myrec.value = props.prop_myrec
|
||||
await userStore.loadGeneric(props.table, props.prop_myrec._id, idnotif.value).then((ris) => {
|
||||
console.log('myrec', myrec)
|
||||
// console.log('myrec', myrec)
|
||||
myrec.value = ris
|
||||
notifStore.setAsRead(idnotif.value)
|
||||
})
|
||||
|
||||
@@ -90,7 +90,7 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
function load() {
|
||||
console.log('load', mypathin.value)
|
||||
// console.log('load', mypathin.value)
|
||||
|
||||
if (mypathin.value !== '') {
|
||||
globalStore.loadPage('/' + mypathin.value, 'cmypageelem').then(ris => {
|
||||
|
||||
@@ -390,7 +390,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function changevalRec(newval: any) {
|
||||
console.log('changevalRec', newval)
|
||||
// console.log('changevalRec', newval)
|
||||
// if (!props.insertMode || (props.insertMode && col.value.fieldtype !== costanti.FieldType.multioption)) {
|
||||
if (col.value && col.value.allowchar === costanti.ALLOWCHAR_CODE) {
|
||||
newval = tools.removespaces_slash(newval)
|
||||
|
||||
@@ -88,7 +88,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function change_field(fieldname: any) {
|
||||
console.log('myrec', recOrderCart.value)
|
||||
// console.log('myrec', recOrderCart.value)
|
||||
|
||||
const mydata = {
|
||||
[fieldname]: myrec.value[fieldname]
|
||||
|
||||
@@ -24,7 +24,7 @@ export default defineComponent({
|
||||
const route = useRoute()
|
||||
const { t } = useI18n()
|
||||
|
||||
console.log('SETUP - CSigninNoreg')
|
||||
// console.log('SETUP - CSigninNoreg')
|
||||
|
||||
function loginOk() {
|
||||
tools.loginOk($router, route, $q, true)
|
||||
|
||||
@@ -4452,7 +4452,7 @@ export const tools = {
|
||||
console.log('indcat', indcat)
|
||||
if (indcat >= 0) {
|
||||
const myrec = todos.todos[indcat].find((rec: any) => rec._id === id)
|
||||
console.log('myrec', myrec)
|
||||
// console.log('myrec', myrec)
|
||||
let ris = null
|
||||
if (myrec) {
|
||||
ris = myrec[keystr]
|
||||
@@ -7554,7 +7554,7 @@ export const tools = {
|
||||
|
||||
let myrec = await this.loadrecProfile()
|
||||
|
||||
console.log('myrec', myrec)
|
||||
// console.log('myrec', myrec)
|
||||
|
||||
const sep = ';'
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ export const toolsext = {
|
||||
console.log('indcat', indcat)
|
||||
if (indcat >= 0) {
|
||||
const myrec = todos.todos[indcat].find((rec: any) => rec._id === id)
|
||||
console.log('myrec', myrec)
|
||||
// console.log('myrec', myrec)
|
||||
let ris = null
|
||||
if (myrec) {
|
||||
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) || '' : '')
|
||||
else tools.localStSetItem(toolsext.localStorage.img, '')
|
||||
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.expirationDate, expirationDate.toString())
|
||||
tools.localStSetItem(toolsext.localStorage.isLogged, String(true))
|
||||
@@ -1452,7 +1452,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
|
||||
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)
|
||||
await todos.dbLoad({ checkPending: true })
|
||||
|
||||
@@ -810,7 +810,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
// Calling the Server to Save in the MongoDB the Subscriber
|
||||
saveNewSubscriptionToServer(newSub: any) {
|
||||
console.log('saveNewSubscriptionToServer')
|
||||
// console.log('saveNewSubscriptionToServer')
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
@@ -862,8 +862,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
this.wasAlreadySubscribed = true
|
||||
this.wasAlreadySubOnDb = true
|
||||
|
||||
if (res)
|
||||
console.log('saveNewSubscriptionToServer: OK')
|
||||
// if (res)
|
||||
// console.log('saveNewSubscriptionToServer: OK')
|
||||
|
||||
tools.localStSetItem(toolsext.localStorage.wasAlreadySubOnDb, String(this.wasAlreadySubOnDb))
|
||||
})
|
||||
@@ -1635,13 +1635,13 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
}
|
||||
|
||||
// const isLogged = localStorage.getItem(toolsext.localStorage.username)
|
||||
console.log('isLogged', isLogged)
|
||||
// console.log('isLogged', isLogged)
|
||||
|
||||
// calendarStore.editable = userStore.isAdmin || userStore.isManager || userStore.isFacilitatore
|
||||
if (res.data.myuser === null || (res.data.myuser.idapp !== process.env.APP_ID)) {
|
||||
if (isLogged) {
|
||||
// Fai Logout
|
||||
console.log('Fai Logout', 'isLogged', isLogged)
|
||||
// console.log('Fai Logout', 'isLogged', isLogged)
|
||||
userStore.logout()
|
||||
this.rightDrawerOpen = true
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user