mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 10:35:21 +00:00
45253b0c4d
* FE-1002. d3 remove (#161) * d3 remove * prettier * remove charts * FE-1004. Bar chart (#163) * basic bar chart with daterange improvements * bar chart customisation * analytics removed * revert daterange refactoring * bar chart refactoring * unused translate removed * unused div removed * useless style removed * bar chart refactoring * bar chart refactoring * FE-1005. Donut chart (#165) * donut chart with bad positioning * fixes * styles refactoring * styles refactoring * FE-1006. Anal page (#167) * donut chart with bad positioning * fixes * styles refactoring * anal page * console logs removed * styles refactoring * fix * refactoring * FE-1013. Balance widget (#168) * balance widget * fix * numbers fix * datarange refactoring remove * items for daterange selector removed from search form * mock data * prettier * mock balances * balances refactoring * add shops, refactoring Co-authored-by: DenisEzhov <d.ezhov@rbkmoney.com> * some after merge shit * master merge fixes * Fix after merge bugs (#218) * FE-1007. Analytics integration (#187) * donut chart with bad positioning * fixes * styles refactoring * anal page * console logs removed * styles refactoring * fix * refactoring * balance widget * fix * numbers fix * FE-1013. Balance widget (#168) * balance widget * fix * numbers fix * datarange refactoring remove * items for daterange selector removed from search form * mock data * prettier * mock balances * balances refactoring * add shops, refactoring * analytics api methods implementation * fix swagger codegen fuckup * broken analytics service, range datepicker improvements required * many changes * master merge fixes, some improvements * missing parameter for datepicker * merge data for split units, some fixes * refactoring, some fixes * format amount, statuses and payment tools translation * fixes and refactoring * more fixes and refactoring * search form refactoring (#206) * search form refactoring * prettify * prettify[2] * search form refactoring * fixes * lint fix * FE-1007. Decompose charts to different modules (#210) * search form refactoring * prettify * prettify[2] * search form refactoring * decompose charts to modules * fixes * fixes * FE-1007. Utils refactoring (#211) * utils refactoring * utils refactoring [2] * sort by offset refactoring * After merge fixes (#219) * FE-1007. Charts refactoring (#222) * utils refactoring * utils refactoring [2] * sort by offset refactoring * charts refactoring * prettier * comment balances and error fixes Co-authored-by: DenisEzhov <d.ezhov@rbkmoney.com> Co-authored-by: Ildar Galeev <KeinAsylum@gmail.com> * show fixed digits (#225) Co-authored-by: DenisEzhov <d.ezhov@rbkmoney.com> Co-authored-by: Ildar Galeev <KeinAsylum@gmail.com> |
||
---|---|---|
.vscode | ||
build_utils@cf6578dac7 | ||
e2e | ||
schemes | ||
src | ||
swagger-codegen | ||
tools | ||
.genryrc.json | ||
.gitignore | ||
.gitmodules | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
angular.json | ||
browserslist | ||
containerpilot.json | ||
Dockerfile.sh | ||
Jenkinsfile | ||
karma.conf.js | ||
Makefile | ||
nginx.conf | ||
package-lock.json | ||
package.json | ||
README.md | ||
swagger-codegen-config.json | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.spec.json | ||
tslint.angular.json | ||
tslint.json | ||
webpack.extra.js |
Dashboard
Libraries
Dependency
- Java
Initialization
# Init submodules
git submodule init
git submodule update
# Generate Angular modules from swags
npm run codegen
# Install packages
npm ci
Development server
-
API (Production API default)
-
With mocks:
Change
./src/appConfig.json
API endpoints
-
-
Start
-
Real Keycloak:
npm start
-
Stub Keycloak
-
Change
./src/authConfig.json
/"auth-server-url"
: -
npm run stub
-
-
-
Navigate to
http://localhost:8000/
Production build
- Run
npm run build
- The build artifacts will be stored in the
dist/
directory.
Add API
-
Add submodule
git submodule -b <SCHEME_BRANCH> add <SCHEME_REPO> schemes/<SCHEME_NAME>/<VER:VX>
-
Add
schemes/<SCHEME_NAME>/<VER:VX>
toMakefile
SWAGGER_SCHEMES_PATH
property -
Add
"<SCHEME_NAME>": "schemes/<SCHEME_NAME>/<VER:VX>"
toswagger-codegen-config.json
schemes
/schemes3
property -
Add
"<SCHEME_NAME>Endpoint": "<URL>"
tosrc/assets/appConfig.json
api
property -
Add in
src/api-codegen/<SCHEME_NAME>
files:index.ts
<SCHEME_NAME>.module.ts
<SCHEME_NAME>-config.service.ts
-
Add
<SCHEME_NAME>.module.ts
tosrc/app/api/api.module.ts
imports
-
Create
src/api/<SCHEME_NAME>
module
Tests
- Run
npm run test
to execute the unit tests via Karma. - Run
npm run e2e
to execute the end-to-end tests via Protractor.
Utils
Analyze bundle size
npm run build -- --prod --stats-json --extraWebpackConfig webpack.extra.js
npx webpack-bundle-analyzer dist/stats.json