Skip to content

Commit 0b6a16d

Browse files
committed
feat: README updates and refactors
1 parent e302bc7 commit 0b6a16d

File tree

113 files changed

+143
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+143
-88
lines changed

README.md

Lines changed: 63 additions & 12 deletions

public/appscreenshot.png

-411 KB

src-tauri/capabilities/default.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"identifier": "default",
33
"description": "default permissions",
4-
"windows": [
5-
"main"
6-
],
4+
"windows": ["main"],
75
"permissions": [
86
"store:default",
97
"dialog:default",

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
import { useLocation, useNavigate } from "react-router-dom";
1818

1919
import { BsSearch } from "react-icons/bs";
20-
import { AppRoutes } from "./Components/AppRoutes";
21-
import { Sidebar } from "./Components/Sidebar";
20+
import { AppRoutes } from "./components/AppRoutes";
21+
import { Sidebar } from "./components/Sidebar";
2222
import { APP_CONFIG } from "./constants/app";
2323
import { sidebarTools } from "./constants/sidebar";
2424
import { tools } from "./constants/tools";

src/Components/AppRoutes.tsx

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
1-
import Settings from "@/Components/Settings";
1+
import Settings from "@/components/Settings";
22
import { tools } from "@/constants/tools";
33
import loadable from "@loadable/component";
44
import React from "react";
55
import { Navigate, Route, Routes } from "react-router-dom";
66
import ErrorBoundary from "./ErrorBoundary";
77

88
const componentMap = {
9-
jwt: loadable(() => import("../Features/jwt/JWT")) as React.ComponentType,
10-
escape: loadable(() => import("../Features/escape/BackslashEscape")) as React.ComponentType,
11-
markdown: loadable(() => import("../Features/markdown/Markdown")) as React.ComponentType,
12-
"har-viewer": loadable(() => import("../Features/har/HarViewer")) as React.ComponentType,
13-
"ssh-keys": loadable(() => import("../Features/ssh/SSH")) as React.ComponentType,
14-
"svg-preview": loadable(() => import("../Features/svg/Svg")) as React.ComponentType,
15-
ids: loadable(() => import("../Features/ids/Ids")) as React.ComponentType,
16-
cron: loadable(() => import("../Features/cron/Cron")) as React.ComponentType,
17-
bundlephobia: loadable(
18-
() => import("../Features/bundlephobia/Bundlephobia")
19-
) as React.ComponentType,
20-
regex: loadable(() => import("../Features/regex/RegexAdvanced")) as React.ComponentType,
21-
rest: loadable(() => import("../Features/rest/Rest")) as React.ComponentType,
22-
graphiql: loadable(() => import("../Features/graphiql/GraphiQL")) as React.ComponentType,
23-
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,
26-
"url-parser": loadable(() => import("@/Features/url/UrlParser")) as React.ComponentType,
27-
"url-encoder": loadable(() => import("@/Features/url/UrlEncoder")) as React.ComponentType,
28-
"certificate-decoder": loadable(() => import("../Features/x509/X509")) as React.ComponentType,
29-
"json-formatter": loadable(() => import("../Features/json/JsonFormatter")) as React.ComponentType,
30-
timezone: loadable(() => import("@/Features/timezone/Timezone")) as React.ComponentType,
31-
dashboard: loadable(() => import("@/Features/dashboard/Dashboard")) as React.ComponentType,
9+
jwt: loadable(() => import("../pages/jwt/JWT")) as React.ComponentType,
10+
escape: loadable(() => import("../pages/escape/BackslashEscape")) as React.ComponentType,
11+
markdown: loadable(() => import("../pages/markdown/Markdown")) as React.ComponentType,
12+
"har-viewer": loadable(() => import("../pages/har/HarViewer")) as React.ComponentType,
13+
"ssh-keys": loadable(() => import("../pages/ssh/SSH")) as React.ComponentType,
14+
"svg-preview": loadable(() => import("../pages/svg/Svg")) as React.ComponentType,
15+
ids: loadable(() => import("../pages/ids/Ids")) as React.ComponentType,
16+
cron: loadable(() => import("../pages/cron/Cron")) as React.ComponentType,
17+
bundlephobia: loadable(() => import("../pages/bundlephobia/Bundlephobia")) as React.ComponentType,
18+
regex: loadable(() => import("../pages/regex/RegexAdvanced")) as React.ComponentType,
19+
rest: loadable(() => import("../pages/rest/Rest")) as React.ComponentType,
20+
graphiql: loadable(() => import("../pages/graphiql/GraphiQL")) as React.ComponentType,
21+
epoch: loadable(() => import("../pages/epoch/Epoch")) as React.ComponentType,
22+
dns: loadable(() => import("../pages/dns/DnsLookup")) as React.ComponentType,
23+
hmac: loadable(() => import("../pages/hmac/HmacGenerator")) as React.ComponentType,
24+
"url-parser": loadable(() => import("@/pages/url/UrlParser")) as React.ComponentType,
25+
"url-encoder": loadable(() => import("@/pages/url/UrlEncoder")) as React.ComponentType,
26+
"certificate-decoder": loadable(() => import("../pages/x509/X509")) as React.ComponentType,
27+
"json-formatter": loadable(() => import("../pages/json/JsonFormatter")) as React.ComponentType,
28+
timezone: loadable(() => import("@/pages/timezone/Timezone")) as React.ComponentType,
29+
dashboard: loadable(() => import("@/pages/dashboard/Dashboard")) as React.ComponentType,
3230
};
3331
// Dynamically create lazy-loaded components
3432
const routes = tools

src/constants/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SidebarTool } from "@/Components/Sidebar/types";
1+
import { SidebarTool } from "@/components/Sidebar/types";
22
import { tools } from "./tools";
33

44
export const sidebarTools: SidebarTool[] = tools.map(tool => ({

src/hooks/useSidebarShortcuts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { KEYBOARD_SHORTCUTS } from "@/Components/Sidebar/constants";
1+
import { KEYBOARD_SHORTCUTS } from "@/components/Sidebar/constants";
22
import { useWindowEvent } from "@mantine/hooks";
33
import { useCallback, useRef } from "react";
44

src/hooks/useSidebarState.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { useCallback, useEffect, useState } from "react";
2-
import { settingsStore } from "@/utils/store";
3-
import { SidebarTool } from "@/Components/Sidebar/types";
1+
import { SidebarTool } from "@/components/Sidebar/types";
42
import { sidebarTools as defaultSidebarTools } from "@/constants/sidebar";
3+
import { settingsStore } from "@/utils/store";
4+
import { useCallback, useEffect, useState } from "react";
55

66
export const useSidebarState = () => {
77
const [sidebarTools, setSidebarTools] = useState<SidebarTool[]>([]);

src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import "./index.css";
21
import "@mantine/core/styles.css";
32
import "@mantine/dates/styles.css";
3+
import "./index.css";
44

55
import { ColorSchemeScript, MantineProvider } from "@mantine/core";
66
import { Notifications } from "@mantine/notifications";
@@ -9,8 +9,8 @@ import { createRoot } from "react-dom/client";
99
import { BrowserRouter } from "react-router-dom";
1010

1111
import App from "./App";
12-
import { theme } from "./Theme";
1312
import { APP_CONFIG } from "./constants/app";
13+
import { theme } from "./theme";
1414

1515
const root = createRoot(document.getElementById("root") as Element);
1616

File renamed without changes.

0 commit comments

Comments
 (0)