Go to file
2021-05-26 12:45:09 +03:00
.github FRONTEND-608: Init PR template (#471) 2021-05-24 18:22:41 +03:00
.vscode Update CI image & remove PhantomJS (#321) 2020-11-26 16:45:16 +03:00
build_utils@56606f5cac Frontend-466: wallet deposits list new look (#402) 2021-03-31 16:58:32 +03:00
e2e Update to angular 10 (#376) 2021-02-04 17:57:52 +03:00
schemes Bump analytics swag (#464) 2021-05-18 19:39:39 +03:00
src responsive webhook creation (#477) 2021-05-26 12:45:09 +03:00
tools BUSINESS-3: Organizations (#332) 2021-04-12 17:22:03 +03:00
.browserslistrc Update to angular 10 (#376) 2021-02-04 17:57:52 +03:00
.eslintrc.js FRONTEND-535: Fe libs eslint plugin (#446) 2021-04-27 11:04:16 +03:00
.genryrc.json Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
.gitignore FRONTEND-608: Init PR template (#471) 2021-05-24 18:22:41 +03:00
.gitmodules Add feedback module (#362) 2021-01-22 16:05:28 +03:00
.npmrc Change scaffolder (#205) 2020-04-20 20:35:06 +03:00
.prettierignore New OpenAPI codegen & init organizations module (#318) 2020-11-20 19:39:59 +03:00
.prettierrc Fix empty error & Integration / shops split test | real shops (#233) 2020-05-20 14:02:23 +03:00
angular.json FRONTEND-443: Migrate to eslint. Bump angular (#416) 2021-04-02 15:32:09 +03:00
containerpilot.json FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
Dockerfile.sh Switch to alpine (#290) 2020-09-22 12:21:58 +03:00
icons-config.json Simplify theme config (#398) 2021-03-05 13:29:56 +03:00
Jenkinsfile added headless chrome and karma tests (#357) 2021-01-13 13:19:27 +03:00
karma-ci.conf.js [epic] Operations payments refactoring (#371) 2021-01-28 13:21:24 +03:00
karma.conf.js [epic] Operations payments refactoring (#371) 2021-01-28 13:21:24 +03:00
Makefile FRONTEND-535: Fe libs eslint plugin (#446) 2021-04-27 11:04:16 +03:00
nginx.conf FE-708: Init (#1) 2018-11-30 16:26:03 +03:00
openapi-codegen-config.json BUSINESS-3: Organizations (#332) 2021-04-12 17:22:03 +03:00
package-lock.json FRONTEND-568 Return orgs and sentry config (#468) 2021-05-21 14:22:23 +03:00
package.json FRONTEND-608: Init PR template (#471) 2021-05-24 18:22:41 +03:00
README.md Add info for readme (#429) 2021-04-14 19:14:00 +03:00
swagger-codegen-config.json Update CI image & remove PhantomJS (#321) 2020-11-26 16:45:16 +03:00
tsconfig.app.json Bump to Angular@9 (#184) 2020-03-30 16:40:22 +03:00
tsconfig.json Update to angular 10 (#376) 2021-02-04 17:57:52 +03:00
tsconfig.spec.json Update to angular 10 (#376) 2021-02-04 17:57:52 +03:00
webpack.extra.js Bump prettier (#232) 2020-05-19 15:50:28 +03:00

Dashboard

Libraries

Initialization

Init submodules

git submodule init
git submodule update

Configuring npm for use with GitHub Packages

Install packages

npm ci

Generate Angular modules from swags (java runtime required)

npm run codegen

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 add -b <SCHEME_BRANCH> <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 openapi-codegen-config.json schemes property

  4. Regenerate 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.

Utils

Analyze bundle size

npm run build -- --prod --stats-json --extraWebpackConfig webpack.extra.js
npx webpack-bundle-analyzer dist/stats.json

Guides

Chrome page auto-reloading problem

Need to disable SameSite by default cookies flag