From e96e380ad150ef3905578723b667b55fef7a6064 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 3 Jun 2025 10:21:53 -0400 Subject: [PATCH] Use CodeMirror's MergeView to highlight differences between before/after To make it easier to analyze the effect of a jsonpath. --- .../extension/lib/codemirror/codemirror-ubol | 2 +- tools/jsonpath-tool.html | 94 +++++++++++-------- 2 files changed, 57 insertions(+), 39 deletions(-) diff --git a/platform/mv3/extension/lib/codemirror/codemirror-ubol b/platform/mv3/extension/lib/codemirror/codemirror-ubol index 94860205a..4b9666da6 160000 --- a/platform/mv3/extension/lib/codemirror/codemirror-ubol +++ b/platform/mv3/extension/lib/codemirror/codemirror-ubol @@ -1 +1 @@ -Subproject commit 94860205aae82ef3d8e66f3a2cc5a5c96262d028 +Subproject commit 4b9666da6d3cf0321493c6a267b11cee88677411 diff --git a/tools/jsonpath-tool.html b/tools/jsonpath-tool.html index f51484295..88efdd938 100644 --- a/tools/jsonpath-tool.html +++ b/tools/jsonpath-tool.html @@ -39,6 +39,8 @@ section { box-sizing: border-box; display: flex; gap: 0.5em; + max-height: 80cqh; + overflow: auto; } section > * { border: 1px solid gray; @@ -46,11 +48,9 @@ section > * { flex-grow: 1; font-family: monospace; font-size: small; - line-height: 1.2; - max-height: 60cqh; - overflow: auto; - white-space: pre; - width: 50cqw; +} +section .cm-lineWrapping { + word-break: break-all !important; } #jsondata-in { min-height: 50vh; @@ -70,26 +70,45 @@ section > * {

uBO-flavored JSONPath tool

- -
-
- -
 
-
- -