{"id":42648548,"url":"https://github.com/hutx/rc-split-layout","last_synced_at":"2026-01-29T07:16:46.084Z","repository":{"id":65372031,"uuid":"83634014","full_name":"hutx/rc-split-layout","owner":"hutx","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-02T04:28:44.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-16T03:46:01.667Z","etag":null,"topics":["component","react","split-layout"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/hutx.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}},"created_at":"2017-03-02T04:23:58.000Z","updated_at":"2017-03-02T05:05:41.000Z","dependencies_parsed_at":"2023-01-19T23:16:33.961Z","dependency_job_id":null,"html_url":"https://github.com/hutx/rc-split-layout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hutx/rc-split-layout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutx%2Frc-split-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutx%2Frc-split-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutx%2Frc-split-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutx%2Frc-split-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hutx","download_url":"https://codeload.github.com/hutx/rc-split-layout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutx%2Frc-split-layout/sbom","scorecard":{"id":474149,"data":{"date":"2025-08-11","repo":{"name":"github.com/hutx/rc-split-layout","commit":"a62c3b9cefc3f366bc601a99ff860eba0ed0f9f8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/4 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":"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":"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":"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":"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-19T14:49:09.908Z","repository_id":65372031,"created_at":"2025-08-19T14:49:09.908Z","updated_at":"2025-08-19T14:49:09.908Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28868928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T06:56:44.678Z","status":"ssl_error","status_checked_at":"2026-01-29T06:56:35.794Z","response_time":59,"last_error":"SSL_read: 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","react","split-layout"],"created_at":"2026-01-29T07:16:45.372Z","updated_at":"2026-01-29T07:16:46.072Z","avatar_url":"https://github.com/hutx.png","language":"JavaScript","readme":"# rc-split-layout\n\n\nA simple split layout for React and modern browsers.\n\n\n## Dependencies\n\nrc-split-layout depends on React. See [package.json](package.json) for more details.\n\n## Installation\n\n```sh\n$ npm install --save rc-split-layout\n```\n\n## Testing\n\nTo run tests, execute `test` command with `npm`.\n\n```sh\n$ npm test\n```\n\nTo run coverage tests, execute `coverage` script with `npm`.\n\n```sh\n$ npm run coverage\n```\n\n## Integration\n\n1. Add `rc-split-layout` dependency to your code.\n\n    ```sh\n    $ npm install --save react-split-layout\n    ```\n\n2. Include the library into your code and use it.\n\n    ```javascript\n    import React from 'react';\n    import SplitLayout from 'rc-split-layout';\n    \n    class YourComponent extends React.Component {\n      handleSplitChange(v){\n          console.log(v);\n      }  \n      render() {\n        return (\n          \u003cSplitLayout onChange={this.handleSplitChange.bind(this)}\u003e\n            \u003cdiv\u003ePane 1\u003c/div\u003e\n            \u003cdiv\u003ePane 2\u003c/div\u003e\n          \u003c/SplitLayout\u003e\n        );\n      }\n    }\n \n    export default YourComponent;\n    ```\n\n## Usage\n\nWrite two parts of the layout as direct children of your `SplitLayout` element.\n`SplitLayout` renders the first 2 direct children only if it has more than 2 direct children.\n`SplitLayout` does not render splitter when it has only 1 direct children,\nand the only direct children occupies all available space.\n\nThe `SplitLayout` component supports the following props.\n\n* `customClassName: React.PropTypes.string`\n\n    Custom CSS class name applied to the layout `div`. You can use this to customize layout style.\n    Refers to the [original stylesheet](src/stylesheets/index.css) to see what you can customize.\n\n* `vertical: React.PropTypes.bool`\n\n    Determine whether the layout should be a horizontal split or a vertical split. The default value is `false`.\n    \n* `percentage: React.PropTypes.bool`\n\n    Determine whether the width of each pane should be calculated in percentage or by pixels.\n    The default value is `false`, which means width is calculated in pixels.\n    \n* `primaryIndex: React.PropTypes.number`\n\n    Index of the *primary pane*. Since `SplitterLayout` supports at most 2 children, only `0` or `1` is allowed.\n    The default value is `0`.\n    \n    A *primary pane* is used to show users primary content, while a *secondary pane* is the other pane.\n    When window size changes and `percentage` is set to `false`,\n    primary pane's size is flexible and secondary pane's size is kept unchanged.\n    However, when the window size is not enough for showing both minimal primary pane and minimal secondary pane,\n    the primary pane's size is served first. \n\n* `primaryMinSize: React.PropTypes.number`\n\n    Minimal size of primary pane. The default value is 0.\n\n    When `percentage` is set to `false`, this value is pixel size (25 means 25px).\n    When `percentage` is set to `true`, this value is percentage (25 means 25%).\n    \n* `secondaryMinSize: React.PropTypes.number`\n\n    Minimal size of secondary pane.\n\n* `secondaryInitialSize: React.PropTypes.number`\n\n    Initial size of secondary pane when page loads.\n    \n    If this prop is not defined, `SplitterLayout` tries to split the layout with equal sizes.\n    (Note: equal size may not apply when there are nested layouts.)\n\n* `onChange`\n\n    return secondary size.\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhutx%2Frc-split-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhutx%2Frc-split-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhutx%2Frc-split-layout/lists"}