PASSAGGIO A VITE !

AGG. 1.1.23
This commit is contained in:
Surya Paolo
2025-03-01 14:14:43 +01:00
parent f0098e57b2
commit bc960d38a1
1044 changed files with 5323 additions and 10823777 deletions

View File

@@ -2,13 +2,14 @@ import { defineComponent, ref, computed, PropType, toRef, onMounted } from 'vue'
import { useUserStore } from '@store/UserStore'
import { useRouter } from 'vue-router'
import { useGlobalStore } from '@store/globalStore'
import { useI18n } from '@/boot/i18n'
import { useI18n } from 'vue-i18n'
import { CMyImgUser } from '@/components/CMyImgUser'
import { CSingleMovement } from '@/components/CSingleMovement'
import { CCurrencyValue } from '@/components/CCurrencyValue'
import { tools } from '@store/Modules/tools'
import { IMovQuery, IMovVisu, IMovement } from '@src/model'
import { CMyImgUser } from '@src/components/CMyImgUser'
import { CSingleMovement } from '@src/components/CSingleMovement'
import { CCurrencyValue } from '@src/components/CCurrencyValue'
import { tools } from '@tools'
import type { IMovQuery, IMovVisu} from '@src/model';
import { IMovement } from '@src/model'
import { shared_consts } from '@src/common/shared_vuejs'
@@ -50,20 +51,25 @@ export default defineComponent({
const mylist = computed(() => {
if (globalStore.datastat || userStore.my.profile) {
let arrtransaz: any = []
let transaz = -1
if (props.username) {
numtransaz.value = userStore.my.profile.last_my_transactions!.length
arrtransaz = userStore.my.profile.last_my_transactions
transaz = arrtransaz.length
} else {
if (globalStore.datastat) {
numtransaz.value = globalStore.datastat.last_transactions!.length
arrtransaz = globalStore.datastat.last_transactions
transaz = arrtransaz!.length
}
}
if (transaz >= 0) {
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
numtransaz.value = transaz
}
if (prectransaz.value !== numtransaz.value) {
emit('loaded', { numtransaz: numtransaz.value })
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
prectransaz.value = numtransaz.value
}
@@ -79,11 +85,12 @@ export default defineComponent({
})
return list
}
return []
})
const getRicevuti = computed(() => {
if (props.username && mylist.value) {
const list = mylist.value.filter((rec: IMovVisu) => {
const list = mylist.value.filter((rec: IMovVisu) => {
return (props.username && (rec.userto && (rec.userto.username === props.username)))
})
return list