Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
devel:documentation:application_configuration:dev:frontend [2018/03/19 15:02]
stloukalp ↷ Page moved from devel:documentation:application_configuration:frontend to devel:documentation:application_configuration:dev:frontend
devel:documentation:application_configuration:dev:frontend [2019/05/15 10:32]
tomiskar
Line 1: Line 1:
 +====Configuration - frontend====
 +
 +{{tag> configuration}}
 +
 +Frontend configuration is stored in ''czechidm-app'' module under ''czechidm-app/config'' folder and is separated by profile (by client) and stage (development / test / production) [[https://github.com/bcvsolutions/CzechIdMng/tree/master/Realization/frontend/czechidm-app/config|read more]]. 
 +
 +When frontend is build by gulp, then selected configuration by profile and stage is moved (and transformed) into application as ''config.js'' file . This file can be found in application on root path (e.g. ''dist/config.js''). Configuration in this file can be changed and will be used in application - application rebuild is not needed (just F5).
 +
 +=== Configuration items ===
 +
 +Configuration is represented by ''json'' object with properties:
 +
 +<code properties>
 +# Application name - e.g. is used for password change - account select
 +"app": { "name": "CzechIdM" }
 +# Application stage (development, test, production)
 +"env": "development"
 +# Rest api - backend server url 
 +"serverUrl": "http://localhost:8080/idm-backend/api/v1"
 +# Path to theme (warning: rebuild is needed - configurable only in profile)
 +"theme": "czechidm-core/themes/default"
 +# logger
 +"logger": { "level": "INFO" }
 +# Reacaptcha component configuration (uses Google ReCaptcha) - see more in component's readme
 +"recaptcha": {
 +  "enabled": true,
 +  "siteKey": "<secret frontend google recatpcha key>"
 +}
 +# Supported locales
 +"locale": {
 +  "supported": ["cs", "en"],
 +  "fallback": "cs"
 +},
 +# Default (global) page size for tables, sect boxes etc.
 +"pagination": { "size": 10 }
 +# configuration for identities
 +"identity": {
 +  "table": {
 +    # default filter values
 +    "filter": {
 +      "disabled": "true",
 +      "recursively": "true"
 +    }
 +  },
 +  # skip identity dashboard content for show detail links (table, info components)
 +  "dashboard": {
 +    "skip": true
 +  }
 +},
 +"role": {
 +  "table": {
 +    # default filter values
 +    "filter": {
 +      # environment code - supports single value only. Used on role table, assigned roles table, request detail, role select
 +      "environment": null
 +    }
 +  }
 +}
 +</code>
 +
 +
  
  • by tomiskar