node modules hatası ve ROUTES_ENUM

This commit is contained in:
Sedat ÖZTÜRK 2025-09-18 10:24:36 +03:00
parent 6ae74813e0
commit 70b3469494
4 changed files with 1676 additions and 628 deletions

View file

@ -82,7 +82,7 @@ define(['./workbox-a959eb95'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "/index.html",
"revision": "0.ubgloq1q818"
"revision": "0.v5arcquq4lo"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("/index.html"), {

2257
ui/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -39,7 +39,7 @@ import { mockDepartments } from '@/mocks/mockDepartments'
const EmployeeList: React.FC = () => {
const [searchTerm, setSearchTerm] = useState('')
const [filterStatus, setFilterStatus] = useState('all')
const [filterDepartment, setFilterDepartment] = useState('')
const [filterDepartment, setFilterDepartment] = useState('all')
const [showFilters, setShowFilters] = useState(false)
const [viewMode, setViewMode] = useState<'list' | 'cards'>('list')
@ -82,7 +82,7 @@ const EmployeeList: React.FC = () => {
const handleEditFromView = (employee: HrEmployee) => {
setIsViewModalOpen(false)
// Navigate to edit page - you can replace this with a modal if preferred
window.location.href = ROUTES_ENUM.protected.hr.employeesEdit.replace('::id', employee.id)
window.location.href = ROUTES_ENUM.protected.hr.employeesEdit.replace(':id', employee.id)
}
if (isLoading) {
@ -222,7 +222,7 @@ const EmployeeList: React.FC = () => {
>
<option value="all">Tümü</option>
{mockDepartments.map((dept) => (
<option key={dept.id} value={dept.id}>
<option key={dept.id} value={dept.code}>
{dept.name}
</option>
))}
@ -286,10 +286,6 @@ const EmployeeList: React.FC = () => {
{/* Employees Display */}
{viewMode === 'list' ? (
<div className="bg-white rounded-lg shadow-sm border border-gray-200 text-xs">
<div className="px-3 py-2 border-b border-gray-200">
<h2 className="text-xl font-bold text-gray-900">Personel Listesi</h2>
</div>
<div className="overflow-x-auto">
<table className="w-full">
<thead className="bg-gray-50">
@ -420,22 +416,12 @@ const EmployeeList: React.FC = () => {
</button>
<Link
to={ROUTES_ENUM.protected.hr.employeesEdit.replace('::id', employee.id)}
to={ROUTES_ENUM.protected.hr.employeesEdit.replace(':id', employee.id)}
className="p-1 text-gray-600 hover:text-yellow-600 hover:bg-yellow-50 rounded-lg transition-colors"
title="Düzenle"
>
<FaEdit size={16} />
</Link>
<button
onClick={() =>
alert('Performans değerlendirme özelliği yakında eklenecek')
}
className="p-1 text-gray-600 hover:text-green-600 hover:bg-green-50 rounded-lg transition-colors"
title="Performans Değerlendirmesi"
>
<FaAward size={16} />
</button>
</div>
</td>
</tr>
@ -539,7 +525,7 @@ const EmployeeList: React.FC = () => {
<FaEye className="w-4 h-4" />
</button>
<Link
to={ROUTES_ENUM.protected.hr.employeesEdit.replace('::id', employee.id)}
to={ROUTES_ENUM.protected.hr.employeesEdit.replace(':id', employee.id)}
className="p-1 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors"
title="Düzenle"
>
@ -557,23 +543,6 @@ const EmployeeList: React.FC = () => {
))}
</div>
)}
{(!employees || employees.length === 0) && (
<div className="text-center py-12">
<FaUsers className="mx-auto h-10 w-10 text-gray-400" />
<h3 className="mt-2 text-xs font-medium text-gray-900">Personel bulunamadı</h3>
<p className="mt-1 text-xs text-gray-500">Yeni personel ekleyerek başlayın.</p>
<div className="mt-6">
<Link
to={ROUTES_ENUM.protected.hr.employeesNew}
className="inline-flex items-center px-3 py-1.5 text-sm bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"
>
<FaPlus size={16} className="mr-2" />
Yeni Personel Ekle
</Link>
</div>
</div>
)}
</div>
{/* Employee View Modal */}

View file

@ -366,7 +366,7 @@ const WarehouseList: React.FC = () => {
<div className="flex items-center justify-end space-x-2">
<Link
to={ROUTES_ENUM.protected.warehouse.warehouseDetail.replace(
'::id',
':id',
warehouse.id,
)}
className="p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors"
@ -377,7 +377,7 @@ const WarehouseList: React.FC = () => {
<Link
to={ROUTES_ENUM.protected.warehouse.warehouseEdit.replace(
'::id',
':id',
warehouse.id,
)}
className="p-2 text-gray-600 hover:text-yellow-600 hover:bg-yellow-50 rounded-lg transition-colors"