feat: initial romm web ui architecture, bento grids, and spatial gamepad bindings

This commit is contained in:
roormonger
2026-03-23 15:31:41 -04:00
commit 9e8f148a10
40 changed files with 9935 additions and 0 deletions

13
get_schema.cjs Normal file
View File

@@ -0,0 +1,13 @@
const fs = require('fs');
const content = fs.readFileSync('romm_swagger.json');
try {
let jsonString = content.toString('utf16le');
if (jsonString.charCodeAt(0) === 0xFEFF) { jsonString = jsonString.slice(1); }
const parsed = JSON.parse(jsonString);
const paths = Object.keys(parsed.paths).filter(p => p.includes('avatar') || p.includes('asset'));
console.log(paths.join('\n'));
} catch (e) {
const parsed = JSON.parse(content.toString('utf8'));
const paths = Object.keys(parsed.paths).filter(p => p.includes('avatar') || p.includes('asset'));
console.log(paths.join('\n'));
}