From aefb2a86de255f67947ae89f515d47f1a256c013 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:24:48 +0330 Subject: [PATCH] Import source: app/src/main Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- app/src/main.jsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/src/main.jsx diff --git a/app/src/main.jsx b/app/src/main.jsx new file mode 100644 index 0000000..189f92d --- /dev/null +++ b/app/src/main.jsx @@ -0,0 +1,21 @@ +// Vite entry — imports global CSS (with @font-face) and the app root. +import './styles/global.css'; +import '../teknav-app.jsx'; + +// Dismiss the splash loader once React has painted its first content. +queueMicrotask(() => { + const root = document.getElementById('root'); + if (!root) return; + if (root.children.length > 0) { + window.__doneLoading?.(); + return; + } + const obs = new MutationObserver(() => { + if (root.children.length > 0) { + window.__doneLoading?.(); + obs.disconnect(); + } + }); + obs.observe(root, { childList: true, subtree: true }); + setTimeout(() => { window.__doneLoading?.(); obs.disconnect(); }, 3500); +});