mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-05 20:31:54 +00:00
feat: add pagination to dashboard and fix mjs mime type
- Implemented client-side pagination in `dashboard/index.html` (20 items per page). - Added pagination controls and CSS utilities in `dashboard/styles.css`. - Fixed `src/dashboard.mjs` to serve `.mjs` files with `text/javascript` MIME type. - Verified `npx torch-lock init` functionality (no changes needed to landing page). Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
24ee371b6a
commit
41f3775ea9
3 files changed
+161
-6
No files matched your search
@@ -68,6 +68,7 @@ export async function cmdDashboard(port = DEFAULT_DASHBOARD_PORT) {
|
||||
switch (extname) {
|
||||
case '.html': contentType = 'text/html'; break;
|
||||
case '.js': contentType = 'text/javascript'; break;
|
||||
case '.mjs': contentType = 'text/javascript'; break;
|
||||
case '.css': contentType = 'text/css'; break;
|
||||
case '.json': contentType = 'application/json'; break;
|
||||
case '.png': contentType = 'image/png'; break;
|
||||
|
||||
Reference in new issue
Block a user