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,4 +1,4 @@
import {
import type {
ITodo,
ITodosState,
IParamTodo,
@@ -7,7 +7,7 @@ import {
} from 'model'
import { Api } from '@api'
import { tools } from '@store/Modules/tools'
import { tools } from '@tools'
import { lists } from './Modules/lists'
import * as ApiTables from './Modules/ApiTables'
import globalroutines from './../globalroutines/index'
@@ -25,7 +25,7 @@ const nametable = 'todos'
// import _ from 'lodash'
const listFieldsToChange: string [] = ['descr', 'statustodo', 'category', 'expiring_at', 'priority', 'pos', 'enableExpiring', 'progress', 'phase', 'assigned_to_userId', 'hoursplanned', 'hoursworked', 'start_date', 'completed_at', 'themecolor', 'themebgcolor', 'assignedToUsers']
const listFieldsToChange: string[] = ['descr', 'statustodo', 'category', 'expiring_at', 'priority', 'pos', 'enableExpiring', 'progress', 'phase', 'assigned_to_userId', 'hoursplanned', 'hoursworked', 'start_date', 'completed_at', 'themecolor', 'themebgcolor', 'assignedToUsers']
export const useTodoStore = defineStore('Todos', {
state: (): ITodosState => (
@@ -92,9 +92,9 @@ export const useTodoStore = defineStore('Todos', {
const indcat: number = this.getindexbycategory(cat)
let arrout = []
// console.log('items_dacompletare', 'indcat', indcat, state.todos[indcat])
if (indcat >= 0 && state.todos) {
if (indcat >= 0 && state.todos) {
// @ts-ignore
if (state.todos[indcat] ) {
if (state.todos[indcat]) {
// @ts-ignore
arrout = state.todos[indcat].filter((todo: ITodo) => todo.statustodo !== tools.Status.COMPLETED)
}
@@ -283,7 +283,7 @@ export const useTodoStore = defineStore('Todos', {
}), 10)
// console.log('ARRAY TODOS = ', this.todos)
if (process.env.DEBUG === '1') {
if (import.meta.env.VITE_DEBUG === '1') {
// console.log('dbLoad', 'this.todos', this.todos, 'this.categories', this.categories)
}