{"id":30580548,"url":"https://github.com/react-component/m-calendar","last_synced_at":"2025-08-29T05:36:59.370Z","repository":{"id":24225276,"uuid":"100911276","full_name":"react-component/m-calendar","owner":"react-component","description":"React Mobile Calendar Component (web)","archived":false,"fork":false,"pushed_at":"2022-04-06T10:58:31.000Z","size":2291,"stargazers_count":38,"open_issues_count":33,"forks_count":27,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-20T17:19:34.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-component.github.io/m-calendar/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-component.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-21T04:07:50.000Z","updated_at":"2025-06-13T02:26:44.000Z","dependencies_parsed_at":"2022-07-27T04:32:30.252Z","dependency_job_id":null,"html_url":"https://github.com/react-component/m-calendar","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/m-calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/m-calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-calendar/sbom","scorecard":{"id":765367,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-component/m-calendar","commit":"ec77284f8f6c52f87ad9e50ae9465fc75d0180d7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 4/27 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T00:37:26.227Z","repository_id":24225276,"created_at":"2025-08-23T00:37:26.227Z","updated_at":"2025-08-23T00:37:26.227Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272636165,"owners_count":24967983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-29T05:36:58.885Z","updated_at":"2025-08-29T05:36:59.363Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rmc-calendar\n---\n\nReact Mobile Calendar Component (web)\n\n\n[![NPM version][npm-image]][npm-url]\n![react](https://img.shields.io/badge/react-%3E%3D_15.2.0-green.svg)\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![gemnasium deps][gemnasium-image]][gemnasium-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rmc-calendar.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rmc-calendar\n[travis-image]: https://img.shields.io/travis/react-component/m-calendar.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/m-calendar\n[coveralls-image]: https://img.shields.io/coveralls/react-component/m-calendar.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/m-calendar?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/m-calendar.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/m-calendar\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/rmc-calendar.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rmc-calendar\n\n## Screenshots\n\n\u003c!-- \u003cimg src=\"https://os.alipayobjects.com/rmsportal/fOaDvpIJukLYznc.png\" width=\"288\"/\u003e --\u003e\n\n\n## Development\n\n```\nnpm i \nnpm start\n```\n\n## Example\n\nhttp://localhost:8000/examples/\n\nonline example: http://react-component.github.io/m-calendar/\n\n## react-native (TBC)\n\n```\n./node_modules/rc-tools run react-native-init\nnpm run watch-tsc\nreact-native start\nreact-native run-ios\n```\n\n## install\n\n[![rmc-calendar](https://nodei.co/npm/rmc-calendar.png)](https://npmjs.org/package/rmc-calendar)\n\n\n# docs\n\n## Usage\n```jsx\nimport React, { Component } from 'react';\n\nimport { Calendar } from 'rmc-calendar';\nimport 'rmc-calendar/assets/index.css';\n\nclass App extends Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      visible: false,\n    };\n  }\n\n  setVisiable = () =\u003e {\n    this.setState({\n      visible: !this.state.visible,\n    });\n  }\n\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cCalendar\n          visible={this.state.visible}\n          onCancel={this.setVisiable}\n          onConfirm={this.setVisiable}\n        /\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\n\n## API\n\n### Calendar props\n```ts\ninterface PropsType {\n    /** enter direction，default: vertical */\n    enterDirection?: 'horizontal' | 'vertical';\n    /** locale */\n    locale?: GlobalModels.Locale;\n    onCancel?: () =\u003e void;\n    onConfirm?: (startDateTime?: Date, endDateTime?: Date) =\u003e void;\n    /** choose time，default: false */\n    pickTime?: boolean;\n    /** (web only) prefix class，default: rmc-calendar */\n    prefixCls?: string;\n    /** shortcut render, need showShortcut: true */\n    renderShortcut?: (select: (startDate?: Date, endDate?: Date) =\u003e void) =\u003e React.ReactNode;\n    /** show header, default: true */\n    showHeader?: boolean;\n    /** show shortcut, default: false */\n    showShortcut?: boolean;\n    /** header title, default: {locale.title} */\n    title?: string;\n    /** select type, default: range，one: one-day, range: range */\n    type?: 'one' | 'range';\n    /** visible, default: false */\n    visible?: boolean;\n\n    // DatePicker Component\n    /** default date for show, default: today */\n    defaultDate?: Date;\n    /** extra info of date */\n    getDateExtra?: (date: Date) =\u003e DateModels.ExtraData;\n    /** infinite scroll, default: true */\n    infinite?: boolean;\n    /** infinite scroll optimization, default: false */\n    infiniteOpt?: boolean;\n    /** inital generate months, default: 6 */\n    initalMonths?: number;\n    /** max date */\n    maxDate?: Date;\n    /** min date */\n    minDate?: Date;\n    /** select range has disable date */\n    onSelectHasDisableDate?: (date: Date[]) =\u003e void;\n\n    // TimePicker Component\n    /** inital time of TimePicker */\n    defaultTimeValue?: Date;\n}\n```\n\n### DatePicker props\n```ts\nexport default interface PropsType {\n    /** default date for show, default: today */\n    defaultDate?: Date;\n    /** select value of start date */\n    startDate?: Date;\n    /** select value of end date */\n    endDate?: Date;\n    /** extra info of date */\n    getDateExtra?: (date: Date) =\u003e Models.ExtraData;\n    /** infinite scroll, default: true */\n    infinite?: boolean;\n    /** infinite scroll optimization, default: false */\n    infiniteOpt?: boolean;\n    /** inital generate months, default: 6 */\n    initalMonths?: number;\n    /** locale */\n    locale?: GlobalModels.Locale;\n    /** max date */\n    maxDate?: Date;\n    /** min date */\n    minDate?: Date;\n    /** callback when click the cell of date */\n    onCellClick?: (date: Date) =\u003e void;\n    /** select range has disable date */\n    onSelectHasDisableDate?: (date: Date[]) =\u003e void;\n    /** (web only) prefix class */\n    prefixCls?: string;\n    /** select type, default: range，one: one-day, range: range */\n    type?: 'one' | 'range';\n}\n```\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\nrmc-calendar is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fm-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fm-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fm-calendar/lists"}