Mining/ui/src/app/chart.component.html
snider f10e7a16e2 feat: Add stdin console commands, SQLite persistence, and P2P enhancements
- Add stdin pipe support for sending console commands to running miners (XMRig/TT-Miner)
- Add base64 encoding for log transport to preserve ANSI escape codes
- Add SQLite database for persistent hashrate history storage
- Enhance P2P worker to handle remote miner commands (start/stop/stats/logs)
- Add console UI page with ANSI-to-HTML rendering and command input
- Add E2E tests for navigation, UI elements, and miner start flow
- Update Dockerfile to use Go 1.24 with GOTOOLCHAIN=auto

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 23:30:19 +00:00

24 lines
743 B
HTML

<div class="chart-container">
<div class="chart-header">
<h3 class="chart-title">Hashrate History</h3>
<div class="time-range-selector">
@for (range of minerService.timeRanges; track range.minutes) {
<button
class="time-range-btn"
[class.active]="minerService.selectedTimeRange() === range.minutes"
(click)="minerService.setTimeRange(range.minutes)">
{{ range.label }}
</button>
}
</div>
</div>
<highcharts-chart
class="hashrate-chart"
[Highcharts]="Highcharts"
[constructorType]="chartConstructor"
[options]="chartOptions"
[update]="updateFlag"
[oneToOne]="true"
[callbackFunction]="chartCallback"
></highcharts-chart>
</div>