* fixed identities tab * fix: Loan Product capitalized income form validation * Loan account with Capitalized Income transaction * fix: Use first API url from url list * Loan Product with Capitalized Income GL accounting mappings * fix: Loan Product capitalized income with Income Type * Loan account details - income capitalization type * fix: Loan Product Cash accounting view * fix: Loan Id updated in Loan views after url changed * fix: Charge management minimum and maximum cap values validation * build(deps-dev): bump http-proxy-middleware from 2.0.7 to 2.0.9 (#2421) Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.7 to 2.0.9. - [Release notes](https://github.com/chimurai/http-proxy-middleware/releases) - [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.9/CHANGELOG.md) - [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.7...v2.0.9) --- updated-dependencies: - dependency-name: http-proxy-middleware dependency-version: 2.0.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: Improve contributing guidelines (#2440) The CONTRIBUTING.md file has been updated to clarify that we use the dev branch for development. In addition to that, I have slightly shortened and restructured the text. FIXES: WEB-165 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Craig-Rosario <craig.rosario04@gmail.com> Co-authored-by: Jose Alberto Hernandez <alberto@art3ch.solutions> Co-authored-by: Jose Alberto Hernandez <alberto@black-box.local> Co-authored-by: adam.magyari <magyari.adam96@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
67 lines
3.1 KiB
TypeScript
67 lines
3.1 KiB
TypeScript
// `.env.ts` is generated by the `npm run env` command
|
|
import env from './.env';
|
|
|
|
// The `window['env']` object is loaded in the `index.html` file
|
|
const loadedEnv = window['env'] || {};
|
|
|
|
export const environment = {
|
|
production: true,
|
|
version: env.mifos_x.version,
|
|
hash: env.mifos_x.hash,
|
|
// For connecting to server running elsewhere update the tenant identifier
|
|
fineractPlatformTenantId: loadedEnv['fineractPlatformTenantId'] || 'default',
|
|
fineractPlatformTenantIds: loadedEnv['fineractPlatformTenantIds'] || 'default',
|
|
// For connecting to others servers running elsewhere update the base API URL
|
|
baseApiUrls:
|
|
loadedEnv['fineractApiUrls'] ||
|
|
'https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,' + window.location.origin,
|
|
// For connecting to server running elsewhere set the base API URL
|
|
baseApiUrl:
|
|
loadedEnv['fineractApiUrl'] ||
|
|
(loadedEnv['fineractApiUrls']?.length > 0 ? loadedEnv['fineractApiUrls'].split(',')[0] : window.location.origin),
|
|
oauthServerUrl: loadedEnv['oauthServerUrl'] || loadedEnv['fineractApiUrl'] + loadedEnv['apiProvider'],
|
|
allowServerSwitch: env.allow_switching_backend_instance,
|
|
apiProvider: loadedEnv['apiProvider'] || '/fineract-provider/api',
|
|
apiVersion: loadedEnv['apiVersion'] || '/v1',
|
|
serverUrl: '',
|
|
oauth: {
|
|
enabled: loadedEnv['oauthServerEnabled'] || false, // For connecting to Mifos X using OAuth2 Authentication change the value to true
|
|
serverUrl: loadedEnv['oauthServerUrl'] || '',
|
|
appId: loadedEnv['oauthAppId'] || ''
|
|
},
|
|
warningDialog: {
|
|
title: 'Warning',
|
|
content:
|
|
'This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.',
|
|
buttonText: 'Close'
|
|
},
|
|
defaultLanguage: loadedEnv['defaultLanguage'] || 'en-US',
|
|
supportedLanguages:
|
|
loadedEnv['supportedLanguages'] || 'cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW',
|
|
preloadClients: loadedEnv['preloadClients'] || true,
|
|
|
|
defaultCharDelimiter: loadedEnv['defaultCharDelimiter'] || ',',
|
|
|
|
displayBackEndInfo: loadedEnv['displayBackEndInfo'] || 'true',
|
|
displayTenantSelector: loadedEnv['displayTenantSelector'] || 'true',
|
|
// Time in seconds, default 60 seconds
|
|
waitTimeForNotifications: loadedEnv['waitTimeForNotifications'] || 60,
|
|
// Time in seconds, default 30 seconds
|
|
waitTimeForCOBCatchUp: loadedEnv['waitTimeForCOBCatchUp'] || 30,
|
|
session: {
|
|
timeout: {
|
|
idleTimeout: loadedEnv['sessionIdleTimeout'] || 300000 // 5 minutes
|
|
}
|
|
},
|
|
|
|
vNextApiUrl: window['env']['vNextApiUrl'] || 'https://apis.mifos.community',
|
|
vNextApiProvider: window['env']['vNextApiProvider'] || '/vnext1',
|
|
vNextApiVersion: window['env']['vNextApiVersion'] || '/v1.0',
|
|
interbankTransfers: window['env']['interbankTransfers'] || false,
|
|
|
|
minPasswordLength: loadedEnv['minPasswordLength'] || 12
|
|
};
|
|
|
|
// Server URL
|
|
environment.serverUrl = `${environment.baseApiUrl}${environment.apiProvider}${environment.apiVersion}`;
|