Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colouring-cities/colouring-core
/ functions
Functions
545 in github.com/colouring-cities/colouring-core
⨍
Functions
545
◇
Types & classes
150
↓ 44 callers
Method
get
(tileParams: TileParams)
app/src/tiles/tileCache.ts:78
↓ 31 callers
Function
useDisplayPreferences
()
app/src/frontend/displayPreferences-context.tsx:475
↓ 23 callers
Function
apiGet
(path: string, options?: { jsonReviver?: JsonReviver })
app/src/frontend/apiHelpers.ts:3
↓ 22 callers
Function
asyncController
* A wrapper for controller functions that return a Promise, enabling them to be used with Express * Without this wrapper, Promise rejections caused b
app/src/api/routes/asyncController.ts:10
↓ 15 callers
Function
processParam
(params: object, paramName: string, processingFn: (x: string) => T, required: boolean = false)
app/src/api/parameters.ts:6
↓ 12 callers
Function
withCopyEdit
(WrappedComponent: React.ComponentType<CategoryViewProps>)
app/src/frontend/building/data-container.tsx:64
↓ 11 callers
Function
getGlobalEditHistory
( beforeId?: string, afterId?: string, count: number = 100, filterDeletions: boolean = false )
app/src/api/services/editHistory.ts:6
↓ 8 callers
Function
useAuth
()
app/src/frontend/auth-context.tsx:210
↓ 6 callers
Function
apiPost
(path: string, data?: object, options?: { jsonReviver?: JsonReviver })
app/src/frontend/apiHelpers.ts:9
↓ 6 callers
Function
strictParseInt
* Parse a string as positive integer or NaN * * @param {string} value * @returns {number} integer or NaN
app/src/parse.ts:12
↓ 6 callers
Function
updateLandUse
(landUse: LandUseState, landUseUpdate: Partial<LandUseState>)
app/src/api/services/domainLogic/landUse.ts:11
↓ 5 callers
Function
ShowIfAvailable
(data)
app/src/frontend/building/data-components/planning-data-entry.tsx:58
↓ 5 callers
Method
doSubmit
(edits: Partial<Building & BuildingUserAttributes>)
app/src/frontend/building/data-container.tsx:201
↓ 5 callers
Function
getTileLayerUrl
(tileset: T, parameters?: Record<string, string>)
app/src/frontend/map/layers/get-tile-layer-url.ts:9
↓ 5 callers
Function
show_data
(site_name, site_number, street_name, secondary_street_name, address)
etl/planning_data/address_data.py:110
↓ 5 callers
Function
switchToMapStyleHideHistoricMaps
(event: React.MouseEvent<HTMLButtonElement, MouseEvent>, map_style: MapTileset)
app/src/frontend/building/data-containers/age-history.tsx:77
↓ 4 callers
Function
fetchData
()
app/src/frontend/pages/changes.tsx:46
↓ 4 callers
Function
generateHistory
(n: number, firstId: number = 100)
app/src/api/services/__tests__/editHistory.test.ts:10
↓ 4 callers
Method
getLeaders
(number_limit: number, time_limit: number)
app/src/frontend/pages/leaderboard.tsx:53
↓ 4 callers
Method
isEdited
()
app/src/frontend/building/data-container.tsx:157
↓ 4 callers
Function
sleep_before_retry
(message, url, headers, json_data)
etl/planning_data/obtain_livestream_data_and_load_into_database.py:235
↓ 3 callers
Function
apiRequest
( path: string, method: 'GET' | 'POST' | 'DELETE', data?: object, options?: { jsonRevi
app/src/frontend/apiHelpers.ts:21
↓ 3 callers
Method
cacheLocation
({tileset, z, x, y, scale}: TileParams)
app/src/tiles/tileCache.ts:130
↓ 3 callers
Function
date_object_into_date_string
(date)
etl/planning_data/obtain_livestream_data_and_load_into_database.py:294
↓ 3 callers
Function
filter_mastermap
(mm_path)
etl/filter_mastermap.py:20
↓ 3 callers
Function
flipHistoricData
(e)
app/src/frontend/displayPreferences-context.tsx:349
↓ 3 callers
Function
fliphistoricMap
(e)
app/src/frontend/displayPreferences-context.tsx:367
↓ 3 callers
Function
getBuildingData
( buildingId: number, lockForUpdate: boolean = false, t?: ITask<any> )
app/src/api/dataAccess/building.ts:10
↓ 3 callers
Function
getNavigationUrl
(options: { afterId?: string, beforeId?: string, deletions?: string })
app/src/frontend/pages/changes.tsx:20
↓ 3 callers
Function
getXYZ
(bbox, z)
app/src/tiles/util.ts:15
↓ 3 callers
Function
hasAnyOwnProperty
(obj: T, keys: (keyof T)[])
app/src/helpers.ts:27
↓ 3 callers
Function
historicDataSwitchOnClick
(e)
app/src/frontend/displayPreferences-context.tsx:346
↓ 3 callers
Function
historicMapSwitchOnClick
(e)
app/src/frontend/displayPreferences-context.tsx:364
↓ 3 callers
Function
navigate
(direction)
html/main.js:22
↓ 3 callers
Function
parseBooleanExact
(val: string)
app/src/helpers.ts:62
↓ 3 callers
Function
parse_date_string_into_date_object
(incoming)
etl/planning_data/obtain_livestream_data_and_load_into_database.py:300
↓ 3 callers
Function
read_sql
(rel_path_from_script)
maintenance/extract_data/extract_data.py:43
↓ 3 callers
Function
renderTile
(tileParams: TileParams, dataParams: any)
app/src/tiles/rendererDefinition.ts:74
↓ 3 callers
Function
updateUserData
()
app/src/frontend/auth-context.tsx:131
↓ 3 callers
Function
useUrlParam
( param: string, paramTransform: UrlParamTransform<T>, pathPattern?: string, defaultParams: {
app/src/frontend/nav/use-url-param.ts:6
↓ 3 callers
Function
validateChangeSet
( attributes: Partial<BuildingAttributes> | Partial<BuildingUserAttributes>, isExternal: boolean = tru
app/src/api/services/domainLogic/validateUpdate.ts:45
↓ 2 callers
Function
LinkIfAvailable
(link)
app/src/frontend/building/data-components/planning-data-entry.tsx:62
↓ 2 callers
Function
arrayToDictionary
* Transform an array of objects into a dictionary of arrays of objects, * where the objects are grouped into arrays given an arbitrary key function
app/src/frontend/helpers.ts:47
↓ 2 callers
Function
checkRegexParam
(param: string, regex: RegExp)
app/src/api/parameters.ts:45
↓ 2 callers
Method
clearResults
()
app/src/frontend/map/search-box.tsx:78
↓ 2 callers
Function
days_since
(date, now)
etl/planning_data/obtain_livestream_data_and_load_into_database.py:288
↓ 2 callers
Function
decBigInt
(bigStr: string)
app/src/helpers.ts:58
↓ 2 callers
Function
execute_database_command
(cursor, command, passed_values=None)
etl/planning_data/obtain_livestream_data_and_load_into_database.py:46
↓ 2 callers
Function
find_by_reference
Find building_id by TOID or UPRN
etl/join_building_data/load_csv_to_staging.py:86
↓ 2 callers
Function
find_by_reference
Find building_id by TOID or UPRN
etl/join_building_data/load_csv.py:151
↓ 2 callers
Function
flipBorough
(e)
app/src/frontend/displayPreferences-context.tsx:286
↓ 2 callers
Function
flipConservation
(e)
app/src/frontend/displayPreferences-context.tsx:316
↓ 2 callers
Function
flipDarkLightTheme
(e)
app/src/frontend/displayPreferences-context.tsx:397
↓ 2 callers
Function
flipEditableBuildings
(e)
app/src/frontend/displayPreferences-context.tsx:382
↓ 2 callers
Function
flipParcel
(e)
app/src/frontend/displayPreferences-context.tsx:301
↓ 2 callers
Function
flipShowLayerSelection
(e)
app/src/frontend/displayPreferences-context.tsx:412
↓ 2 callers
Function
flipWorldHeritageSites
(e)
app/src/frontend/displayPreferences-context.tsx:331
↓ 2 callers
Function
formatParams
({ tileset, z, x, y, scale }: TileParams)
app/src/tiles/util.ts:19
↓ 2 callers
Function
formatValue
(value: any)
app/src/frontend/building/edit-history/field-edit-summary.tsx:9
↓ 2 callers
Function
getBbox
(z, x, y)
app/src/tiles/util.ts:11
↓ 2 callers
Function
getBuildingLayerNames
()
app/src/tiles/dataDefinition.ts:869
↓ 2 callers
Method
getEditedBuilding
()
app/src/frontend/building/data-container.tsx:168
↓ 2 callers
Method
handleChange
(event: FormEvent<HTMLInputElement>)
app/src/frontend/user/password-reset.tsx:41
↓ 2 callers
Method
handleClick
(verify)
app/src/frontend/building/data-components/verification.tsx:22
↓ 2 callers
Function
hasDeletions
(json)
app/src/api/dataAccess/__mocks__/editHistory.ts:20
↓ 2 callers
Function
incBigInt
(bigStr: string)
app/src/helpers.ts:55
↓ 2 callers
Function
isArchived
(item)
app/src/frontend/building/data-containers/planning-conservation.tsx:36
↓ 2 callers
Function
isComplex
(x: any)
app/src/frontend/building/edit-history/field-edit-summary.tsx:19
↓ 2 callers
Function
lifespan
(a: number, b: number)
app/src/frontend/building/data-containers/dynamics/dynamics-data-entry.tsx:24
↓ 2 callers
Function
logout
(session: Express.Session)
app/src/api/services/user.ts:186
↓ 2 callers
Function
numDesc
(accessor: AccessorFunction<T, V>)
app/src/helpers.ts:46
↓ 2 callers
Function
osgb_toid
(toid)
etl/join_building_data/load_shapefile_to_staging.py:69
↓ 2 callers
Function
osgb_toid
(toid)
etl/join_building_data/load_shapefile.py:69
↓ 2 callers
Function
parseDate
* Parse a string containing an ISO8601 formatted date * @param isoUtcDate a date string in ISO8601 format, assuming UTC * @returns a JS Date object
app/src/frontend/helpers.ts:59
↓ 2 callers
Function
parseDateSpecifiedWithDailyAccuracy
(isoUtcDate: string)
app/src/frontend/building/data-containers/planning-conservation.tsx:29
↓ 2 callers
Method
put
(im: Image, tileParams: TileParams)
app/src/tiles/tileCache.ts:86
↓ 2 callers
Method
remove
(tileParams: TileParams)
app/src/tiles/tileCache.ts:102
↓ 2 callers
Function
renderBuildingTile
(t: TileParams, d: any)
app/src/tiles/rendererDefinition.ts:59
↓ 2 callers
Function
renderHTML
(context, data, req, res)
app/src/frontendRoute.tsx:77
↓ 2 callers
Function
sendBuildingUpdate
(buildingId: number, edits: BuildingEdits)
app/src/frontend/api-data/building-update.ts:26
↓ 2 callers
Method
shouldUseCache
(tileParams: TileParams)
app/src/tiles/tileCache.ts:137
↓ 2 callers
Function
show_dictionary
(data)
etl/planning_data/obtain_livestream_data_and_load_into_database.py:283
↓ 2 callers
Function
transformValue
(value: string)
app/src/frontend/building/data-components/data-entry-input.tsx:30
↓ 2 callers
Function
unless
Returns first argument, unless it's equal to the second argument - then returns undefined
app/src/frontend/map-app.tsx:50
↓ 2 callers
Function
useMultiEditData
()
app/src/frontend/hooks/use-multi-edit-data.ts:4
↓ 2 callers
Function
validatePassword
(password: string)
app/src/api/validation.ts:15
↓ 2 callers
Function
valueType
()
app/src/helpers.ts:90
↓ 1 callers
Function
add_extract_record_to_database
(connection, zip_file_path, extracted_time)
maintenance/extract_data/extract_data.py:31
↓ 1 callers
Function
aggregateUserAttributes
( buildingId: number, userId: string, { attributes, userAttributes } : BuildingUpdate, t?: ITa
app/src/api/services/domainLogic/aggregateUserAttributes.ts:6
↓ 1 callers
Function
apiDelete
(path: string, options?: { jsonReviver?: JsonReviver })
app/src/frontend/apiHelpers.ts:15
↓ 1 callers
Function
asVerified
(verifications)
app/src/api/dataAccess/verify.ts:44
↓ 1 callers
Function
authUser
(username: string, password: string)
app/src/api/services/user.ts:56
↓ 1 callers
Function
buildPartialMatchQuery
(value: string)
app/src/api/services/autofill.ts:43
↓ 1 callers
Function
buildingExists
(buildingId: number, t?: ITask<any>)
app/src/api/dataAccess/building.ts:172
↓ 1 callers
Function
cacheOrCreateBuildingTile
(tileParams: TileParams, dataParams: any)
app/src/tiles/rendererDefinition.ts:61
↓ 1 callers
Function
canEdit
(key: string, allowDerived: boolean = false)
app/src/api/services/domainLogic/validateUpdate.ts:19
↓ 1 callers
Function
canVerify
(key: string)
app/src/api/services/building/verify.ts:7
↓ 1 callers
Function
check_data_present
(building_id, fields, base_url)
etl/join_building_data/load_csv.py:96
↓ 1 callers
Method
clearEdits
()
app/src/frontend/building/data-container.tsx:162
↓ 1 callers
Method
clearQuery
()
app/src/frontend/map/search-box.tsx:84
next →
1–100 of 545, ranked by callers