feat: Implemented emulator installation

feat: Updated romm API version
feat: Updated es-de rules
feat: Added tabs to game details
refactor: returned to global query definitions to help with typescript performance
This commit is contained in:
Simeon Radivoev 2026-03-22 01:11:21 +02:00
parent cf6fff6fac
commit 3750e9ed8f
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
103 changed files with 4888 additions and 1632 deletions

View file

@ -8,7 +8,7 @@ import staticPlugin from "@elysiajs/static";
export function RunBunServer ()
{
console.log("Launching Server on port ", SERVER_PORT);
return new Elysia()
const server = new Elysia()
.use(cors())
.headers({
'cross-origin-embedder-policy': 'credentialless',
@ -28,33 +28,11 @@ export function RunBunServer ()
assets: appPath("./dist"),
prefix: "/",
alwaysStatic: true
})).listen({ port: SERVER_PORT, hostname: host, development: true }, console.log);
/*return Bun.serve({
port: SERVER_PORT,
hostname: host,
routes: {
"/": Bun.file(appPath("./dist/index.html")),
// Serve a file by lazily loading it into memory
"/favicon.ico": Bun.file(appPath("./dist/favicon.ico")),
"/emulatorjs/": Bun.file(appPath("./dist/emulatorjs/index.html")),
"/.well-known/appspecific/com.chrome.devtools.json": new Response(
JSON.stringify({
name: appInfo.name,
version: appInfo.version,
debuggable: true,
}),
{
headers: {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
},
}
)
},
fetch: async (req) =>
{
const url = new URL(req.url);
return new Response(Bun.file(appPath(`./${path.join('dist', url.pathname)}`)));
},
});*/
}));
return new Promise<typeof server>((resolve) =>
{
server.onStart(() => resolve(server))
.listen({ port: SERVER_PORT, hostname: host, development: true }, console.log);
});
}