{"id":15837079,"url":"https://github.com/afeiship/react-drawer","last_synced_at":"2026-02-19T10:32:57.518Z","repository":{"id":57122986,"uuid":"306841362","full_name":"afeiship/react-drawer","owner":"afeiship","description":"Drawer for react.","archived":false,"fork":false,"pushed_at":"2024-08-07T13:17:58.000Z","size":612,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T07:59:48.078Z","etag":null,"topics":["component","componets","controller","drawer","modal","popup","react","ui","web"],"latest_commit_sha":null,"homepage":"https://afeiship.github.io/react-drawer/","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-24T08:41:45.000Z","updated_at":"2024-08-07T13:18:01.000Z","dependencies_parsed_at":"2024-05-28T10:16:42.295Z","dependency_job_id":"383023cf-8bcd-43b0-8840-0fa4bfadf6ae","html_url":"https://github.com/afeiship/react-drawer","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/react-drawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-drawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-drawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-drawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-drawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-drawer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-drawer/sbom","scorecard":{"id":169555,"data":{"date":"2025-08-11","repo":{"name":"github.com/afeiship/react-drawer","commit":"af80155b486c97e94497db83c7a7c071ee61094a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-16T16:02:19.817Z","repository_id":57122986,"created_at":"2025-08-16T16:02:19.817Z","updated_at":"2025-08-16T16:02:19.817Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["component","componets","controller","drawer","modal","popup","react","ui","web"],"created_at":"2024-10-05T15:20:46.117Z","updated_at":"2026-02-19T10:32:57.481Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-drawer\n\u003e Drawer for react.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install -S @jswork/react-drawer\n```\n\n## usage\n1. import css\n  ```scss\n  @import \"~@jswork/react-drawer/dist/style.css\";\n\n  // or use sass\n  @import \"~@jswork/react-drawer/dist/style.scss\";\n  ```\n2. import js\n  ```js\n  import React from 'react';\n  import ReactDrawer, { Placement } from '@jswork/react-drawer';\n  import './index.css';\n  import '@jswork/react-drawer/dist/style.scss';\n\n  const placements = ['top', 'right', 'bottom', 'left'];\n\n  function App() {\n    const [visible, setVisible] = React.useState(false);\n    const [placement, setPlacement] = React.useState\u003cPlacement\u003e('left');\n\n    const handleOpen = () =\u003e {\n      setVisible(true);\n    };\n\n    const handleClose = () =\u003e {\n      setVisible(false);\n    };\n\n    return (\n      \u003cdiv className=\"h-screen relative\"\u003e\n        \u003cnav className=\"pt-4 mx-auto fc x-2 w-1/5\"\u003e\n          \u003cbutton className=\"btn btn-default btn-wide\" onClick={handleOpen}\u003eOpen\u003c/button\u003e\n          \u003cselect name=\"placement\" className=\"select select-bordered w-full\" value={placement}\n                  onChange={(e) =\u003e setPlacement(e.target.value as Placement)}\u003e\n            {placements.map((item) =\u003e (\n              \u003coption key={item} value={item}\u003e{item}\u003c/option\u003e\n            ))}\n          \u003c/select\u003e\n        \u003c/nav\u003e\n\n        \u003cReactDrawer visible={visible} withBackdrop keepMounted closeOnBackdropClick closeOnEscape onClose={handleClose}\n                     placement={placement} className=\"w-64 bg-gray-100 p-4\"\u003e\n          \u003cul\u003e\n            \u003cli\u003e道可道，非常道；名可名，非常名。\u003c/li\u003e\n            \u003cli\u003e无名，天地之始，有名，万物之母。\u003c/li\u003e\n            \u003cli\u003e故常无欲，以观其妙，常有欲，以观其徼。\u003c/li\u003e\n            \u003cli\u003e此两者，同出而异名，同谓之玄，玄之又玄，众妙之门。\u003c/li\u003e\n          \u003c/ul\u003e\n          \u003cnav\u003e\n            \u003cbutton className=\"btn btn-primary mt-2 w-full\" onClick={handleClose}\u003eClose\u003c/button\u003e\n          \u003c/nav\u003e\n        \u003c/ReactDrawer\u003e\n      \u003c/div\u003e\n    );\n  }\n\n  export default App;\n\n  ```\n\n## preview\n- https://afeiship.github.io/react-drawer/\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-drawer/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-drawer\n[version-url]: https://npmjs.org/package/@jswork/react-drawer\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-drawer\n[license-url]: https://github.com/afeiship/react-drawer/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-drawer\n[size-url]: https://github.com/afeiship/react-drawer/blob/master/dist/react-drawer.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-drawer\n[download-url]: https://www.npmjs.com/package/@jswork/react-drawer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-drawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-drawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-drawer/lists"}