{"id":30580559,"url":"https://github.com/react-component/m-dialog","last_synced_at":"2025-08-29T05:37:08.838Z","repository":{"id":48428642,"uuid":"102446572","full_name":"react-component/m-dialog","owner":"react-component","description":"React Mobile Dialog(web \u0026 react-native) ","archived":false,"fork":false,"pushed_at":"2021-07-26T21:14:05.000Z","size":958,"stargazers_count":45,"open_issues_count":21,"forks_count":15,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-08-09T15:31:19.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://react-component.github.io/m-dialog","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-05T07:06:41.000Z","updated_at":"2024-03-01T03:51:40.000Z","dependencies_parsed_at":"2022-09-21T09:54:27.003Z","dependency_job_id":null,"html_url":"https://github.com/react-component/m-dialog","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/m-dialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-dialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-dialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-dialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-dialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/m-dialog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fm-dialog/sbom","scorecard":{"id":765371,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-component/m-dialog","commit":"9760e83e694adf9a8966b4646976a0001d9c3253"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":0,"reason":"Found 1/18 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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:27.935Z","repository_id":48428642,"created_at":"2025-08-23T00:37:27.935Z","updated_at":"2025-08-23T00:37:27.935Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272636168,"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:37:08.082Z","updated_at":"2025-08-29T05:37:08.830Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# m-dialog\n---\n\nreact dialog component for mobile\n\n[![NPM version][npm-image]][npm-url]\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-dialog.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rmc-dialog\n[travis-image]: https://img.shields.io/travis/react-component/m-dialog.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/m-dialog\n[coveralls-image]: https://img.shields.io/coveralls/react-component/m-dialog.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/m-dialog?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/m-dialog.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/m-dialog\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-dialog.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rmc-dialog\n\n## Screenshot\n\n\u003cimg src=\"http://gtms04.alicdn.com/tps/i4/TB1dp5lHXXXXXbmXpXXyVug.FXX-664-480.png\" /\u003e\n\n## Install\n\n[![rmc-dialog](https://nodei.co/npm/rmc-dialog.png)](https://npmjs.org/package/rmc-dialog)\n\n## Usage\n\n```js\nvar Dialog = require('rmc-dialog');\n\nReactDOM.render(\n  \u003cDialog title={title} onClose={callback1} visible\u003e\n      \u003cp\u003efirst dialog\u003c/p\u003e\n  \u003c/Dialog\u003e\n), document.getElementById('t1'));\n\n// use dialog\n```\n\n## API\n\n### rmc-dialog(web)\n\n| name     | description    | type     | default      |\n|----------|----------------|----------|--------------|\n| prefixCls | The dialog dom node's prefixCls | String | `rmc-dialog` |\n| className | additional className for dialog | String |  |\n| wrapClassName | additional className for dialog wrap | String |  |\n| style | Root style for dialog element.Such as width, height | Object | {} |\n| zIndex | z-index | Number |  |\n| bodyStyle | body style for dialog body element.Such as height | Object | {} |\n| maskStyle | style for mask element. | Object | {} |\n| visible | current dialog's visible status | Boolean | false |\n| animation | part of dialog animation css class name | String |  |\n| maskAnimation | part of dialog's mask animation css class name | String |  |\n| transitionName | dialog animation css class name | String |  |\n| maskTransitionName | mask animation css class name | String |  |\n| title | Title of the dialog | String|React.Element |  |\n| footer | footer of the dialog | React.Element |  |\n| closable | whether show close button | Boolean | true |\n| mask | whether show mask | Boolean | true |\n| maskClosable | whether click mask to close | Boolean | true |\n| onClose | called when click close button or mask | function |  |\n\n### rmc-dialog/lib/Dialog (react-native)\n\n| name     | description    | type     | default      |\n|----------|----------------|----------|--------------|\n| wrapStyle | style for modal wrap | Object | {} |\n| maskStyle | style for modal mask | Object | {} |\n| style | style for modal | Object | {} |\n| animationType | animation type for modal content, can be one of `none|fade|slide-up|slide-down` | String | slide-up |\n| animationDuration | animation duration | number | 300 |\n| visible | visible state | boolean | false |\n| animateAppear | whether animation on first show | boolean | false |\n| onClose | called when close | Function | ()=\u003evoid |\n| onAnimationEnd | called when animation end | Function | (visible:boolean)=\u003evoid (animationType !== 'none') |\n\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8007/examples/\n\nonline example: http://react-component.github.io/m-dialog/\n\n## react-native\n\n```\nnpm run rn-init\nnpm run watch-tsc\nreact-native start\nreact-native run-ios\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\n## License\n\nrmc-dialog is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fm-dialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fm-dialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fm-dialog/lists"}