Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
fuko
/
trytanstackdb.com
Pull requests
fuko
trytanstackdb.com
Public
Synced with GitHub
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
highlight the json content of the api requests
#44
Send to my agent
Merged
fuko
merged 1 commit into
main
from
refs/pull/44/head
·
merged by
fuko
10 months ago
View on GitHub
Conversation
4
Commits
1
Files changed
4
Impact
Showing
4 changed files
with
61 additions
and
3 deletions
.
x
0 of 4 viewed, 4 left
Files
Hide whitespace
Unified
Split
5 additions and 3 deletions
+5
-3
src/components/ApiRequestsPanel.tsx
Modified
Diff
Before/After
Viewed
src/components/ApiRequestsPanel.tsx
View file
Show all 14 lines
@@ -15,6 +15,7 @@
15
15
import
{ cn }
from
"@/lib/utils"
;
16
16
import
{
HighlightWrapper
}
from
"@/utils/highlight-collection-related-info"
;
17
17
import
{
USER_PLACEHOLDER
}
from
"@/utils/USER_PLACEHOLDER_CONSTANT"
;
18
+
import
{
CodeHighlighter
}
from
"./CodeHighlighter"
;
18
19
import
{
Badge
}
from
"./ui/badge"
;
19
20
import
{
Button
}
from
"./ui/button"
;
20
21
import
{
Expand up
Expand down
Show all 37 lines
@@ -58,6 +59,9 @@
58
59
return
null
;
59
60
}
60
61
62
+
const
jsonString =
63
+
typeof
data ===
"string"
? data :
JSON
.
stringify
(data,
null
,
2
);
64
+
61
65
return
(
62
66
<
Collapsible
open
={isOpen}
onOpenChange
={setIsOpen}>
63
67
<
CollapsibleTrigger
className
=
"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors"
>
Show all 5 lines
@@ -69,9 +73,7 @@
69
73
{label}
70
74
</
CollapsibleTrigger
>
71
75
<
CollapsibleContent
>
72
-
<
pre
className
=
"mt-1 whitespace-pre-wrap p-2 bg-muted/50 rounded text-xs overflow-x-auto max-h-40 overflow-y-auto"
>
Home
Search
Explore
Menu