Add API documentation and underground station importer
- Introduced a new HTML documentation page for the oradio API, including a JavaScript file to handle dynamic content and API requests. - Added a CSS file for styling the documentation page. - Implemented an underground station importer script that fetches data from Radio-Browser and writes it to a JSON file. - Created a stats module to compute and manage vote and play statistics for radio stations. - Added a polyfill for modulepreload to ensure compatibility with older browsers.
This commit is contained in:
24
server/public/docs/index.html
Normal file
24
server/public/docs/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>oradio · API reference</title>
|
||||
|
||||
<script type="module" crossorigin src="/assets/docs-CJfnRuXm.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/docs-z3ZiwvpP.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="docs-header">
|
||||
<div class="docs-header-inner">
|
||||
<a href="/" class="back">← Kiosk</a>
|
||||
<h1>oradio API</h1>
|
||||
<span class="base" id="base"></span>
|
||||
</div>
|
||||
</header>
|
||||
<main id="app"></main>
|
||||
|
||||
</body>
|
||||
Reference in New Issue
Block a user