![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
react-mobile-calendar
Advanced tools
npm i react-mobile-calendar
import React from 'react'
import ReactDOM from 'react-dom'
import MultiMonthView,{DatePicker} from 'react-mobile-calendar'
const days = [
{
key:20161201,
text:'¥ 3000'
},
{
key:20161202,
text:'¥ 1000'
},
{
key:20161203,
text:'¥ 1000'
},
];
const onDayClick = (day,rangeDays,is_complete)=>{
for (var value of rangeDays) {
if(value.disable==false) { //使用rendDay 自定义的数据
console.log(value.moment.format('YYYY-MM-DD')+'不可以订');
return false;
}
}
if(is_complete){
console.log('选择完毕');
}else{
console.log('选择退房时间')
}
return true;
};
const rendDay = (day,props)=>{
let day_my = days.find((value)=>(value.key==day.number));
if(day_my==undefined){
day.disable = false; //自定义数据
day.money = '暂无'; //自定义数据
}else{
day.money = day_my.text;
day.disable = true;
}
//自定义 一天的样式
props.children = <div className="day"><span className="textNum">{day.text}</span><span className="textMoney">{day.money}</span></div>;
};
ReactDOM.render(
<div>
<MultiMonthView startText="入住" endText="退房" monthNumber="5" viewMoment="2016-12" onDayClick={onDayClick} rendDay={rendDay}/>
</div>,
document.getElementById('root')
);
FAQs
> 用react做的用于手机端显示的日历
The npm package react-mobile-calendar receives a total of 0 weekly downloads. As such, react-mobile-calendar popularity was classified as not popular.
We found that react-mobile-calendar 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.