fix: Fixed romm login, now uses token

feat: Moved romm to internal plugin
fix: Made focusing and navigation more reliable
fix: Loading errors on first time launch
This commit is contained in:
Simeon Radivoev 2026-03-28 17:32:51 +02:00
parent 7c10f4e4c2
commit 816d50ae4d
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
81 changed files with 1659 additions and 1097 deletions

View file

@ -3,7 +3,6 @@ import { host } from "./utils/host";
import { appPath } from "./utils";
import Elysia from "elysia";
import cors from "@elysiajs/cors";
import staticPlugin from "@elysiajs/static";
export function RunBunServer ()
{
@ -23,16 +22,13 @@ export function RunBunServer ()
{
return Bun.file(appPath('./dist/emulatorjs/index.html'));
})
.use(staticPlugin({
indexHTML: false,
assets: appPath("./dist"),
prefix: "/",
alwaysStatic: true
}));
.get("/*", ({ params }) => Bun.file(appPath(`./dist/${params["*"]}`)));
return new Promise<typeof server>((resolve) =>
{
server.onStart(() => resolve(server))
.listen({ port: SERVER_PORT, hostname: host, development: true }, console.log);
server.listen({ port: SERVER_PORT, hostname: host, development: true }, async ({ hostname, port }) =>
{
resolve(server);
});
});
}