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

@@ -1,6 +1,6 @@
import { toolsext } from '@src/store/Modules/toolsext'
import { useI18n } from '@src/boot/i18n'
import { useI18n } from 'vue-i18n'
// import { fieldsTable } from '@src/store/Modules/fieldsTable'
import MixinMetaTags from '@src/mixins/mixin-metatags'
@@ -8,7 +8,8 @@ import MixinMetaTags from '@src/mixins/mixin-metatags'
import { useUserStore } from '@store/UserStore'
import { useGlobalStore } from '@store/globalStore'
import { useQuasar } from 'quasar'
import { IDataPass, IProducer, IProduct, IProductInfo, ISpecialField, IVariazione } from '@model'
import type { IDataPass, IProduct, IProductInfo, ISpecialField, IVariazione } from '@model';
import { IProducer } from '@model'
import { tools } from '../store/Modules/tools'
import { costanti } from '@costanti'
import { fieldsTable } from '@store/Modules/fieldsTable'
@@ -134,7 +135,7 @@ export default function () {
// console.log('settings... myrec ', myrec, 'key=', key, 'serv', serv)
if (myrec === undefined) {
myrec = {
idapp: process.env.APP_ID,
idapp: tools.getEnv('VITE_APP_ID'),
key,
type,
}
@@ -197,14 +198,14 @@ export default function () {
if (idprod >= 0 && key) {
const myfield = key as keyof IProductInfo
productStore.products[idprod].productInfo[myfield] = value
}
}
} else if (table === 'arrvariazioni') {
const productStore = useProducts()
const idprod = productStore.products.findIndex((rec: IProduct) => rec._id === id)
if (idprod >= 0 && key) {
const myfield = key as keyof IVariazione
productStore.products[idprod].arrvariazioni[0][myfield] = value
}
}
}
console.log('mydatatosave', mydatatosave)

View File

@@ -1,12 +1,13 @@
import { useUserStore } from '@store/UserStore'
import { useGlobalStore } from '@store/globalStore'
import { useQuasar } from 'quasar'
import { IDataPass, IEvents } from '@model'
import type { IEvents } from '@model';
import { IDataPass } from '@model'
import { tools } from '../store/Modules/tools'
import { costanti } from '@costanti'
import translate from '@src/globalroutines/util'
import { useCalendarStore } from '@store/CalendarStore'
import { useI18n } from '@/boot/i18n'
import { useI18n } from 'vue-i18n'
// You can declare a mixin as the same style as components.
export default function () {

View File

@@ -1,8 +1,8 @@
import {
defineComponent, ref,
} from 'vue'
import { IMetaTags } from '@model'
import { tools } from '@store/Modules/tools'
import type { IMetaTags } from '@model'
import { tools } from '@tools'
import { useQuasar } from 'quasar'
import { useMeta } from 'quasar'

View File

@@ -1,10 +1,10 @@
import { IMessage, INotif } from '@src/model'
import type { IMessage, INotif } from '@src/model'
import { useUserStore } from '@store/UserStore'
import { useNotifStore } from '@store/NotifStore'
import { useGlobalStore } from '@store/globalStore'
import { useProducts } from '@store/Products'
import { serv_constants } from '@store/Modules/serv_constants'
import { tools } from '@store/Modules/tools'
import { tools } from '@tools'
import { shared_consts } from '@src/common/shared_vuejs'
// You can declare a mixin as the same style as components.
@@ -33,11 +33,11 @@ export default function () {
return userStore.my.username
}
function getUsernameChatByMsg(msg: IMessage) {
function getUsernameChatByMsg(msg: IMessage): string {
if (msg) {
if (msg.dest) {
if (msg.dest !== getMyUsername()) return msg.dest
return msg.origin ? msg.origin : {}
return msg.origin ? msg.origin : ''
}
} else {
return ''
@@ -50,7 +50,7 @@ export default function () {
const arrcart = products.cart
if (!!arrcart) {
if (!!arrcart.items) {
const total = arrcart.items.reduce((sum, item) => sum + (item.order ? (item.order.quantity + item.order.quantitypreordered) : 0) , 0)
const total = arrcart.items.reduce((sum, item) => sum + (item.order ? (item.order.quantity + item.order.quantitypreordered) : 0), 0)
return total
}
}
@@ -171,7 +171,7 @@ export default function () {
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_CIRCUITS) {
if (notif.typeid === shared_consts.TypeNotifs.ID_CIRCUIT_SENDCOINSREQ) {
// console.log('notif.extrarec', notif.extrarec)
if (notif.extrarec && notif.extrarec.hasOwnProperty('causal') && notif.extrarec.causal) {
if (notif.extrarec && tools.existProp(notif.extrarec, 'causal') && notif.extrarec.causal) {
descr += '<br>' + $t('movement.causal') + ': ' + notif.extrarec.causal
}
}
@@ -183,13 +183,6 @@ export default function () {
// if (status === shared_consts.StatusNotifs.STATUS_HANDSHAKE_ACCEPTED) {
// descr += '<br><em>' + $t('handshake.accepted') + '</em>'
// }
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_CIRCUITS) {
if (notif.typeid === shared_consts.TypeNotifs.ID_CIRCUIT_SENDCOINSREQ) {
// console.log('notif.extrarec', notif.extrarec)
if (notif.extrarec && notif.extrarec.hasOwnProperty('causal') && notif.extrarec.causal) {
descr += '<br>' + $t('movement.causal') + ': ' + notif.extrarec.causal
}
}
} else if (notif.typedir === shared_consts.TypeNotifs.TYPEDIR_GROUPS) {
if (status === shared_consts.GroupsNotifs.STATUS_GROUPS_ACCEPTED) {
descr += '<br><em>' + $t('groups.accepted') + '</em>'