Go to file
Denis Ezhov 45253b0c4d
Epic. Analytics (#179)
* 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>
2020-05-12 17:42:42 +03:00
.vscode Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
build_utils@cf6578dac7 BJ-827: swags, submodules updated (#178) 2020-03-19 13:21:01 +03:00
e2e Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
schemes Shops: show more (#207) 2020-04-28 13:44:28 +03:00
src Epic. Analytics (#179) 2020-05-12 17:42:42 +03:00
swagger-codegen Change swagger codegen (#137) 2019-12-12 15:07:38 +03:00
tools Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
.genryrc.json Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
.gitignore Add sections module (#17) 2019-05-08 14:32:38 +03:00
.gitmodules FE-1042: Payment link module (#213) 2020-05-08 18:19:45 +03:00
.npmrc Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
.prettierignore FE-886: Add claim management API (#57) 2019-08-12 16:34:18 +03:00
.prettierrc FE-1024: Ordered-imports (#176) 2020-03-18 17:38:47 +03:00
angular.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
browserslist Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
containerpilot.json FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
Dockerfile.sh FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
Jenkinsfile Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
karma.conf.js CI tests (#224) 2020-05-12 12:03:39 +03:00
Makefile CI tests (#224) 2020-05-12 12:03:39 +03:00
nginx.conf FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
package-lock.json Epic. Analytics (#179) 2020-05-12 17:42:42 +03:00
package.json Epic. Analytics (#179) 2020-05-12 17:42:42 +03:00
README.md FE-1042: Payment link module (#213) 2020-05-08 18:19:45 +03:00
swagger-codegen-config.json FE-1042: Payment link module (#213) 2020-05-08 18:19:45 +03:00
tsconfig.app.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tsconfig.json FE-1042: Payment link module (#213) 2020-05-08 18:19:45 +03:00
tsconfig.spec.json CI tests (#224) 2020-05-12 12:03:39 +03:00
tslint.angular.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tslint.json FE-1042: Payment link module (#213) 2020-05-08 18:19:45 +03:00
webpack.extra.js Form control UI kit (#2) 2018-12-04 20:38:16 +03:00

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

  1. Start

    • Real Keycloak: npm start

    • Stub Keycloak

      1. Change ./src/authConfig.json / "auth-server-url":

      2. npm run stub

  2. Navigate to http://localhost:8000/

Production build

  1. Run npm run build
  2. The build artifacts will be stored in the dist/ directory.

Add API

  1. Add submodule

    git submodule -b <SCHEME_BRANCH> add <SCHEME_REPO> schemes/<SCHEME_NAME>/<VER:VX>
    
  2. Add schemes/<SCHEME_NAME>/<VER:VX> to Makefile SWAGGER_SCHEMES_PATH property

  3. Add "<SCHEME_NAME>": "schemes/<SCHEME_NAME>/<VER:VX>" to swagger-codegen-config.json schemes/schemes3 property

  4. Generate Angular modules from swags

  5. Add "<SCHEME_NAME>Endpoint": "<URL>" to src/assets/appConfig.json api property

  6. Add in src/api-codegen/<SCHEME_NAME> files:

    • index.ts
    • <SCHEME_NAME>.module.ts
    • <SCHEME_NAME>-config.service.ts
  7. Add <SCHEME_NAME>.module.ts to src/app/api/api.module.ts imports

  8. 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

Guides