From f1c5dd899fe6851966cc0a28f8952081bf872b05 Mon Sep 17 00:00:00 2001 From: kiomarzsss Date: Sat, 2 Mar 2024 09:27:15 -0500 Subject: [PATCH] fix: add manifest tag --- src/pages/index.tsx | 441 ++++++++++++++++++++++---------------------- 1 file changed, 221 insertions(+), 220 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 3dacfca..0f959b6 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -4,12 +4,12 @@ import Head from "next/head"; import { type TryChar, useIPScanner } from "~/hooks/useIPScanner"; import { download } from "~/helpers/download"; import { - TableCellsIcon, - DocumentTextIcon, - ArrowPathRoundedSquareIcon, - MagnifyingGlassCircleIcon, - PlayIcon, - StopIcon, + TableCellsIcon, + DocumentTextIcon, + ArrowPathRoundedSquareIcon, + MagnifyingGlassCircleIcon, + PlayIcon, + StopIcon, } from "@heroicons/react/24/solid"; import { copyIPToClipboard } from "~/helpers/copyIPToClipboard"; import { allIps } from "~/consts"; @@ -17,223 +17,224 @@ import { useUserIPInfo } from "~/hooks/useUserIPInfo"; const UserIP = dynamic(() => import("~/components/UserIP"), { ssr: false }); const Home: NextPage = () => { - const { ipInfo } = useUserIPInfo(); - const { - startScan, - stopScan, - color, - currentIP, - currentLatency, - ipRegex, - maxIPCount, - maxLatency, - scanState, - testNo, - tryChar, - validIPs, - setSettings, - } = useIPScanner({ allIps }); + const { ipInfo } = useUserIPInfo(); + const { + startScan, + stopScan, + color, + currentIP, + currentLatency, + ipRegex, + maxIPCount, + maxLatency, + scanState, + testNo, + tryChar, + validIPs, + setSettings, + } = useIPScanner({ allIps }); - const isRunning = scanState !== "idle"; + const isRunning = scanState !== "idle"; - const tryCharToRotation: Record = { - "": "rotate-[360deg]", - "|": "rotate-[72deg]", - "/": "rotate-[144deg]", - "-": "rotate-[216deg]", - "\\": "rotate-[288deg]", - }; + const tryCharToRotation: Record = { + "": "rotate-[360deg]", + "|": "rotate-[72deg]", + "/": "rotate-[144deg]", + "-": "rotate-[216deg]", + "\\": "rotate-[288deg]", + }; - return ( - <> - - Cloudflare Scanner | اسکنر آیپی تمیز کلودفلر - - - - - -
-
-
- -
-
- - -
-
- -
- { ipInfo.countryCode !== 'IR' && ( - <> -
- Notice: Please turn off your vpn! -
- - )} -
- -
-
- {!isRunning ? ( - - ) : ( - - )} -
-
-
-
Test No: {testNo}
-
- {currentIP || "0.0.0.0"} -
-
- -
Latency: {currentLatency}
- download(validIPs, "csv")} - title="Download as CSV" - className={ - (validIPs.length > 0 - ? "cursor-pointer text-blue-600 transition-colors duration-300 hover:text-blue-500 " - : "cursor-not-allowed text-gray-500 transition-colors duration-300 hover:text-gray-400 ") + - "mx-2 h-6 w-6" - } - /> - download(validIPs, "json")} - title="Download as JSON" - className={ - (validIPs.length > 0 - ? "cursor-pointer text-blue-600 transition-colors duration-300 hover:text-blue-500 " - : "cursor-not-allowed text-gray-500 transition-colors duration-300 hover:text-gray-400 ") + - "mx-2 h-6 w-6" - } - /> -
- - - - - - - - - - {validIPs.map(({ ip, latency }, index) => ( - - - - - - ))} - -
- No # - IP - Latency -
{index + 1} copyIPToClipboard(ip)} - className="cursor-pointer text-center transition-colors duration-200 hover:text-gray-500" - > - {ip} - {latency}
-
-
-
- © kiomarzsss, IRCF, VahidFarid, goldsrc -
-
- - ); + return ( + <> + + Cloudflare Scanner | اسکنر آیپی تمیز کلودفلر + + + + + + +
+
+
+ +
+
+ + +
+
+ +
+ {ipInfo.countryCode !== "IR" && ( + <> +
+ Notice: Please turn off your vpn! +
+ + )} +
+ +
+
+ {!isRunning ? ( + + ) : ( + + )} +
+
+
+
Test No: {testNo}
+
+ {currentIP || "0.0.0.0"} +
+
+ +
Latency: {currentLatency}
+ download(validIPs, "csv")} + title="Download as CSV" + className={ + (validIPs.length > 0 + ? "cursor-pointer text-blue-600 transition-colors duration-300 hover:text-blue-500 " + : "cursor-not-allowed text-gray-500 transition-colors duration-300 hover:text-gray-400 ") + + "mx-2 h-6 w-6" + } + /> + download(validIPs, "json")} + title="Download as JSON" + className={ + (validIPs.length > 0 + ? "cursor-pointer text-blue-600 transition-colors duration-300 hover:text-blue-500 " + : "cursor-not-allowed text-gray-500 transition-colors duration-300 hover:text-gray-400 ") + + "mx-2 h-6 w-6" + } + /> +
+ + + + + + + + + + {validIPs.map(({ ip, latency }, index) => ( + + + + + + ))} + +
+ No # + IP + Latency +
{index + 1} copyIPToClipboard(ip)} + className="cursor-pointer text-center transition-colors duration-200 hover:text-gray-500" + > + {ip} + {latency}
+
+
+ +
+ + ); }; export default Home;