diff --git a/.gitignore b/.gitignore index c3ef214..b2266ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Backend +node_modules/ + # MkDocs /.cache/ /site/ \ No newline at end of file diff --git a/backend/workstations/data/linux/ubuntu/25.10.yaml b/backend/workstations/data/linux/ubuntu/25.10.yaml new file mode 100644 index 0000000..5fc597e --- /dev/null +++ b/backend/workstations/data/linux/ubuntu/25.10.yaml @@ -0,0 +1,11 @@ +added: "2026-08-22" +architectures: + - bitness: 64 + cpu: x86 + endianness: LE +family: Linux +name: Questing Quokka +origin: 🇬🇧 +os: Ubuntu +version: "25.10" +year: 2025 \ No newline at end of file diff --git a/backend/workstations/package-lock.json b/backend/workstations/package-lock.json new file mode 100644 index 0000000..4fe5c1a --- /dev/null +++ b/backend/workstations/package-lock.json @@ -0,0 +1,40 @@ +{ + "name": "workstations", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "js-yaml": "5.4.1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/js-yaml": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.4.1.tgz", + "integrity": "sha512-28R/k+NAjeuf7+CKlTxWZVExJGwVVLwY06DgEnOMz2gEpfNkDcD7QvyiVPT0xy0XXhU8vHsd4Ot42OOPdJG7dQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.mjs" + } + } + } +} diff --git a/backend/workstations/package.json b/backend/workstations/package.json new file mode 100644 index 0000000..c20da3a --- /dev/null +++ b/backend/workstations/package.json @@ -0,0 +1,7 @@ +{ + "dependencies": { + "js-yaml": "5.4.1" + }, + "private": true, + "type": "module" +} diff --git a/backend/workstations/workstations.js b/backend/workstations/workstations.js new file mode 100644 index 0000000..d98cc67 --- /dev/null +++ b/backend/workstations/workstations.js @@ -0,0 +1,30 @@ +import http from 'node:http'; + +const PORT = 50000; +const server = http.createServer(onRequest); + +let isShuttingDown = false; + +process.on('SIGINT', shutdown); +process.on('SIGTERM', shutdown); + +server.listen(PORT); +console.log('Started server') +console.log(`Listening on port ${PORT}`); + +function onRequest(_request, response) { + response.setHeader('Content-Type', 'application/json'); + response.end(JSON.stringify({})); +} + +function onServerClose() { + console.log('Server shutdown'); +} + +function shutdown() { + if (isShuttingDown) return; + + console.log('Shutting down server'); + isShuttingDown = true; + server.close(onServerClose); +} \ No newline at end of file diff --git a/frontend/shell/index.html b/frontend/shell/app-shell.html similarity index 99% rename from frontend/shell/index.html rename to frontend/shell/app-shell.html index 0c41e17..b33963a 100644 --- a/frontend/shell/index.html +++ b/frontend/shell/app-shell.html @@ -23,8 +23,8 @@