-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
9,182 additions
and
11,566 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,5 @@ | ||
const SEVERITY = 2 | ||
const { config } = require('@dhis2/cli-style') | ||
|
||
module.exports = { | ||
root: true, | ||
|
||
parser: 'babel-eslint', | ||
|
||
env: { | ||
browser: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
|
||
parserOptions: { | ||
// latest standard is ok, eq. to 9 | ||
ecmaVersion: 2018, | ||
ecmaFeatures: { | ||
jsx: true, | ||
modules: true, | ||
}, | ||
}, | ||
|
||
rules: { | ||
'max-params': [ | ||
SEVERITY, | ||
{ | ||
max: 3, | ||
}, | ||
], | ||
'prefer-const': [ | ||
SEVERITY, | ||
{ | ||
destructuring: 'any', | ||
ignoreReadBeforeAssign: false, | ||
}, | ||
], | ||
'no-mixed-spaces-and-tabs': [SEVERITY], | ||
}, | ||
extends: [config.eslintReact], | ||
} |
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,4 @@ | ||
titleOnly: false | ||
commitsOnly: false | ||
titleAndCommits: true | ||
allowMergeCommits: false |
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 |
---|---|---|
@@ -1,26 +1,5 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# i18n json files | ||
src/locales/ | ||
# DHIS2 Platform | ||
node_modules | ||
.d2 | ||
src/locales | ||
build |
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,14 @@ | ||
const { config } = require('@dhis2/cli-style') | ||
const husky = require(config.husky) | ||
|
||
const tasks = arr => arr.join(' && ') | ||
|
||
module.exports = { | ||
hooks: { | ||
...husky.hooks, | ||
'pre-commit': tasks([ | ||
'd2-style js check --staged', | ||
'd2-style text check --staged', | ||
]), | ||
}, | ||
} |
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,18 +1,5 @@ | ||
const { config } = require('@dhis2/cli-style') | ||
|
||
module.exports = { | ||
printWidth: 80, | ||
tabWidth: 4, | ||
useTabs: false, | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
jsxSingleQuote: false, | ||
arrowParens: 'avoid', | ||
rangeStart: 0, | ||
rangeEnd: Infinity, | ||
proseWrap: 'preserve', | ||
requirePragma: false, | ||
insertPragma: false, | ||
endOfLine: 'lf', | ||
...require(config.prettier), | ||
} |
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,42 +1,45 @@ | ||
# Data Quality App | ||
|
||
[](https://travis-ci.com/dhis2/data-quality-app) | ||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdhis2%2Fdata-quality-app?ref=badge_shield) | ||
[](https://greenkeeper.io/) | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Env settings | ||
|
||
Env variables for this app can be configured per environment (`development`, `production`, `test`). If you're running your local DHIS2 backend on a different port than the one specified in `.env.development`, you can specify an override in a `.env.development.local` file. For more information see https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables | ||
This project was bootstrapped with [DHIS2 Application Platform](https://github.com/dhis2/app-platform). | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
|
||
### `npm start` | ||
### `yarn start` | ||
|
||
Runs the app in the development mode.<br> | ||
Runs the app in the development mode.<br /> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will reload if you make edits.<br> | ||
The page will reload if you make edits.<br /> | ||
You will also see any lint errors in the console. | ||
|
||
### `npm test` | ||
### `yarn test` | ||
|
||
Launches the test runner and runs all available tests found in `/src`.<br /> | ||
|
||
Launches the test runner in the interactive watch mode.<br> | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
See the section about [running tests](https://platform.dhis2.nu/#/scripts/test) for more information. | ||
|
||
### `npm run build` | ||
### `yarn build` | ||
|
||
Builds the app for production to the `build` folder.<br> | ||
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> | ||
Your app is ready to be deployed! | ||
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 | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
You can learn more about the platform in the [DHIS2 Application Platform Documentation](https://platform.dhis2.nu/). | ||
|
||
## License | ||
You can learn more about the runtime in the [DHIS2 Application Runtime Documentation](https://runtime.dhis2.nu/). | ||
|
||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdhis2%2Fdata-quality-app?ref=badge_large) | ||
To learn React, check out the [React documentation](https://reactjs.org/). |
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,12 @@ | ||
const config = { | ||
type: 'app', | ||
name: 'data-quality', | ||
title: 'Data Quality', | ||
coreApp: true, | ||
|
||
entryPoints: { | ||
app: './src/App', | ||
}, | ||
} | ||
|
||
module.exports = config |
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
Oops, something went wrong.