MCPcopy Create free account

hub / github.com/HarshS16/Civix / functions

Functions352 in github.com/HarshS16/Civix

↓ 25 callersFunctionhandleInputChange
(key, value)
src/Pages/Settings.jsx:85
↓ 13 callersFunctionasyncHandler
(requestHandler)
backend/utils/asyncHandler.js:1
↓ 12 callersFunctionisFieldInvalid
(field)
src/components/voting/VotingFeedbackModal.jsx:106
↓ 11 callersFunctionisFieldInvalid
(field)
src/Pages/Feedback.jsx:44
↓ 9 callersFunctionisFilled
(value)
src/Pages/ContactForm.jsx:36
↓ 8 callersFunctionisFieldValid
(field)
src/components/voting/VotingFeedbackModal.jsx:102
↓ 7 callersFunctionhandleNav
(cb)
src/components/Navbar.jsx:18
↓ 7 callersFunctionnext
()
src/components/TestimonialCarousel.jsx:113
↓ 6 callersFunctiondetermineCivicStyle
(decisions, category)
src/utils/SimulatorLogic.js:804
↓ 6 callersFunctionhandleInputChange
(field, value)
src/components/voting/VotingFeedbackModal.jsx:60
↓ 6 callersFunctionisFieldValid
(field)
src/Pages/Feedback.jsx:43
↓ 5 callersFunctioncanSubmit
()
src/components/ScenarioCard.jsx:42
↓ 5 callersFunctionformatCurrency
(amount)
src/Pages/TaxImpact.jsx:81
↓ 5 callersFunctionhandleInputChange
(field, value)
src/Pages/Feedback.jsx:36
↓ 5 callersFunctionuseUser
()
src/Pages/Profile.jsx:15
↓ 4 callersFunctionawardXP
(points, reason)
src/Pages/CivicEducation.jsx:120
↓ 4 callersFunctionhandleAnswerChange
(questionId, value, questionType)
src/components/voting/PollVoting.jsx:91
↓ 4 callersFunctionhandleBlur
(field)
src/components/voting/VotingFeedbackModal.jsx:69
↓ 4 callersFunctionisFilled
(value)
src/Pages/Contact.jsx:82
↓ 4 callersFunctionuseProfileStatus
()
src/Pages/Profile.jsx:16
↓ 3 callersFunctionformatTime
(date)
src/Pages/Electricity.jsx:94
↓ 3 callersFunctiongetCategoryColor
(category)
src/Pages/Schemes.jsx:79
↓ 3 callersFunctiongetFieldValidation
(field, value)
src/Pages/Contact.jsx:30
↓ 3 callersFunctiongetFieldValidation
(field, value)
src/Pages/ContactForm.jsx:38
↓ 3 callersMethodgetToken
* Get CSRF token (fetch if not available) * @returns {Promise<string>} CSRF token
src/utils/csrfManager.js:40
↓ 3 callersFunctiongetTotalVotes
(poll)
src/Pages/VotingSystem.jsx:65
↓ 3 callersFunctionhandleBlur
(field)
src/Pages/Feedback.jsx:41
↓ 3 callersFunctionisOngoing
(outage)
src/Pages/Electricity.jsx:96
↓ 3 callersFunctionrenderFormField
( name, type = "text", icon, placeholder, isTextArea = false )
src/Pages/Contact.jsx:84
↓ 3 callersFunctionsanitizeRecursive
* Recursively sanitize an object or array * @param {any} obj - The object/array/value to sanitize * @returns {any} - Sanitized object/array/value
backend/middlewares/xssSanitizer.js:29
↓ 3 callersMethodsecureFetch
* Enhanced fetch with automatic CSRF token inclusion * @param {string} url - Request URL * @param {Object} options - Fetch options * @returns
src/utils/csrfManager.js:86
↓ 3 callersFunctionupdateQuestion
(index, field, value)
src/components/voting/PollCreation.jsx:201
↓ 3 callersFunctionuploadOnCloudinary
(localFilePath)
backend/utils/cloudinary.js:11
↓ 2 callersFunctioncheckLoadingComplete
()
src/Pages/SDRF.jsx:31
↓ 2 callersFunctioncheckProfileStatus
()
src/hooks/useProfileStatus.js:10
↓ 2 callersFunctioncopyToClipboard
(number)
src/Pages/SOS.jsx:62
↓ 2 callersMethodcreateHeaders
* Create headers object with CSRF token * @param {Object} additionalHeaders - Additional headers to include * @returns {Promise<Object>} Headers
src/utils/csrfManager.js:71
↓ 2 callersFunctionexportCSV
(data, filename)
src/Pages/CivicStatistics.jsx:36
↓ 2 callersFunctionexportPDF
(data, headers, filename, title)
src/Pages/CivicStatistics.jsx:45
↓ 2 callersFunctionexportResults
(format)
src/components/voting/PollResults.jsx:115
↓ 2 callersFunctionformatDate
(date)
src/Pages/Electricity.jsx:95
↓ 2 callersFunctionformatNumber
(num)
src/Pages/Election.jsx:47
↓ 2 callersFunctiongetImpactColor
(change)
src/components/SimulatorResult.jsx:43
↓ 2 callersFunctiongetRoleColor
(role)
src/Pages/Users.jsx:166
↓ 2 callersFunctiongetStatColors
(color)
src/Pages/CommunityVotingPage.jsx:137
↓ 2 callersFunctiongetStatusColor
(status)
src/Pages/Electricity.jsx:82
↓ 2 callersFunctiongetStatusIcon
(status)
src/Pages/Users.jsx:158
↓ 2 callersFunctiongetStatusIcon
(status)
src/Pages/Electricity.jsx:88
↓ 2 callersFunctiongetVotePercentage
(votes, total)
src/Pages/VotingSystem.jsx:66
↓ 2 callersFunctionhandleOAuthSignIn
(provider)
src/components/Login.jsx:106
↓ 2 callersFunctionhandleToggleChange
(key, value)
src/components/ScenarioCard.jsx:24
↓ 2 callersFunctionrenderGeneralSettings
()
src/Pages/Settings.jsx:97
↓ 2 callersFunctionsendEmail
(to, subject, html)
backend/utils/sendEmail.js:12
↓ 2 callersFunctionvalidateForm
()
src/Pages/Feedback.jsx:23
↓ 1 callersFunctionaddOption
(questionIndex)
src/components/voting/PollCreation.jsx:210
↓ 1 callersFunctionanimate
()
src/components/MinimalBG.jsx:74
↓ 1 callersFunctionanimateOnScroll
()
src/Home.jsx:29
↓ 1 callersFunctioncalculateBudgetUsed
()
src/components/ScenarioCard.jsx:29
↓ 1 callersFunctioncalculateClimateImpacts
(decisions)
src/utils/SimulatorLogic.js:725
↓ 1 callersFunctioncalculateClimateScore
(decisions, budget)
src/utils/SimulatorLogic.js:714
↓ 1 callersFunctioncalculateEconomicImpacts
(decisions)
src/utils/SimulatorLogic.js:770
↓ 1 callersFunctioncalculateEconomicScore
(decisions, budget)
src/utils/SimulatorLogic.js:759
↓ 1 callersFunctioncalculateHousingImpacts
(decisions)
src/utils/SimulatorLogic.js:680
↓ 1 callersFunctioncalculateHousingScore
(decisions, budget)
src/utils/SimulatorLogic.js:669
↓ 1 callersFunctioncalculateParkImpacts
(decisions)
src/utils/SimulatorLogic.js:543
↓ 1 callersFunctioncalculateParkScore
(decisions, budget)
src/utils/SimulatorLogic.js:532
↓ 1 callersFunctioncalculateResults
(scenario, decisions)
src/utils/SimulatorLogic.js:399
↓ 1 callersFunctioncalculateSchoolImpacts
(decisions)
src/utils/SimulatorLogic.js:590
↓ 1 callersFunctioncalculateSchoolScore
(decisions, budget)
src/utils/SimulatorLogic.js:579
↓ 1 callersFunctioncalculateTimeRemaining
()
src/components/voting/PollVoting.jsx:34
↓ 1 callersFunctioncalculateTrafficImpacts
(decisions)
src/utils/SimulatorLogic.js:635
↓ 1 callersFunctioncalculateTrafficScore
(decisions, budget)
src/utils/SimulatorLogic.js:624
↓ 1 callersFunctioncallEmergencyNumber
(number)
src/Pages/SOS.jsx:60
↓ 1 callersFunctioncheckAchievements
(xp, reason)
src/Pages/CivicEducation.jsx:138
↓ 1 callersMethodclearToken
* Clear stored token (e.g., on logout or token expiry)
src/utils/csrfManager.js:61
↓ 1 callersFunctiondeleteNotification
(id)
src/Pages/Notification.jsx:122
↓ 1 callersFunctiondraw
()
src/components/Footer.jsx:254
↓ 1 callersFunctionfetchCSV
()
src/Pages/Train.jsx:10
↓ 1 callersFunctionfetchContributors
()
src/Pages/Contributors.jsx:35
↓ 1 callersFunctionfetchStops
()
src/Pages/AirSeva.jsx:11
↓ 1 callersFunctionfetchStops
()
src/Pages/Transport.jsx:10
↓ 1 callersMethodfetchToken
* Fetch CSRF token from server * @returns {Promise<string>} CSRF token
src/utils/csrfManager.js:16
↓ 1 callersFunctionformatAmount
(amount)
src/Pages/Schemes.jsx:74
↓ 1 callersFunctionformatDate
(dateStr)
src/Pages/CommunityHolidays.jsx:63
↓ 1 callersFunctionformatDate
(dateString)
src/Pages/MyComplaints.jsx:30
↓ 1 callersFunctionformatTimeRemaining
(endDate)
src/components/voting/PollList.jsx:190
↓ 1 callersFunctionformatTimeRemaining
(ms)
src/components/voting/PollVoting.jsx:47
↓ 1 callersFunctiongenerateCSV
()
src/components/voting/PollResults.jsx:152
↓ 1 callersFunctiongetClimateFeedback
(decisions)
src/utils/SimulatorLogic.js:733
↓ 1 callersFunctiongetClimateLearningPoints
(decisions)
src/utils/SimulatorLogic.js:750
↓ 1 callersFunctiongetColor
()
src/components/ui/CharacterCounter.jsx:6
↓ 1 callersFunctiongetContributionLevel
(contributions)
src/Pages/Contributors.jsx:102
↓ 1 callersFunctiongetDayFromDate
(dateStr)
src/Pages/CommunityHolidays.jsx:78
↓ 1 callersFunctiongetDifficultyColor
(difficulty)
src/components/ScenarioCard.jsx:49
↓ 1 callersFunctiongetDifficultyColor
(difficulty)
src/Pages/CivicSimulator.jsx:122
↓ 1 callersFunctiongetEconomicFeedback
(decisions)
src/utils/SimulatorLogic.js:778
↓ 1 callersFunctiongetEconomicLearningPoints
(decisions)
src/utils/SimulatorLogic.js:795
↓ 1 callersFunctiongetHousingFeedback
(decisions)
src/utils/SimulatorLogic.js:688
↓ 1 callersFunctiongetHousingLearningPoints
(decisions)
src/utils/SimulatorLogic.js:705
↓ 1 callersFunctiongetIconColor
(amenity)
src/Pages/NearbyServices.jsx:132
next →1–100 of 352, ranked by callers