Skip to content

Commit e773feb

Browse files
committed
feat: Diff editor tool addition
1 parent 239441e commit e773feb

File tree

9 files changed

+607
-5
lines changed

9 files changed

+607
-5
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"@types/loadable__component": "^5.13.9",
8686
"@types/node": "^24.0.13",
8787
"@types/react": "^18.2.73",
88-
"@types/rss-parser": "^5.0.7",
8988
"@types/react-dom": "^18.2.23",
9089
"@types/react-katex": "^3.0.4",
9190
"@types/uuid": "^9.0.8",

src/components/AppRoutes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const componentMap = {
2121
epoch: loadable(() => import("../pages/epoch/Epoch")) as React.ComponentType,
2222
dns: loadable(() => import("../pages/dns/DnsLookup")) as React.ComponentType,
2323
hmac: loadable(() => import("../pages/hmac/HmacGenerator")) as React.ComponentType,
24+
diff: loadable(() => import("../pages/diff")) as React.ComponentType,
2425
"url-parser": loadable(() => import("@/pages/url/UrlParser")) as React.ComponentType,
2526
"url-encoder": loadable(() => import("@/pages/url/UrlEncoder")) as React.ComponentType,
2627
"certificate-decoder": loadable(() => import("../pages/x509/X509")) as React.ComponentType,

src/constants/tools.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ export const tools = [
112112
description: "Convert epoch timestamps to readable dates and timezones",
113113
module: "converters",
114114
},
115+
{
116+
id: "diff",
117+
path: "/diff",
118+
icon: <BsArrowLeftRight />,
119+
text: "Diff",
120+
description: "Compare text, JSON, XML, and code with Monaco diff",
121+
module: "viewers",
122+
},
115123
{
116124
id: "timezone",
117125
path: "/timezone",

src/pages/dashboard/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function Dashboard() {
3434
Your daily developer hub
3535
</Text>
3636
</Stack>
37-
<ActionIcon variant="light" size="lg" onClick={() => navigate("/settings")}>
37+
<ActionIcon variant="subtle" size="lg" onClick={() => navigate("/settings")}>
3838
<BsGear />
3939
</ActionIcon>
4040
</Group>

src/pages/dashboard/components/RSSFeed.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from "@mantine/core";
1313
import { useState } from "react";
1414
import { BsArrowClockwise, BsPlus } from "react-icons/bs";
15+
import { TbGridDots, TbList } from "react-icons/tb";
1516

1617
type Feed = { id: string; url: string; title?: string; enabled: boolean };
1718

@@ -63,12 +64,20 @@ export default function RSSFeed({
6364
Add feed
6465
</Button>
6566
<SegmentedControl
66-
size="xs"
67+
size="sm"
6768
value={viewMode}
6869
onChange={v => setViewMode(v as any)}
70+
radius="md"
71+
styles={{
72+
innerLabel: {
73+
display: "flex",
74+
alignItems: "center",
75+
justifyContent: "center",
76+
},
77+
}}
6978
data={[
70-
{ label: "Card", value: "card" },
71-
{ label: "List", value: "list" },
79+
{ label: <TbGridDots />, value: "card" },
80+
{ label: <TbList />, value: "list" },
7281
]}
7382
/>
7483
</Group>

0 commit comments

Comments
 (0)