Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Code-for-Senegal/vie-publique.sn
/ functions
Functions
186 in github.com/Code-for-Senegal/vie-publique.sn
⨍
Functions
186
◇
Types & classes
110
↓ 57 callers
Function
getCmsClient
()
server/utils/cms-client.ts:6
↓ 18 callers
Function
useCmsCollection
(options: CmsCollectionOptions)
app/composables/useCmsCollection.ts:13
↓ 10 callers
Function
useCollectionState
( options: CollectionStateOptions = {} )
app/composables/useCollectionState.ts:62
↓ 9 callers
Function
calculateVariation
(current: number, previous: number)
app/composables/useBudget.ts:166
↓ 9 callers
Function
getVariationColor
( variation: string, indicatorCode: string, )
app/composables/useBudget.ts:175
↓ 7 callers
Function
getStatusIcon
(status: string)
app/composables/usePromesseStatus.ts:3
↓ 7 callers
Function
transformDeputy
(deputy: any)
server/api/assembly/commissions/[id].get.ts:73
↓ 4 callers
Function
getStatusBackgroundClass
(status: string)
app/composables/usePromesseStatus.ts:16
↓ 4 callers
Function
getStatusIconClass
(status: string)
app/composables/usePromesseStatus.ts:29
↓ 4 callers
Function
getStatusTextClass
(status: string)
app/composables/usePromesseStatus.ts:42
↓ 4 callers
Function
performSearch
()
app/composables/useSearchEnhanced.ts:61
↓ 3 callers
Function
toHex
(n: number)
app/composables/useElectionMapJson.ts:183
↓ 3 callers
Function
useCmsFile
(filePath: string | null | undefined)
app/composables/useCmsFile.ts:10
↓ 2 callers
Function
applyFilters
()
app/composables/useElectionBureauxTemoins.ts:51
↓ 2 callers
Function
generateSlugFromName
(name: string)
server/utils/slug.ts:6
↓ 2 callers
Function
highlightText
(text: string, query: string)
app/composables/useSearchEnhanced.ts:25
↓ 2 callers
Function
sendDonationConfirmationEmail
( donationData: DonationEmailData )
server/utils/nodemailer.ts:62
↓ 2 callers
Function
transformDeputy
(deputy: any)
server/api/assembly/groups/[id].get.ts:64
↓ 2 callers
Function
useElectionPvsServer
(options: PvsOptions = {})
app/composables/useElectionPvsServer.ts:15
↓ 2 callers
Function
useSiteMetadata
()
app/composables/useSiteMetadata.ts:1
↓ 1 callers
Function
calculateSeatPosition
(index: number, radius: number)
app/composables/useElectionD3Hemicycle.ts:59
↓ 1 callers
Function
calculateStats
(promesses: Promesse[])
server/api/barometre-politique/diomaye-faye.ts:5
↓ 1 callers
Function
collectIds
(nodes: StateEntityTreeNode[])
app/composables/useStateTree.ts:84
↓ 1 callers
Function
createLogMessage
(violation: any)
server/api/csp-report.ts:11
↓ 1 callers
Function
findPath
(nodes: StateEntityTreeNode[])
app/composables/useStateTree.ts:169
↓ 1 callers
Function
flattenData3
(data: any[], parentPath = "")
server/api/etat-organisation.ts:62
↓ 1 callers
Function
formatAmount
* Formater un montant en FCFA
server/utils/nodemailer.ts:51
↓ 1 callers
Function
formatDate
(date: Date)
server/api/csp-report.ts:6
↓ 1 callers
Function
getDepartmentStats
(department?: string)
app/composables/useElectionMapJson.ts:88
↓ 1 callers
Function
getGeoData
()
app/composables/useElectionMapJson.ts:62
↓ 1 callers
Function
getGeoData
()
app/composables/useElectionMapJsonResult.ts:73
↓ 1 callers
Function
getTransporter
* Créer et configurer le transporteur Nodemailer
server/utils/nodemailer.ts:13
↓ 1 callers
Function
getTypeFromQuery
()
app/composables/useStateEntities.ts:20
↓ 1 callers
Function
handleError
(e: unknown)
app/composables/useElectionMap.ts:27
↓ 1 callers
Function
handleFailedPayment
* Gérer un paiement échoué
server/api/donate/webhook.post.ts:114
↓ 1 callers
Function
handleFailedPayment
* Gérer un paiement échoué
server/api/donate/paydunya/callback.post.ts:110
↓ 1 callers
Function
handlePendingPayment
* Gérer un paiement en attente
server/api/donate/webhook.post.ts:126
↓ 1 callers
Function
handleSuccessfulPayment
* Gérer un paiement réussi
server/api/donate/webhook.post.ts:80
↓ 1 callers
Function
handleSuccessfulPayment
* Gérer un paiement réussi
server/api/donate/paydunya/callback.post.ts:78
↓ 1 callers
Function
hslToHex
(h: number, s: number, l: number)
app/composables/useElectionMapJson.ts:168
↓ 1 callers
Function
loadGeoData
()
app/composables/useElectionMapJson.ts:41
↓ 1 callers
Function
loadGeoDataWithWinner
()
app/composables/useElectionMapJsonResult.ts:51
↓ 1 callers
Function
performSearch
()
app/composables/useSearch.ts:10
↓ 1 callers
Function
search
(nodes: StateEntityTreeNode[])
app/composables/useStateTree.ts:143
↓ 1 callers
Function
slugify
(text: string)
server/api/__sitemap__/urls.ts:69
↓ 1 callers
Function
syncWithUrl
()
app/composables/useSearchEnhanced.ts:42
↓ 1 callers
Function
transformCoordinates
(geoData: GeoData[])
app/composables/useElectionMapJson.ts:70
↓ 1 callers
Function
transformCoordinates
(geoData: GeoData[])
app/composables/useElectionMapJsonResult.ts:81
↓ 1 callers
Function
transformRegionData
(data: Department[])
app/composables/useElectionMap.ts:14
↓ 1 callers
Function
traverse
(nodes: StateEntityTreeNode[], level = 0)
app/composables/useStateTree.ts:114
↓ 1 callers
Function
useCmsImage
(imagePath: string | null | undefined, quality?: number | string)
app/composables/useCmsImage.ts:11
↓ 1 callers
Function
useElectionResultsServer
()
app/composables/useElectionResultsServer.ts:11
↓ 1 callers
Function
useElections
(options: ElectionCandidatesOptions = {})
app/composables/useElections.ts:35
Method
about_page
(self)
test/locust/perf-vpsn.py:9
Function
closeDonateModal
()
app/composables/useDonate.ts:11
Function
collapseAll
()
app/composables/useStateTree.ts:98
Function
collapseNode
(nodeId: number)
app/composables/useStateTree.ts:78
Function
createHemicycle
( data: SeatData[], options = { width: 800, height: 400, innerRadius: 100, out
app/composables/useElectionD3Hemicycle.ts:13
Function
downloadCmsFile
( filePath: string | null | undefined, filename?: string, )
app/composables/useCmsFile.ts:87
Function
expandAll
()
app/composables/useStateTree.ts:82
Function
expandNode
(nodeId: number)
app/composables/useStateTree.ts:74
Function
fetchBureaux
()
app/composables/useElectionBureauxTemoins.ts:122
Function
fetchDepartmentDetails
(department: string)
app/composables/useElectionMapNational.ts:27
Function
fetchDepartmentsStats
()
app/composables/useElectionMapNational.ts:15
Function
fetchElectedDeputies
(groupId?: string | null)
app/composables/useAssemblyDeputies.ts:112
Function
fetchElectedDeputyById
(id: string)
app/composables/useAssemblyDeputies.ts:123
Function
fetchElectedDeputyCommissions
(idDeputy: string)
app/composables/useAssemblyDeputies.ts:134
Function
fetchRegions
()
app/composables/useElectionMap.ts:42
Function
fetchUpdates
()
app/stores/latestUpdates.ts:45
Function
findPathToNode
(targetId: number)
app/composables/useStateTree.ts:164
Function
flattenData1
(data: any[], parent = "")
server/api/etat-organisation.ts:10
Function
flattenData2
(data: any[], parent = "")
server/api/etat-organisation.ts:28
Function
forceRefresh
()
app/stores/latestUpdates.ts:106
Function
formatAmount
(amount: number)
app/composables/useBictorysDonation.ts:98
Function
formatAmount
(amount: number)
app/composables/usePaydunyaDonation.ts:99
Function
formatResultUrl
(result: any)
app/composables/useSearchEnhanced.ts:37
Function
getCacheMaxAge
(productionSeconds: number, devSeconds: number = 30)
server/utils/cache.ts:10
Function
getCardStyles
(title: string)
app/composables/useNavigationCards.ts:125
Function
getCurrentEnvironment
()
app/config/features.config.ts:152
Function
getDepartmentDetails
(department: string)
app/composables/useElectionMapJson.ts:147
Function
getDepartmentStats
(department: string)
app/composables/useElectionMapNational.ts:39
Function
getFeatureFlag
* Récupère un feature flag par sa clé
app/composables/useFeatureFlags.ts:84
Function
getIconColor
(title: string)
app/composables/useNavigationCards.ts:130
Function
getImage
(src, { modifiers = {}, baseURL } = {})
app/providers/cms-image.ts:8
Function
getInstitutionColor
(index: number)
app/composables/useInstitution.ts:3
Function
getMapData
()
app/composables/useElectionMapJson.ts:109
Function
getMapDataResult
()
app/composables/useElectionMapJsonResult.ts:102
Function
getMenuCardColor
(title: string)
app/composables/useNavigationCards.ts:141
Function
getQuickAccessIconBackground
(title: string)
app/composables/useNavigationCards.ts:146
Function
getQuickAccessIconColor
(title: string)
app/composables/useNavigationCards.ts:165
Function
getRegionColor
( regionId: number, baseHue: number = 150, saturation: number = 0.5, )
app/composables/useElectionMapJson.ts:127
Function
getTextColor
(title: string)
app/composables/useNavigationCards.ts:135
Function
getTypeBadgeColor
(type: string)
app/composables/useSearchEnhanced.ts:153
Method
get_deputes
(self)
test/locust/directus-api.py:5
Method
index_page
(self)
test/locust/perf-vpsn.py:5
Function
initiateDonation
(donationData: DonationData)
app/composables/useBictorysDonation.ts:30
Function
initiateDonation
(donationData: DonationData)
app/composables/usePaydunyaDonation.ts:31
Function
isExpanded
(nodeId: number)
app/composables/useStateTree.ts:102
Function
isFeatureEnabled
* Vérifie si une feature est activée * * Règle : Une feature est visible si : * 1. enabled = true * 2. L'environnement actuel est dans la
app/composables/useFeatureFlags.ts:56
Function
isFeatureFlagsEnabled
()
app/config/features.config.ts:167
next →
1–100 of 186, ranked by callers