Initial commit: buildfor_life_repair inventory system

SvelteKit + PostgreSQL app for tracking vintage computers, audio equipment,
components, and installation history. Features device/component CRUD, operation
logs, QR code labels, global search, image uploads, and dark mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 17:11:05 +07:00
commit 6f0e0ad6c6
64 changed files with 8996 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
export const DEVICE_CATEGORIES = ['Computer', 'Audio Equipment', 'Peripheral', 'Other'] as const;
export const DEVICE_CONDITIONS = [
'Working',
'In Repair',
'Waiting for Repair',
'Waiting to be Tested',
'Unrepairable'
] as const;
export const COMPONENT_CONDITIONS = ['Working', 'Faulty', 'Unknown', 'Refurbished'] as const;
export const COMPONENT_TYPES = [
'Logic Board',
'RAM',
'HDD',
'SSD',
'CPU',
'GPU',
'PSU',
'ROM',
'BlueSCSI',
'SCSI2SD',
'Network Card',
'Sound Card',
'Video Card',
'Floppy Drive',
'CD/DVD Drive',
'Belt',
'Head',
'Motor',
'Capacitor Kit',
'Battery',
'Cable/Adapter',
'Other'
] as const;
export const INSTALLATION_ACTIONS = ['installed', 'removed', 'swapped'] as const;
export const DEVICE_LOG_TYPES = [
'repair',
'inspection',
'cleaning',
'modification',
'diagnostic',
'recap',
'other'
] as const;
export type DeviceLogType = (typeof DEVICE_LOG_TYPES)[number];
export const VOLTAGE_OPTIONS = ['110V', '115V', '120V', '127V', '220V', '230V', '240V', 'DC powered'] as const;
export const FREQUENCY_OPTIONS = ['50Hz', '60Hz', '50/60Hz'] as const;
export type DeviceCategory = (typeof DEVICE_CATEGORIES)[number];
export type DeviceCondition = (typeof DEVICE_CONDITIONS)[number];
export type ComponentCondition = (typeof COMPONENT_CONDITIONS)[number];
export type ComponentType = (typeof COMPONENT_TYPES)[number];
export type InstallationAction = (typeof INSTALLATION_ACTIONS)[number];