Commit Graph
58 Commits
Author SHA1 Message Date
hamedandClaude Sonnet 4.6 59e0a0fe4f fix: resolve critical bugs and security issues across the project
Security:
- Disable SSL verification only in development (lib/req.js)
- Wrap all JSON.parse(cookie) calls in try-catch via safeJsonParse utility
- Sanitize dangerouslySetInnerHTML in blog/clinic with sanitizeHtml utility
- Fix open redirect in payment page — validate URL origin before redirect
- Fix cookie cleanup on 401 — use js-cookie with correct domain scope

Performance:
- Wrap ItemDoctor with React.memo to prevent unnecessary re-renders
- Replace <img> with Next.js <Image> in blog Caption component

Functionality:
- Fix memory leak in Recode.js — store intervals in refs, cleanup on unmount
- Add null guard on retryIcon.current before classList manipulation
- Fix getParsedUserInfo in helper to handle malformed cookie gracefully

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 09:19:20 +03:30
hamedandClaude Sonnet 4.6 1aa9f82d2a fix: resolve critical bugs and security issues across the project
- Fix GPS map links always sending literal "latitude"/"longitude" strings
  instead of actual coordinates in openLocation/Content.js
- Add api.clinic-pro.ir to next.config.js remotePatterns so production
  images load correctly
- Fix appointment page: await params and getStateInfo (Next.js 15 pattern)
- Enable 401 handling in api.js: clear cookies and redirect to /login
- Move OAuth client_secret to server-side API routes (/api/auth/token,
  /api/auth/refresh) so it is never bundled into client-side JavaScript
- Update SendReq, SubmitData, ButtonSendData to call API routes instead
  of directly sending client_secret from the browser
- Update docker-compose.yml to use server-only CLIENT_SECRET env var
- Remove debug console.log from clinic doctors list component

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 22:18:11 +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 4651ae534d refactor: implement PDF download functionality for appointment details in DetailLg and DetailSm components 2025-11-19 10:34:02 +03:30
hamed aef10e7764 refactor: update map button functionality to use latitude and longitude for Google Maps links 2025-11-19 10:24:07 +03:30
hamed e7cff90516 refactor: integrate IsTurnsDetails component for enhanced appointment display 2025-11-19 09:42:59 +03:30
hamed b2f968480c refactor: update appointment handling to improve data flow and display, including status management and detail views 2025-11-19 09:16:41 +03:30
hamed e7c8501680 refactor: enhance transaction and appointment handling with pagination, status filtering, and improved data display 2025-11-18 22:21:47 +03:30
Ehsan 1e70d88a84 fix bug save and set data just with one key, remove page login from appo page, disable not avalaible data in calendar, change steps for pages in appo, get data user, edit and set in page user-info 2025-08-31 01:21:59 +03:30
Ehsan 278602372d change component folders && add multipleselector && send img of doctor page && send skills to create doctor item 2025-07-17 15:50:23 +03:30
Ehsan 88f25cdd2e in page add doctor change data state & component & save data & request to send data & change component folder 2025-07-14 04:30:50 +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 597fa1931d change fields component & handle edit, delete, add data and save & change functional page doctor 2025-07-02 02:12:47 +03:30
Ehsan 04d3e38859 change fields component & handle edit, delete, add data and save & change functional page doctor 2025-07-02 01:58:44 +03:30
hamed 5b90f7dfad change functionality req from ssr to csr
set dockerfile

reset dockerfile

fix dockerfile

fix dockerfile

use node 22

fix dockerfile

fix dockerfile
2025-06-29 20:13:42 +03:30
Ehsan 43eb9c2b78 change functionality req from ssr to csr 2025-06-18 01:32:25 +03:30
Ehsan debd6b0eb5 update dashboard data and design and change req from ssr to csr & change design and data doctor and clinic item 2025-06-17 00:26:16 +03:30
Ehsan 891b0e8273 fix bug dashboard bugs & handle request update data in user profile & change design button in home page 2025-06-13 22:12:58 +03:30
Ehsan eea8737778 Fix dashboard data requests, update dashboard data handling, change login field type, and redesign home button 2025-06-12 21:46:27 +03:30
Ehsan bf64271d14 handle change data and update data in dashboard page for all tabs 2025-06-11 16:52:01 +03:30
Ehsan 72ed07071c handle update data in tab dashboard 2025-06-10 14:27:06 +03:30
Ehsan f52eb43326 last update 2025-06-08 10:13:06 +03:30
Ehsan 7d6a9e6e33 update design and request pages dashboards & doctors & doctor item & clinics & clinic item and layout 2025-06-07 04:22:52 +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 dafeebc54f validation & change deisng sidebar dashboard & add menu to profile & handle menu item in profile & add api 2025-06-03 00:50:10 +03:30
Ehsan e292176a61 handle limit page dashboard & change header profile user & get data from api in page clinics & clinic item and doctor item 2025-06-01 01:08:25 +03:30
Ehsan 80c74361eb change response file & request get user-profile & change design dashboard page & handle limit page dashboard 2025-05-31 03:35:23 +03:30
Ehsan 0969eca274 design and handle modal add, edit and delete in all tabs dashboard & change list & update data profile_other 2025-05-30 02:22:10 +03:30
Ehsan e12e6c171c handle register & retry code & edit phone number & fix bug select city and state & add basic modal to all tabs in dashboard 2025-05-29 05:07:11 +03:30
Ehsan 38e243b4c7 change design dashboards all page and search clinics 2025-05-27 22:27:02 +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 5fa740ad1b handle all pages dashboard & register api 2025-05-24 22:17:55 +03:30
Ehsan 6b1983fb0b handle api register & change design dashboard tabs and page disease 2025-05-23 00:04:13 +03:30
Ehsan 254d5d4ebd change format all file 2025-05-18 01:18:35 +03:30
Ehsan a8a320465d change name in register & add link to most-searched home page & change tag & change design and responsive & fix active link header & must include field num in register & send code msg 2025-05-13 22:07:03 +03:30
Ehsan 56552f1057 set data ssr in page dashboard 2025-05-11 23:52:39 +03:30
Ehsan b25289f88e fix bug panel error && change design dashboard 2024-10-23 19:53:08 +03:30
Ehsan adfe52c531 change space between field and text && change type fields 2024-10-23 19:28:56 +03:30
Ehsan 3d6a2a31c3 remove logs 2024-10-23 03:16:58 +03:30
Ehsan 1820a0a59b handle filter list with button 2024-10-23 03:16:12 +03:30
Ehsan 5939ae7933 handle filter list with button 2024-10-23 03:09:40 +03:30
Ehsan cee4abcfbf ر 2024-10-22 01:38:38 +03:30
Ehsan a3699f1e42 fix bug selector 2024-10-19 23:37:39 +03:30
Ehsan ecb8fcb8bf fix bug change selector data 2024-10-11 20:28:56 +03:30
Ehsan 36a439a617 change style of button in table 2024-10-03 16:54:02 +03:30
Ehsan cecd572861 enable dark mode just in panel page 2024-09-30 14:15:26 +03:30
Ehsan eda896e917 add prettier formatter to all file 2024-09-25 11:03:44 +03:30
Ehsan 9d1c4aa299 responsive page user-account & add-doctor & turns & add loading to all page panel & change design page dashboard 2024-09-14 02:41:38 +03:30