Fix the Probes page failing to load; add a JS syntax check
An apostrophe in "aren't" ended a single-quoted string in views/probes.js,
so the module failed to parse ("missing ) after argument list") and the
Probes page couldn't load. Use the typographic apostrophe like the rest of
the UI copy.
scripts/check-js.sh parses every frontend module as an ES module (node in a
container if the host has none). Plain node --check on a .js file accepted
the broken file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cd2deda996
commit
cb092f2333
3 changed files with 21 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ function list(root, ctx) {
|
|||
function showInstall(p) {
|
||||
const cmd = installCommand(info, p.token);
|
||||
const dlg = modal(`Install “${p.name}”`, el('div', { style: 'display:grid;gap:12px' },
|
||||
el('p', { style: 'margin:0' }, 'Run this on the machine that will be the probe. It starts on boot and keeps running. On a Proxmox node it creates a small LXC container for the probe. On macOS and inside LXC containers it installs as a system service. On other Linux hosts it uses Docker. On Linux it needs root: if you aren't root, put sudo env before HUB_URL. If the git repo is private, the installer asks for a read-only token.'),
|
||||
el('p', { style: 'margin:0' }, 'Run this on the machine that will be the probe. It starts on boot and keeps running. On a Proxmox node it creates a small LXC container for the probe. On macOS and inside LXC containers it installs as a system service. On other Linux hosts it uses Docker. On Linux it needs root: if you aren’t root, put sudo env before HUB_URL. If the git repo is private, the installer asks for a read-only token.'),
|
||||
commandBlock(cmd),
|
||||
el('p.small.muted', { style: 'margin:0' }, `The probe reports to ${info.hub_url || location.origin}. If that address isn't reachable from the probe, change HUB_URL in the command. The command is also on the probe's page.`),
|
||||
), { wide: true, footer: [el('a.btn', { href: `/probes/${p.id}`, onclick: () => dlg.close() }, 'Open probe'), el('button.btn.primary', { type: 'button', onclick: () => dlg.close() }, 'Done')] });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue