diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/App/App.tsx | 31 | ||||
| -rw-r--r-- | src/components/Content/Content.tsx | 6 | ||||
| -rw-r--r-- | src/components/Icons/Filter.tsx | 2 | ||||
| -rw-r--r-- | src/components/Icons/Moon.tsx | 2 | ||||
| -rw-r--r-- | src/components/Icons/Sliders.tsx | 2 | ||||
| -rw-r--r-- | src/components/Icons/Sun.tsx | 2 | ||||
| -rw-r--r-- | src/components/RequestDetails/RequestDetails.tsx | 10 | ||||
| -rw-r--r-- | src/components/RequestList/RequestList.tsx | 10 | ||||
| -rw-r--r-- | src/components/RequestSummary/RequestSummary.tsx | 2 |
9 files changed, 29 insertions, 38 deletions
diff --git a/src/components/App/App.tsx b/src/components/App/App.tsx index 1d231ae..aaad5d0 100644 --- a/src/components/App/App.tsx +++ b/src/components/App/App.tsx | |||
| @@ -1,27 +1,18 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | import { ReactElement, useContext, useEffect, useMemo, useState } from "react"; | 2 | import { ReactElement, useContext, useEffect, useMemo, useState } from "react"; |
| 3 | import useRequests, { | 3 | import useRequests, { ReadyState, RequestResponse } from "~/hooks/useRequests"; |
| 4 | ReadyState, | ||
| 5 | RequestResponse, | ||
| 6 | } from "../../hooks/useRequests"; | ||
| 7 | 4 | ||
| 8 | import styles from "./App.module.scss"; | 5 | import styles from "~/components/App.module.scss"; |
| 9 | import RequestDetails from "../RequestDetails/RequestDetails"; | 6 | import RequestDetails from "~/components/RequestDetails/RequestDetails"; |
| 10 | import { getHost } from "../../utils"; | 7 | import { getHost } from "~/utils"; |
| 11 | import { | 8 | import { Container, Nav, Navbar, NavDropdown } from "react-bootstrap"; |
| 12 | Container, | ||
| 13 | ListGroup, | ||
| 14 | Nav, | ||
| 15 | Navbar, | ||
| 16 | NavDropdown, | ||
| 17 | } from "react-bootstrap"; | ||
| 18 | import classNames from "classnames"; | 9 | import classNames from "classnames"; |
| 19 | import { Sliders } from "../Icons/Sliders"; | 10 | import Sliders from "~/components/Icons/Sliders"; |
| 20 | import { Sun } from "../Icons/Sun"; | 11 | import Sun from "~/components/Icons/Sun"; |
| 21 | import { Moon } from "../Icons/Moon"; | 12 | import Moon from "~/components/Icons/Moon"; |
| 22 | import Trash from "../Icons/Trash"; | 13 | import Trash from "~/components/Icons/Trash"; |
| 23 | import { DarkModeContext } from "../../contexts/DarkMode"; | 14 | import { DarkModeContext } from "~/contexts/DarkMode"; |
| 24 | import RequestList from "../RequestList/RequestList"; | 15 | import RequestList from "~/components/RequestList/RequestList"; |
| 25 | 16 | ||
| 26 | interface Config { | 17 | interface Config { |
| 27 | url: string; | 18 | url: string; |
diff --git a/src/components/Content/Content.tsx b/src/components/Content/Content.tsx index 56a802f..e670376 100644 --- a/src/components/Content/Content.tsx +++ b/src/components/Content/Content.tsx | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | import { Dispatch, SetStateAction, useContext, useMemo } from "react"; | 2 | import { Dispatch, SetStateAction, useContext, useMemo } from "react"; |
| 3 | import { RequestPayload, ResponsePayload, Headers } from "~hooks/useRequests"; | 3 | import { Headers, RequestPayload, ResponsePayload } from "~hooks/useRequests"; |
| 4 | import ReactJson from "react-json-view"; | 4 | import ReactJson from "react-json-view"; |
| 5 | import styles from "./Content.module.scss"; | 5 | import styles from "~/components/Content/Content.module.scss"; |
| 6 | import { Button, Col, Container, Row } from "react-bootstrap"; | 6 | import { Button, Col, Container, Row } from "react-bootstrap"; |
| 7 | import { DarkModeContext } from "../../contexts/DarkMode"; | 7 | import { DarkModeContext } from "~/contexts/DarkMode"; |
| 8 | 8 | ||
| 9 | function getHeader( | 9 | function getHeader( |
| 10 | headers: Headers, | 10 | headers: Headers, |
diff --git a/src/components/Icons/Filter.tsx b/src/components/Icons/Filter.tsx index 07796df..0b318e3 100644 --- a/src/components/Icons/Filter.tsx +++ b/src/components/Icons/Filter.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | 2 | ||
| 3 | export function Filter() { | 3 | export default function Filter() { |
| 4 | return ( | 4 | return ( |
| 5 | <svg | 5 | <svg |
| 6 | xmlns="http://www.w3.org/2000/svg" | 6 | xmlns="http://www.w3.org/2000/svg" |
diff --git a/src/components/Icons/Moon.tsx b/src/components/Icons/Moon.tsx index 303da04..a15c00f 100644 --- a/src/components/Icons/Moon.tsx +++ b/src/components/Icons/Moon.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | 2 | ||
| 3 | export function Moon() { | 3 | export default function Moon() { |
| 4 | return ( | 4 | return ( |
| 5 | <svg | 5 | <svg |
| 6 | xmlns="http://www.w3.org/2000/svg" | 6 | xmlns="http://www.w3.org/2000/svg" |
diff --git a/src/components/Icons/Sliders.tsx b/src/components/Icons/Sliders.tsx index 36c632f..66d6fac 100644 --- a/src/components/Icons/Sliders.tsx +++ b/src/components/Icons/Sliders.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | 2 | ||
| 3 | export function Sliders() { | 3 | export default function Sliders() { |
| 4 | return ( | 4 | return ( |
| 5 | <svg | 5 | <svg |
| 6 | xmlns="http://www.w3.org/2000/svg" | 6 | xmlns="http://www.w3.org/2000/svg" |
diff --git a/src/components/Icons/Sun.tsx b/src/components/Icons/Sun.tsx index f1e37a6..0641244 100644 --- a/src/components/Icons/Sun.tsx +++ b/src/components/Icons/Sun.tsx | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | 2 | ||
| 3 | export function Sun() { | 3 | export default function Sun() { |
| 4 | return ( | 4 | return ( |
| 5 | <svg | 5 | <svg |
| 6 | xmlns="http://www.w3.org/2000/svg" | 6 | xmlns="http://www.w3.org/2000/svg" |
diff --git a/src/components/RequestDetails/RequestDetails.tsx b/src/components/RequestDetails/RequestDetails.tsx index ece570c..f34ef6f 100644 --- a/src/components/RequestDetails/RequestDetails.tsx +++ b/src/components/RequestDetails/RequestDetails.tsx | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | import { useCallback, useMemo, useState } from "react"; | 2 | import { useCallback, useMemo, useState } from "react"; |
| 3 | import { RequestResponse, Headers } from "../../hooks/useRequests"; | 3 | import { Headers, RequestResponse } from "~/hooks/useRequests"; |
| 4 | import styles from "./RequestDetails.module.scss"; | 4 | import styles from "~/components/RequestDetails/RequestDetails.module.scss"; |
| 5 | import RequestSummary from "../RequestSummary/RequestSummary"; | 5 | import RequestSummary from "~/components/RequestSummary/RequestSummary"; |
| 6 | import Content from "../Content/Content"; | 6 | import Content from "~/components/Content/Content"; |
| 7 | import { getHost } from "../../utils"; | 7 | import { getHost } from "~/utils"; |
| 8 | import { Button, Card, Col, Container, Nav, Row, Table } from "react-bootstrap"; | 8 | import { Button, Card, Col, Container, Nav, Row, Table } from "react-bootstrap"; |
| 9 | 9 | ||
| 10 | interface TimingProps { | 10 | interface TimingProps { |
diff --git a/src/components/RequestList/RequestList.tsx b/src/components/RequestList/RequestList.tsx index a925c3b..06a78a3 100644 --- a/src/components/RequestList/RequestList.tsx +++ b/src/components/RequestList/RequestList.tsx | |||
| @@ -8,13 +8,13 @@ import { | |||
| 8 | Offcanvas, | 8 | Offcanvas, |
| 9 | } from "react-bootstrap"; | 9 | } from "react-bootstrap"; |
| 10 | import classNames from "classnames"; | 10 | import classNames from "classnames"; |
| 11 | import styles from "./RequestList.module.scss"; | 11 | import styles from "~/components/RequestList/RequestList.module.scss"; |
| 12 | import RequestSummary from "../RequestSummary/RequestSummary"; | 12 | import RequestSummary from "~/components/RequestSummary/RequestSummary"; |
| 13 | import * as React from "react"; | 13 | import * as React from "react"; |
| 14 | import { useCallback, useContext, useMemo, useState } from "react"; | 14 | import { useCallback, useContext, useMemo, useState } from "react"; |
| 15 | import { Method, RequestResponse } from "../../hooks/useRequests"; | 15 | import { Method, RequestResponse } from "~/hooks/useRequests"; |
| 16 | import { DarkModeContext } from "../../contexts/DarkMode"; | 16 | import { DarkModeContext } from "~/contexts/DarkMode"; |
| 17 | import { Filter } from "../Icons/Filter"; | 17 | import Filter from "~/components/Icons/Filter"; |
| 18 | 18 | ||
| 19 | interface ListProps { | 19 | interface ListProps { |
| 20 | requests: RequestResponse[]; | 20 | requests: RequestResponse[]; |
diff --git a/src/components/RequestSummary/RequestSummary.tsx b/src/components/RequestSummary/RequestSummary.tsx index db2f69c..44254d0 100644 --- a/src/components/RequestSummary/RequestSummary.tsx +++ b/src/components/RequestSummary/RequestSummary.tsx | |||
| @@ -2,7 +2,7 @@ import { RequestResponse } from "~hooks/useRequests"; | |||
| 2 | import * as React from "react"; | 2 | import * as React from "react"; |
| 3 | import classNames from "classnames"; | 3 | import classNames from "classnames"; |
| 4 | 4 | ||
| 5 | import { Badge, Card, Col, Row } from "react-bootstrap"; | 5 | import { Badge, Col, Row } from "react-bootstrap"; |
| 6 | 6 | ||
| 7 | interface RequestSummaryProps { | 7 | interface RequestSummaryProps { |
| 8 | selected?: boolean; | 8 | selected?: boolean; |
