{"id":19004818,"url":"https://github.com/dhis2/d2-ui","last_synced_at":"2025-04-04T16:12:06.874Z","repository":{"id":3771986,"uuid":"42853916","full_name":"dhis2/d2-ui","owner":"dhis2","description":":no_entry: [DEPRECATED] Please refer to the DHIS2 App Platform","archived":false,"fork":false,"pushed_at":"2025-03-23T01:50:09.000Z","size":10334,"stargazers_count":19,"open_issues_count":6,"forks_count":37,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-28T05:02:53.655Z","etag":null,"topics":["synced-settings","web-lib"],"latest_commit_sha":null,"homepage":"https://platform.dhis2.nu","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/dhis2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","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":"2015-09-21T08:34:23.000Z","updated_at":"2024-12-25T09:29:35.000Z","dependencies_parsed_at":"2022-08-21T05:00:22.469Z","dependency_job_id":"f284ad3b-db22-4d66-aaf3-bf484e10efcd","html_url":"https://github.com/dhis2/d2-ui","commit_stats":{"total_commits":1564,"total_committers":46,"mean_commits":34.0,"dds":0.7672634271099744,"last_synced_commit":"e944e6176dee9952dd79a0b824fb02db928f77da"},"previous_names":[],"tags_count":699,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhis2%2Fd2-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhis2%2Fd2-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhis2%2Fd2-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhis2%2Fd2-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhis2","download_url":"https://codeload.github.com/dhis2/d2-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247124516,"owners_count":20887498,"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","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":["synced-settings","web-lib"],"created_at":"2024-11-08T18:24:38.932Z","updated_at":"2025-04-04T16:12:06.857Z","avatar_url":"https://github.com/dhis2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d2-ui\n\n[![Build Status](https://travis-ci.com/dhis2/d2-ui.svg?branch=master)](https://travis-ci.com/dhis2/d2-ui)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fdhis2%2Fd2-ui.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fdhis2%2Fd2-ui?ref=badge_shield)\n\n## Introduction\n\nD2-UI is a user interface component library for developing\n[DHIS2](http://www.dhis2.org) applications. The core development team\nuses and maintains these components to ensure visual consistency between\nDHIS2 web applications.\n\n## Structure\n\nThis is a monorepo comprised of many packages which are individually\npublished to [NPM](https://npmjs.com) using [Yarn Workspaces](https://yarnpkg.com/lang/en/docs/workspaces/). Yarn Workspaces\nhandles linking the packages in this repository together, and ensures that\neverything is using the latest code.\n\nSee [packages](https://github.com/dhis2/d2-ui/blob/master/packages) to\nsee what components are available.\n\n## The example application\n\nIn [examples](https://github.com/dhis2/d2-ui/blob/master/examples) you\nwill find an application bootstrapped with\n[create-react-app](https://github.com/facebook/create-react-app) which\ndemonstrates how one consumes the components d2-ui provides.\n\n## Getting started\n\nIn the d2-ui root directory:\n\n```\nyarn install\nyarn watch\n```\n\nIn the\n[examples/create-react-app](https://github.com/dhis2/d2-ui/blob/master/examples/create-react-app)\nsubdirectory:\n\n```\nyarn start\n```\n\nNow you are able to change any component in\n[packages/](https://github.com/dhis2/d2-ui/blob/master/packages) and the\nchanges will be reflected live in the example application.\n\n## Linking individual components\n\nWhen working on a component that's consumed by a different app, you can preview the changes without publishing by using `yarn link`. Let's say you're working on the `legend` component. First you'll need to build the components. Run this from the d2-ui root directory:\n\n```\nyarn install\nyarn run build\n```\n\nAfter that link the components you're working on (we'll use legend for this example):\n\n```\ncd d2-ui/packages/legend/build\nyarn link\n```\n\nAfter that, change directory to the app that consumes the component you're working on (let's say the maintenance-app). From the root of that project run:\n\n```\nyarn link @dhis2/d2-ui-legend`\n```\n\nThis will link your local version of the component and your local changes will be reflected in the app.\n\n## Contributing\n\nSee [how to\ncontribute](https://github.com/dhis2/d2-ui/blob/master/docs/CONTRIBUTING.md).\n\n## Release process\n\nDocumented in [RELEASING](https://github.com/dhis2/d2-ui/blob/master/docs/RELEASING.md).\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fdhis2%2Fd2-ui.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fdhis2%2Fd2-ui?ref=badge_large)\n\n## Report an issue\n\nThe issue tracker can be found in [DHIS2 JIRA](https://jira.dhis2.org)\nunder the [LIBS](https://jira.dhis2.org/projects/LIBS) project.\n\nDeep links:\n\n-   [Bug](https://jira.dhis2.org/secure/CreateIssueDetails!init.jspa?pid=10700\u0026issuetype=10006\u0026components=11012)\n-   [Feature](https://jira.dhis2.org/secure/CreateIssueDetails!init.jspa?pid=10700\u0026issuetype=10300\u0026components=11012)\n-   [Task](https://jira.dhis2.org/secure/CreateIssueDetails!init.jspa?pid=10700\u0026issuetype=10003\u0026components=11012)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhis2%2Fd2-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhis2%2Fd2-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhis2%2Fd2-ui/lists"}