From 1bf608f794e4e0288eca2d1ee149d987f989b6e1 Mon Sep 17 00:00:00 2001 From: Ayush Kumar <140801177+ayush-129@users.noreply.github.com> Date: Thu, 10 Oct 2024 22:37:20 +0530 Subject: [PATCH 1/7] migrated-to-typescript --- eslint.config.mjs | 14 + index.html | 2 +- package.json | 15 +- src/{App.jsx => App.tsx} | 6 +- src/components/About.jsx | 59 - src/components/About.tsx | 67 + src/components/{Building.jsx => Building.tsx} | 5 +- src/components/Cards.jsx | 48 - src/components/Cards.tsx | 48 + src/components/{Contact.jsx => Contact.tsx} | 64 +- src/components/Faq.jsx | 143 --- src/components/Faq.tsx | 154 +++ src/components/{Footer.jsx => Footer.tsx} | 33 +- src/components/Frontend_files/Electron.jsx | 44 - src/components/Frontend_files/Electron.tsx | 80 ++ src/components/Frontend_files/HTML_CSS.jsx | 44 - src/components/Frontend_files/HTML_CSS.tsx | 79 ++ src/components/Frontend_files/Javascript.jsx | 44 - src/components/Frontend_files/Javascript.tsx | 79 ++ src/components/Frontend_files/Next_js.jsx | 44 - src/components/Frontend_files/Next_js.tsx | 79 ++ src/components/Frontend_files/Reactnative.jsx | 44 - src/components/Frontend_files/Reactnative.tsx | 79 ++ src/components/Frontend_files/Reactt.jsx | 44 - src/components/Frontend_files/Reactt.tsx | 79 ++ src/components/Frontend_files/Tailwindd.jsx | 44 - src/components/Frontend_files/Tailwindd.tsx | 79 ++ src/components/Frontend_files/Three_js.jsx | 44 - src/components/Frontend_files/Three_js.tsx | 79 ++ src/components/Frontend_files/Vue_js.jsx | 45 - src/components/Frontend_files/Vue_js.tsx | 80 ++ src/components/Guide_Element.jsx | 59 - src/components/Guide_Element.tsx | 55 + src/components/{Hero.jsx => Hero.tsx} | 69 +- src/components/Navbar.jsx | 218 ---- src/components/Navbar.tsx | 136 ++ src/components/Newsletter.jsx | 23 - src/components/Newsletter.tsx | 39 + .../{PrivacyPolicy.jsx => PrivacyPolicy.tsx} | 16 +- src/components/Resource.jsx | 52 - src/components/Resource.tsx | 99 ++ src/components/Roadmaps.jsx | 46 - src/components/Roadmaps.tsx | 66 + src/components/TeamsComponent.jsx | 28 - src/components/TeamsComponent.tsx | 38 + src/components/{frontend.jsx => frontend.tsx} | 117 +- src/declarations.d.ts | 31 + src/index.jsx | 11 - src/index.tsx | 15 + src/pages/AboutOrg.jsx | 49 - src/pages/AboutOrg.tsx | 62 + src/pages/{Buiding.jsx => Buiding.tsx} | 5 +- src/pages/{Contacts.jsx => Contacts.tsx} | 2 +- src/pages/{Faqs.jsx => Faqs.tsx} | 4 +- src/pages/{FrontEnds.jsx => FrontEnds.tsx} | 28 +- src/pages/Frontend/Eletron.jsx | 35 - src/pages/Frontend/Eletron.tsx | 46 + src/pages/Frontend/HTMLCSS.jsx | 35 - src/pages/Frontend/HTMLCSS.tsx | 46 + src/pages/Frontend/JSc.jsx | 35 - src/pages/Frontend/JSc.tsx | 44 + src/pages/Frontend/Next__js.jsx | 35 - src/pages/Frontend/Next__js.tsx | 45 + src/pages/Frontend/React__native.jsx | 35 - src/pages/Frontend/React__native.tsx | 46 + src/pages/Frontend/Reactjs.jsx | 35 - src/pages/Frontend/Reactjs.tsx | 44 + src/pages/Frontend/Tail_wind.jsx | 35 - src/pages/Frontend/Tail_wind.tsx | 44 + src/pages/Frontend/Three__js.jsx | 35 - src/pages/Frontend/Three__js.tsx | 44 + src/pages/Frontend/Vue__js.jsx | 35 - src/pages/Frontend/Vue__js.tsx | 44 + ...{GitHubRepoCard.jsx => GitHubRepoCard.tsx} | 20 +- src/pages/{Guide.jsx => Guide.tsx} | 4 +- src/pages/{Homepage.jsx => Homepage.tsx} | 18 +- src/pages/PageNotFound.jsx | 21 - src/pages/PageNotFound.tsx | 22 + src/pages/{Privacy.jsx => Privacy.tsx} | 2 +- src/pages/{Projects.jsx => Projects.tsx} | 2 +- src/pages/{Resources.jsx => Resources.tsx} | 2 +- src/pages/{Shipyard.jsx => Shipyard.tsx} | 8 +- src/pages/Team.jsx | 56 - src/pages/Team.tsx | 74 ++ src/react-lottie.d.ts | 21 + tsconfig.json | 16 + yarn.lock | 1089 ++++++++++++++++- 87 files changed, 3373 insertions(+), 1736 deletions(-) create mode 100644 eslint.config.mjs rename src/{App.jsx => App.tsx} (97%) delete mode 100644 src/components/About.jsx create mode 100644 src/components/About.tsx rename src/components/{Building.jsx => Building.tsx} (58%) delete mode 100644 src/components/Cards.jsx create mode 100644 src/components/Cards.tsx rename src/components/{Contact.jsx => Contact.tsx} (80%) delete mode 100644 src/components/Faq.jsx create mode 100644 src/components/Faq.tsx rename src/components/{Footer.jsx => Footer.tsx} (86%) delete mode 100644 src/components/Frontend_files/Electron.jsx create mode 100644 src/components/Frontend_files/Electron.tsx delete mode 100644 src/components/Frontend_files/HTML_CSS.jsx create mode 100644 src/components/Frontend_files/HTML_CSS.tsx delete mode 100644 src/components/Frontend_files/Javascript.jsx create mode 100644 src/components/Frontend_files/Javascript.tsx delete mode 100644 src/components/Frontend_files/Next_js.jsx create mode 100644 src/components/Frontend_files/Next_js.tsx delete mode 100644 src/components/Frontend_files/Reactnative.jsx create mode 100644 src/components/Frontend_files/Reactnative.tsx delete mode 100644 src/components/Frontend_files/Reactt.jsx create mode 100644 src/components/Frontend_files/Reactt.tsx delete mode 100644 src/components/Frontend_files/Tailwindd.jsx create mode 100644 src/components/Frontend_files/Tailwindd.tsx delete mode 100644 src/components/Frontend_files/Three_js.jsx create mode 100644 src/components/Frontend_files/Three_js.tsx delete mode 100644 src/components/Frontend_files/Vue_js.jsx create mode 100644 src/components/Frontend_files/Vue_js.tsx delete mode 100644 src/components/Guide_Element.jsx create mode 100644 src/components/Guide_Element.tsx rename src/components/{Hero.jsx => Hero.tsx} (56%) delete mode 100644 src/components/Navbar.jsx create mode 100644 src/components/Navbar.tsx delete mode 100644 src/components/Newsletter.jsx create mode 100644 src/components/Newsletter.tsx rename src/components/{PrivacyPolicy.jsx => PrivacyPolicy.tsx} (97%) delete mode 100644 src/components/Resource.jsx create mode 100644 src/components/Resource.tsx delete mode 100644 src/components/Roadmaps.jsx create mode 100644 src/components/Roadmaps.tsx delete mode 100644 src/components/TeamsComponent.jsx create mode 100644 src/components/TeamsComponent.tsx rename src/components/{frontend.jsx => frontend.tsx} (92%) create mode 100644 src/declarations.d.ts delete mode 100644 src/index.jsx create mode 100644 src/index.tsx delete mode 100644 src/pages/AboutOrg.jsx create mode 100644 src/pages/AboutOrg.tsx rename src/pages/{Buiding.jsx => Buiding.tsx} (82%) rename src/pages/{Contacts.jsx => Contacts.tsx} (89%) rename src/pages/{Faqs.jsx => Faqs.tsx} (83%) rename src/pages/{FrontEnds.jsx => FrontEnds.tsx} (88%) delete mode 100644 src/pages/Frontend/Eletron.jsx create mode 100644 src/pages/Frontend/Eletron.tsx delete mode 100644 src/pages/Frontend/HTMLCSS.jsx create mode 100644 src/pages/Frontend/HTMLCSS.tsx delete mode 100644 src/pages/Frontend/JSc.jsx create mode 100644 src/pages/Frontend/JSc.tsx delete mode 100644 src/pages/Frontend/Next__js.jsx create mode 100644 src/pages/Frontend/Next__js.tsx delete mode 100644 src/pages/Frontend/React__native.jsx create mode 100644 src/pages/Frontend/React__native.tsx delete mode 100644 src/pages/Frontend/Reactjs.jsx create mode 100644 src/pages/Frontend/Reactjs.tsx delete mode 100644 src/pages/Frontend/Tail_wind.jsx create mode 100644 src/pages/Frontend/Tail_wind.tsx delete mode 100644 src/pages/Frontend/Three__js.jsx create mode 100644 src/pages/Frontend/Three__js.tsx delete mode 100644 src/pages/Frontend/Vue__js.jsx create mode 100644 src/pages/Frontend/Vue__js.tsx rename src/pages/{GitHubRepoCard.jsx => GitHubRepoCard.tsx} (81%) rename src/pages/{Guide.jsx => Guide.tsx} (84%) rename src/pages/{Homepage.jsx => Homepage.tsx} (63%) delete mode 100644 src/pages/PageNotFound.jsx create mode 100644 src/pages/PageNotFound.tsx rename src/pages/{Privacy.jsx => Privacy.tsx} (90%) rename src/pages/{Projects.jsx => Projects.tsx} (72%) rename src/pages/{Resources.jsx => Resources.tsx} (89%) rename src/pages/{Shipyard.jsx => Shipyard.tsx} (89%) delete mode 100644 src/pages/Team.jsx create mode 100644 src/pages/Team.tsx create mode 100644 src/react-lottie.d.ts create mode 100644 tsconfig.json diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..12ad330 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,14 @@ +import globals from "globals"; +import pluginJs from "@eslint/js"; +import tseslint from "typescript-eslint"; +import pluginReact from "eslint-plugin-react"; + + +export default [ + {files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]}, + {files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}}, + {languageOptions: { globals: globals.browser }}, + pluginJs.configs.recommended, + ...tseslint.configs.recommended, + pluginReact.configs.flat.recommended, +]; \ No newline at end of file diff --git a/index.html b/index.html index 9d4fc94..1a21edd 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,7 @@
- +