move magic values to configuration file

This commit is contained in:
2026-07-17 13:46:12 +02:00
parent c3d4c2a660
commit fefb45505c
5 changed files with 57 additions and 32 deletions
@@ -1,7 +1,33 @@
{
"apiUrl": "http://localhost:8000/contratti/cerca",
"apiUsername": "your-username",
"apiPassword": "your-password",
"apiKey": "your-api-key",
"minCharsForSearch": 3
"component": {
"minCharsForSearch": 3,
"userDisplayName": "useruseruser",
"moduleName": "Module name",
"headerTitle": "Header title",
"headerHeroImageSrc": "https://procedure.unipr.it/UploadImgs/8_marchio_UNIPR_pos_b1_small_SVG.png",
"cardTitle": "Recupero Proposta CCT da Contratti (card title)",
"cardDescription": "Card description",
"alertInfoTitle": "Alert Info",
"alertInfoMessage": "environment message",
"instructionsTitle": "Istruzioni di compilazione",
"instructionsMessage": "Completa i campi richiesti per procedere con la richiesta.",
"submitText": "CONFERMA E PROSEGUI"
},
"elixForms": {
"inputs": {
"codiceFiscale": "COL0009"
},
"outputs": {
"idDomanda": "COL0001",
"idRicevuta": "COL0002",
"codiceContratto": "COL0003",
"titoloContratto": "COL0004"
}
},
"contrattiWS": {
"apiUrl": "http://localhost:8000/contratti/cerca",
"apiUsername": "your-username",
"apiPassword": "your-password",
"apiKey": "your-api-key"
}
}