- Implemented a new Player class in player.js to handle audio playback, including HLS support using hls.js. - Created a shared API module in api.js for making HTTP requests with proper error handling. - Added DOM utility functions in dom.js for creating and clearing elements. - Introduced WebSocket connection handling in ws.js for real-time updates. - Developed a comprehensive CSS stylesheet for styling the application, including a high-contrast theme.
8 lines
254 B
JavaScript
8 lines
254 B
JavaScript
// Standalone seed runner: `npm run seed`
|
|
import 'dotenv/config';
|
|
import { initDb } from '../db/index.js';
|
|
import { applySeedIfEmpty } from '../sources/seed.js';
|
|
|
|
initDb(process.env.DB_PATH || './data/db/oradio.sqlite');
|
|
console.log(applySeedIfEmpty());
|