@@ -222,14 +234,18 @@ export default function JSONGenerator() {
updateScript("updateable", checked)}
+ onCheckedChange={(checked) =>
+ updateScript("updateable", checked)
+ }
/>
updateScript("privileged", checked)}
+ onCheckedChange={(checked) =>
+ updateScript("privileged", checked)
+ }
/>
@@ -238,7 +254,12 @@ export default function JSONGenerator() {
placeholder="Interface Port"
type="number"
value={script.interface_port || ""}
- onChange={(e) => updateScript("interface_port", e.target.value ? Number(e.target.value) : null)}
+ onChange={(e) =>
+ updateScript(
+ "interface_port",
+ e.target.value ? Number(e.target.value) : null,
+ )
+ }
/>
updateScript("documentation", e.target.value || null)}
+ onChange={(e) =>
+ updateScript("documentation", e.target.value || null)
+ }
/>
updateScript("default_credentials", {
- ...script.default_credentials,
- username: e.target.value || null,
- })}
+ onChange={(e) =>
+ updateScript("default_credentials", {
+ ...script.default_credentials,
+ username: e.target.value || null,
+ })
+ }
/>
updateScript("default_credentials", {
- ...script.default_credentials,
- password: e.target.value || null,
- })}
+ onChange={(e) =>
+ updateScript("default_credentials", {
+ ...script.default_credentials,
+ password: e.target.value || null,
+ })
+ }
/>
Date: Thu, 28 Nov 2024 15:52:22 +0100
Subject: [PATCH 11/11] Update CHANGELOG.md (#570)
Co-authored-by: github-actions[bot]
---
CHANGELOG.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a0162240..00d84ca1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ Do not break established syntax in this file, as it is automatically updated by
### 🚀 Updated Scripts
+- Add vitest, add json validation tests, fix broken json files [@havardthom](https://github.com/havardthom) ([#566](https://github.com/community-scripts/ProxmoxVE/pull/566))
- Add update script to Pocketbase [@dsiebel](https://github.com/dsiebel) ([#535](https://github.com/community-scripts/ProxmoxVE/pull/535))
- Fix MongoDB install in Unifi script [@havardthom](https://github.com/havardthom) ([#564](https://github.com/community-scripts/ProxmoxVE/pull/564))
- Remove changing DISK_REF for zfspool mikrotik-routeros.sh [@tjcomserv](https://github.com/tjcomserv) ([#529](https://github.com/community-scripts/ProxmoxVE/pull/529))