Skip to content

Commit e4c22ed

Browse files
committed
feat: add tools in routes
1 parent 04bd4bf commit e4c22ed

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

src/Components/AppRoutes.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import ErrorBoundary from "./ErrorBoundary";
77

88
const componentMap = {
99
jwt: loadable(() => import("../Features/jwt/JWT")) as React.ComponentType,
10+
escape: loadable(() => import("../Features/escape/BackslashEscape")) as React.ComponentType,
1011
markdown: loadable(() => import("../Features/markdown/Markdown")) as React.ComponentType,
1112
"har-viewer": loadable(() => import("../Features/har/HarViewer")) as React.ComponentType,
1213
"ssh-keys": loadable(() => import("../Features/ssh/SSH")) as React.ComponentType,
@@ -20,6 +21,8 @@ const componentMap = {
2021
rest: loadable(() => import("../Features/rest/Rest")) as React.ComponentType,
2122
graphiql: loadable(() => import("../Features/graphiql/GraphiQL")) as React.ComponentType,
2223
epoch: loadable(() => import("../Features/epoch/Epoch")) as React.ComponentType,
24+
dns: loadable(() => import("../Features/dns/DnsLookup")) as React.ComponentType,
25+
hmac: loadable(() => import("../Features/hmac/HmacGenerator")) as React.ComponentType,
2326
"url-parser": loadable(() => import("@/Features/url/UrlParser")) as React.ComponentType,
2427
"url-encoder": loadable(() => import("@/Features/url/UrlEncoder")) as React.ComponentType,
2528
};

src/Features/url/UrlParser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function UrlParser() {
8383
return (
8484
<Stack p="sm" gap="xs" style={{ height: "100%", overflow: "auto" }}>
8585
<Group justify="space-between">
86-
<Text fw={600}>URL</Text>
86+
<Text fw={600}>URL Parser</Text>
8787
<CopyButton
8888
value={state.input}
8989
label="Copy URL"

src/constants/tools.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import {
22
BsBox,
33
BsClock,
44
BsClockHistory,
5+
BsCodeSlash,
56
BsFiletypeSvg,
67
BsGlobe,
8+
BsHash,
79
BsLink45Deg,
810
BsMarkdown,
911
BsPercent,
@@ -12,7 +14,7 @@ import {
1214
BsShieldLock,
1315
} from "react-icons/bs";
1416
import { SiJsonwebtokens } from "react-icons/si";
15-
import { TbApi, TbBrandGraphql } from "react-icons/tb";
17+
import { TbApi, TbBrandGraphql, TbWorldSearch } from "react-icons/tb";
1618

1719
export const tools = [
1820
{
@@ -64,6 +66,13 @@ export const tools = [
6466
text: "HAR Viewer",
6567
description: "Inspect performance, requests, and waterfalls from HAR files",
6668
},
69+
{
70+
id: "dns",
71+
path: "/dns",
72+
icon: <TbWorldSearch />,
73+
text: "DNS Lookup",
74+
description: "Query multiple resolvers, DNSSEC, and reverse lookups",
75+
},
6776
{
6877
id: "epoch",
6978
path: "/epoch",
@@ -99,6 +108,13 @@ export const tools = [
99108
text: "ID Generator",
100109
description: "Create UUIDs, NanoIDs, and custom IDs for apps",
101110
},
111+
{
112+
id: "hmac",
113+
path: "/hmac",
114+
icon: <BsHash />,
115+
text: "HMAC Generator",
116+
description: "Compute HMAC signatures using Web Crypto",
117+
},
102118
{
103119
id: "url-parser",
104120
path: "/url-parser",
@@ -113,4 +129,11 @@ export const tools = [
113129
text: "URL Encoder",
114130
description: "Encode, decode, and sanitize URLs for safe sharing",
115131
},
132+
{
133+
id: "escape",
134+
path: "/escape",
135+
icon: <BsCodeSlash />,
136+
text: "Backslash Escape",
137+
description: "Escape or unescape strings with backslash sequences",
138+
},
116139
];

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ body {
4444
z-index: 999999999;
4545
}
4646

47+
.overflow-auto {
48+
overflow: auto;
49+
}
50+
4751
.overflow-padding {
4852
padding: 10px;
4953
padding-top: 1rem;

0 commit comments

Comments
 (0)