(Feat): Initial Commit

This commit is contained in:
2025-11-27 22:50:08 +00:00
commit 00f9ed128b
79 changed files with 17413 additions and 0 deletions

58
src/types.ts Normal file
View File

@@ -0,0 +1,58 @@
export interface Employee {
id: string;
name: string;
dept: string;
sub: string;
activity: string;
status: 'Present' | 'Absent';
in: string;
out: string;
remark: string;
}
export interface Contractor {
id: string;
name: string;
role: string;
employees: Employee[];
}
export interface Supervisor {
id: string;
name: string;
role: string;
dept: string;
contractors: Contractor[];
}
export interface User {
id: number;
username: string;
name: string;
role: string;
dept: string;
status: string;
}
export interface Allocation {
id: number;
empId: number;
employee: string;
contractor: string;
activity: string;
date: string;
totalQty: number;
completed: number;
remaining: number;
rate: number;
amount: number;
paid: number;
status: string;
}
export interface ChartData {
name: string;
value: number;
color?: string;
fill?: string;
}