71 |
72 |
82 |
83 |
84 |
85 |
88 |
89 |
90 |
91 | {tableQuery}
92 |
93 |
94 |
103 |
104 |
105 |
106 |
107 |
110 |
111 |
112 |
113 | {columnQuery}
114 |
115 |
116 |
125 |
126 |
127 |
128 |
129 |
132 |
139 |
140 |
141 |
144 |
151 |
152 |
153 |
156 |
157 |
158 | );
159 | }
--------------------------------------------------------------------------------
/frontend/src/components/records/refs/DocRefs.tsx:
--------------------------------------------------------------------------------
1 | import { useAppSelector, useAppDispatch } from "@/store/hooks";
2 | import { DefinitionDocQueryResultDTO } from "@/api-docs";
3 | import ReactMarkdown from "react-markdown";
4 | import { Card, TextInput, Button, Popover, Label, RangeSlider } from "flowbite-react";
5 | import { HiSearch, HiX, HiViewGrid } from "react-icons/hi";
6 | import { SelectedDoc, setEditingDocs } from "@/store/slices/recordsSlice";
7 | import { useState } from "react";
8 | import { mainApi } from "@/App";
9 | import { toast } from "react-toastify";
10 | import { useMemoizedFn } from "ahooks";
11 | import { mergeEnvData } from "@/store/slices/appSlice";
12 | import { useTranslation } from 'react-i18next';
13 |
14 | const DocItem = ({ doc, onRemove }: { doc: SelectedDoc; onRemove: () => void }) => {
15 | const { t } = useTranslation();
16 | return (
17 |