From 83f9d8a02be0e8a38bfd339c8e85aa3154aee693 Mon Sep 17 00:00:00 2001 From: Kevin Chappell Date: Wed, 27 Nov 2024 11:04:27 -0800 Subject: [PATCH] feat: add json editor to the demo --- package-lock.json | 8 +++++ package.json | 1 + src/demo/index.html | 17 +++++++--- src/demo/js/actionButtons.js | 61 ++++++++++++++++++++++++++++++++---- src/demo/sass/demo.scss | 41 +++++++++++++++++++++++- 5 files changed, 116 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9e3df4c7..f55382f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/npm": "^12.0.1", + "ace-builds": "^1.36.5", "jsdom": "^25.0.1", "lefthook": "^1.7.18", "npm-run-all": "^2.1.0", @@ -2300,6 +2301,13 @@ "node": ">=10.0.0" } }, + "node_modules/ace-builds": { + "version": "1.36.5", + "resolved": "https://registry.npmjs.org/ace-builds/-/ace-builds-1.36.5.tgz", + "integrity": "sha512-mZ5KVanRT6nLRDLqtG/1YQQLX/gZVC/v526cm1Ru/MTSlrbweSmqv2ZT0d2GaHpJq035MwCMIrj+LgDAUnDXrg==", + "dev": true, + "license": "BSD-3-Clause" + }, "node_modules/acorn": { "version": "8.14.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", diff --git a/package.json b/package.json index 01c84a7d..59746b3e 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@semantic-release/npm": "^12.0.1", + "ace-builds": "^1.36.5", "jsdom": "^25.0.1", "lefthook": "^1.7.18", "npm-run-all": "^2.1.0", diff --git a/src/demo/index.html b/src/demo/index.html index 4b501a33..42c31ed6 100644 --- a/src/demo/index.html +++ b/src/demo/index.html @@ -39,11 +39,18 @@
-

Test formData

- -
- - +
+

Test formData

+
+ + + +
+
+

+      
+ +