Skip to content

Commit

Permalink
feat(ui-tablemode): update Table Mode list view
Browse files Browse the repository at this point in the history
* move to top menu
* rename component TableModeList
* remove frozen table templates
* create the generic component TableMode
* update style of api functions
  • Loading branch information
skamril committed Jan 8, 2024
1 parent e7e0a80 commit d85bd1b
Show file tree
Hide file tree
Showing 19 changed files with 408 additions and 407 deletions.
11 changes: 4 additions & 7 deletions webapp/public/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,6 @@
"study.modelization.links.matrix.columns.loopFlow": "Loop flow",
"study.modelization.links.matrix.columns.pShiftMin": "P.Shift Min",
"study.modelization.links.matrix.columns.pShiftMax": "P.Shift Max",
"study.modelization.tableMode": "Table Mode",
"study.modelization.tableMode.template.economicOpt": "Economic Opt.",
"study.modelization.tableMode.template.geographicTrimmingAreas": "Geographic Trimming (areas)",
"study.modelization.tableMode.template.geographicTrimmingLinks": "Geographic Trimming (links)",
"study.modelization.tableMode.dialog.add.title": "Add table",
"study.modelization.tableMode.dialog.edit.title": "Edit table",
"study.modelization.tableMode.dialog.delete.text": "Are you sure you want to delete '{{0}}' table?",
"study.configuration.general.legend.simulation": "Simulation",
"study.configuration.general.legend.calendar": "Calendar",
"study.configuration.general.legend.monteCarloScenarios": "Monte-Carlo Scenarios",
Expand Down Expand Up @@ -494,6 +487,10 @@
"study.modelization.bindingConst.offset": "Offset",
"study.modelization.bindingConst.question.deleteConstraintTerm": "Are you sure you want to delete this constraint term?",
"study.modelization.bindingConst.question.deleteBindingConstraint": "Are you sure you want to delete this binding constraint?",
"study.tableMode": "Table Mode",
"study.tableMode.dialog.add.title": "Add table",
"study.tableMode.dialog.edit.title": "Edit table",
"study.tableMode.dialog.delete.text": "Are you sure you want to delete '{{name}}' table?",
"study.results.mc": "Monte-Carlo",
"study.results.display": "Display",
"study.results.temporality": "Temporality",
Expand Down
12 changes: 4 additions & 8 deletions webapp/public/locales/fr/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@
"study.archiveOutputMode": "Mode archivé",
"study.postProcessing": "Post-traitement",
"study.timeLimit": "Limite de temps (h)",
"study.timeLimitHelper": "(heures) max: {{max}}h",
"study.nbCpu": "Nombre de coeurs",
"study.clusterLoad": "Charge du cluster",
"study.synthesis": "Synthèse",
Expand Down Expand Up @@ -267,13 +266,6 @@
"study.modelization.links.matrix.columns.loopFlow": "Loop flow",
"study.modelization.links.matrix.columns.pShiftMin": "P.Shift Min",
"study.modelization.links.matrix.columns.pShiftMax": "P.Shift Max",
"study.modelization.tableMode": "Table Mode",
"study.modelization.tableMode.template.economicOpt": "Options économiques",
"study.modelization.tableMode.template.geographicTrimmingAreas": "Filtre géographique (zones)",
"study.modelization.tableMode.template.geographicTrimmingLinks": "Filtre géographique (liens)",
"study.modelization.tableMode.dialog.add.title": "Ajouter une table",
"study.modelization.tableMode.dialog.edit.title": "Modifier une table",
"study.modelization.tableMode.dialog.delete.text": "Êtes-vous sûr de vouloir supprimer la table '{{0}}' ?",
"study.configuration.general.legend.simulation": "Simulation",
"study.configuration.general.legend.calendar": "Calendrier",
"study.configuration.general.legend.monteCarloScenarios": "Scénarios Monte-Carlo",
Expand Down Expand Up @@ -495,6 +487,10 @@
"study.modelization.bindingConst.offset": "Décalage",
"study.modelization.bindingConst.question.deleteConstraintTerm": "Êtes-vous sûr de vouloir supprimer ce terme ?",
"study.modelization.bindingConst.question.deleteBindingConstraint": "Êtes-vous sûr de vouloir supprimer cette contrainte couplante ?",
"study.tableMode": "Table Mode",
"study.tableMode.dialog.add.title": "Ajouter une table",
"study.tableMode.dialog.edit.title": "Modifier une table",
"study.tableMode.dialog.delete.text": "Êtes-vous sûr de vouloir supprimer la table '{{name}}' ?",
"study.results.mc": "Monte-Carlo",
"study.results.display": "Affichage",
"study.results.temporality": "Temporalité",
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ function Modelization() {
label: t("study.debug"),
path: `${basePath}/debug`,
},
{
label: t("study.modelization.tableMode"),
path: `${basePath}/tablemode`,
},
];
}, [areaId, areas, dispatch, navigate, study?.id, t]);

Expand Down
Loading

0 comments on commit d85bd1b

Please sign in to comment.