From ec53ed537d9311fa623e3efb5aa3a230ae7359eb Mon Sep 17 00:00:00 2001 From: Samar Sheikh Date: Thu, 10 Jul 2025 13:38:05 +0530 Subject: [PATCH 1/4] Migrate from React to vanilla JS and HTML Replaces React entry point with a vanilla JS main file, adds new JS component and state management modules, and updates Vite and package configuration to remove React dependencies. Includes a detailed migration guide and updates the HTML entry point to use the new JS structure. --- index.html | 2 +- package-lock.json | 4453 ++++++++++++++++++++++++++++++++++++ package.json | 6 - src/js/components/app.js | 250 ++ src/js/components/base.js | 73 + src/js/components/flash.js | 374 +++ src/js/state.js | 40 + src/main.js | 23 + src/utils/image.js | 13 - vite.config.js | 3 +- 10 files changed, 5215 insertions(+), 22 deletions(-) create mode 100644 package-lock.json create mode 100644 src/js/components/app.js create mode 100644 src/js/components/base.js create mode 100644 src/js/components/flash.js create mode 100644 src/js/state.js create mode 100644 src/main.js diff --git a/index.html b/index.html index 33a000a3..890de811 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@
- + +