From a3a2bd255b3006481b068fab51d44c96b62f88ca Mon Sep 17 00:00:00 2001 From: mphstar Date: Sat, 22 Feb 2025 15:16:09 +0700 Subject: [PATCH] refactor code detection + classification --- src/App.tsx | 33 +++--- src/components/organisms/HeaderPage.tsx | 4 +- src/helper/DetectionHelper.ts | 58 ++++++++++ src/helper/MediapipeHelper.ts | 93 +++++++++++++++ src/pages/Home.tsx | 147 +++++++----------------- src/pages/Kuis.tsx | 24 ++++ src/routes/routes.ts | 26 +++++ tailwind.config.js | 2 +- 8 files changed, 257 insertions(+), 130 deletions(-) create mode 100644 src/helper/DetectionHelper.ts create mode 100644 src/helper/MediapipeHelper.ts create mode 100644 src/pages/Kuis.tsx diff --git a/src/App.tsx b/src/App.tsx index 095b086..2788055 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,29 +1,22 @@ -import { lazy, Suspense } from "react"; +import { Suspense } from "react"; import { Route, Routes } from "react-router-dom"; -import Kamus from "./pages/Kamus"; - -const Home = lazy(() => import("@/pages/Home")); +import myRoute from "./routes/routes"; const App = () => { return ( - Loading...}> - - - } - /> - Loading...}> - - - } - /> + {myRoute.map((route, index) => ( + Loading...}> + + + } + /> + ))} ); diff --git a/src/components/organisms/HeaderPage.tsx b/src/components/organisms/HeaderPage.tsx index a0bbc71..e3935c9 100644 --- a/src/components/organisms/HeaderPage.tsx +++ b/src/components/organisms/HeaderPage.tsx @@ -17,7 +17,7 @@ const HeaderPage = () => { />

K-SULI

-

Kedai Susu Tuli

+

Kedai Susu Tuli