import { FeedSackLogEntry } from '../types'; export const initialFeedSackHistory: FeedSackLogEntry[] = (() => { const entries: FeedSackLogEntry[] = []; const cameraOptions = [ { cameraName: 'kandang_1_karung_masuk-check_pintu', type: 'inbound' as const, location: 'Kandang 1', }, { cameraName: 'kandang_1_karung_pakan', type: 'usage' as const, location: 'Kandang 1' }, { cameraName: 'kandang_2_karung_pakan', type: 'usage' as const, location: 'Kandang 2' }, { cameraName: 'kandang_1_karung_keluar', type: 'outbound' as const, location: 'Kandang 1' }, ]; for (let i = 0; i < 50; i++) { const date = new Date(); date.setDate(date.getDate() - Math.floor(i / 7)); date.setHours(date.getHours() - Math.floor(Math.random() * 24)); date.setMinutes(date.getMinutes() - Math.floor(Math.random() * 60)); const camIndex = Math.floor(Math.random() * cameraOptions.length); const cam = cameraOptions[camIndex]!; entries.push({ id: `log-${i}`, type: cam.type, location: cam.location, cameraName: cam.cameraName, count: Math.floor(Math.random() * 10) + 1, timestamp: date, }); } return entries; })();