PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,21 +1,23 @@
|
||||
import { defineComponent, ref, onMounted, onBeforeMount, computed, PropType, reactive, watch } from 'vue'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
import type { PropType} from 'vue';
|
||||
import { defineComponent, ref, onMounted, onBeforeMount, computed, reactive, watch } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { colors, Screen, Platform, date } from 'quasar'
|
||||
import { EState, IBookedEvent, IBookedEventPage, IEvents, IMessage, IMessagePage, IParamDialog } from '@model'
|
||||
import type { IBookedEvent, IBookedEventPage, IEvents, IMessage, IMessagePage, IParamDialog } from '@model';
|
||||
import { EState } from '@model'
|
||||
import { Logo } from '../logo'
|
||||
import { LandingFooter } from '../LandingFooter'
|
||||
import { CTitle } from '../CTitle'
|
||||
import { CImgText } from '../CImgText'
|
||||
import { CMyEditor } from '../CMyEditor'
|
||||
import { CDateTime } from '@/components/CDateTime'
|
||||
import { CDateTime } from '@src/components/CDateTime'
|
||||
import { CMyAvatar } from '../CMyAvatar'
|
||||
import { CMySingleEvent } from '@/components/CMySingleEvent'
|
||||
import { CMyTeacher } from '@/components/CMyTeacher'
|
||||
import { CMySingleEvent } from '@src/components/CMySingleEvent'
|
||||
import { CMyTeacher } from '@src/components/CMyTeacher'
|
||||
import { CMySelect } from '../CMySelect'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { costanti } from '@costanti'
|
||||
|
||||
// import { stop, prevent, stopAndPrevent } from 'quasar/src/utils/event'
|
||||
@@ -24,9 +26,9 @@ import MixinEvents from '../../mixins/mixin-events'
|
||||
import { useCalendarStore } from '@store/CalendarStore'
|
||||
import { func_tools, toolsext } from '@store/Modules/toolsext'
|
||||
import { useMessageStore } from '@store/MessageStore'
|
||||
import { static_data } from '@/db/static_data'
|
||||
import { static_data } from '@src/db/static_data'
|
||||
import { lists } from '@store/Modules/lists'
|
||||
import translate from '@/globalroutines/util'
|
||||
import translate from '@src/globalroutines/util'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
|
||||
export default defineComponent({
|
||||
@@ -206,7 +208,7 @@ export default defineComponent({
|
||||
// convert the events into a map of lists keyed by date
|
||||
function eventsMap() {
|
||||
// console.log('eventsMap')
|
||||
const map: {} = {}
|
||||
const map: any = {}
|
||||
calendarStore.eventlist.forEach((myevent: IEvents) => {
|
||||
|
||||
const myind: string = tools.getstrDateTime(myevent.dateTimeStart)
|
||||
@@ -775,9 +777,9 @@ export default defineComponent({
|
||||
// draggedEvent.value.time = day.time
|
||||
draggedEvent.value.side = void 0
|
||||
}
|
||||
// console.log('Start', draggedEvent.value.dateTimeStart, 'End', draggedEvent.value.dateTimeEnd)
|
||||
// console.log('Start', draggedEvent.value.dateTimeStart, 'End', draggedEvent.value.dateTimeEnd)
|
||||
|
||||
// Save Date
|
||||
// Save Date
|
||||
UpdateDbByFields($q, {
|
||||
_id: draggedEvent.value._id,
|
||||
dateTimeStart: draggedEvent.value.dateTimeStart,
|
||||
@@ -787,7 +789,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function resetDrag() {
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
draggedEvent.value = void 0
|
||||
dragging.value = false
|
||||
if (Platform.is.desktop) {
|
||||
@@ -847,12 +849,12 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function calendarNext() {
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
calendar.value.next()
|
||||
}
|
||||
|
||||
function calendarPrev() {
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
calendar.value.prev()
|
||||
}
|
||||
|
||||
@@ -861,18 +863,18 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function SetToday() {
|
||||
// root.$emit('calendar:today', formatDate(tools.getDateNow()))
|
||||
// root.$emit('calendar:today', formatDate(tools.getDateNow()))
|
||||
}
|
||||
|
||||
function onChanged(data: any) {
|
||||
// uncomment to see data in console
|
||||
// let { start, end } = data
|
||||
// console.log('onChanged:', start, end)
|
||||
// uncomment to see data in console
|
||||
// let { start, end } = data
|
||||
// console.log('onChanged:', start, end)
|
||||
}
|
||||
|
||||
function onMoved(moved: any) {
|
||||
// uncomment to see data in console
|
||||
// console.log('onMoved:', moved)
|
||||
// uncomment to see data in console
|
||||
// console.log('onMoved:', moved)
|
||||
}
|
||||
|
||||
function getEventList() {
|
||||
@@ -922,8 +924,8 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
}
|
||||
// if (eventsloc.length > 0)
|
||||
// console.log('eventsloc', eventsloc)
|
||||
// if (eventsloc.length > 0)
|
||||
// console.log('eventsloc', eventsloc)
|
||||
return eventsloc
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user