Commit Graph
49 Commits
Author SHA1 Message Date
hamedandClaude Opus 4.8 ed985f55fb feat(doctor map): replace Google Maps iframe with Leaflet (OSM)
The Google Maps iframe was blocked by CSP (frame-src falls back to
default-src 'self'). Switched the doctor-page location map to react-leaflet
with OpenStreetMap tiles — no iframe, and CSP already allows https image
tiles (img-src 'self' https:). Marker icons are bundled from the leaflet
package (no CDN). MapView is dynamically imported (ssr:false) since Leaflet
needs window.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-11 15:29:17 +03:30
hamed 778876b1f7 Refactor code structure for improved readability and maintainability 2026-07-10 11:27:17 +03:30
hamedandClaude Fable 5 08dd9e408b feat: enable React Compiler on Next 16
Auto-memoization via babel-plugin-react-compiler (stable in Next 16),
compiled through Turbopack's built-in babel. Build and test suite pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 10:02:58 +03:30
hamedandClaude Fable 5 374a9d5350 chore: replace removed next lint with eslint flat config
- next lint removed in Next 16; add eslint@9 + eslint-config-next@16
- flat config imports eslint-config-next/core-web-vitals directly
- add typescript devDep (required by eslint-config-next@16)
- demote high-frequency pre-existing rule violations to warn

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 09:57:30 +03:30
hamedandClaude Fable 5 29e938afcb chore: upgrade Next.js to 16, React to 19
- next 15.5.7 -> 16.2.10 (latest stable)
- react/react-dom 18.3.1 -> 19.2.7
- @next/third-parties -> 16.2.10
- remove React 18 pin from overrides (MUI 5.18 / x-7.29 support React 19)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 09:48:50 +03:30
hamed 39c09bfcd5 feat: integrate html-to-image library for enhanced image generation and QR code rendering 2026-07-04 22:39:33 +03:30
hamed 3344a2f77a Implement feature X to enhance user experience and optimize performance 2026-07-04 21:17:25 +03:30
hamed ee1192b5b9 feat: prepare nobat724_front for deployment on Liara platform
- Added Node.js engine requirement in package.json to ensure compatibility.
- Created liara-deploy.md for deployment instructions and environment setup.
- Added example environment variables in .env.liara.example for clarity.
- Introduced .liaraignore to exclude unnecessary files from deployment.
- Created liara.json for Liara configuration, including health check settings.
- Removed redundant next.config.mjs file to prevent configuration conflicts.
2026-06-30 14:48:21 +03:30
hamed c316d22160 feat: add testing setup with Vitest and Testing Library
- Updated package.json to include Vitest and Testing Library dependencies and scripts for testing.
- Created a test suite for the ProvinceProvider context to validate cityId and province detection based on subdomains.
- Implemented unit tests for utility functions in helper/index.js, including phone number formatting and validation.
- Added tests for state information retrieval in lib/getStateInfo.js, ensuring correct city and state matching based on subdomains.
- Developed tests for appointment slot adaptation and availability checks in lib/appointmentSlots.js.
- Created tests for token storage functionality in lib/tokenStore.js.
- Implemented sanitization and JSON parsing tests in lib/sanitize.js.
- Added CASL ability tests in lib/ability.js to verify user access rights.
- Created tests for cookie management in lib/refreshCookie.js.
- Developed tests for patient user representation in lib/representationAdapters.js.
- Implemented client-side state information retrieval tests in lib/getStateInfoClient.js.
- Created tests for canonical URL generation in lib/getCanonicalUrl.js.
- Developed tests for clinic API service functions in services/clinicApi.js.
- Added request wrapper tests in services/response.js to ensure correct API interaction.
- Set up Vitest configuration in vitest.config.mjs for JSX support and alias resolution.
- Created setup and utility files for testing environment in test/setup.js and test/utils.jsx.
2026-06-28 23:25:46 +03:30
hamed 194ffd889c feat: enhance security by implementing HttpOnly refresh tokens and in-memory access token management
- Added isomorphic-dompurify for improved XSS protection
- Refactored token storage to use in-memory management for access tokens
- Implemented server-side route handlers for OAuth token management
- Introduced security headers in next.config.js
- Removed client-side exposure of client_secret and sensitive tokens
- Updated API interceptors to handle token refresh logic
- Cleaned up cookie management for refresh tokens
2026-06-20 13:10:17 +03:30
hamed 54ae8c3a68 chore: update package.json to add tailwindcss and postcss dependencies 2025-12-17 17:59:20 +03:30
hamed db2f9aef60 Replace jalaali-react-date-picker with custom MUI-based Jalali date picker - fixes all 10 security vulnerabilities 2025-12-17 10:09:37 +03:30
hamed e5e6f33ae4 Update packages: Next.js 15.5.9, Tailwind 3.4.19 2025-12-17 09:58:14 +03:30
hamed 6f0c29d700 chore: update dependencies and add .dockerignore file
- Updated MUI packages to version 5.x and x-charts/x-date-pickers to 7.x
- Downgraded React and React-DOM to version 18.3.1
- Added .dockerignore to exclude unnecessary files from Docker context
2025-12-10 14:06:19 +03:30
hamed a0b946c39b chore: update dependencies to latest versions
- upgraded @maptiler/sdk from 2.5.1 to 3.9.0
- upgraded @mui/styled-engine-sc from 6.4.9 to 7.3.6
- upgraded @mui/x-charts from 7.29.1 to 8.21.0
- upgraded @mui/x-date-pickers from 7.29.4 to 8.21.0
- upgraded date-fns from 3.6.0 to 4.1.0
- upgraded npm from 10.9.4 to 11.7.0
- upgraded react and react-dom from 18.3.1 to 19.2.1
- upgraded swiper from 11.2.10 to 12.0.3
- upgraded cross-env from 7.0.3 to 10.1.0
2025-12-10 10:04:04 +03:30
hamed 40df2db108 chore: update dependencies in package.json
- Bumped versions for several packages including:
  - @emotion/styled from ^11.14.0 to ^11.14.1
  - @maptiler/sdk from ^2.4.0 to ^2.5.1
  - @mui/icons-material from ^7.1.0 to ^7.3.6
  - @mui/material from ^7.1.0 to ^7.3.6
  - @mui/styled-engine-sc from ^6.0.0-alpha.18 to ^6.4.9
  - @mui/x-charts from ^7.16.0 to ^7.29.1
  - @mui/x-date-pickers from ^7.17.0 to ^7.29.4
  - @next/third-parties from ^15.1.0 to ^15.5.7
  - axios from ^1.7.7 to ^1.13.2
  - dayjs from ^1.11.13 to ^1.11.19
  - jspdf from ^3.0.1 to ^3.0.4
  - next from ^14.2.20 to ^15.5.7
  - next-themes from ^0.3.0 to ^0.4.6
  - npm from ^10.8.2 to ^10.9.4
  - react from ^18.0.0 to ^18.3.1
  - react-dom from ^18 to ^18.3.1
  - react-easy-crop from ^5.1.0 to ^5.5.6
  - react-toastify from ^10.0.6 to ^11.0.5
  - sharp from ^0.34.1 to ^0.34.5
  - styled-components from ^6.1.11 to ^6.1.19
  - stylis from ^4.3.4 to ^4.3.6
  - swiper from ^11.1.9 to ^11.2.10
  - postcss from ^8 to ^8.5.6
  - prettier from ^3.5.3 to ^3.7.4
  - tailwindcss from ^3.4.1 to ^3.4.18
2025-12-04 05:26:37 +03:30
ehsan e1510b142b handle download poster and qrcode, fix to show timestamp, add pagination to doctors page 2025-10-02 02:52:26 +03:30
Ehsan c6e2657e45 change design and data list in doctor-item & handle component appointment in doctor-item & handle functionality date-picker & fix bug appointment page & add req get appointment list 2025-07-09 03:05:48 +03:30
Ehsan f951128074 change date type for req & design and fields & add requests & fix bug appointment and dashboard 2025-07-04 23:44:29 +03:30
Ehsan 0a8874c4ab dashboard design and functionality and data and page doctor and clinic change data 2025-06-04 03:58:38 +03:30
Ehsan d95815d4aa install and handle casle & prevent page dashboard & handle register and code verfication & get data in clinics page 2025-05-27 03:40:06 +03:30
Ehsan a9f98aea3b autoselector page clinic item and specialties & dashboard responsive & change components & change package universal-cookie to js-cookie 2025-05-25 23:14:30 +03:30
Ehsan c469f2ee3c handle register and poster and fix bugs 2025-05-21 23:35:55 +03:30
Ehsan 254d5d4ebd change format all file 2025-05-18 01:18:35 +03:30
ehsan 4c49090a5b handle filter list city by url 2025-05-03 16:13:25 +03:30
hamed 8f69aae313 Update information.json with current doctor, patient, and appointment data.
Added today's activities, patient statistics, payment information,
and doctor appointment details for the admin dashboard display.
2025-04-26 10:08:37 +03:30
hamedhosseini0143 656cd28e25 run in fierbase 2025-04-26 05:47:02 +00:00
hamed 574f7bf005 feat: Implement dynamic state and city selection
- Load states and cities from JSON data files
- Filter cities based on selected state
- Update UI to disable city dropdown until state is selected
- Fix AutoCompleteSelect component to properly handle selection
- Reset city selection when state changes
- Display selected state and city in button
2025-04-25 17:11:24 +03:30
drupaldev143 3454f2fc72 fix build 2024-12-15 10:48:29 +03:30
drupaldev143 5ea00294c5 add google tag manager 2024-12-15 09:23:44 +03:30
drupaldev143 33d9fdf52c remove start port 2024-12-10 14:21:39 +03:30
Ehsan bc26faa77c add axios and basic folder 2024-10-26 01:03:50 +03:30
Ehsan 60276b3ba0 add toastify component 2024-10-26 00:51:59 +03:30
Ehsan 638d0d78f5 design modal crop & handle crop image 2024-10-25 22:16:00 +03:30
Ehsan b69a66006a change fields 2024-10-21 04:08:35 +03:30
Ehsan 97939fb101 design modal map in step 2 2024-10-21 00:30:50 +03:30
Ehsan 3fe2b8ee85 handle default dark theme & install next-themes 2024-09-27 15:41:17 +03:30
Ehsan f732a495f9 add component hour field to page add-doctor 2024-09-15 19:49:14 +03:30
Ehsan dffdab7139 design sidebar & head layout & page dashboard 2024-09-10 02:00:41 +03:30
Ehsan 13cc7796c3 check responsive & page dashboard user account & turns & transactions & comments 2024-09-03 03:04:55 +03:30
Ehsan 680ef74034 fix responsive all page & add modal doctor id & page dashboard aside 2024-09-01 01:36:36 +03:30
Ehsan b058066380 change design and responsive & pay & detail account & success pay & faield pay & doctor id 2024-08-30 20:22:41 +03:30
Ehsan 7925493681 change date-picker & add page login-verify & account & new user & payment 2024-08-26 20:04:33 +03:30
Ehsan 9701547d1f fix responsive all pages & change style page list blog and blog item & add date picker 2024-08-23 18:57:28 +03:30
Ehsan dfd7360be5 responsive page clinics & about & contact & doctors 2024-08-20 20:18:26 +03:30
Ehsan a5b4179135 fix bug field text mui 2024-06-24 03:10:07 +03:30
Ehsan ae1c7dd70c basic style & add mui and aos & banner style 2024-05-16 03:44:17 +03:30
Ehsan 4d71481738 basic structure folder and style 2024-05-14 19:54:46 +03:30
Ehsan 82ae4ed80e Initial commit from Create Next App 2024-05-13 16:00:04 +03:30