From 5e466f45531ddd41eb5a79de44de2aad264e08b3 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Mon, 17 Aug 2026 17:32:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E8=A1=A5=E9=BD=90=20generator.html?= =?UTF-8?q?=20=E5=92=8C=20listmanager.html=20=E7=9A=84=E9=97=AE=E5=8F=B7?= =?UTF-8?q?=E5=89=A5=E7=A6=BB=E5=85=9C=E5=BA=95=20-=20generator.html:=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20ds()=20=E9=92=A9=E5=AD=90=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=20renderList=20/=20batch=20=E9=A2=84=E8=A7=88=20/=20s?= =?UTF-8?q?howToast=20=E4=B8=89=E4=B8=AA=E6=B8=B2=E6=9F=93=E7=82=B9?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E9=97=AE=E5=8F=B7=E5=89=A5=E7=A6=BB=20-=20li?= =?UTF-8?q?stmanager.html:=20=E6=96=B0=E5=A2=9E=20ds()=20=E9=92=A9?= =?UTF-8?q?=E5=AD=90=EF=BC=8C=E5=9C=A8=20renderList=20/=20renderSequence?= =?UTF-8?q?=20/=20=E8=87=AA=E5=AE=9A=E4=B9=89=20select=20=E9=80=89?= =?UTF-8?q?=E9=A1=B9=20/=20showToast=20=E5=9B=9B=E4=B8=AA=E7=82=B9?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E9=97=AE=E5=8F=B7=E5=89=A5=E7=A6=BB=20-=20AP?= =?UTF-8?q?P=5FVERSION=5FTEXT=20bump=20=E5=88=B0=20v1.0.107?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CloudServer/public/cablemanager.html | 14 +- CloudServer/public/generator.html | 25 ++- CloudServer/public/index.html | 90 ++++++--- CloudServer/public/infoboard.html | 29 ++- CloudServer/public/listmanager.html | 22 ++- CloudServer/public/music.html | 11 +- CloudServer/public/stablist.html | 11 +- CloudServer/public/streammanager.html | 11 +- CloudServer/public/tempbroadcast.html | 11 +- blockreader_display_nbt.txt | 265 ++++++++++++++++++++++++++ station_broadcast.lua | 2 +- 11 files changed, 438 insertions(+), 53 deletions(-) create mode 100644 blockreader_display_nbt.txt diff --git a/CloudServer/public/cablemanager.html b/CloudServer/public/cablemanager.html index d3c5a6a..d47a316 100644 --- a/CloudServer/public/cablemanager.html +++ b/CloudServer/public/cablemanager.html @@ -1536,14 +1536,24 @@ } } + function sanitizeDisplay(s) { + let v = String(s == null ? '' : s) + .replace(/[?¿?]+/g, '') + .replace(/\s+/g, ' ') + .trim(); + return v === '' ? '-' : v; + } + function escapeHtml(s) { - return String(s == null ? '' : s) + let v = sanitizeDisplay(s); + return v .replace(/&/g, '&').replace(//g, '>') .replace(/"/g, '"').replace(/'/g, '''); } function escapeAttr(s) { - return String(s == null ? '' : s) + let v = sanitizeDisplay(s); + return v .replace(/"/g, '"').replace(/'/g, '''); } diff --git a/CloudServer/public/generator.html b/CloudServer/public/generator.html index 3cacf7f..098d7f6 100644 --- a/CloudServer/public/generator.html +++ b/CloudServer/public/generator.html @@ -725,6 +725,14 @@