Skip to content

Commit 77052d9

Browse files
committed
fix: import order
1 parent cc7b84b commit 77052d9

16 files changed

Lines changed: 1240 additions & 57 deletions

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ENV NODE_ENV=${NODE_ENV}
2222
RUN pnpm run build
2323

2424
# Expose the port the app runs on
25-
EXPOSE 3069
25+
EXPOSE 3002
2626

2727
# Start the application
28-
CMD ["pnpm", "start"]
28+
CMD ["pnpm", "start"]

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
"eslint": "8.57.1",
5454
"eslint-config-next": "15.0.3",
5555
"eslint-config-prettier": "^9.1.0",
56+
"eslint-import-resolver-typescript": "^4.4.4",
57+
"eslint-plugin-import": "^2.32.0",
5658
"eslint-plugin-prettier": "^5.1.3",
5759
"postcss": "8.4.49",
5860
"prettier": "^3.3.3",

pnpm-lock.yaml

Lines changed: 1193 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { JetBrains_Mono } from "next/font/google";
2-
import { Inter } from "next/font/google";
1+
import { JetBrains_Mono , Inter } from "next/font/google";
32

4-
import { ThemeProvider } from "@/providers/theme-provider";
53
import { TooltipProvider } from "@/components/ui/tooltip";
4+
import { ThemeProvider } from "@/providers/theme-provider";
5+
66
import { ErrorBoundary } from "~/src/components/error-boundary";
77

88
import type { Metadata } from "next";

src/app/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
"use client";
22

33
import { useEffect, useState, useRef } from "react";
4+
45
import { Search, X } from "lucide-react";
5-
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable";
6-
import { Input } from "@/components/ui/input";
6+
7+
import FileUpload, { FileUploadRef } from "@/components/file-upload";
78
import { RequestTable } from "@/components/request-table";
89
import { RequestViewer } from "@/components/request-viewer";
910
import { ResponseViewer } from "@/components/response-viewer";
10-
import FileUpload, { FileUploadRef } from "@/components/file-upload";
11-
import { useSession } from "@/lib/session-context";
11+
import { Input } from "@/components/ui/input";
12+
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable";
1213
import { useSearch } from "@/hooks/use-search";
14+
import { useSession } from "@/lib/session-context";
1315
import { BurpSession } from "@/types/burp";
1416
import { HarSession } from "@/types/har";
1517

src/components/code-block.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"use client";
22

33
import { useEffect, useState } from "react";
4+
45
import { WrapText } from "lucide-react";
56

6-
import { Button } from "@/components/ui/button";
77
import { PrismHighlight } from "@/components/prism-highlight";
8-
import { cn } from "@/lib/utils";
8+
import { Button } from "@/components/ui/button";
99
import { detectPayloadFormat, parseHttpMessage, processBody } from "@/lib/code-formatting";
10+
import { cn } from "@/lib/utils";
1011

1112
interface CodeBlockProps {
1213
language: string;

src/components/error-boundary.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import React from "react";
44
import { Component, type PropsWithChildren } from "react";
5+
56
import { AlertCircle } from "lucide-react";
7+
68
import { Button } from "@/components/ui/button";
79
import { Card, CardHeader } from "@/components/ui/card";
810

src/components/file-upload.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"use client";
22

33
import { useState, useCallback, forwardRef, useImperativeHandle } from "react";
4+
45
import { Upload } from "lucide-react";
56

7+
import { BurpParser, createDefaultParser } from "@/lib/http-parser";
8+
import { cn } from "@/lib/utils";
69
import type { BurpSession } from "@/types/burp";
710
import type { HarEntry, HarSession } from "@/types/har";
8-
import { cn } from "@/lib/utils";
9-
import { BurpParser, createDefaultParser } from "@/lib/http-parser";
1011

1112
interface FileUploadProps {
1213
onSessionLoaded: (session: BurpSession | HarSession) => void;

src/components/request-context-menu.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { useState, useRef, useEffect } from "react";
2+
3+
import { Palette, MessageSquareMore, Link2, Globe, Clock, Terminal } from "lucide-react";
4+
5+
import { Button } from "@/components/ui/button";
16
import {
27
ContextMenu,
38
ContextMenuContent,
@@ -15,15 +20,12 @@ import {
1520
DialogTitle,
1621
DialogFooter,
1722
} from "@/components/ui/dialog";
18-
import { BurpEntry } from "@/types/burp";
19-
import { HarEntry } from "@/types/har";
20-
import { Palette, MessageSquareMore, Link2, Globe, Clock, Terminal } from "lucide-react";
23+
import { Input } from "@/components/ui/input";
2124
import { useSession } from "@/lib/session-context";
22-
import type { HighlightColor } from "@/types/burp";
2325
import { toCurl } from "@/lib/to-curl";
24-
import { useState, useRef, useEffect } from "react";
25-
import { Button } from "@/components/ui/button";
26-
import { Input } from "@/components/ui/input";
26+
import { BurpEntry } from "@/types/burp";
27+
import type { HighlightColor } from "@/types/burp";
28+
import { HarEntry } from "@/types/har";
2729

2830
interface RequestContextMenuProps {
2931
children: React.ReactNode;

src/components/request-table/columns.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
"use client";
22

3-
import type { ColumnDef } from "@tanstack/react-table";
43
import { ArrowUpDown, MessageSquare } from "lucide-react";
54

65
import { Button } from "@/components/ui/button";
76
import { Highlight } from "@/components/ui/highlight";
8-
import { cn } from "@/lib/utils";
97
import { getEntryTime } from "@/lib/entry-utils";
8+
import { cn } from "@/lib/utils";
9+
1010
import type { RequestData } from "./types";
11+
import type { ColumnDef } from "@tanstack/react-table";
1112

1213
/**
1314
* Creates a sortable header button component

0 commit comments

Comments
 (0)