Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snaacky/theindex
/ functions
Functions
335 in github.com/Snaacky/theindex
⨍
Functions
335
◇
Types & classes
21
↓ 41 callers
Function
getAllCache
(type: Types)
lib/db/cache.ts:55
↓ 30 callers
Function
canEdit
(session: Session | null, type = 'item')
lib/session.ts:12
↓ 29 callers
Function
updateAllCache
(type: Types, data?: string | object)
lib/db/cache.ts:75
↓ 26 callers
Function
Error
({ statusCode, error })
pages/_error.tsx:11
↓ 25 callers
Function
isAdmin
(session: Session | null)
lib/session.ts:22
↓ 24 callers
Function
findOne
( collection: string, query: Record<string, any> )
lib/db/db.ts:54
↓ 23 callers
Function
getAll
(collection: string)
lib/db/db.ts:34
↓ 22 callers
Function
updateSingleCache
( type: Types, _id: string, data?: string | object )
lib/db/cache.ts:40
↓ 18 callers
Function
getSingleCache
( type: Types, _id: string )
lib/db/cache.ts:18
↓ 16 callers
Function
postData
( url, object, onSuccess: null | ((result: string) => void) = null )
lib/utils.ts:15
↓ 14 callers
Function
find
( collection: string, query: Record<string, any> )
lib/db/db.ts:44
↓ 14 callers
Function
isLogin
(session: Session | null)
lib/session.ts:3
↓ 13 callers
Function
deleteOne
( collection: string, query: Record<string, any> )
lib/db/db.ts:131
↓ 13 callers
Function
insert
( collection: string, data: Record<string, any> )
lib/db/db.ts:82
↓ 12 callers
Function
count
( collection: string, query: Record<string, any> = {} )
lib/db/db.ts:66
↓ 12 callers
Function
updateOne
( collection: string, query: Record<string, any>, data: Record<string, any> )
lib/db/db.ts:107
↓ 10 callers
Function
isCurrentUser
(session: Session | null, uid)
lib/session.ts:36
↓ 9 callers
Function
findOneTyped
( type: Types, _id: string | Record<string, any> )
lib/db/dbTyped.ts:60
↓ 7 callers
Function
isValidUrl
(url = '')
lib/utils.ts:5
↓ 7 callers
Function
updateCollection
( _id: string, { urlId, img, name, nsfw, description, columns, items }: CollectionUpdate )
lib/db/collections.ts:52
↓ 6 callers
Function
clearSingleCache
(type: Types, _id: string)
lib/db/cache.ts:127
↓ 6 callers
Function
getCollections
()
lib/db/collections.ts:8
↓ 6 callers
Function
getItem
(_id: string)
lib/db/items.ts:40
↓ 6 callers
Function
hasOwnProperty
( obj: X, prop: Y )
lib/utils.ts:49
↓ 6 callers
Function
isEditor
(session: Session | null)
lib/session.ts:29
↓ 6 callers
Function
singularToPlural
(type: Types)
lib/utils.ts:56
↓ 5 callers
Function
createScreenshot
(_id: string)
lib/crawler/screenshot.ts:5
↓ 5 callers
Function
getLastViews
(type: Types, n: number)
lib/db/views.ts:11
↓ 5 callers
Function
polluteId
(query: Record<string, any>)
lib/db/utils.ts:21
↓ 5 callers
Function
setCache
(key: string, data: string | object)
lib/db/cache.ts:107
↓ 5 callers
Function
updateLibrary
( _id: string, { urlId, img, name, nsfw, description, collections, order }: LibraryUpdate )
lib/db/libraries.ts:50
↓ 5 callers
Function
warnEnv
(env, defaultValue)
cleanup.mjs:21
↓ 4 callers
Function
cleanId
(data: Record<string, any>)
lib/db/utils.ts:4
↓ 4 callers
Function
getCache
(key: string)
lib/db/cache.ts:86
↓ 4 callers
Function
getList
(_id: string)
lib/db/lists.ts:13
↓ 4 callers
Function
sortContent
(newContent)
components/boards/Board.tsx:137
↓ 4 callers
Function
update
(collection, query, data)
cleanup.mjs:125
↓ 4 callers
Function
updateFilter
(column, value)
components/ColumnFilter.tsx:6
↓ 4 callers
Function
updateUser
( uid: string, { accountType, description, favs, lists, followLists }: UserUpdate )
lib/db/users.ts:119
↓ 3 callers
Function
adjustDragPosition
({ x = toggleButtonDragPadding, y = toggleButtonDragPadding, })
components/navbar/NavbarOutsideToggler.tsx:92
↓ 3 callers
Function
clickFunc
()
components/navbar/Sidebar.tsx:32
↓ 3 callers
Function
getAllTyped
(type: Types)
lib/db/dbTyped.ts:21
↓ 3 callers
Function
getByUrlIdTyped
(type: Types, urlId: string)
lib/db/dbTyped.ts:121
↓ 3 callers
Function
getColumns
()
lib/db/columns.ts:10
↓ 3 callers
Function
getItems
()
lib/db/items.ts:27
↓ 3 callers
Function
getLanguages
()
lib/utils.ts:74
↓ 3 callers
Function
postItemUpdate
( user: User, oldItem: Item | null, newItem: Item | null )
lib/webhook.ts:184
↓ 3 callers
Function
screenshotExists
(itemId: string)
lib/db/itemScreenshots.ts:68
↓ 3 callers
Function
splitColumnsIntoTypes
( columns: Column[], itemData: Record<string, boolean | string | string[]> )
lib/item.ts:11
↓ 3 callers
Function
updateContent
(newContent, newUnselectedContent)
components/boards/Board.tsx:141
↓ 3 callers
Function
updateList
( _id: string, { name, nsfw, description, columns, items }: ListUpdate )
lib/db/lists.ts:42
↓ 2 callers
Function
addItemScreenshot
(img: Uint8Array, itemId: string)
lib/db/itemScreenshots.ts:30
↓ 2 callers
Function
addUser
({ uid, accountType = AccountType.user, description = '', }: { uid: string accountType?: AccountType
lib/db/users.ts:90
↓ 2 callers
Function
deleteList
(_id: string)
lib/db/lists.ts:70
↓ 2 callers
Function
errorEnv
(env)
cleanup.mjs:16
↓ 2 callers
Function
extractFieldsFromItemDataDiff
( oldItem: Item | null, newItem: Item | null )
lib/webhook.ts:8
↓ 2 callers
Function
fetchSite
(url: string, itemId?: string)
lib/crawler/browser.ts:3
↓ 2 callers
Function
fetchingEndpoint
( endpoint: string, secret: string, onSuccess: (data: any) => void )
pages/validate-api.tsx:442
↓ 2 callers
Function
filterContent
(contentList)
components/boards/Board.tsx:273
↓ 2 callers
Function
gatherUserInfo
(user: User | null)
lib/db/users.ts:22
↓ 2 callers
Function
getLibraries
()
lib/db/libraries.ts:10
↓ 2 callers
Function
getLibrariesWithCollections
()
lib/db/libraries.ts:84
↓ 2 callers
Function
images
()
lib/icon.ts:4
↓ 2 callers
Function
joinUrlAndId
(url: string, id: string)
pages/validate-api.tsx:487
↓ 2 callers
Function
parseDataToArray
( input: boolean | string | string[] | undefined | null )
components/data/DataItem.tsx:30
↓ 2 callers
Function
parseDataToBooleanOrUndefined
( input: boolean | string | string[] | undefined | null )
components/data/DataItem.tsx:15
↓ 2 callers
Function
polluteId
(query)
cleanup.mjs:110
↓ 2 callers
Function
renderSingleContent
( renderContent, addAllowed = false, moveAllowed = false, removeAllowed = false )
components/boards/Board.tsx:186
↓ 2 callers
Function
returnText
(bool: boolean)
components/alerts/DiscordBanner.tsx:22
↓ 2 callers
Function
signIn
({ user, account, isNewUser })
auth.ts:62
↓ 2 callers
Function
toggleClick
()
components/navbar/NavbarOutsideToggler.tsx:45
↓ 2 callers
Function
triggerPingUpdate
(itemId: string)
pages/api/item/ping/[id].ts:53
↓ 1 callers
Function
addCollection
( urlId: string, img = 'puzzled.png', name: string, nsfw = false, description = '', columns: strin
lib/db/collections.ts:24
↓ 1 callers
Function
addColumn
( urlId: string, name: string, nsfw = false, description = '', type, values: string[] = [] )
lib/db/columns.ts:18
↓ 1 callers
Function
addItem
( name: string, urls: string, nsfw: boolean = false, description: string = '', blacklist: boolean =
lib/db/items.ts:48
↓ 1 callers
Function
addLibrary
( urlId: string, img: string = 'puzzled.png', name: string, nsfw: boolean = false, description: stri
lib/db/libraries.ts:24
↓ 1 callers
Function
addList
( owner: string, name: string, nsfw: boolean = false, description: string = '', columns: string[] =
lib/db/lists.ts:17
↓ 1 callers
Function
addView
({ uid, type, contentId })
lib/db/views.ts:63
↓ 1 callers
Function
cleanHtmlString
(htmlString: string)
lib/crawler/html.ts:62
↓ 1 callers
Function
clearAllScreenshots
()
lib/db/itemScreenshots.ts:77
↓ 1 callers
Function
clearCache
(key: string)
lib/db/cache.ts:131
↓ 1 callers
Function
clearCompleteCache
()
lib/db/cache.ts:139
↓ 1 callers
Function
countLibraries
()
lib/db/libraries.ts:20
↓ 1 callers
Function
countTyped
(type: Types, query?: Record<string, any>)
lib/db/dbTyped.ts:104
↓ 1 callers
Function
dataUpdate
(column, value)
components/edit/EditItem.tsx:115
↓ 1 callers
Function
deleteCollection
(_id: string)
lib/db/collections.ts:113
↓ 1 callers
Function
deleteColumn
(_id: string)
lib/db/columns.ts:101
↓ 1 callers
Function
deleteItem
(_id: string, user?: User)
lib/db/items.ts:155
↓ 1 callers
Function
deleteLibrary
(_id: string)
lib/db/libraries.ts:102
↓ 1 callers
Function
dist
(a, b)
components/navbar/NavbarOutsideToggler.tsx:96
↓ 1 callers
Function
exportData
(isAdmin = false)
lib/db/db.ts:14
↓ 1 callers
Function
filterLinks
(links: string[], domain: URL)
lib/crawler/html.ts:28
↓ 1 callers
Function
getCollection
(_id: string)
lib/db/collections.ts:16
↓ 1 callers
Function
getColumn
(_id: string)
lib/db/columns.ts:14
↓ 1 callers
Function
getError
(statusCode: number)
lib/error.ts:9
↓ 1 callers
Function
getItemScreenshotBuffer
(itemId: string)
lib/db/itemScreenshots.ts:59
↓ 1 callers
Function
getLibrary
(_id: string)
lib/db/libraries.ts:16
↓ 1 callers
Function
getLists
()
lib/db/lists.ts:9
↓ 1 callers
Function
handleRouteChange
(url)
pages/_app.tsx:30
↓ 1 callers
Function
imgToStream
(img: Uint8Array)
lib/db/itemScreenshots.ts:23
next →
1–100 of 335, ranked by callers