Chit chat
Summary by Bito
This pull request adds three HTML pages with embedded JavaScript demonstrating legacy web development anti-patterns and introduces a new backend API endpoint for statistics calculation.
Detailed Changes
- Introduces security vulnerabilities by using eval() and innerHTML in JavaScript code, potentially enabling cross-site scripting (XSS) attacks in index.html, dashboard.html, and report.html.
- Adds deprecated HTML elements like and invalid markup structures, including unclosed tags and improper nesting, across all HTML files.
- Duplicates element IDs (e.g., 'intro', 'user-name') between pages, which can cause JavaScript selection failures and accessibility issues.
- Adds a new /api/stats endpoint in server.js that computes and returns statistics data based on metrics series.
- Exports the buildSeries function in services/metricsService.js to enable its use in the new stats API.
Edited by KUNAL KUMAR