Skip to content

Commit

Permalink
Add scheduler component and hooks for improved event management
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Jan 26, 2025
1 parent c4bcc2b commit 2857e88
Show file tree
Hide file tree
Showing 58 changed files with 5,385 additions and 286 deletions.
139 changes: 60 additions & 79 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,20 @@
"preview": "vite preview",
"fix": "eslint --fix .",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"ncu": "ncu -u -x typescript,date-fns,eslint,eslint-plugin-react-hooks,eslint-plugin-react-refresh,react,react-dom,@types/react,@types/react-dom",
"ncu": "ncu -u -x typescript,date-fns,eslint,eslint-plugin-react-hooks,eslint-plugin-react-refresh",
"stylelint": "stylelint \"src/**/*.css\"",
"stylelint:fix": "stylelint \"src/**/*.css\" --fix"
},
"dependencies": {
"@aldabil/react-scheduler": "^2.9.5",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.4.1",
"@mui/material": "^6.4.1",
"@mui/x-data-grid": "^7.24.0",
"@mui/x-date-pickers": "^7.24.0",
"@types/node": "^22.10.7",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@mui/x-data-grid": "^7.24.1",
"@mui/x-date-pickers": "^7.24.1",
"@types/node": "^22.10.10",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@types/validator": "^13.12.2",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
Expand All @@ -38,10 +37,11 @@
"eslint-plugin-react-refresh": "^0.4.11",
"history": "^5.3.0",
"localized-strings": "^2.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.1.3",
"react-toastify": "^11.0.3",
"rrule": "^2.8.1",
"typescript": "^5.2.2",
"validator": "^13.12.0",
"vite": "^6.0.11"
Expand All @@ -52,7 +52,7 @@
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
"npm-check-updates": "^17.1.14",
"stylelint": "^16.13.2",
"stylelint": "^16.14.0",
"stylelint-config-standard": "^37.0.0",
"terser": "^5.37.0",
"vite-plugin-html": "^3.2.2"
Expand Down
6 changes: 3 additions & 3 deletions backend/src/components/VehicleScheduler.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useCallback, useEffect, useState } from 'react'
import { fr, enUS, es } from 'date-fns/locale'
import { Scheduler as ReactScheduler } from '@aldabil/react-scheduler'
import { Scheduler } from '@/components/scheduler/index'
import {
ProcessedEvent,
RemoteQuery,
SchedulerRef,
} from '@aldabil/react-scheduler/types'
} from '@/components/scheduler/types'
import * as bookcarsTypes from ':bookcars-types'
import * as helper from '@/common/helper'
import * as BookingService from '@/services/BookingService'
Expand Down Expand Up @@ -208,7 +208,7 @@ const VehicleScheduler = (
}

return (
<ReactScheduler
<Scheduler
ref={schedulerRef}
view="month"
locale={language === 'fr' ? fr : language === 'es' ? es : enUS}
Expand Down
Loading

0 comments on commit 2857e88

Please sign in to comment.