From 46bc9637fcd9f9fdfe065bbe3a042e70a5fc805c Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 19 Jun 2026 10:44:08 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20graph.js=20syntax=20error=20=E2=80=94=20?= =?UTF-8?q?template=20literals=20inside=20single=20quotes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Line 629: changed single quotes to backticks for published span - Line 653: changed to string concatenation for ctrl_hover_preview - Line 675: removed unnecessary template literal for published_badge - Root cause: ${t(...)} inside '...' is not interpolated --- frontend/js/graph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/js/graph.js b/frontend/js/graph.js index 780279b..d903953 100644 --- a/frontend/js/graph.js +++ b/frontend/js/graph.js @@ -626,7 +626,7 @@ export const GraphViewManager = { if (fm.date || fm.creation_date) rows.push(`
📅 Date ${fm.date || fm.creation_date}
`); if (fm.statut) rows.push(`
📌 Statut ${fm.statut}
`); if (fm.catégorie || fm.categorie) rows.push(`
${t('graph.category')} ${fm.catégorie || fm.categorie}
`); - if (fm.publish) rows.push('
✅ ${t('graph.published')}
'); + if (fm.publish) rows.push(`
✅ ${t('graph.published')}
`); if (fm.favoris) rows.push('
⭐ Favoris
'); if (rows.length > 0) metaRows = rows.join(''); } @@ -650,7 +650,7 @@ export const GraphViewManager = { ${metaRows ? `
${metaRows}
` : ''} ${tags.length > 0 ? `
${tags.map(t => `#${t}`).join('')}
` : ''} - ${node.type === 'file' ? '
${t('graph.ctrl_hover_preview')}
' : ''} + ${node.type === 'file' ? '
' + t('graph.ctrl_hover_preview') + '
' : ''} `; this._infoPanel.style.display = 'block'; }, @@ -672,7 +672,7 @@ export const GraphViewManager = { if (fm.auteur) items.push(`✍️ ${fm.auteur}`); if (fm.date || fm.creation_date) items.push(`📅 ${fm.date || fm.creation_date}`); if (fm.statut) items.push(`📌 ${fm.statut}`); - if (fm.publish) items.push('${t('graph.published_badge')}'); + if (fm.publish) items.push(t('graph.published_badge')); if (fm.favoris) items.push('⭐ favoris'); if (items.length > 0) fmSummary = `
${items.join(' · ')}
`; }