common
utils.js
TimeTableView.js
Header.js
Events.js
Event.js
- currently no item available
selectedDate
TimeTableView is saving props pivotDate to state currentMoment. And in UNSAFE_componentWillReceiveProps, it updates currentMoment as undocumented props selectedDate. And currentMoment is injected to child components. Will there be scenarios using selectedDate? In my current view, we could just remove that state and just use pivotDate, renaming all selectedDate items to pivotDate.
Extra alert
- Variable names on function could also change, based on new function name.
- Using old function names which is revealed to user, will be allowed until future v.1.0.6; with aliasing + deprecation notice in documentation. After that we may remove the alias codes.
Please feel free to comment for discussion, related to above items.
common
accwill be named as{type}Accitemwill be named as{type}utils.jsgetFormattedDate(date, format)toformatDate(date, format)getCurrentMonth(date)will be removed by lintgenDayOfWeek(DayOfWeekString)togenDateBlock(dayOW), which dayOW means dayOfWeekstr2numberStringingenDayOfWeektodayOWMapgenTimeBlock(dayOfWeek, hours, minutes)togenTimeBlock(dayOW, hours, minutes)addColor(events)toassignColor(events)hashString(s)will be removed by lintcolorGenerator(num)topickColor(idx),color_listtocolorListTimeTableView.jsnumberOfDaystonDaysformatDateHeadertodateHeaderFormatselectedDateandpivotDateshould be fixed and lintedcurrentMomenttocurrentDategenerateTimes(pivotTime, endPivotTime)togenTimes(pivotTime, endPivotTime)or better syntaxHeader.jsgetFontSizeHeader(numberOfDays)toheaderFontSize(nDays)getDayTextStyles(numberOfDays)todayTextStyle(nDays)getColumns(numberOfDays, selectedDate)todatesFrom...(nDays, ...)Columns({ columns, numberOfDays, format})toDaysHeader({ dates, nDays, format })and removeColumnComponent.Titlerole seems to be speicifed. It is empty.numberOfDaystonDaysselectedDateto...formatDatetodateFormatEvents.jsEventstoEventTablegetEventsByNumberOfDays(numberOfDays, events, selectedDate)tocatEventsByDays(nDays, events, ...)getStyleForEvent(item)tocalcEventStyle(event)getEventsWithPosition(totalEvents)toadjustEventStyle(allEvents)getEventItemWidth; change as const (if hooks)sortEventByDates(events)tosortEventsByDate(events)numberOfDaystonDaysselectedDateto...Event.jsselectedDateTimeTableViewis saving propspivotDateto statecurrentMoment. And inUNSAFE_componentWillReceiveProps, it updatescurrentMomentas undocumented propsselectedDate. AndcurrentMomentis injected to child components. Will there be scenarios usingselectedDate? In my current view, we could just remove that state and just usepivotDate, renaming allselectedDateitems topivotDate.Extra alertPlease feel free to comment for discussion, related to above items.