{"id":15862037,"url":"https://github.com/afeiship/react-layout-trbla","last_synced_at":"2026-04-28T11:03:17.559Z","repository":{"id":57122978,"uuid":"308254585","full_name":"afeiship/react-layout-trbla","owner":"afeiship","description":"Simply trbla layout for react.","archived":false,"fork":false,"pushed_at":"2021-03-21T11:41:45.000Z","size":549,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-08T18:31:05.452Z","etag":null,"topics":["align","auto","center","configuration","flex","horizontal","justify","lar","layout","middle","react","simple","tmb","trbla","vertical"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-29T07:48:53.000Z","updated_at":"2021-03-21T11:41:47.000Z","dependencies_parsed_at":"2022-08-24T14:59:32.848Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/react-layout-trbla","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/react-layout-trbla","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-layout-trbla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-layout-trbla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-layout-trbla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-layout-trbla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/react-layout-trbla/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freact-layout-trbla/sbom","scorecard":{"id":169571,"data":{"date":"2025-08-11","repo":{"name":"github.com/afeiship/react-layout-trbla","commit":"6e5c1dfa63ebce1ddddc0b08962ed7777d8f20f3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/17 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":"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":"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":"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":"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":"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":"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":"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt: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":"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:30.315Z","repository_id":57122978,"created_at":"2025-08-16T16:02:30.315Z","updated_at":"2025-08-16T16:02:30.315Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["align","auto","center","configuration","flex","horizontal","justify","lar","layout","middle","react","simple","tmb","trbla","vertical"],"created_at":"2024-10-05T22:23:19.955Z","updated_at":"2026-04-28T11:03:17.488Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-layout-trbla\n\u003e Simply trbla layout 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-layout-trbla\n```\n\n## properties\n| Name      | Type   | Required | Default   | Description                           |\n| --------- | ------ | -------- | --------- | ------------------------------------- |\n| className | string | false    | -         | The extended className for component. |\n| nodeName  | any    | false    | 'div'     | The container tag name.               |\n| value     | enum   | false    | -         | The layout type.                      |\n| align     | enum   | false    | 'initial' | The flex layout align-items.          |\n| wrap      | bool   | false    | false     | The flex layout flex-wrap.            |\n\n\n## usage\n1. import css\n  ```scss\n  // or use sass\n  @import '~@jswork/wsui-layout-trbla/dist/index.scss';\n  @import \"~@jswork/react-layout-trbla/dist/style.scss\";\n\n  // customize your styles:\n  $react-layout-trbla-options: ()\n  ```\n2. import js\n  ```js\n  import ReactDemokit from '@jswork/react-demokit';\n  import React from 'react';\n  import ReactDOM from 'react-dom';\n  import ReactLayoutTrbla from '@jswork/react-layout-trbla';\n  import './assets/style.scss';\n\n  const LAYOUT_MAPPING = {\n    la: 'left -\u003e auto',\n    lar: 'left -\u003e auto -\u003e right',\n    ar: 'auto -\u003e right',\n    lr: 'left -\u003e right or justify',\n    ta: 'top -\u003e auto',\n    tab: 'top -\u003e auto -\u003e bottom',\n    ab: 'auto -\u003e bottom',\n    tb: 'top -\u003e bottom or justify'\n  };\n\n  class App extends React.Component {\n    state = {\n      layouts: ReactLayoutTrbla.layouts,\n      value: 'la'\n    };\n\n    get valueCount() {\n      return this.state.value.length;\n    }\n\n    render() {\n      const { value } = this.state;\n      return (\n        \u003cReactDemokit\n          className=\"p-3 app-container\"\n          url=\"https://github.com/afeiship/react-layout-trbla\"\u003e\n          \u003cdiv className=\"text-center \"\u003e\n            \u003clabel htmlFor=\"sel\" className=\"mr-10 text-white\"\u003e\n              Select a value:\n            \u003c/label\u003e\n            \u003cselect\n              id=\"sel\"\n              className=\"p-3\"\n              onChange={(e) =\u003e {\n                this.setState({ value: e.target.value });\n              }}\u003e\n              {this.state.layouts.map((item) =\u003e (\n                \u003coption key={item}\u003e{item}\u003c/option\u003e\n              ))}\n            \u003c/select\u003e\n          \u003c/div\u003e\n          \u003ch1 className=\"text-center text-white\" style={{ fontSize: 60 }}\u003e\n            {LAYOUT_MAPPING[value]}\n          \u003c/h1\u003e\n          \u003cReactLayoutTrbla value={value} className=\"mb-3\"\u003e\n            \u003cdiv\u003estart\u003c/div\u003e\n            \u003cdiv\u003eauto\u003c/div\u003e\n            {(this.valueCount === 3 || value === 'lr' || value === 'tb') \u0026\u0026 (\n              \u003cdiv\u003eend\u003c/div\u003e\n            )}\n          \u003c/ReactLayoutTrbla\u003e\n\n          \u003ch1\u003eWrap: true\u003c/h1\u003e\n          \u003cReactLayoutTrbla value=\"lr\" wrap className=\"is-list\"\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n          \u003c/ReactLayoutTrbla\u003e\n\n          \u003ch1\u003eWrap: false\u003c/h1\u003e\n          \u003cReactLayoutTrbla value=\"lr\" className=\"is-list\"\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n            \u003cdiv className=\"is-item\"\u003e item \u003c/div\u003e\n          \u003c/ReactLayoutTrbla\u003e\n        \u003c/ReactDemokit\u003e\n      );\n    }\n  }\n\n  ReactDOM.render(\u003cApp /\u003e, document.getElementById('app'));\n\n  ```\n\n## documentation\n- https://afeiship.github.io/react-layout-trbla/\n\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/react-layout-trbla/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/react-layout-trbla\n[version-url]: https://npmjs.org/package/@jswork/react-layout-trbla\n\n[license-image]: https://img.shields.io/npm/l/@jswork/react-layout-trbla\n[license-url]: https://github.com/afeiship/react-layout-trbla/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-layout-trbla\n[size-url]: https://github.com/afeiship/react-layout-trbla/blob/master/dist/react-layout-trbla.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/react-layout-trbla\n[download-url]: https://www.npmjs.com/package/@jswork/react-layout-trbla\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-layout-trbla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freact-layout-trbla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freact-layout-trbla/lists"}