summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package.json1
-rw-r--r--src/components/RequestDetails/RequestDetails.tsx8
-rw-r--r--vite.config.js6
-rw-r--r--yarn.lock194
4 files changed, 198 insertions, 11 deletions
diff --git a/package.json b/package.json
index 4eff35e..28b664f 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
22 "devDependencies": { 22 "devDependencies": {
23 "@types/react": "^16.9.34", 23 "@types/react": "^16.9.34",
24 "@types/react-dom": "^16.9.7", 24 "@types/react-dom": "^16.9.7",
25 "@vitejs/plugin-react": "^1.2.0",
25 "babel-preset-nano-react-app": "^0.1.0", 26 "babel-preset-nano-react-app": "^0.1.0",
26 "sass": "^1.45.2", 27 "sass": "^1.45.2",
27 "typescript": "^3.8.3", 28 "typescript": "^3.8.3",
diff --git a/src/components/RequestDetails/RequestDetails.tsx b/src/components/RequestDetails/RequestDetails.tsx
index 693f691..ece570c 100644
--- a/src/components/RequestDetails/RequestDetails.tsx
+++ b/src/components/RequestDetails/RequestDetails.tsx
@@ -20,12 +20,12 @@ function Timing({ timing }: TimingProps) {
20 ) : null; 20 ) : null;
21} 21}
22 22
23interface HeadersProps { 23interface HeaderTableProps {
24 title: string; 24 title: string;
25 headers: Headers; 25 headers: Headers;
26} 26}
27 27
28function Headers({ title, headers }: HeadersProps) { 28function HeaderTable({ title, headers }: HeaderTableProps) {
29 return ( 29 return (
30 <Card className="m-3"> 30 <Card className="m-3">
31 <Table striped responsive borderless hover className="mb-0"> 31 <Table striped responsive borderless hover className="mb-0">
@@ -123,12 +123,12 @@ export default function RequestDetails({ requestResponse }: DetailsProps) {
123 <div className={styles.content}> 123 <div className={styles.content}>
124 {tab === "headers" && ( 124 {tab === "headers" && (
125 <> 125 <>
126 <Headers 126 <HeaderTable
127 title="request headers" 127 title="request headers"
128 headers={requestResponse.request.headers} 128 headers={requestResponse.request.headers}
129 /> 129 />
130 {requestResponse.response && ( 130 {requestResponse.response && (
131 <Headers 131 <HeaderTable
132 title="response headers" 132 title="response headers"
133 headers={requestResponse.response.headers} 133 headers={requestResponse.response.headers}
134 /> 134 />
diff --git a/vite.config.js b/vite.config.js
new file mode 100644
index 0000000..eca6e2f
--- /dev/null
+++ b/vite.config.js
@@ -0,0 +1,6 @@
1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
3
4export default defineConfig({
5 plugins: [react()]
6})
diff --git a/yarn.lock b/yarn.lock
index a65d0d4..371732f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2,6 +2,13 @@
2# yarn lockfile v1 2# yarn lockfile v1
3 3
4 4
5"@ampproject/remapping@^2.0.0":
6 version "2.1.1"
7 resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.1.1.tgz#7922fb0817bf3166d8d9e258c57477e3fd1c3610"
8 integrity sha512-Aolwjd7HSC2PyY0fDj/wA/EimQT4HfEnFYNp5s9CQlrdhyvWTtvZ5YzrUPu6R6/1jKiUlxu8bUhkdSnKHNAHMA==
9 dependencies:
10 "@jridgewell/trace-mapping" "^0.3.0"
11
5"@babel/code-frame@^7.16.7": 12"@babel/code-frame@^7.16.7":
6 version "7.16.7" 13 version "7.16.7"
7 resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" 14 resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789"
@@ -14,6 +21,27 @@
14 resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.4.tgz#081d6bbc336ec5c2435c6346b2ae1fb98b5ac68e" 21 resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.4.tgz#081d6bbc336ec5c2435c6346b2ae1fb98b5ac68e"
15 integrity sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q== 22 integrity sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q==
16 23
24"@babel/core@^7.16.12":
25 version "7.17.2"
26 resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.2.tgz#2c77fc430e95139d816d39b113b31bf40fb22337"
27 integrity sha512-R3VH5G42VSDolRHyUO4V2cfag8WHcZyxdq5Z/m8Xyb92lW/Erm/6kM+XtRFGf3Mulre3mveni2NHfEUws8wSvw==
28 dependencies:
29 "@ampproject/remapping" "^2.0.0"
30 "@babel/code-frame" "^7.16.7"
31 "@babel/generator" "^7.17.0"
32 "@babel/helper-compilation-targets" "^7.16.7"
33 "@babel/helper-module-transforms" "^7.16.7"
34 "@babel/helpers" "^7.17.2"
35 "@babel/parser" "^7.17.0"
36 "@babel/template" "^7.16.7"
37 "@babel/traverse" "^7.17.0"
38 "@babel/types" "^7.17.0"
39 convert-source-map "^1.7.0"
40 debug "^4.1.0"
41 gensync "^1.0.0-beta.2"
42 json5 "^2.1.2"
43 semver "^6.3.0"
44
17"@babel/core@^7.2.2": 45"@babel/core@^7.2.2":
18 version "7.16.7" 46 version "7.16.7"
19 resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.7.tgz#db990f931f6d40cb9b87a0dc7d2adc749f1dcbcf" 47 resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.7.tgz#db990f931f6d40cb9b87a0dc7d2adc749f1dcbcf"
@@ -44,6 +72,15 @@
44 jsesc "^2.5.1" 72 jsesc "^2.5.1"
45 source-map "^0.5.0" 73 source-map "^0.5.0"
46 74
75"@babel/generator@^7.17.0":
76 version "7.17.0"
77 resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.17.0.tgz#7bd890ba706cd86d3e2f727322346ffdbf98f65e"
78 integrity sha512-I3Omiv6FGOC29dtlZhkfXO6pgkmukJSlT26QjVvS1DGZe/NzSVCPG41X0tS21oZkJYlovfj9qDWgKP+Cn4bXxw==
79 dependencies:
80 "@babel/types" "^7.17.0"
81 jsesc "^2.5.1"
82 source-map "^0.5.0"
83
47"@babel/helper-annotate-as-pure@^7.16.7": 84"@babel/helper-annotate-as-pure@^7.16.7":
48 version "7.16.7" 85 version "7.16.7"
49 resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz#bb2339a7534a9c128e3102024c60760a3a7f3862" 86 resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz#bb2339a7534a9c128e3102024c60760a3a7f3862"
@@ -202,6 +239,15 @@
202 "@babel/traverse" "^7.16.7" 239 "@babel/traverse" "^7.16.7"
203 "@babel/types" "^7.16.7" 240 "@babel/types" "^7.16.7"
204 241
242"@babel/helpers@^7.17.2":
243 version "7.17.2"
244 resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.2.tgz#23f0a0746c8e287773ccd27c14be428891f63417"
245 integrity sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==
246 dependencies:
247 "@babel/template" "^7.16.7"
248 "@babel/traverse" "^7.17.0"
249 "@babel/types" "^7.17.0"
250
205"@babel/highlight@^7.16.7": 251"@babel/highlight@^7.16.7":
206 version "7.16.7" 252 version "7.16.7"
207 resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.7.tgz#81a01d7d675046f0d96f82450d9d9578bdfd6b0b" 253 resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.7.tgz#81a01d7d675046f0d96f82450d9d9578bdfd6b0b"
@@ -216,6 +262,11 @@
216 resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.7.tgz#d372dda9c89fcec340a82630a9f533f2fe15877e" 262 resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.7.tgz#d372dda9c89fcec340a82630a9f533f2fe15877e"
217 integrity sha512-sR4eaSrnM7BV7QPzGfEX5paG/6wrZM3I0HDzfIAK06ESvo9oy3xBuVBxE3MbQaKNhvg8g/ixjMWo2CGpzpHsDA== 263 integrity sha512-sR4eaSrnM7BV7QPzGfEX5paG/6wrZM3I0HDzfIAK06ESvo9oy3xBuVBxE3MbQaKNhvg8g/ixjMWo2CGpzpHsDA==
218 264
265"@babel/parser@^7.17.0":
266 version "7.17.0"
267 resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.0.tgz#f0ac33eddbe214e4105363bb17c3341c5ffcc43c"
268 integrity sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw==
269
219"@babel/plugin-proposal-class-properties@^7.3.0": 270"@babel/plugin-proposal-class-properties@^7.3.0":
220 version "7.16.7" 271 version "7.16.7"
221 resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz#925cad7b3b1a2fcea7e59ecc8eb5954f961f91b0" 272 resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz#925cad7b3b1a2fcea7e59ecc8eb5954f961f91b0"
@@ -224,6 +275,45 @@
224 "@babel/helper-create-class-features-plugin" "^7.16.7" 275 "@babel/helper-create-class-features-plugin" "^7.16.7"
225 "@babel/helper-plugin-utils" "^7.16.7" 276 "@babel/helper-plugin-utils" "^7.16.7"
226 277
278"@babel/plugin-syntax-jsx@^7.16.7":
279 version "7.16.7"
280 resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.16.7.tgz#50b6571d13f764266a113d77c82b4a6508bbe665"
281 integrity sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q==
282 dependencies:
283 "@babel/helper-plugin-utils" "^7.16.7"
284
285"@babel/plugin-transform-react-jsx-development@^7.16.7":
286 version "7.16.7"
287 resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.16.7.tgz#43a00724a3ed2557ed3f276a01a929e6686ac7b8"
288 integrity sha512-RMvQWvpla+xy6MlBpPlrKZCMRs2AGiHOGHY3xRwl0pEeim348dDyxeH4xBsMPbIMhujeq7ihE702eM2Ew0Wo+A==
289 dependencies:
290 "@babel/plugin-transform-react-jsx" "^7.16.7"
291
292"@babel/plugin-transform-react-jsx-self@^7.16.7":
293 version "7.16.7"
294 resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.16.7.tgz#f432ad0cba14c4a1faf44f0076c69e42a4d4479e"
295 integrity sha512-oe5VuWs7J9ilH3BCCApGoYjHoSO48vkjX2CbA5bFVhIuO2HKxA3vyF7rleA4o6/4rTDbk6r8hBW7Ul8E+UZrpA==
296 dependencies:
297 "@babel/helper-plugin-utils" "^7.16.7"
298
299"@babel/plugin-transform-react-jsx-source@^7.16.7":
300 version "7.16.7"
301 resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.16.7.tgz#1879c3f23629d287cc6186a6c683154509ec70c0"
302 integrity sha512-rONFiQz9vgbsnaMtQlZCjIRwhJvlrPET8TabIUK2hzlXw9B9s2Ieaxte1SCOOXMbWRHodbKixNf3BLcWVOQ8Bw==
303 dependencies:
304 "@babel/helper-plugin-utils" "^7.16.7"
305
306"@babel/plugin-transform-react-jsx@^7.16.7":
307 version "7.16.7"
308 resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.16.7.tgz#86a6a220552afd0e4e1f0388a68a372be7add0d4"
309 integrity sha512-8D16ye66fxiE8m890w0BpPpngG9o9OVBBy0gH2E+2AR7qMR2ZpTYJEqLxAsoroenMId0p/wMW+Blc0meDgu0Ag==
310 dependencies:
311 "@babel/helper-annotate-as-pure" "^7.16.7"
312 "@babel/helper-module-imports" "^7.16.7"
313 "@babel/helper-plugin-utils" "^7.16.7"
314 "@babel/plugin-syntax-jsx" "^7.16.7"
315 "@babel/types" "^7.16.7"
316
227"@babel/plugin-transform-runtime@^7.2.0": 317"@babel/plugin-transform-runtime@^7.2.0":
228 version "7.16.7" 318 version "7.16.7"
229 resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.7.tgz#1da184cb83a2287a01956c10c60e66dd503c18aa" 319 resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.7.tgz#1da184cb83a2287a01956c10c60e66dd503c18aa"
@@ -268,6 +358,22 @@
268 debug "^4.1.0" 358 debug "^4.1.0"
269 globals "^11.1.0" 359 globals "^11.1.0"
270 360
361"@babel/traverse@^7.17.0":
362 version "7.17.0"
363 resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.17.0.tgz#3143e5066796408ccc880a33ecd3184f3e75cd30"
364 integrity sha512-fpFIXvqD6kC7c7PUNnZ0Z8cQXlarCLtCUpt2S1Dx7PjoRtCFffvOkHHSom+m5HIxMZn5bIBVb71lhabcmjEsqg==
365 dependencies:
366 "@babel/code-frame" "^7.16.7"
367 "@babel/generator" "^7.17.0"
368 "@babel/helper-environment-visitor" "^7.16.7"
369 "@babel/helper-function-name" "^7.16.7"
370 "@babel/helper-hoist-variables" "^7.16.7"
371 "@babel/helper-split-export-declaration" "^7.16.7"
372 "@babel/parser" "^7.17.0"
373 "@babel/types" "^7.17.0"
374 debug "^4.1.0"
375 globals "^11.1.0"
376
271"@babel/types@^7.16.7": 377"@babel/types@^7.16.7":
272 version "7.16.7" 378 version "7.16.7"
273 resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.16.7.tgz#4ed19d51f840ed4bd5645be6ce40775fecf03159" 379 resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.16.7.tgz#4ed19d51f840ed4bd5645be6ce40775fecf03159"
@@ -276,6 +382,32 @@
276 "@babel/helper-validator-identifier" "^7.16.7" 382 "@babel/helper-validator-identifier" "^7.16.7"
277 to-fast-properties "^2.0.0" 383 to-fast-p