From 23b1d58b9a6c32194188ac2d12d6a47020569033 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 25 Sep 2024 13:37:57 +0200 Subject: [PATCH] docs: rename `jsonquery` to `JSONQuery` --- src/lib/plugins/query/jsonQueryLanguage.ts | 4 ++-- src/routes/development/+page.svelte | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/plugins/query/jsonQueryLanguage.ts b/src/lib/plugins/query/jsonQueryLanguage.ts index 5bb03585..65e44f7f 100644 --- a/src/lib/plugins/query/jsonQueryLanguage.ts +++ b/src/lib/plugins/query/jsonQueryLanguage.ts @@ -6,7 +6,7 @@ import type { JSONPath } from 'immutable-json-patch' const description = `

Enter a jsonquery function to filter, sort, or transform the data. + rel="noopener noreferrer">JSON Query function to filter, sort, or transform the data. You can use functions like get, filter, sort, pick, groupBy, uniq, etcetera. Example query: filter(.age >= 18) @@ -15,7 +15,7 @@ const description = ` export const jsonQueryLanguage: QueryLanguage = { id: 'jsonquery', - name: 'jsonquery', + name: 'JSONQuery', description, createQuery, executeQuery diff --git a/src/routes/development/+page.svelte b/src/routes/development/+page.svelte index 07708d52..7c58d7a2 100644 --- a/src/routes/development/+page.svelte +++ b/src/routes/development/+page.svelte @@ -277,10 +277,10 @@ $: queryLanguages = $multipleQueryLanguages ? [ jsonQueryLanguage, - javascriptQueryLanguage, + jmespathQueryLanguage, jsonpathQueryLanguage, - lodashQueryLanguage, - jmespathQueryLanguage + javascriptQueryLanguage, + lodashQueryLanguage ] : [jsonQueryLanguage] let queryLanguageId = jsonQueryLanguage.id // TODO: store in local storage