Skip to content

Commit

Permalink
front: create stdcm simulation sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Akctarus committed May 15, 2024
1 parent e0ac6bb commit e74ccaa
Show file tree
Hide file tree
Showing 27 changed files with 1,563 additions and 25 deletions.
3 changes: 3 additions & 0 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@ag-media/react-pdf-table": "^1.0.1",
"@hookform/resolvers": "^3.3.4",
"@nivo/annotations": "^0.80.0",
"@nivo/core": "^0.80.0",
Expand All @@ -11,6 +12,7 @@
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
"@osrd-project/ui-core": "^0.0.21",
"@osrd-project/ui-icons": "^0.0.21",
"@react-pdf/renderer": "^3.4.2",
"@redux-devtools/extension": "^3.3.0",
"@reduxjs/toolkit": "^2.1.0",
"@rjsf/core": "^5.17.0",
Expand Down Expand Up @@ -67,6 +69,7 @@
"fast-json-patch": "^3.1.1",
"geojson": "^0.5.0",
"history": "^5.3.0",
"html2canvas": "^1.4.1",
"i18next": "^23.8.2",
"i18next-browser-languagedetector": "^7.2.0",
"i18next-parser": "^8.13.0",
Expand Down
36 changes: 36 additions & 0 deletions front/public/locales/en/stdcm-simulation-report-sheet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"applicationDate": "Application date",
"asap": "as soon as possible",
"code": "CH",
"conventionalSign": "conv. sign",
"convoy": "convoy",
"crossedATE": "crossed ATE",
"endStop": "end",
"for": "for",
"formattedDate": "{{year}}/{{month}}/{{day}} at {{hours}}:{{minutes}}",
"from": "from",
"maxLength": "max. length",
"maxSpeed": "max. speed",
"maxWeight": "max. weight",
"motif": "motif",
"operationalPoint": "OP",
"passageStop": "passage",
"refEngine": "ref. engine",
"referenceEngine": "reference engine",
"referencePath": "Reference path",
"requestedRoute": "requested route",
"scheduledArrival": "scheduled arrival at",
"scheduledDeparture": "scheduled departure at",
"serviceStop": "Service stop",
"simulation": "Simulation",
"speedLimitByTag": "speed limit by tag",
"startStop": "start",
"stdcm": "ST DCM",
"stdcmCreation": "short term path creation",
"stdcmSimulationSheet": "Simulation report sheet",
"towedMaterial": "towed material",
"track": "track",
"warningMessage": "This sheet has been generated by a simulation tool. It does not exempt the scheduler from the checks inherent in the STDCM layout.",
"weight": "weight",
"withoutWarranty": "Path simulation without guaranteed availability"
}
3 changes: 2 additions & 1 deletion front/public/locales/en/stdcm.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"stdcmError": "Calculation error for last minute train path.",
"stdcmErrorNoPaths": "Incompatibility with other train paths.",
"stdcmNoResults": "No path found",
"stdcmResults": "Results"
"stdcmResults": "Results",
"stdcmSimulationReport": "Path simulation report"
}
36 changes: 36 additions & 0 deletions front/public/locales/fr/stdcm-simulation-report-sheet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"applicationDate": "Date d'application",
"asap": "au plus tôt",
"code": "CH",
"conventionalSign": "signe conv.",
"convoy": "convoi",
"crossedATE": "ATE croisé",
"endStop": "arrivée",
"for": "pour",
"formattedDate": "le {{day}}/{{month}}/{{year}} à {{hours}}:{{minutes}}",
"from": "du",
"maxLength": "longueur max.",
"maxSpeed": "vitesse max.",
"maxWeight": "tonnage max.",
"motif": "motif",
"operationalPoint": "jalon",
"passageStop": "passage",
"refEngine": "engin de réf.",
"referenceEngine": "engin de référence",
"referencePath": "Sillon de référence",
"requestedRoute": "parcours demandé",
"scheduledArrival": "arrivée prévue à",
"scheduledDeparture": "départ prévu à",
"serviceStop": "Arrêt de service",
"simulation": "Simulation",
"speedLimitByTag": "code de composition",
"startStop":"départ",
"stdcm": "ST DCM",
"stdcmCreation": "Création de sillon de dernière minute",
"stdcmSimulationSheet": "Fiche Simulation",
"towedMaterial": "matériel remorqué",
"track": "voie",
"warningMessage": "Cette fiche a été générée par un outil de simulation. Elle ne dispense pas l’horairiste des vérifications inhérentes au tracé de SDM.",
"weight": "tonnage",
"withoutWarranty": "Simulation de sillon sans garantie de disponibilité"
}
3 changes: 2 additions & 1 deletion front/public/locales/fr/stdcm.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"stdcmError": "Erreur de calcul Sillon de dernière minute",
"stdcmErrorNoPaths": "Incompatibilité avec d'autres sillons.",
"stdcmNoResults": "Aucun sillon trouvé",
"stdcmResults": "Résultats"
"stdcmResults": "Résultats",
"stdcmSimulationReport": "Fiche simulation"
}
Loading

0 comments on commit e74ccaa

Please sign in to comment.