From 3ea6604406117f63f0bf0cf11d09aeba2c211777 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Tue, 16 Dec 2025 16:21:56 -0500 Subject: [PATCH 1/7] Fix base URL; simplify UX. --- playground/next/editor.mjs | 1 - playground/next/index.html | 18 ++---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/playground/next/editor.mjs b/playground/next/editor.mjs index f37ccca5..f8b340b4 100644 --- a/playground/next/editor.mjs +++ b/playground/next/editor.mjs @@ -331,7 +331,6 @@ window.app = createApp({ options: { processingMode: '', base: '', - baseUrl: '', compactArrays: true, compactToRelative: true, rdfDirection: '', diff --git a/playground/next/index.html b/playground/next/index.html index dda25087..160c4055 100644 --- a/playground/next/index.html +++ b/playground/next/index.html @@ -168,23 +168,9 @@

JSON-LD Playground

-
-
- - -
-
-
-
- - -
-
-
+
+ v-model="options.base">
From 1a174badc38d8a0e2771b71f5b4b0a265d63b78b Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Tue, 16 Dec 2025 16:33:55 -0500 Subject: [PATCH 2/7] Improve Safe Mode error display. --- playground/next/editor.mjs | 2 +- playground/next/index.html | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/playground/next/editor.mjs b/playground/next/editor.mjs index f8b340b4..2389e69b 100644 --- a/playground/next/editor.mjs +++ b/playground/next/editor.mjs @@ -441,7 +441,7 @@ window.app = createApp({ setEditorValue(readOnlyEditor, expanded); this.parseError = ''; } catch(err) { - this.parseError = err.message; + this.parseError = err; } break; case 'compacted': diff --git a/playground/next/index.html b/playground/next/index.html index 160c4055..b6c157bf 100644 --- a/playground/next/index.html +++ b/playground/next/index.html @@ -277,7 +277,12 @@

JSON-LD Playground

-
+
+
+
+

+    
+
-
+
-
-

+    
+

     
From b9938360e35ebd565b8fd3a95492b1cb4ada568d Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Wed, 17 Dec 2025 15:58:47 -0500 Subject: [PATCH 6/7] Trigger output refresh on option changes. --- playground/next/editor.mjs | 2 +- playground/next/index.html | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/playground/next/editor.mjs b/playground/next/editor.mjs index 9310db6c..5045bcca 100644 --- a/playground/next/editor.mjs +++ b/playground/next/editor.mjs @@ -431,7 +431,7 @@ window.app = createApp({ this.setOutputTab(this.outputTab); }, async setOutputTab(value) { - if (!value || !this.doc) return; + if (!this.doc) return; if (value) this.outputTab = value; let context = this.contextDoc; switch (this.outputTab) { diff --git a/playground/next/index.html b/playground/next/index.html index bffa576e..ccd5fdc5 100644 --- a/playground/next/index.html +++ b/playground/next/index.html @@ -146,21 +146,21 @@

JSON-LD Playground

+ v-model="options.processingMode" @change="setOutputTab()">
+ v-model="options.processingMode" @change="setOutputTab()">
+ v-model="options.processingMode" @change="setOutputTab()">
@@ -170,7 +170,7 @@

JSON-LD Playground

+ v-model="options.base" @change="setOutputTab()">
@@ -179,7 +179,7 @@

JSON-LD Playground

+ v-model="options.compactArrays" @change="setOutputTab()">
@@ -190,7 +190,7 @@

JSON-LD Playground

+ v-model="options.compactToRelative" @change="setOutputTab()">
@@ -202,14 +202,14 @@

JSON-LD Playground

+ v-model="options.rdfDirection" @change="setOutputTab()">
+ v-model="options.rdfDirection" @change="setOutputTab()">
@@ -222,14 +222,14 @@

JSON-LD Playground

+ v-model="options.safe" @change="setOutputTab()">
+ v-model="options.safe" @change="setOutputTab()">
From a09116423d12fae2c167991ce243fc2bd13b5ee3 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Wed, 17 Dec 2025 16:11:25 -0500 Subject: [PATCH 7/7] Simplify Processing Mode selection UX. --- playground/next/editor.mjs | 2 +- playground/next/index.html | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/playground/next/editor.mjs b/playground/next/editor.mjs index 5045bcca..f51c2858 100644 --- a/playground/next/editor.mjs +++ b/playground/next/editor.mjs @@ -330,7 +330,7 @@ window.app = createApp({ inputTab: 'json-ld', outputTab: 'expanded', options: { - processingMode: '', + processingMode: 'json-ld-1.1', base: '', compactArrays: true, compactToRelative: true, diff --git a/playground/next/index.html b/playground/next/index.html index ccd5fdc5..599b766d 100644 --- a/playground/next/index.html +++ b/playground/next/index.html @@ -143,13 +143,6 @@

JSON-LD Playground

-
-
- - -
-