Intranet için gerekli klasör düzenlemeleri
This commit is contained in:
parent
06658a1559
commit
2a1b1740ac
27 changed files with 54 additions and 71 deletions
|
|
@ -1,12 +1,11 @@
|
|||
using System;
|
||||
using Kurs.Platform.AiBots;
|
||||
using Kurs.Platform.Entities;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Volo.Abp.Application.Services;
|
||||
using Volo.Abp.Domain.Repositories;
|
||||
|
||||
namespace Kurs.Platform.DataSources;
|
||||
namespace Kurs.Platform.AiBots;
|
||||
|
||||
[Authorize]
|
||||
public class AiBotAppService : CrudAppService<
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
using AutoMapper;
|
||||
using Kurs.Platform.AiBots;
|
||||
using Kurs.Platform.Entities;
|
||||
|
||||
namespace Kurs.Platform.DataSources;
|
||||
namespace Kurs.Platform.AiBots;
|
||||
|
||||
public class AiBotAutoMapperProfile : Profile
|
||||
{
|
||||
|
|
|
|||
|
|
@ -645,22 +645,19 @@
|
|||
"Name": "Demir Çelik"
|
||||
},
|
||||
{
|
||||
"Name": "Diğer",
|
||||
"FullName": ""
|
||||
"Name": "Diğer"
|
||||
},
|
||||
{
|
||||
"Name": "Eğitim"
|
||||
},
|
||||
{
|
||||
"Name": "Elektrik ve Elektronik",
|
||||
"FullName": ""
|
||||
"Name": "Elektrik ve Elektronik"
|
||||
},
|
||||
{
|
||||
"Name": "Enerji"
|
||||
},
|
||||
{
|
||||
"Name": "Finans",
|
||||
"FullName": ""
|
||||
"Name": "Finans"
|
||||
},
|
||||
{
|
||||
"Name": "Gıda"
|
||||
|
|
@ -672,15 +669,13 @@
|
|||
"Name": "Güvenlik"
|
||||
},
|
||||
{
|
||||
"Name": "Hizmet-servis",
|
||||
"FullName": ""
|
||||
"Name": "Hizmet-servis"
|
||||
},
|
||||
{
|
||||
"Name": "Hırdavat ve Nalburiye"
|
||||
},
|
||||
{
|
||||
"Name": "Isıtma, Soğutma ve Havalandırma",
|
||||
"FullName": ""
|
||||
"Name": "Isıtma, Soğutma ve Havalandırma"
|
||||
},
|
||||
{
|
||||
"Name": "İnşaat"
|
||||
|
|
@ -689,15 +684,13 @@
|
|||
"Name": "İş ve Yönetim"
|
||||
},
|
||||
{
|
||||
"Name": "Kantar",
|
||||
"FullName": ""
|
||||
"Name": "Kantar"
|
||||
},
|
||||
{
|
||||
"Name": "Kimya, Petrol, Lastik ve Plastik"
|
||||
},
|
||||
{
|
||||
"Name": "Kimyasal",
|
||||
"FullName": ""
|
||||
"Name": "Kimyasal"
|
||||
},
|
||||
{
|
||||
"Name": "Kırtasiye"
|
||||
|
|
@ -706,8 +699,7 @@
|
|||
"Name": "Kültür, Sanat ve Tasarım"
|
||||
},
|
||||
{
|
||||
"Name": "Laboratuar ve Test Ürünleri",
|
||||
"FullName": ""
|
||||
"Name": "Laboratuar ve Test Ürünleri"
|
||||
},
|
||||
{
|
||||
"Name": "Maden"
|
||||
|
|
@ -716,12 +708,10 @@
|
|||
"Name": "Makine"
|
||||
},
|
||||
{
|
||||
"Name": "Makina",
|
||||
"FullName": ""
|
||||
"Name": "Makina"
|
||||
},
|
||||
{
|
||||
"Name": "Matbaa",
|
||||
"FullName": ""
|
||||
"Name": "Matbaa"
|
||||
},
|
||||
{
|
||||
"Name": "Medya, İletişim ve Yayıncılık"
|
||||
|
|
@ -730,22 +720,19 @@
|
|||
"Name": "Metal"
|
||||
},
|
||||
{
|
||||
"Name": "Ofis",
|
||||
"FullName": ""
|
||||
"Name": "Ofis"
|
||||
},
|
||||
{
|
||||
"Name": "Otomotiv"
|
||||
},
|
||||
{
|
||||
"Name": "Oto Tamir-Servis",
|
||||
"FullName": ""
|
||||
"Name": "Oto Tamir-Servis"
|
||||
},
|
||||
{
|
||||
"Name": "Pnomatik"
|
||||
},
|
||||
{
|
||||
"Name": "Sağlık",
|
||||
"FullName": ""
|
||||
"Name": "Sağlık"
|
||||
},
|
||||
{
|
||||
"Name": "Sağlık ve Sosyal Hizmetler"
|
||||
|
|
@ -754,8 +741,7 @@
|
|||
"Name": "Sarf"
|
||||
},
|
||||
{
|
||||
"Name": "Spor ve Rekreasyon",
|
||||
"FullName": ""
|
||||
"Name": "Spor ve Rekreasyon"
|
||||
},
|
||||
{
|
||||
"Name": "Tarım, Avcılık ve Balıkçılık"
|
||||
|
|
@ -764,8 +750,7 @@
|
|||
"Name": "Tartı"
|
||||
},
|
||||
{
|
||||
"Name": "Tekstil, Hazır Giyim, Deri",
|
||||
"FullName": ""
|
||||
"Name": "Tekstil, Hazır Giyim, Deri"
|
||||
},
|
||||
{
|
||||
"Name": "Ticaret (Satış ve Pazarlama)"
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||
import { Helmet } from 'react-helmet'
|
||||
import { useState } from 'react'
|
||||
import IntranetDashboard from '@/components/intranet/IntranetDashboard'
|
||||
import IntranetSidebar from '@/components/intranet/IntranetSidebar'
|
||||
import LeaveManagement from '@/components/intranet/HR/LeaveManagement'
|
||||
import OvertimeManagement from '@/components/intranet/HR/OvertimeManagement'
|
||||
import ExpenseManagement from '@/components/intranet/HR/ExpenseManagement'
|
||||
import AnnouncementsModule from '@/components/intranet/Announcements'
|
||||
import EventsModule from '@/components/intranet/Events'
|
||||
import DocumentsModule from '@/components/intranet/Documents'
|
||||
import TasksModule from '@/components/intranet/Tasks'
|
||||
import SocialWall from '@/components/intranet/SocialWall'
|
||||
import BirthdaysModule from '@/components/intranet/Birthdays'
|
||||
import TrainingModule from '@/components/intranet/Training'
|
||||
import ReservationsModule from '@/components/intranet/Reservations'
|
||||
import CafeteriaModule from '@/components/intranet/Cafeteria'
|
||||
import SurveysModule from '@/components/intranet/Surveys'
|
||||
import VisitorsModule from '@/components/intranet/Visitors'
|
||||
import IntranetSidebar from './intranet/Sidebar'
|
||||
import LeaveManagement from './intranet/HR/LeaveManagement'
|
||||
import OvertimeManagement from './intranet/HR/OvertimeManagement'
|
||||
import ExpenseManagement from './intranet/HR/ExpenseManagement'
|
||||
import EventsModule from './intranet/Event'
|
||||
import DocumentsModule from './intranet/Document'
|
||||
import TasksModule from './intranet/Task'
|
||||
import SocialWall from './intranet/SocialWall'
|
||||
import BirthdaysModule from './intranet/Birthday'
|
||||
import TrainingModule from './intranet/Training'
|
||||
import ReservationsModule from './intranet/Reservation'
|
||||
import CafeteriaModule from './intranet/Cafeteria'
|
||||
import SurveysModule from './intranet/Survey'
|
||||
import VisitorsModule from './intranet/Visitor'
|
||||
import AnnouncementsModule from './intranet/Announcement'
|
||||
import IntranetDashboard from './intranet/Dashboard'
|
||||
|
||||
const Dashboard = () => {
|
||||
const { translate } = useLocalization()
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
} from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/tr'
|
||||
import { mockAnnouncements, Announcement } from '../../../mocks/mockIntranetData'
|
||||
import { mockAnnouncements, Announcement } from '../../mocks/mockIntranetData'
|
||||
|
||||
dayjs.locale('tr')
|
||||
|
||||
|
|
@ -3,7 +3,7 @@ import { motion } from 'framer-motion'
|
|||
import { HiCake, HiGift, HiCalendar } from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import isBetween from 'dayjs/plugin/isBetween'
|
||||
import { mockBirthdays, mockAnniversaries, Birthday, WorkAnniversary } from '../../../mocks/mockIntranetData'
|
||||
import { mockBirthdays, mockAnniversaries, Birthday, WorkAnniversary } from '../../mocks/mockIntranetData'
|
||||
|
||||
dayjs.extend(isBetween)
|
||||
|
||||
|
|
@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
|||
import { motion } from 'framer-motion'
|
||||
import { HiClock, HiMapPin } from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import { mockMealMenus, mockShuttleRoutes } from '../../../mocks/mockIntranetData'
|
||||
import { mockMealMenus, mockShuttleRoutes } from '../../mocks/mockIntranetData'
|
||||
|
||||
const CafeteriaModule: React.FC = () => {
|
||||
const [selectedView, setSelectedView] = useState<'menu' | 'shuttle'>('menu')
|
||||
|
|
@ -27,7 +27,7 @@ import {
|
|||
mockTasks,
|
||||
mockDocuments,
|
||||
Announcement,
|
||||
} from '../../../mocks/mockIntranetData'
|
||||
} from '../../mocks/mockIntranetData'
|
||||
|
||||
dayjs.locale('tr')
|
||||
dayjs.extend(relativeTime)
|
||||
|
|
@ -11,7 +11,7 @@ import {
|
|||
} from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/tr'
|
||||
import { mockDocuments, Document } from '../../../mocks/mockIntranetData'
|
||||
import { mockDocuments, Document } from '../../mocks/mockIntranetData'
|
||||
|
||||
dayjs.locale('tr')
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ import {
|
|||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/tr'
|
||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||
import { mockEvents, CalendarEvent, EventComment } from '../../../mocks/mockIntranetData'
|
||||
import { mockEvents, CalendarEvent, EventComment } from '../../mocks/mockIntranetData'
|
||||
import { mockEmployees } from '@/mocks/mockEmployees'
|
||||
|
||||
dayjs.locale('tr')
|
||||
|
|
@ -12,7 +12,7 @@ import {
|
|||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/tr'
|
||||
import { mockLeaveRequests } from '../../../mocks/mockIntranetData'
|
||||
import { HrLeave } from '@/types/hr'
|
||||
import { HrLeave, LeaveStatusEnum } from '@/types/hr'
|
||||
|
||||
dayjs.locale('tr')
|
||||
|
||||
|
|
@ -258,9 +258,9 @@ const LeaveManagement: React.FC = () => {
|
|||
{getTypeLabel(request.type)}
|
||||
</h3>
|
||||
<span className={`px-2.5 py-1 text-xs rounded-full ${getStatusColor(request.status)}`}>
|
||||
{request.status === 'pending' && '⏳ Beklemede'}
|
||||
{request.status === 'approved' && '✅ Onaylandı'}
|
||||
{request.status === 'rejected' && '❌ Reddedildi'}
|
||||
{request.status === LeaveStatusEnum.Pending && '⏳ Beklemede'}
|
||||
{request.status === LeaveStatusEnum.Approved && '✅ Onaylandı'}
|
||||
{request.status === LeaveStatusEnum.Rejected && '❌ Reddedildi'}
|
||||
</span>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-4 mb-3">
|
||||
|
|
@ -10,7 +10,7 @@ import {
|
|||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/tr'
|
||||
import { mockOvertimeRequests } from '../../../mocks/mockIntranetData'
|
||||
import { HrOvertime } from '@/types/hr'
|
||||
import { HrOvertime, LeaveStatusEnum } from '@/types/hr'
|
||||
|
||||
dayjs.locale('tr')
|
||||
|
||||
|
|
@ -194,9 +194,9 @@ const OvertimeManagement: React.FC = () => {
|
|||
{dayjs(request.date).format('DD MMMM YYYY dddd')}
|
||||
</h3>
|
||||
<span className={`px-2.5 py-1 text-xs rounded-full ${getStatusColor(request.status)}`}>
|
||||
{request.status === 'pending' && '⏳ Beklemede'}
|
||||
{request.status === 'approved' && '✅ Onaylandı'}
|
||||
{request.status === 'rejected' && '❌ Reddedildi'}
|
||||
{request.status === LeaveStatusEnum.Pending && '⏳ Beklemede'}
|
||||
{request.status === LeaveStatusEnum.Approved && '✅ Onaylandı'}
|
||||
{request.status === LeaveStatusEnum.Rejected && '❌ Reddedildi'}
|
||||
</span>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-4 mb-3">
|
||||
|
|
@ -221,7 +221,7 @@ const OvertimeManagement: React.FC = () => {
|
|||
<div>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400">Talep Tarihi</p>
|
||||
<p className="text-sm font-medium text-gray-900 dark:text-white">
|
||||
{dayjs(request.createdAt).format('DD MMM')}
|
||||
{dayjs(request.creationTime).format('DD MMM')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -241,7 +241,7 @@ const OvertimeManagement: React.FC = () => {
|
|||
<span>
|
||||
{request.approver.fullName} tarafından{' '}
|
||||
{dayjs(request.approvalDate).format('DD MMMM YYYY')} tarihinde{' '}
|
||||
{request.status === 'approved' ? 'onaylandı' : 'reddedildi'}
|
||||
{request.status === LeaveStatusEnum.Approved ? 'onaylandı' : 'reddedildi'}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
|||
import { motion, AnimatePresence } from 'framer-motion'
|
||||
import { HiKey, HiCalendar, HiTruck, HiCog, HiPlus, HiXMark } from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import { mockReservations, Reservation } from '../../../mocks/mockIntranetData'
|
||||
import { mockReservations, Reservation } from '../../mocks/mockIntranetData'
|
||||
|
||||
const ReservationsModule: React.FC = () => {
|
||||
const [selectedType, setSelectedType] = useState<'all' | 'room' | 'vehicle' | 'equipment'>('all')
|
||||
|
|
@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
|||
import { motion, AnimatePresence } from 'framer-motion'
|
||||
import { HiClipboardDocumentCheck, HiClock, HiCheckCircle, HiXMark } from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import { mockSurveys, Survey } from '../../../mocks/mockIntranetData'
|
||||
import { mockSurveys, Survey } from '../../mocks/mockIntranetData'
|
||||
|
||||
const SurveysModule: React.FC = () => {
|
||||
const [selectedStatus, setSelectedStatus] = useState<'all' | 'active' | 'draft' | 'closed'>('all')
|
||||
|
|
@ -24,7 +24,7 @@ import {
|
|||
} from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/tr'
|
||||
import { mockTasks, Task } from '../../../mocks/mockIntranetData'
|
||||
import { mockTasks, Task } from '../../mocks/mockIntranetData'
|
||||
import { Badge } from '@/components/ui'
|
||||
|
||||
dayjs.locale('tr')
|
||||
|
|
@ -10,7 +10,7 @@ import {
|
|||
HiCalendar,
|
||||
} from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import { mockTrainings, mockCertificates, Training } from '../../../mocks/mockIntranetData'
|
||||
import { mockTrainings, mockCertificates, Training } from '../../mocks/mockIntranetData'
|
||||
|
||||
const TrainingModule: React.FC = () => {
|
||||
const [selectedTraining, setSelectedTraining] = useState<Training | null>(null)
|
||||
|
|
@ -2,7 +2,7 @@ import React, { useState } from 'react'
|
|||
import { motion, AnimatePresence } from 'framer-motion'
|
||||
import { HiUserPlus, HiXMark, HiCheckCircle, HiClock, HiPhone, HiEnvelope } from 'react-icons/hi2'
|
||||
import dayjs from 'dayjs'
|
||||
import { mockVisitors, Visitor } from '../../../mocks/mockIntranetData'
|
||||
import { mockVisitors, Visitor } from '../../mocks/mockIntranetData'
|
||||
|
||||
const VisitorsModule: React.FC = () => {
|
||||
const [selectedStatus, setSelectedStatus] = useState<
|
||||
Loading…
Reference in a new issue