
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
react-date-range-ch
Advanced tools
对react-date-range进行了修改
npm intall react-date-range-ch@x.x.x --save 其他请详见react-date-range
汉化
禁止选择今天之前的日期
给Calendar增加两个属性:
给Calendar增加一个属性:
const state = {
date,
shownDate : (shownDate || range && range['endDate'] || date).clone().add(offset, 'months'), // ayou 2016.11.23人工指定shownDate
firstDayOfWeek: (firstDayOfWeek || moment.localeData().firstDayOfWeek()),
}
1.增加/修改参数
...
const _calendars = [];
const _method = offsetPositive ? 'unshift' : 'push';
for (var i = Number(calendars) - 1; i >= 0; i--) {
_calendars[_method](
...
2.增加字典文件LangDic,目前支持中文,日文
修复0.5.0的相关bug:DateRange中使用Calerdar传递showMonthArrow属性
给checkStartEdge和checkEndEdge中的isSame方法增加"day"参数
补充说明文档
增加文字显示功能

<DateRange
...
dayText: {[{
ts: moment().format('x'), // 时间戳
text: '入住'
},{
ts: moment().add(1,"days").format('x'),
text: '离开'
}]}
...
/>
<DateRange
...
dayText: {[{
ts: moment().format('x'),
text: '¥123'
},{
ts: moment().add(1,"days").format('x'),
text: '¥124'
},{
ts: moment().add(2,"days").format('x'),
text: '¥125'
},{
ts: moment().add(3,"days").format('x'),
text: '¥126'
}]}
...
/>
去掉调试信息
FAQs
修改react-date-range
We found that react-date-range-ch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.