diff --git a/frontend/js/views/kiosk.js b/frontend/js/views/kiosk.js index 6463c99..6b6c684 100644 --- a/frontend/js/views/kiosk.js +++ b/frontend/js/views/kiosk.js @@ -1,5 +1,6 @@ import { showToast } from '../components/toast.js'; import { t } from '../i18n.js'; +import { esc } from '../utils.js'; const API = (url, opts = {}) => fetch('/api' + url, { headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${localStorage.getItem('token')}`, ...opts.headers }, ...opts }).then(r => r.json()); @@ -44,12 +45,12 @@ async function renderList(container) { 🖱
-
${p.name}
+
${esc(p.name)}
${t('kiosk.label')}
${t('kiosk.preview')} - +
`).join(''); @@ -85,7 +86,7 @@ async function renderEditor(container, pageId) { ${t('kiosk.back')}
-
${layout.name}
+
${esc(layout.name)}
${zonesText}${isTemplate ? ' • ' + t('layout.template_label') : ''}
@@ -97,7 +98,7 @@ function renderLayoutCard(layout, isTemplate) { ? `` : `` } - +
`; @@ -115,7 +116,7 @@ async function renderEditor(container, layoutId) { ${t('layout.back')}