{"id":26051342,"url":"https://github.com/auru/unity-table","last_synced_at":"2026-04-21T19:31:16.581Z","repository":{"id":50095388,"uuid":"97944462","full_name":"auru/unity-table","owner":"auru","description":"Table component for React","archived":false,"fork":false,"pushed_at":"2021-06-04T11:26:12.000Z","size":365,"stargazers_count":2,"open_issues_count":15,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-08T09:10:34.057Z","etag":null,"topics":["component","react","table"],"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/auru.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-07-21T12:15:44.000Z","updated_at":"2017-07-26T00:04:02.000Z","dependencies_parsed_at":"2022-08-03T19:00:17.379Z","dependency_job_id":null,"html_url":"https://github.com/auru/unity-table","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/auru/unity-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auru%2Funity-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auru%2Funity-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auru%2Funity-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auru%2Funity-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auru","download_url":"https://codeload.github.com/auru/unity-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auru%2Funity-table/sbom","scorecard":{"id":216623,"data":{"date":"2025-08-11","repo":{"name":"github.com/auru/unity-table","commit":"913d8378957632d09ccc1eb80c62a35c09313830"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"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":"Code-Review","score":2,"reason":"Found 2/8 approved changesets -- score normalized to 2","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":"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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 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-17T01:46:45.789Z","repository_id":50095388,"created_at":"2025-08-17T01:46:45.789Z","updated_at":"2025-08-17T01:46:45.789Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32106591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"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","react","table"],"created_at":"2025-03-08T04:10:34.486Z","updated_at":"2026-04-21T19:31:16.565Z","avatar_url":"https://github.com/auru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unity-table\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/auru/unity-table.svg)](https://greenkeeper.io/)\n\u003e Table component for React\n\n* [SimpleTable](#simpletable)\n  * [Displaying raw data](#displaying-raw-data)\n  * [Decorating data](#decorating-data)\n  * [Specifying column widths](#specifying-column-widths)\n  * [Specifying column attributes](#specifying-column-attributes)\n  * [Sort data](#sort-data)\n* [Plain usage (layout only)](#plain-usage-layout-only)\n\n## `SimpleTable`\n\n### Displaying raw data\n\n```jsx\nimport {SimpleTable} from 'unity-table';\n\nconst columns = [\n  {name: 'title'},\n  {name: 'episode_id'},\n  {name: 'release_date'},\n  {name: 'director'},\n  {name: 'producer'}\n];\n\nconst tableHead = () =\u003e ({\n  title: 'Title',\n  episode_id: 'Episode number',\n  release_date: 'Release date',\n  director: 'Director',\n  producer: 'Producers'\n});\n\nconst Example = () =\u003e (\n  \u003cSimpleTable\n    columns={columns}\n    tableHead={tableHead}\n    data={data}\n    keyName=\"title\"\n    /\u003e\n);\n```\n\n### Decorating data\n\n```jsx\nconst columns = ...;\nconst tableHead = ...;\n\n// data mapping function\nconst mapData = ({title, episode_id, release_date, director, producer}) =\u003e ({\n  title,\n  episode_id,\n  release_date: humanDate(release_date), // \u003c- butify date\n  director,\n  producer\n});\n\nconst Example = () =\u003e (\n  \u003cSimpleTable\n    columns={columns}\n    tableHead={tableHead}\n    mapData={mapData} // \u003c- put mapData here\n    data={data}\n    keyName=\"title\"\n    /\u003e\n);\n```\n\n### Specifying column widths\n\n```jsx\nconst columns = [\n  {name: 'title', width: '150px'},\n  {name: 'episode_id', width: '60px'},\n  {name: 'release_date', width: '70px'},\n  {name: 'director', width: '90px'},\n  {name: 'producer', width: '230px'}\n];\n```\n\n### Specifying column attributes\n\n```jsx\nconst columns = ...;\nconst tableHead = ...;\n\nconst mapData = ({title, episode_id, director, producer}) =\u003e ({\n  title,\n  episode_id,\n  director,\n  producer\n});\n\nconst mapAttrs = data =\u003e ({\n  title: {colSpan: 4}\n});\n\nconst Example = () =\u003e (\n  \u003cSimpleTable\n    columns={columns}\n    tableHead={tableHead}\n    mapData={mapData}\n    mapAttrs={mapAttrs}\n    data={data}\n    /\u003e\n);\n```\n\n### Sort data\n\n```jsx\nconst columns = [\n  {name: 'title', width: '150px', sortable: true}, // \u003c- available for sorting\n  {name: 'episode_id', width: '60px', sortable: true}, // \u003c- available for sorting\n  {name: 'release_date', width: '70px', sortable: true}, // \u003c- available for sorting\n  {name: 'director', width: '90px', sortable: true}, // \u003c- available for sorting too\n  {name: 'producer', width: '230px'}\n];\n\nexport default class Example extends Component {\n  constructor(props) {\n    super(props);\n\n    this.state = {\n      // initial sorting\n      sort: {field: 'release_date', asc: true}\n    };\n\n    this.handleSortChange = this.handleSortChange.bind(this);\n  }\n\n  handleSortChange({field, asc}) {\n    // set new sorting to the state\n    this.setState({sort: {field, asc}});\n  }\n\n  getSortedData() {\n    const {field, asc} = this.state.sort;\n    return sort(field, asc, data);\n  }\n\n  render() {\n    return (\n      \u003cSimpleTable\n        columns={columns}\n        tableHead={tableHead}\n        mapData={mapData}\n        sort={this.state.sort} // \u003c- current sort\n        onSortChange={this.handleSortChange} // \u003c- sort changing handler\n        data={this.getSortedData()} // \u003c- put sorted data\n        keyName=\"title\"\n        /\u003e\n    );\n  }\n}\n```\n\n## Plain usage (layout only)\n\n```js\nimport {Table, Thead, Tbody, Tr, Th, Td} from 'unity-table';\n\nconst Example = () =\u003e (\n  \u003cTable\u003e\n    \u003cThead\u003e\n      \u003cTr\u003e\n        \u003cTh\u003eTitle\u003c/Th\u003e\n        \u003cTh\u003eEpisode number\u003c/Th\u003e\n        \u003cTh\u003eRelease date\u003c/Th\u003e\n        \u003cTh\u003eDirector\u003c/Th\u003e\n        \u003cTh\u003eProducers\u003c/Th\u003e\n      \u003c/Tr\u003e\n    \u003c/Thead\u003e\n    \u003cTbody\u003e\n      {data.map(planet =\u003e (\n        \u003cTr\u003e\n          \u003cTd\u003e{film.title}\u003c/Td\u003e\n          \u003cTd\u003e{film.episode_id}\u003c/Td\u003e\n          \u003cTd\u003e{film.release_date}\u003c/Td\u003e\n          \u003cTd\u003e{film.director}\u003c/Td\u003e\n          \u003cTd\u003e{film.producer}\u003c/Td\u003e\n        \u003c/Tr\u003e\n      ))}\n    \u003c/Tbody\u003e\n  \u003c/Table\u003e\n);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauru%2Funity-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauru%2Funity-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauru%2Funity-table/lists"}