forked from openMF/web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 5eedfa1
Showing
136 changed files
with
19,812 additions
and
0 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,15 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
max_line_length = 120 | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# Compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
|
||
# Dependencies | ||
/node_modules | ||
|
||
# Cordova | ||
/www | ||
/plugins | ||
/platforms | ||
|
||
# IDEs and editors | ||
.idea/* | ||
!.idea/runConfigurations/ | ||
!.idea/codeStyleSettings.xml | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
xcuserdata/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# Maven | ||
/target | ||
/log | ||
|
||
# Misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
/reports | ||
/src/translations/template.* | ||
/src/environments/.env.* | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db |
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,21 @@ | ||
{ | ||
"tagname-lowercase": false, | ||
"attr-lowercase": false, | ||
"attr-value-double-quotes": true, | ||
"tag-pair": true, | ||
"spec-char-escape": true, | ||
"id-unique": true, | ||
"src-not-empty": true, | ||
"attr-no-duplication": true, | ||
"title-require": true, | ||
"tag-self-close": true, | ||
"head-script-disabled": true, | ||
"doctype-html5": true, | ||
"id-class-value": "dash", | ||
"style-disabled": true, | ||
"inline-style-disabled": true, | ||
"inline-script-disabled": true, | ||
"space-tab-mixed-disabled": "true", | ||
"id-class-ad-disabled": true, | ||
"attr-unsafe-chars": 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"], | ||
"rules": { | ||
"font-family-name-quotes": "always-where-recommended", | ||
"function-url-quotes": [ | ||
"always", | ||
{ | ||
"except": ["empty"] | ||
} | ||
], | ||
"selector-attribute-quotes": "always", | ||
"string-quotes": "double", | ||
"max-nesting-depth": 3, | ||
"selector-max-compound-selectors": 3, | ||
"selector-max-specificity": "0,3,2", | ||
"declaration-no-important": true, | ||
"at-rule-no-vendor-prefix": true, | ||
"media-feature-name-no-vendor-prefix": true, | ||
"property-no-vendor-prefix": true, | ||
"selector-no-vendor-prefix": true, | ||
"value-no-vendor-prefix": true, | ||
"no-empty-source": null, | ||
"selector-class-pattern": "[a-z-]+", | ||
"selector-id-pattern": "[a-z-]+", | ||
"selector-max-id": 0, | ||
"selector-no-qualifying-type": true, | ||
"selector-max-universal": 0, | ||
"selector-pseudo-element-no-unknown": [ | ||
true, | ||
{ | ||
"ignorePseudoElements": ["ng-deep"] | ||
} | ||
], | ||
"unit-whitelist": ["px", "%", "em", "rem", "vw", "vh", "deg", "s"], | ||
"max-empty-lines": 2, | ||
"max-line-length": 120 | ||
} | ||
} |
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,97 @@ | ||
# MifosX | ||
|
||
Revamped codebase of community-app | ||
|
||
# Getting started | ||
|
||
1. Go to project folder and install dependencies: | ||
```bash | ||
npm install | ||
``` | ||
|
||
2. Launch development server, and open `localhost:4200` in your browser: | ||
```bash | ||
npm start | ||
``` | ||
|
||
# Main tasks | ||
|
||
Task automation is based on [NPM scripts](https://docs.npmjs.com/misc/scripts). | ||
|
||
Tasks | Description | ||
------------------------------|--------------------------------------------------------------------------------------- | ||
npm start | Run development server on `http://localhost:4200/` | ||
npm run build [-- --env=prod] | Lint code and build app for production in `dist/` folder | ||
npm test | Run unit tests via [Karma](https://karma-runner.github.io) in watch mode | ||
npm run test:ci | Lint code and run unit tests once for continuous integration | ||
npm run e2e | Run e2e tests using [Protractor](http://www.protractortest.org) | ||
npm run lint | Lint code | ||
npm run translations:extract | Extract strings from code and templates to `src/app/translations/template.json` | ||
npm run docs | Display project documentation | ||
|
||
When building the application, you can specify the target environment using the additional flag `--env <name>` (do not | ||
forget to prepend `--` to pass arguments to npm scripts). | ||
|
||
The default build environment is `prod`. | ||
|
||
## Development server | ||
|
||
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change | ||
any of the source files. | ||
You should not use `ng serve` directly, as it does not use the backend proxy configuration by default. | ||
|
||
## Code scaffolding | ||
|
||
Run `npm run generate -- component <name>` to generate a new component. You can also use | ||
`npm run generate -- directive|pipe|service|class|module`. | ||
|
||
If you have installed [angular-cli](https://github.com/angular/angular-cli) globally with `npm install -g @angular/cli`, | ||
you can also use the command `ng generate` directly. | ||
|
||
## Additional tools | ||
|
||
Tasks are mostly based on the `angular-cli` tool. Use `ng help` to get more help or go check out the | ||
[Angular-CLI README](https://github.com/angular/angular-cli). | ||
|
||
# What's in the box | ||
|
||
The app template is based on [HTML5](http://whatwg.org/html), [TypeScript](http://www.typescriptlang.org) and | ||
[Sass](http://sass-lang.com). | ||
|
||
#### Design guides | ||
|
||
- [Bootstrap Material](https://bootswatch.com/materia/) | ||
- [Angular Material](https://material.angular.io/components/categories) | ||
|
||
|
||
#### Steps to add component | ||
|
||
1. Create a module using | ||
`ng generate module [name]` | ||
2. Go to *app.module.ts* | ||
- import the module | ||
|
||
|
||
import { module_name } from './module' | ||
|
||
- declare the module in | ||
|
||
|
||
``` | ||
@NgModule({ | ||
imports: [ module_name ]}) | ||
``` | ||
|
||
3. Setup routing in newly created module | ||
|
||
|
||
#### Coding guides | ||
|
||
- [Angular](docs/coding-guides/angular.md) | ||
- [TypeScript](docs/coding-guides/typescript.md) | ||
- [Sass](docs/coding-guides/sass.md) | ||
- [HTML](docs/coding-guides/html.md) | ||
- [Unit tests](docs/coding-guides/unit-tests.md) | ||
- [End-to-end tests](docs/coding-guides/e2e-tests.md) | ||
|
||
|
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,135 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"ng-x-rocket": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"prefix": "app", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"styleext": "scss" | ||
} | ||
}, | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"outputPath": "dist", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"polyfills": "src/polyfills.ts", | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/apple-touch-icon.png", | ||
"src/robots.txt", | ||
"src/manifest.json", | ||
"src/assets" | ||
], | ||
"styles": [ | ||
"src/main.scss" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true, | ||
"serviceWorker": true, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
"browserTarget": "ng-x-rocket:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "ng-x-rocket:build:production" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "ng-x-rocket:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"karmaConfig": "src/karma.conf.js", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"scripts": [], | ||
"styles": [ | ||
"src/main.scss" | ||
], | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/apple-touch-icon.png", | ||
"src/robots.txt", | ||
"src/manifest.json", | ||
"src/assets" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"src/tsconfig.app.json", | ||
"src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"ng-x-rocket-e2e": { | ||
"root": "e2e", | ||
"projectType": "application", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "e2e/protractor.conf.js", | ||
"devServerTarget": "ng-x-rocket:serve" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"e2e/tsconfig.e2e.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "ng-x-rocket" | ||
} |
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,5 @@ | ||
# Analytics | ||
|
||
This project does not come with any analytics library. | ||
Should you decide to use one, you may want to consider [Angulartics2](https://github.com/angulartics/angulartics2). | ||
|
Oops, something went wrong.