feat: implemented a basic store and emulatorjs

This commit is contained in:
Simeon Radivoev 2026-03-14 02:15:57 +02:00
parent 2f32cbc730
commit 7286541822
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
121 changed files with 5900 additions and 1092 deletions

View file

@ -15,6 +15,8 @@ import "./scripts/gamepads";
import "./scripts/windowEvents";
import { client as rommClient } from "../clients/romm/client.gen";
import "./scripts/spatialNavigation";
import NotFound from "./components/NotFound";
import Error from "./components/Error";
const hashHistory = createHashHistory({});
@ -38,15 +40,9 @@ export const Router = createRouter({
defaultPreload: "intent",
context: { queryClient },
scrollRestoration: false,
defaultNotFoundComponent: () =>
{
return (
<div>
<p> {window.location.href} Not found!</p>
<Link to="/">Go home</Link>
</div>
);
},
defaultNotFoundComponent: NotFound,
defaultPendingMs: 300,
defaultErrorComponent: Error
});
// Register things for typesafety