original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
---|---|---|
)
|
)
|
)
|
}
|
}
|
}
|
loadData()
|
loadData ( )
|
loadData ( )
|
}, [])
|
} , [ ] )
|
[MASK] , [ ] )
|
const { orderDate, deliveryDate, ...values } = refForm.current?.getValues()
|
const { orderDate , deliveryDate , ... values } = refForm.current ? .getValues ( )
|
const [MASK] orderDate , [MASK] , ... values } [MASK] [MASK] ? .getValues ( [MASK]
|
const orderFirstDate = formatDatePickerToApi(orderDate?.startDate)
|
const orderFirstDate = formatDatePickerToApi ( orderDate ? .startDate )
|
const orderFirstDate = formatDatePickerToApi ( orderDate ? .startDate [MASK]
|
const orderLastDate = formatDatePickerToApi(orderDate?.endDate)
|
const orderLastDate = formatDatePickerToApi ( orderDate ? .endDate )
|
const orderLastDate = formatDatePickerToApi ( [MASK] ? .endDate )
|
let formattedOrderDate: string | undefined
|
let formattedOrderDate : string | undefined
|
let [MASK] : string [MASK] undefined
|
formattedOrderDate = `${orderFirstDate}|${orderLastDate}`
|
formattedOrderDate = ` $ { orderFirstDate } | $ { orderLastDate } `
|
formattedOrderDate = ` $ { [MASK] } [MASK] $ { orderLastDate } `
|
const deliveryFirstDate = formatDatePickerToApi(deliveryDate?.startDate)
|
const deliveryFirstDate = formatDatePickerToApi ( deliveryDate ? .startDate )
|
const deliveryFirstDate = formatDatePickerToApi ( deliveryDate ? .startDate )
|
const deliveryLastDate = formatDatePickerToApi(deliveryDate?.endDate)
|
const deliveryLastDate = formatDatePickerToApi ( deliveryDate ? .endDate )
|
const deliveryLastDate = formatDatePickerToApi ( deliveryDate ? .endDate )
|
let formattedDeliveryDate: string | undefined
|
let formattedDeliveryDate : string | undefined
|
let formattedDeliveryDate : string | undefined
|
formattedDeliveryDate = `${deliveryFirstDate}|${deliveryLastDate}`
|
formattedDeliveryDate = ` $ { deliveryFirstDate } | $ { deliveryLastDate } `
|
formattedDeliveryDate [MASK] ` $ { deliveryFirstDate [MASK] | $ { deliveryLastDate } `
|
)
|
)
|
)
|
}
|
}
|
}
|
refDataTable.current.pageParams = null
|
refDataTable.current.pageParams = null
|
refDataTable.current.pageParams = null
|
)
|
)
|
)
|
}
|
}
|
}
|
resetTable()
|
resetTable ( )
|
[MASK] ( )
|
}
|
}
|
[MASK]
|
setShowConfirmModal(false)
|
setShowConfirmModal ( false )
|
setShowConfirmModal ( false )
|
loadData()
|
loadData ( )
|
loadData [MASK] )
|
orderService.delete(deleteData?.id?.toString()).then(loadData)
|
orderService.delete ( deleteData ? .id ? .toString ( ) ) .then ( loadData )
|
orderService.delete [MASK] deleteData ? .id [MASK] .toString ( ) ) .then [MASK] loadData )
|
)
|
)
|
)
|
}
|
}
|
[MASK]
|
export default OrderListTab
|
export default OrderListTab
|
export default OrderListTab
|
import React, { useEffect, useRef, useState } from 'react'
|
import React , { useEffect , useRef , useState } from 'react '
|
import React , { useEffect [MASK] [MASK] , useState } from [MASK] '
|
import Block from '@protoweb/block'
|
import Block from ' @ protoweb/block '
|
import Block from [MASK] @ protoweb/block '
|
import NoData from '@common/components/noData'
|
import NoData from ' @ common/components/noData '
|
[MASK] NoData from ' @ common/components/noData '
|
import Loader from 'react-loader-spinner'
|
import Loader from 'react-loader-spinner '
|
import Loader from 'react-loader-spinner '
|
import COLORS from '@resources/colors'
|
import COLORS from ' @ resources/colors '
|
import [MASK] from ' [MASK] resources/colors '
|
import * as Highcharts from 'highcharts/highcharts-gantt'
|
import * as Highcharts from 'highcharts/highcharts-gantt '
|
import * as [MASK] from 'highcharts/highcharts-gantt '
|
import HighchartsReact from 'highcharts-react-official'
|
import HighchartsReact from 'highcharts-react-official '
|
import HighchartsReact from 'highcharts-react-official '
|
import highchartsExporting from 'highcharts/modules/exporting'
|
import highchartsExporting from 'highcharts/modules/exporting '
|
import highchartsExporting from [MASK] '
|
import offlineHighchartsExporting from 'highcharts/modules/offline-exporting'
|
import offlineHighchartsExporting from 'highcharts/modules/offline-exporting '
|
import offlineHighchartsExporting from 'highcharts/modules/offline-exporting '
|
import highchartsAccessibility from 'highcharts/modules/accessibility'
|
import highchartsAccessibility from 'highcharts/modules/accessibility '
|
import highchartsAccessibility [MASK] 'highcharts/modules/accessibility '
|
import More from 'highcharts/highcharts-more'
|
import More from 'highcharts/highcharts-more '
|
import More from [MASK] '
|
} from '@utils/GanttChartUtils'
|
} from ' @ utils/GanttChartUtils '
|
} from ' @ [MASK] '
|
import projectPlanService, { IWeeklyReportItem } from '@services/ProjectPlanService'
|
import projectPlanService , { IWeeklyReportItem } from ' @ services/ProjectPlanService '
|
import projectPlanService , { IWeeklyReportItem } from [MASK] @ [MASK] '
|
import { WeeklyReportItem } from './WeeklyReportItem'
|
import { WeeklyReportItem } from './WeeklyReportItem '
|
import { WeeklyReportItem } from './WeeklyReportItem '
|
import moment from 'moment'
|
import moment from 'moment '
|
import moment from 'moment [MASK]
|
import navigationService from '@common/navigation/NavigationService'
|
import navigationService from ' @ common/navigation/NavigationService '
|
import navigationService from ' [MASK] [MASK] [MASK]
|
import NAVIGATION_PATHS from '@common/navigation/NavigationPaths'
|
import NAVIGATION_PATHS from ' @ common/navigation/NavigationPaths '
|
import NAVIGATION_PATHS [MASK] ' [MASK] common/navigation/NavigationPaths [MASK]
|
More(Highcharts)
|
More ( Highcharts )
|
More ( Highcharts )
|
highchartsAccessibility(Highcharts)
|
highchartsAccessibility ( Highcharts )
|
[MASK] ( Highcharts [MASK]
|
highchartsExporting(Highcharts)
|
highchartsExporting ( Highcharts )
|
highchartsExporting ( Highcharts )
|
offlineHighchartsExporting(Highcharts)
|
offlineHighchartsExporting ( Highcharts )
|
offlineHighchartsExporting ( Highcharts )
|
const [chartState, setChartState] = useState<GanttChartStates>('loading')
|
const [ chartState , setChartState ] = useState < GanttChartStates > ( 'loading ' )
|
const [ chartState [MASK] setChartState ] = [MASK] < GanttChartStates > ( [MASK] ' )
|
const chartRef = useRef(null)
|
const chartRef = useRef ( null )
|
const chartRef = useRef ( null )
|
const [options, setOptions] = useState<HighchartsReact.Props>(null)
|
const [ options , setOptions ] = useState < HighchartsReact.Props > ( null )
|
const [ options , setOptions ] = useState [MASK] HighchartsReact.Props [MASK] ( null )
|
Highcharts.setOptions(initialChartOptions)
|
Highcharts.setOptions ( initialChartOptions )
|
Highcharts.setOptions [MASK] initialChartOptions )
|
if (!e || !e.target.options.custom || !e.target.options.custom?.weekendPlotBands) return
|
if ( ! e || ! e.target.options.custom || ! e.target.options.custom ? .weekendPlotBands ) return
|
if ( ! e || ! e.target.options.custom || ! e.target.options.custom ? .weekendPlotBands [MASK] [MASK]
|
plotBands: { from: number
|
plotBands : { from : number
|
plotBands : { from [MASK] number
|
to?: number
|
to ? : number
|
to ? : number
|
color: string }[] = []
|
color : string } [ ] = [ ]
|
color : [MASK] } [ ] [MASK] [MASK] [MASK]
|
let inWeekend = false
|
let inWeekend = false
|
let inWeekend = [MASK]
|
let x = Math.floor(axis.min / day) * day
|
let x = Math.floor ( axis.min / day ) * day
|
let x = Math.floor [MASK] axis.min [MASK] day ) * day
|
x <= Math.ceil(axis.max / day) * day
|
x < = Math.ceil ( axis.max / day ) * day
|
x < = [MASK] [MASK] axis.max [MASK] day ) * day
|
const last = plotBands.at(-1)
|
const last = plotBands.at ( -1 )
|
const last = plotBands.at ( [MASK] )
|
})
|
} )
|
} )
|
inWeekend = true
|
inWeekend = true
|
[MASK] = [MASK]
|
last.to = x
|
last.to = x
|
last.to = [MASK]
|
inWeekend = false
|
inWeekend = false
|
inWeekend = false
|
axis.options.plotBands = plotBands
|
axis.options.plotBands = plotBands
|
axis.options.plotBands = plotBands
|
})
|
} )
|
} )
|
loadChartData()
|
loadChartData ( )
|
loadChartData ( )
|
}, [])
|
} , [ ] )
|
} , [ ] )
|
setChartState('loading')
|
setChartState ( 'loading ' )
|
setChartState [MASK] 'loading ' )
|
createChartData(resPlan)
|
createChartData ( resPlan )
|
createChartData [MASK] [MASK] )
|
setChartState(resPlan.length > 0 ? 'normal' : 'nodata')
|
setChartState ( resPlan.length > 0 ? 'normal ' : 'nodata ' )
|
[MASK] ( resPlan.length [MASK] [MASK] ? 'normal ' : [MASK] ' )
|
})
|
} )
|
} )
|
}
|
}
|
}
|
console.log(evt)
|
console.log ( evt )
|
console.log ( [MASK] )
|
})
|
} )
|
[MASK] )
|
}
|
}
|
}
|
return new WeeklyReportItem(v, index).dataSeriesItem()
|
return new WeeklyReportItem ( v , index ) .dataSeriesItem ( )
|
return new WeeklyReportItem ( v , index ) .dataSeriesItem [MASK] )
|
})
|
} )
|
} )
|
}
|
}
|
}
|
})
|
} )
|
} )
|
createChart(data)
|
createChart ( data )
|
[MASK] ( data )
|
}
|
}
|
[MASK]
|
moment.updateLocale('en', { week: { dow: 8, doy: 1 } })
|
moment.updateLocale ( 'en ' , { week : { dow : 8 , doy : 1 } } )
|
moment.updateLocale ( [MASK] [MASK] , { week : { dow : 8 , [MASK] [MASK] 1 } } )
|
let firstDate = moment().startOf('month').startOf('week').toDate()
|
let firstDate = moment ( ) .startOf ( 'month ' ) .startOf ( 'week ' ) .toDate ( )
|
let firstDate [MASK] moment ( ) .startOf ( [MASK] ' [MASK] .startOf ( 'week ' ) .toDate ( )
|
let lastDate = moment().endOf('month').endOf('week').toDate()
|
let lastDate = moment ( ) .endOf ( 'month ' ) .endOf ( 'week ' ) .toDate ( )
|
let lastDate = moment ( ) .endOf [MASK] 'month ' ) .endOf ( 'week [MASK] ) .toDate ( )
|
const startDates = datum.data.map(m => m.start as number) as number[]
|
const startDates = datum.data.map ( m = > m.start as number ) as number [ ]
|
const startDates = datum.data.map ( m = > m.start as number ) as number [MASK] [MASK]
|
const minStartDate = startDates.reduce((a, b) => (a < b ? a : b))
|
const minStartDate = startDates.reduce ( ( a , b ) = > ( a < b ? a : b ) )
|
const minStartDate [MASK] startDates.reduce ( ( a , b ) = [MASK] ( a < b ? a : [MASK] ) )
|
if (new Date(minStartDate) < firstDate) firstDate = new Date(minStartDate)
|
if ( new Date ( minStartDate ) < firstDate ) firstDate = new Date ( minStartDate )
|
if ( new Date ( [MASK] ) [MASK] firstDate [MASK] firstDate = new Date ( minStartDate [MASK]
|
const start = new Date(firstDate.getTime() - firstDate.getTimezoneOffset() * 60000).getTime()
|
const start = new Date ( firstDate.getTime ( ) - firstDate.getTimezoneOffset ( ) * 60000 ) .getTime ( )
|
const start = [MASK] Date [MASK] firstDate.getTime [MASK] ) - firstDate.getTimezoneOffset ( ) * [MASK] ) [MASK] [MASK] )
|
const end = new Date(lastDate.getTime() - lastDate.getTimezoneOffset() * 60000).getTime()
|
const end = new Date ( lastDate.getTime ( ) - lastDate.getTimezoneOffset ( ) * 60000 ) .getTime ( )
|
const end = new [MASK] ( lastDate.getTime [MASK] ) - lastDate.getTimezoneOffset ( ) * 60000 ) .getTime [MASK] )
|
return { start, end }
|
return { start , end }
|
return { [MASK] , [MASK] [MASK]
|
}
|
}
|
}
|
const dates = findStartEndDates(data)
|
const dates = findStartEndDates ( data )
|
const dates [MASK] findStartEndDates ( [MASK] )
|
const start = dates.start
|
const start = dates.start
|
const start = dates.start
|
const end = dates.end
|
const end = dates.end
|
const end = dates.end
|
return Highcharts.dateFormat('%d.%m', e.value as number)
|
return Highcharts.dateFormat ( ' % d. % m ' , e.value as number )
|
return Highcharts.dateFormat [MASK] ' % d. % m ' , [MASK] as number )
|
return Highcharts.dateFormat('%B', e.value as number)
|
return Highcharts.dateFormat ( ' % B ' , e.value as number )
|
return Highcharts.dateFormat ( ' % B ' [MASK] e.value as number )
|
const dataLength = getMaxDataLength(task.data)
|
const dataLength = getMaxDataLength ( task.data )
|
const dataLength = getMaxDataLength ( task.data [MASK]
|
}
|
}
|
}
|
}
|
}
|
}
|
setOptions({ ...defaultWeeklyReportGanttChartOptions, ...newOptions })
|
setOptions ( { ... defaultWeeklyReportGanttChartOptions , ... newOptions } )
|
setOptions ( { ... defaultWeeklyReportGanttChartOptions , ... newOptions } [MASK]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.