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,5 +1,5 @@
import { Api } from '@api'
import { ITodo } from '@src/model'
import type { ITodo } from '@src/model'
import { tools } from '@src/store/Modules/tools'
import { toolsext } from '@src/store/Modules/toolsext'
import { useUserStore } from '@store/UserStore'
@@ -72,7 +72,6 @@ async function checkPendingMsg() {
// ...
}
// eslint-disable-next-line @typescript-eslint/no-misused-promises
return new Promise((resolve, reject) => globalroutines('count', 'swmsg')
.then((count) => {
if (count > 0) {
@@ -88,7 +87,6 @@ async function checkPendingNotif() {
const howmanybefore = notifStore.countNotif
// eslint-disable-next-line @typescript-eslint/no-misused-promises
return new Promise((resolve, reject) => globalroutines('count', 'notifications')
.then((count) => {
if (count !== howmanybefore) {
@@ -170,7 +168,7 @@ export async function waitAndcheckPendingMsg() {
return sendSwMsgIfAvailable()
.then((something) => {
if (something) {
if (process.env.DEBUG === '1') {
if (import.meta.env.VITE_DEBUG === '1') {
console.log('something')
}
// Refresh data
@@ -397,7 +395,7 @@ export function Sync_HideItem(nametab: string, item: any, id: string) {
export async function aftercalling(ris: any, checkPending: boolean, nametabindex: string) {
const userStore = useUserStore()
if (ris.status !== 200) {
if (process.env.DEBUG === '1') {
if (import.meta.env.VITE_DEBUG === '1') {
console.log('ris.status', ris.status)
}
if (ris.status === serv_constants.RIS_CODE__HTTP_FORBIDDEN_INVALID_TOKEN) {