Skip to content

Commit

Permalink
Merge pull request #13 from yazanessam/Yazan-Dev
Browse files Browse the repository at this point in the history
JsLeaks UI
  • Loading branch information
Mahmoudgalalz authored Apr 15, 2024
2 parents 5e1f23e + 2380120 commit 8ac984c
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ProjectLayout } from './layout/projectLayout';
import Status from './views/project/status';
import Recon from './views/project/recon';
import { ReconResults } from './views/project/results/recon-results';
import JsLeaks from './views/project/JsLeaks.1';

function Home() {
return (
Expand All @@ -31,6 +32,7 @@ export default function App() {
<Route path="result" element={<Results />} />
<Route path="result-recon" element={<ReconResults />} />
<Route path="attack" element={<Results />} />
<Route path="jsleaks" element={<JsLeaks />} />
</Route>
</Routes>
</Router>
Expand Down
6 changes: 6 additions & 0 deletions src/renderer/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ const dashboardMenu: DashboardMenu[] = [
Disabled: true,
icon: <LayoutDashboardIcon className="mr-2 h-4 w-4" />,
},

{
href: 'jsleaks',
title: 'JsLeaks',
icon: <LayoutDashboardIcon className="mr-2 h-4 w-4" />,
},
];

const resultArch: DashboardMenu[] = [
Expand Down
41 changes: 41 additions & 0 deletions src/renderer/views/project/JsLeaks.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from '../../components/ui/card';
import Secrets from './JsLeaks Jobs/secrets';
import EndPoints from './JsLeaks Jobs/EndPoints';

export default function JsLeaks() {
return (
<div className="flex flex-col gap-4">
<h1 className="font-bold text-3xl">Initiate Recon Attacks</h1>
<div>
<div className="grid grid-flow-row grid-cols-2 gap-4">
<Card>
<CardHeader>
<CardTitle>Find Secrets</CardTitle>
<CardDescription>wanna find secrets ?</CardDescription>
</CardHeader>
<CardContent className="flex justify-between">
<Secrets />
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle>Find EndPoints</CardTitle>
<CardDescription>
Unveiling extra and hidden endpoints
</CardDescription>
</CardHeader>
<CardContent className="flex justify-between">
<EndPoints />
</CardContent>
</Card>
</div>
</div>
</div>
);
}
23 changes: 23 additions & 0 deletions src/renderer/views/project/jsLeaksJob/Endpoint.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Loader2 } from 'lucide-react';
import { useState } from 'react';
import { Button } from '../../../components/ui/button';

export default function EndPoints() {
const [Loading, setLoading] = useState<boolean>(false);
const RunEndPoints = async () => {
setLoading(true);
};
return (
// eslint-disable-next-line react/jsx-no-useless-fragment
<>
{!Loading ? (
<Button onClick={RunEndPoints}>Process</Button>
) : (
<Button disabled>
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
Please wait
</Button>
)}
</>
);
}
23 changes: 23 additions & 0 deletions src/renderer/views/project/jsLeaksJob/secrets.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Loader2 } from 'lucide-react';
import { useState } from 'react';
import { Button } from '../../../components/ui/button';

export default function Secrets() {
const [Loading, setLoading] = useState<boolean>(false);
const RunSecrets = async () => {
setLoading(true);
};
return (
// eslint-disable-next-line react/jsx-no-useless-fragment
<>
{!Loading ? (
<Button onClick={RunSecrets}>Process</Button>
) : (
<Button disabled>
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
Please wait
</Button>
)}
</>
);
}

0 comments on commit 8ac984c

Please sign in to comment.