botserver/web/desktop/dashboard/components/overview.js
Rodrigo Rodriguez (Pragmatismo) b9395cb0d7 feat(desktop): add new navigation links to index.html
Added new navigation links for Dashboard, Editor, Player, Paper, Settings, Tables, and News sections. Each link includes click handlers to switch sections and active state styling. This expands the application's navigation options for better user access to different features.
2025-11-15 19:52:24 -03:00

28 lines
778 B
JavaScript

// Overview component
class Overview {
constructor() {
this.element = document.createElement('div');
this.element.className = 'overview-chart';
this.render();
}
render() {
this.element.innerHTML = `
<div class="chart-container">
<div class="flex justify-between items-end h-40">
${[100, 80, 60, 40, 20].map((h, i) => `
<div class="chart-bar"
style="height:${h}px;background-color:hsl(var(--chart-${(i%5)+1}))">
</div>
`).join('')}
</div>
</div>
`;
}
}
// Initialize and mount the component
document.addEventListener('DOMContentLoaded', () => {
const overview = new Overview();
document.querySelector('.overview-chart').replaceWith(overview.element);
});