diff --git a/frontend/package.json b/frontend/package.json index 3a48c6d..6fcef92 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,6 +26,7 @@ "typescript": "^5.2.2", "vite": "^5.1.4", "vue-tsc": "^2.0.6", - "@tailwindcss/forms": "^0.5.7" + "@tailwindcss/forms": "^0.5.7", + "@types/axios": "^0.14.0" } } \ No newline at end of file diff --git a/frontend/src/types/index.d.ts b/frontend/src/types/index.d.ts index 03659da..9ea9c65 100644 --- a/frontend/src/types/index.d.ts +++ b/frontend/src/types/index.d.ts @@ -16,16 +16,33 @@ interface Employee { last_name: string department: string office: string + position: string created_at: string } interface Request { id: number - employee_id: number + employee: Employee department: string request_type: string - priority: string + priority: 'low' | 'medium' | 'high' | 'critical' description: string - status: string + status: 'new' | 'in_progress' | 'resolved' created_at: string +} + +interface Statistics { + new: number + inProgress: number + resolved: number +} + +interface EmployeeForm { + id: number | null + first_name: string + last_name: string + department: string + office: string + position: string + password: string } \ No newline at end of file diff --git a/frontend/src/views/AdminDashboardView.vue b/frontend/src/views/AdminDashboardView.vue index b443589..856df94 100644 --- a/frontend/src/views/AdminDashboardView.vue +++ b/frontend/src/views/AdminDashboardView.vue @@ -1,18 +1,18 @@ \ No newline at end of file