From 51e267daf966235bd5a4246e789f5fd134311828 Mon Sep 17 00:00:00 2001 From: karimaldeen Date: Sun, 29 Sep 2024 11:58:59 +0300 Subject: [PATCH] remove un nesasey data --- bundle-analysis.html | 4842 ------------------------ data.json | 4 +- package.json | 9 +- pnpm-lock.yaml | 184 - public/{Settting => Setting}/LOGO.png | Bin public/{ => Setting}/circle.png | Bin public/{ => Setting}/shape.svg | 0 src/App.tsx | 4 - src/components/Contact/Left.tsx | 2 +- src/components/SwiperScreenShoot.tsx | 2 +- src/components/layout/Footer.tsx | 4 +- src/components/layout/NavBar.tsx | 6 +- src/components/layout/NotFoundPage.tsx | 21 - src/design-system/FirstLoading.tsx | 2 +- src/pages/DownloadPage.tsx | 4 +- src/pages/FeaturesPage.tsx | 10 +- src/pages/HomePage.tsx | 6 +- src/pages/HowItWork.tsx | 16 +- src/pages/NotePage.tsx | 2 +- src/pages/VideoPage.tsx | 12 +- 20 files changed, 32 insertions(+), 5098 deletions(-) delete mode 100644 bundle-analysis.html rename public/{Settting => Setting}/LOGO.png (100%) rename public/{ => Setting}/circle.png (100%) rename public/{ => Setting}/shape.svg (100%) delete mode 100644 src/components/layout/NotFoundPage.tsx diff --git a/bundle-analysis.html b/bundle-analysis.html deleted file mode 100644 index 3a93c19..0000000 --- a/bundle-analysis.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - diff --git a/data.json b/data.json index e77e2c2..e5ebd54 100644 --- a/data.json +++ b/data.json @@ -194,7 +194,7 @@ "instagram":"/", "twitter":"/" }, - "Settting":{ - "Logo":"/LOGO.png" + "Setting":{ + "Logo":"/Setting/LOGO.png" } } \ No newline at end of file diff --git a/package.json b/package.json index 94bb205..d390def 100644 --- a/package.json +++ b/package.json @@ -11,21 +11,14 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.53.1", "antd": "^5.21.1", "axios": "^1.7.5", "formik": "^2.4.6", - "framer-motion": "^11.5.0", - "i18next": "^23.14.0", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-i18next": "^14.1.3", "react-icons": "^5.3.0", "react-player": "^2.16.0", - "react-router-dom": "^6.26.1", - "react-transition-group": "^4.4.5", - "swiper": "^11.1.14", - "zustand": "^4.5.5" + "swiper": "^11.1.14" }, "devDependencies": { "@types/node": "^22.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8aa5186..c2b8a92 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ importers: .: dependencies: - '@tanstack/react-query': - specifier: ^5.53.1 - version: 5.53.3(react@18.3.1) antd: specifier: ^5.21.1 version: 5.21.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -20,39 +17,21 @@ importers: formik: specifier: ^2.4.6 version: 2.4.6(react@18.3.1) - framer-motion: - specifier: ^11.5.0 - version: 11.5.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - i18next: - specifier: ^23.14.0 - version: 23.14.0 react: specifier: ^18.3.1 version: 18.3.1 react-dom: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) - react-i18next: - specifier: ^14.1.3 - version: 14.1.3(i18next@23.14.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-icons: specifier: ^5.3.0 version: 5.3.0(react@18.3.1) react-player: specifier: ^2.16.0 version: 2.16.0(react@18.3.1) - react-router-dom: - specifier: ^6.26.1 - version: 6.26.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react-transition-group: - specifier: ^4.4.5 - version: 4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) swiper: specifier: ^11.1.14 version: 11.1.14 - zustand: - specifier: ^4.5.5 - version: 4.5.5(@types/react@18.3.5)(react@18.3.1) devDependencies: '@types/node': specifier: ^22.5.1 @@ -486,10 +465,6 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' - '@remix-run/router@1.19.1': - resolution: {integrity: sha512-S45oynt/WH19bHbIXjtli6QmwNYvaz+vtnubvNpNDvUOoA/OWh6j1OikIP3G+v5GHdxyC6EXoChG3HgYGEUfcg==} - engines: {node: '>=14.0.0'} - '@rollup/rollup-android-arm-eabi@4.21.2': resolution: {integrity: sha512-fSuPrt0ZO8uXeS+xP3b+yYTCBUd05MoSp2N/MFOgjhhUhMmchXlpTQrTpI8T+YAwAQuK7MafsCOxW7VrPMrJcg==} cpu: [arm] @@ -570,14 +545,6 @@ packages: cpu: [x64] os: [win32] - '@tanstack/query-core@5.53.3': - resolution: {integrity: sha512-ZfjAgd7NpqDx0e4aYBt7EmS2enbulPrJwowTy+mayRE93WUUH+sIYHun1TdRjpGwDPMNNZ5D6goh7n3CwoO+HA==} - - '@tanstack/react-query@5.53.3': - resolution: {integrity: sha512-286mN/91CeM7vC6CZFLKYDHSw+WyMX6ekIvzoTbpM4xyPb99VSyCKPLyPgaOatKqYm6ooMBquSq9NGRdKgsJfg==} - peerDependencies: - react: ^18 || ^19 - '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -777,9 +744,6 @@ packages: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} - dom-helpers@5.2.1: - resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==} - dotenv-expand@5.1.0: resolution: {integrity: sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==} @@ -892,20 +856,6 @@ packages: peerDependencies: react: '>=16.8.0' - framer-motion@11.5.0: - resolution: {integrity: sha512-Br0sk5vVf4/dCwK+K7keLzE67ZSoQO7OeAVSQRY72mA4GEjPYJgedAaRzXHkq/ilB87Z1YiJLjhvk5+U4Kz8Yg==} - peerDependencies: - '@emotion/is-prop-valid': '*' - react: ^18.0.0 - react-dom: ^18.0.0 - peerDependenciesMeta: - '@emotion/is-prop-valid': - optional: true - react: - optional: true - react-dom: - optional: true - fs-extra@10.1.0: resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} engines: {node: '>=12'} @@ -963,12 +913,6 @@ packages: hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} - html-parse-stringify@3.0.1: - resolution: {integrity: sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==} - - i18next@23.14.0: - resolution: {integrity: sha512-Y5GL4OdA8IU2geRrt2+Uc1iIhsjICdHZzT9tNwQ3TVqdNzgxHToGCKf/TPRP80vTCAP6svg2WbbJL+Gx5MFQVA==} - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -1432,19 +1376,6 @@ packages: react-fast-compare@3.2.2: resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} - react-i18next@14.1.3: - resolution: {integrity: sha512-wZnpfunU6UIAiJ+bxwOiTmBOAaB14ha97MjOEnLGac2RJ+h/maIYXZuTHlmyqQVX1UVHmU1YDTQ5vxLmwfXTjw==} - peerDependencies: - i18next: '>= 23.2.3' - react: '>= 16.8.0' - react-dom: '*' - react-native: '*' - peerDependenciesMeta: - react-dom: - optional: true - react-native: - optional: true - react-icons@5.3.0: resolution: {integrity: sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg==} peerDependencies: @@ -1465,25 +1396,6 @@ packages: resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==} engines: {node: '>=0.10.0'} - react-router-dom@6.26.1: - resolution: {integrity: sha512-veut7m41S1fLql4pLhxeSW3jlqs+4MtjRLj0xvuCEXsxusJCbs6I8yn9BxzzDX2XDgafrccY6hwjmd/bL54tFw==} - engines: {node: '>=14.0.0'} - peerDependencies: - react: '>=16.8' - react-dom: '>=16.8' - - react-router@6.26.1: - resolution: {integrity: sha512-kIwJveZNwp7teQRI5QmwWo39A5bXRyqpH0COKKmPnyD2vBvDwgFXSqDUYtt1h+FEyfnE8eXr7oe0MxRzVwCcvQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - react: '>=16.8' - - react-transition-group@4.4.5: - resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==} - peerDependencies: - react: '>=16.6.0' - react-dom: '>=16.6.0' - react@18.3.1: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} @@ -1647,11 +1559,6 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - use-sync-external-store@1.2.2: - resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - vite-plugin-compression@0.5.1: resolution: {integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==} peerDependencies: @@ -1691,10 +1598,6 @@ packages: terser: optional: true - void-elements@3.1.0: - resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} - engines: {node: '>=0.10.0'} - which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -1730,21 +1633,6 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - zustand@4.5.5: - resolution: {integrity: sha512-+0PALYNJNgK6hldkgDq2vLrw5f6g/jCInz52n9RTpropGgeAf/ioFUCdtsjCqu4gNhW9D01rUQBROoRjdzyn2Q==} - engines: {node: '>=12.7.0'} - peerDependencies: - '@types/react': '>=16.8' - immer: '>=9.0.6' - react: '>=16.8' - peerDependenciesMeta: - '@types/react': - optional: true - immer: - optional: true - react: - optional: true - snapshots: '@ampproject/remapping@2.3.0': @@ -2137,8 +2025,6 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@remix-run/router@1.19.1': {} - '@rollup/rollup-android-arm-eabi@4.21.2': optional: true @@ -2187,13 +2073,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.21.2': optional: true - '@tanstack/query-core@5.53.3': {} - - '@tanstack/react-query@5.53.3(react@18.3.1)': - dependencies: - '@tanstack/query-core': 5.53.3 - react: 18.3.1 - '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.25.6 @@ -2459,11 +2338,6 @@ snapshots: dependencies: esutils: 2.0.3 - dom-helpers@5.2.1: - dependencies: - '@babel/runtime': 7.25.6 - csstype: 3.1.3 - dotenv-expand@5.1.0: {} dotenv@8.2.0: {} @@ -2623,13 +2497,6 @@ snapshots: tiny-warning: 1.0.3 tslib: 2.7.0 - framer-motion@11.5.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - tslib: 2.7.0 - optionalDependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - fs-extra@10.1.0: dependencies: graceful-fs: 4.2.11 @@ -2680,14 +2547,6 @@ snapshots: dependencies: react-is: 16.13.1 - html-parse-stringify@3.0.1: - dependencies: - void-elements: 3.1.0 - - i18next@23.14.0: - dependencies: - '@babel/runtime': 7.25.6 - ignore@5.3.2: {} immutable@4.3.7: {} @@ -3201,15 +3060,6 @@ snapshots: react-fast-compare@3.2.2: {} - react-i18next@14.1.3(i18next@23.14.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - '@babel/runtime': 7.25.6 - html-parse-stringify: 3.0.1 - i18next: 23.14.0 - react: 18.3.1 - optionalDependencies: - react-dom: 18.3.1(react@18.3.1) - react-icons@5.3.0(react@18.3.1): dependencies: react: 18.3.1 @@ -3229,27 +3079,6 @@ snapshots: react-refresh@0.14.2: {} - react-router-dom@6.26.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - '@remix-run/router': 1.19.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-router: 6.26.1(react@18.3.1) - - react-router@6.26.1(react@18.3.1): - dependencies: - '@remix-run/router': 1.19.1 - react: 18.3.1 - - react-transition-group@4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - '@babel/runtime': 7.25.6 - dom-helpers: 5.2.1 - loose-envify: 1.4.0 - prop-types: 15.8.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react@18.3.1: dependencies: loose-envify: 1.4.0 @@ -3397,10 +3226,6 @@ snapshots: dependencies: punycode: 2.3.1 - use-sync-external-store@1.2.2(react@18.3.1): - dependencies: - react: 18.3.1 - vite-plugin-compression@0.5.1(vite@5.4.2(@types/node@22.5.2)(sass@1.77.8)): dependencies: chalk: 4.1.2 @@ -3425,8 +3250,6 @@ snapshots: fsevents: 2.3.3 sass: 1.77.8 - void-elements@3.1.0: {} - which@2.0.2: dependencies: isexe: 2.0.0 @@ -3458,10 +3281,3 @@ snapshots: yargs-parser: 21.1.1 yocto-queue@0.1.0: {} - - zustand@4.5.5(@types/react@18.3.5)(react@18.3.1): - dependencies: - use-sync-external-store: 1.2.2(react@18.3.1) - optionalDependencies: - '@types/react': 18.3.5 - react: 18.3.1 diff --git a/public/Settting/LOGO.png b/public/Setting/LOGO.png similarity index 100% rename from public/Settting/LOGO.png rename to public/Setting/LOGO.png diff --git a/public/circle.png b/public/Setting/circle.png similarity index 100% rename from public/circle.png rename to public/Setting/circle.png diff --git a/public/shape.svg b/public/Setting/shape.svg similarity index 100% rename from public/shape.svg rename to public/Setting/shape.svg diff --git a/src/App.tsx b/src/App.tsx index 3c7c164..626d0b1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,14 +6,11 @@ import HowItWork from './pages/HowItWork'; import NotePage from './pages/NotePage'; import ScreenShoot from './pages/ScreenShoot'; import VideoPage from './pages/VideoPage'; -import ProviderContainer from './ProviderContainer'; import ContactPage from './pages/ContactPage'; import './styles/App/index.scss'; const App = () => { return ( - - {/* */} @@ -24,7 +21,6 @@ const App = () => { - ); }; diff --git a/src/components/Contact/Left.tsx b/src/components/Contact/Left.tsx index 4d33cb5..1fde5f9 100644 --- a/src/components/Contact/Left.tsx +++ b/src/components/Contact/Left.tsx @@ -14,7 +14,7 @@ const Left = () => { return (
- +
{item[1].title}

{item[1].value}

diff --git a/src/components/SwiperScreenShoot.tsx b/src/components/SwiperScreenShoot.tsx index d333676..40ddc7c 100644 --- a/src/components/SwiperScreenShoot.tsx +++ b/src/components/SwiperScreenShoot.tsx @@ -59,7 +59,7 @@ const SwipeScreenShoot = () => { return ( - {`Screenshot + {`Screenshot ) })} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 1bb0dcc..e56adfd 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,6 +1,6 @@ import { Input } from "antd"; import { FaFacebook, FaInstagram, FaTelegram, FaTwitter } from "react-icons/fa"; -import {Footer as FooterData,Links} from '../../../data.json' +import {Footer as FooterData,Links,Setting} from '../../../data.json' const Footer = () => { const handleClick = (href:string)=>{ @@ -8,7 +8,7 @@ const Footer = () => { } return (
- logo + logo
handleClick(Links.telegram)}/> handleClick(Links.facebook)} /> diff --git a/src/components/layout/NavBar.tsx b/src/components/layout/NavBar.tsx index 2afb75b..23fbdef 100644 --- a/src/components/layout/NavBar.tsx +++ b/src/components/layout/NavBar.tsx @@ -1,11 +1,10 @@ // NavBar.tsx import React, { useState } from 'react'; import { RoutesEnums } from '../../enums/RoutesEnums'; -import { useTranslation } from 'react-i18next'; import { MdLanguage } from "react-icons/md"; import { FaEllipsis } from 'react-icons/fa6'; import { Popover } from 'antd'; -import {navBar as navBarData,Settting} from '../../../data.json' +import {navBar as navBarData,Setting} from '../../../data.json' // Define an enum for the routes @@ -17,7 +16,6 @@ interface NavLink { const NavBar: React.FC = () => { // Define an array of link objects using the RoutesEnums - const [t] = useTranslation() const links: NavLink[] = [ { path: RoutesEnums.HOME, label: navBarData.link1 }, { path: RoutesEnums.FEATURES, label: navBarData.link2 }, @@ -54,7 +52,7 @@ const NavBarContent = ( return (
diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 40875d5..c4273fb 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -34,9 +34,9 @@ const HomePage = () => {
- - - + + + ) } diff --git a/src/pages/HowItWork.tsx b/src/pages/HowItWork.tsx index 41d4275..19e9c12 100644 --- a/src/pages/HowItWork.tsx +++ b/src/pages/HowItWork.tsx @@ -1,10 +1,8 @@ import React from 'react' -import { useTranslation } from 'react-i18next' import {HowItWork as HowItWorkData} from '../../data.json' const HowItWork = () => { - const [t] = useTranslation() return (
@@ -17,31 +15,31 @@ const HowItWork = () => { {Object.entries(HowItWorkData.Data).slice(0,2).map((item, index) => { return (
- {`${index}`} + {`${index}`}

- {t(item[1].title)} + {item[1].title}

- {t(item[1].description)} + {item[1].description}

) })} - + {Object.entries(HowItWorkData.Data).slice(2,4).map((item, index) => { return (
- {`${item[1].img}`} + {`${item[1].img}`}

- {t(item[1].title)} + {item[1].title}

- {t(item[1].description)} + {item[1].description}

diff --git a/src/pages/NotePage.tsx b/src/pages/NotePage.tsx index 08c5474..7956648 100644 --- a/src/pages/NotePage.tsx +++ b/src/pages/NotePage.tsx @@ -20,7 +20,7 @@ const NotePage = () => {
- +
{item[1].name}
diff --git a/src/pages/VideoPage.tsx b/src/pages/VideoPage.tsx index 464d01c..1c6f0c3 100644 --- a/src/pages/VideoPage.tsx +++ b/src/pages/VideoPage.tsx @@ -1,10 +1,8 @@ import React, { useState } from 'react'; -import { useTranslation } from 'react-i18next'; import {VideoPage as VideoPageData} from '../../data.json' const VideoPage = () => { const [isPlaying, setIsPlaying] = useState(false); - const [t] = useTranslation(); const handlePlayPause = () => { @@ -14,23 +12,23 @@ const VideoPage = () => { return (
- +

{VideoPageData.title}

{VideoPageData.description}

- +
{Object.entries(VideoPageData.Data).map((item, index) => (
- {`${index}`} + {`${index}`} -

{t(item[1].number)}

-

{t(item[1].title)}

+

{item[1].number}

+

{item[1].title}

))}