-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from dhis2/development
chore(release): merge development to master
- Loading branch information
Showing
463 changed files
with
260,234 additions
and
3,270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"nonGlobalStepDefinitions": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const { config } = require('@dhis2/cli-style') | ||
|
||
module.exports = { | ||
extends: [config.eslintReact], | ||
extends: [config.eslintReact, 'plugin:cypress/recommended'], | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'dhis2: verify (commits)' | ||
|
||
on: | ||
pull_request: | ||
types: ['opened', 'edited', 'reopened', 'synchronize'] | ||
|
||
jobs: | ||
lint-pr-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: c-hive/gha-yarn-cache@v1 | ||
- run: yarn install --frozen-lockfile | ||
- id: commitlint | ||
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)") | ||
- uses: JulienKode/[email protected] | ||
with: | ||
configuration-path: ${{ steps.commitlint.outputs.config_path }} | ||
|
||
lint-commits: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: c-hive/gha-yarn-cache@v1 | ||
- run: yarn install --frozen-lockfile | ||
- id: commitlint | ||
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)") | ||
- uses: wagoid/commitlint-github-action@v4 | ||
with: | ||
configFile: ${{ steps.commitlint.outputs.config_path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cypress/fixtures/network | ||
src/locales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
lang_map = fa_AF: prs, uz@Cyrl: uz, uz@Latn: uz_Latn | ||
|
||
[o:hisp-uio:p:app-data-entry:r:en-pot] | ||
file_filter = i18n/<lang>.po | ||
source_file = i18n/en.pot | ||
source_lang = en | ||
type = PO | ||
minimum_perc = 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,16 @@ | ||
This project was bootstrapped with [DHIS2 Application Platform](https://github.com/dhis2/app-platform). | ||
# Data entry app | ||
|
||
## Available Scripts | ||
[Live demo development branch](https://dhis2-data-entry.netlify.app/#/) | ||
|
||
In the project directory, you can run: | ||
## Global state | ||
|
||
### `yarn start` | ||
We're using use-query-params to store part of the app's state in the url query | ||
parameters. This allows users to bookmark and share specific states of the app. | ||
|
||
Runs the app in the development mode.<br /> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
## Model overview | ||
|
||
The page will reload if you make edits.<br /> | ||
You will also see any lint errors in the console. | ||
The category model can be fairly confusing, so we've created a few diagrams to help explain and get an overview of how DHIS2 models are used in the app. | ||
|
||
### `yarn test` | ||
[Models used in form](./docs/category-combo-diagram.png) | ||
|
||
Launches the test runner and runs all available tests found in `/src`.<br /> | ||
|
||
See the section about [running tests](https://platform.dhis2.nu/#/scripts/test) for more information. | ||
|
||
### `yarn build` | ||
|
||
Builds the app for production to the `build` folder.<br /> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.<br /> | ||
A deployable `.zip` file can be found in `build/bundle`! | ||
|
||
See the section about [building](https://platform.dhis2.nu/#/scripts/build) for more information. | ||
|
||
### `yarn deploy` | ||
|
||
Deploys the built app in the `build` folder to a running DHIS2 instance.<br /> | ||
This command will prompt you to enter a server URL as well as the username and password of a DHIS2 user with the App Management authority.<br/> | ||
You must run `yarn build` before running `yarn deploy`.<br /> | ||
|
||
See the section about [deploying](https://platform.dhis2.nu/#/scripts/deploy) for more information. | ||
|
||
## Learn More | ||
|
||
You can learn more about the platform in the [DHIS2 Application Platform Documentation](https://platform.dhis2.nu/). | ||
|
||
You can learn more about the runtime in the [DHIS2 Application Runtime Documentation](https://runtime.dhis2.nu/). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
[Attribute category combo diagram](./docs/attribute-category-combo-diagram.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"baseUrl": "http://localhost:3000", | ||
"video": false, | ||
"projectId": "s6p5xs", | ||
"env": { | ||
"dhis2DataTestPrefix": "dhis2-dataentry", | ||
"networkMode": "live", | ||
"dhis2ApiVersion": "40" | ||
}, | ||
"experimentalInteractiveRunEvents": true, | ||
"testFiles": ["**/*.feature.js", "**/*.feature"], | ||
"defaultCommandTimeout": 30000 | ||
} |
Oops, something went wrong.