Spaces:
Running
Running
Commit ·
400c7d9
1
Parent(s): f18e168
Fix detailed result tables
Browse files
application_neo4j/static/js/script.js
CHANGED
|
@@ -230,12 +230,12 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 230 |
node.id || "N/A",
|
| 231 |
node.author || "Inconnu",
|
| 232 |
// La conversion en string via la condition est parfaite ici
|
| 233 |
-
String(node.downloads ?? (
|
| 234 |
-
node.task || (
|
| 235 |
String(node.likes ?? "0"),
|
| 236 |
-
String(node.createdAt ?? (
|
| 237 |
-
node.dataset || (
|
| 238 |
-
node.license || (
|
| 239 |
distance > 0 ? `+${distance}` : String(distance ?? 0),
|
| 240 |
String(node.ascendantsCount ?? "0"),
|
| 241 |
String(node.descendantsCount ?? "0"),
|
|
@@ -351,4 +351,4 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 351 |
checkbox.addEventListener('change', toggleDepthInput);
|
| 352 |
toggleDepthInput();
|
| 353 |
}
|
| 354 |
-
});
|
|
|
|
| 230 |
node.id || "N/A",
|
| 231 |
node.author || "Inconnu",
|
| 232 |
// La conversion en string via la condition est parfaite ici
|
| 233 |
+
String(node.downloads ?? (I18N['js.unknown'] || "Inconnu")),
|
| 234 |
+
node.task || (I18N['js.unknown_f'] || "Inconnue"),
|
| 235 |
String(node.likes ?? "0"),
|
| 236 |
+
String(node.createdAt ?? (I18N['js.unknown_f'] || "Inconnue")),
|
| 237 |
+
node.dataset || (I18N['js.unknown'] || "Inconnu"),
|
| 238 |
+
node.license || (I18N['js.unknown_f'] || "Inconnue"),
|
| 239 |
distance > 0 ? `+${distance}` : String(distance ?? 0),
|
| 240 |
String(node.ascendantsCount ?? "0"),
|
| 241 |
String(node.descendantsCount ?? "0"),
|
|
|
|
| 351 |
checkbox.addEventListener('change', toggleDepthInput);
|
| 352 |
toggleDepthInput();
|
| 353 |
}
|
| 354 |
+
});
|
application_neo4j/static/js/script_dataset.js
CHANGED
|
@@ -243,12 +243,12 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 243 |
node.id || "N/A",
|
| 244 |
node.author || "Inconnu",
|
| 245 |
// La conversion en string via la condition est parfaite ici
|
| 246 |
-
String(node.downloads ?? (
|
| 247 |
-
node.task || (
|
| 248 |
String(node.likes ?? "0"),
|
| 249 |
-
String(node.createdAt ?? (
|
| 250 |
-
node.dataset || (
|
| 251 |
-
node.license || (
|
| 252 |
String(node.ascendantsCount ?? "0"),
|
| 253 |
String(node.descendantsCount ?? "0"),
|
| 254 |
String(node.citationCount ?? "0")
|
|
@@ -361,4 +361,4 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 361 |
checkbox.addEventListener('change', toggleDepthInput);
|
| 362 |
toggleDepthInput();
|
| 363 |
}
|
| 364 |
-
});
|
|
|
|
| 243 |
node.id || "N/A",
|
| 244 |
node.author || "Inconnu",
|
| 245 |
// La conversion en string via la condition est parfaite ici
|
| 246 |
+
String(node.downloads ?? (I18N['js.unknown'] || "Inconnu")),
|
| 247 |
+
node.task || (I18N['js.unknown_f'] || "Inconnue"),
|
| 248 |
String(node.likes ?? "0"),
|
| 249 |
+
String(node.createdAt ?? (I18N['js.unknown_f'] || "Inconnue")),
|
| 250 |
+
node.dataset || (I18N['js.unknown'] || "Inconnu"),
|
| 251 |
+
node.license || (I18N['js.unknown_f'] || "Inconnue"),
|
| 252 |
String(node.ascendantsCount ?? "0"),
|
| 253 |
String(node.descendantsCount ?? "0"),
|
| 254 |
String(node.citationCount ?? "0")
|
|
|
|
| 361 |
checkbox.addEventListener('change', toggleDepthInput);
|
| 362 |
toggleDepthInput();
|
| 363 |
}
|
| 364 |
+
});
|
application_neo4j/static/js/script_expert.js
CHANGED
|
@@ -34,9 +34,9 @@ function populateGraphModelsTable(graphData, table) {
|
|
| 34 |
|
| 35 |
|
| 36 |
// Construction de la ligne avec les nouvelles données
|
| 37 |
-
const unknown =
|
| 38 |
-
const unknownF =
|
| 39 |
-
const na =
|
| 40 |
const rowData = [
|
| 41 |
node.id || na,
|
| 42 |
node.author || unknown,
|
|
@@ -380,4 +380,3 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 380 |
|
| 381 |
|
| 382 |
});
|
| 383 |
-
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
// Construction de la ligne avec les nouvelles données
|
| 37 |
+
const unknown = I18N['js.unknown'] || "Inconnu";
|
| 38 |
+
const unknownF = I18N['js.unknown_f'] || "Inconnue";
|
| 39 |
+
const na = I18N['js.na'] || "N/A";
|
| 40 |
const rowData = [
|
| 41 |
node.id || na,
|
| 42 |
node.author || unknown,
|
|
|
|
| 380 |
|
| 381 |
|
| 382 |
});
|
|
|