Skip to content
/ udug Public

Frontend for NeTEx validation reports

License

Notifications You must be signed in to change notification settings

entur/udug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a77f882 · Apr 23, 2025
Jun 30, 2022
Jun 28, 2022
Nov 25, 2021
Aug 9, 2022
Feb 11, 2022
Aug 12, 2022
Feb 10, 2022
Feb 11, 2022
Jun 28, 2022
Mar 9, 2022
Apr 23, 2025
Apr 23, 2025
Jun 17, 2022
Nov 25, 2021

Repository files navigation

Udug

Sometimes good, sometimes evil

A frontend application to display NeTEx validation reports from antu.

Application modes

Udug is designed to be run as a micro-frontend client, using https://github.com/entur/micro-frontend.

However, it can also be run locally or even deployed as a standalone SPA by setting the env variable REACT_APP_STANDALONE. It then also expects Auth0 configuration for authentication with antu:

  • REACT_APP_AUTH0_DOMAIN
  • REACT_APP_AUTH0_CLIENT_ID
  • REACT_APP_AUTH0_AUDIENCE
  • REACT_APP_AUTH0_RELATIVE_CALLBACK_URL

Configuration

Environment specific configuration is located in src/config/environments. The application loads the correct configuration using either the prop env from the micro-frontend payload, or the environment variable REACT_APP_ENV in standalone mode, defaulting to dev .

i18n

Formatjs / react-intl is used for internationalization. When adding message descriptors, the npm script extract-i18n needs to be run in order to generate the translation keys in lang/en.json . Don't forget to add them to lang/nb.json . More languages can be added if needed.

The application loads the correct language by using the locale prop from the micro-frontend payload, or the environment variable REACT_APP_LOCALE in standalone mode, defaulting to en .