Mining/ui/src/app/app.ts
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

26 lines
741 B
TypeScript

import { Component, ViewEncapsulation, inject, signal } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MinerService } from './miner.service';
import { SetupWizardComponent } from './setup-wizard.component';
import { MainLayoutComponent } from './layouts/main-layout.component';
@Component({
selector: 'snider-mining',
standalone: true,
imports: [
CommonModule,
SetupWizardComponent,
MainLayoutComponent,
],
templateUrl: './app.html',
styleUrls: ['./app.css'],
encapsulation: ViewEncapsulation.ShadowDom
})
export class SniderMining {
minerService = inject(MinerService);
state = this.minerService.state;
forceRefreshState() {
this.minerService.forceRefreshState();
}
}