|
|
@@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common';
|
|
|
import { LocalHistoryService } from '../../services/local-history.service';
|
|
|
import { RemoteInferenceService } from '../../core/services/remote-inference.service';
|
|
|
import { SurveillanceService } from '../../services/surveillance.service';
|
|
|
+import { environment } from '../../../environments/environment';
|
|
|
|
|
|
const GRADE_COLORS: Record<string, string> = {
|
|
|
'Empty_Bunch': '#6C757D', 'Underripe': '#F9A825', 'Abnormal': '#DC3545',
|
|
|
@@ -60,7 +61,7 @@ export class HistoryComponent implements OnInit {
|
|
|
timestamp: new Date(record.created_at).toLocaleString(),
|
|
|
engine: 'API AI',
|
|
|
isNormalized: false,
|
|
|
- imageData: `http://localhost:3000/palm-oil/archive/${record.archive_id}`
|
|
|
+ imageData: `${environment.apiUrl}/palm-oil/archive/${record.archive_id}`
|
|
|
}));
|
|
|
this.batchGroups = this.groupByBatch(this.remoteHistoryRecords);
|
|
|
this.loading = false;
|