diff --git a/build.zip b/build.zip deleted file mode 100644 index b4369a9..0000000 Binary files a/build.zip and /dev/null differ diff --git a/src/app/feature/jq/queryInput.tsx b/src/app/feature/jq/queryInput.tsx index 135f06c..df60785 100644 --- a/src/app/feature/jq/queryInput.tsx +++ b/src/app/feature/jq/queryInput.tsx @@ -1,27 +1,61 @@ -import { useEffect, useState } from "react"; -import { useDebounce } from "./useDebuonce"; +import { useEffect, useRef, useState } from "react"; +import { + getHistory, + remoevHistoryAll, + removeHistory, +} from "../../../lib/queryHistoryFromLocalStrage"; type P = { initialJqQuery: string; }; export const QueryInput: React.FC
= (props) => {
const [jqQuery, setJqQuery] = useState
-
+
- posts
-
-
- 0
+ [
-
-
-
- {
-
-
-
- id
-
-
-
- 1
-
-
-
- title
-
-
+
+ {
+ 3
+ }
+
+
+
-
- 0
+ [
-
-
-
- {
-
-
-
- id
-
-
-
- 1
-
-
-
- body
-
-
+
+ {
+ 3
+ }
+
+
+
-
- name
-
-
-
- John Doe
-
-
-
- age
+ {
-
-
- 30
-
-
-
- url
-
-
+ {
+ 7
+ }
+
- https://example.com
-
-
-
- address
-
-
-
-
- {
-
-
+ name
+
+
- city
+ John Doe
+
+
-
- name
+ city
- Broadway
+ New York
+
+
+ {
+ 3
+ }
+
-
- floor
-
-
- 5
+ name
-
-
- number
-
-
- 502
+
+ Broadway
+
-
+
+ {
+ 2
+ }
+
+
+
-
- email
-
-
+
{
-
-
-
- home
+ email
- 123-456-7890
+ john.doe@example.com
+
+ {
+ 2
+ }
+
+
+
-
- 0
-
-
-
- programming
-
-
-
- 1
-
-
+
-
-
- 0
-
-
-
-
- {
-
-
-
- a
+ 0
- 1
+ programming
-
-
-
+
-
+
+ [
+ 3
+ ]
+
- }
+
+ {
+ 1
+ }
+
+
+
+ {
+ 1
+ }
+
+
+
+ {
+ 1
+ }
+
+
+
- {text}
-
+ {surroundChars.start}
+ {text.length}
+ {surroundChars.end}
+
+ {text}
+