PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user