Rewrite frontend as single self-contained HTML file — all CSS/JS inline, no external files to fail loading

This commit is contained in:
2026-05-13 17:24:10 +02:00
parent 3432d362e2
commit ddb0f88257
116 changed files with 4240 additions and 921 deletions

37
dist/server/index.js vendored Normal file
View File

@@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("dotenv/config");
const app_1 = require("./app");
const jobManager_1 = require("./services/jobManager");
const db_1 = require("./db");
const PORT = parseInt(process.env.SERVER_PORT || '3000', 10);
const USERNAME = process.env.SERVER_USERNAME || 'admin';
const PASSWORD = process.env.SERVER_PASSWORD || 'aidio2024';
// Initialize database
(0, db_1.getDb)();
// Create job manager
const jobManager = new jobManager_1.JobManager();
// Create app
const app = (0, app_1.createApp)(jobManager);
app.listen(PORT, () => {
console.log(`
╔══════════════════════════════════════════════════════╗
║ Audio Description Server v1.0 ║
║ http://localhost:${PORT}
║ ║
║ Username: ${USERNAME.padEnd(41)}
║ Password: ${PASSWORD.padEnd(41)}
╚══════════════════════════════════════════════════════╝
`);
});
// Graceful shutdown
process.on('SIGINT', () => {
console.log('\nShutting down...');
(0, db_1.closeDb)();
process.exit(0);
});
process.on('SIGTERM', () => {
(0, db_1.closeDb)();
process.exit(0);
});
//# sourceMappingURL=index.js.map