MCPcopy Create free account

hub / github.com/Snaacky/theindex / functions

Functions335 in github.com/Snaacky/theindex

↓ 41 callersFunctiongetAllCache
(type: Types)
lib/db/cache.ts:55
↓ 30 callersFunctioncanEdit
(session: Session | null, type = 'item')
lib/session.ts:12
↓ 29 callersFunctionupdateAllCache
(type: Types, data?: string | object)
lib/db/cache.ts:75
↓ 26 callersFunctionError
({ statusCode, error })
pages/_error.tsx:11
↓ 25 callersFunctionisAdmin
(session: Session | null)
lib/session.ts:22
↓ 24 callersFunctionfindOne
( collection: string, query: Record<string, any> )
lib/db/db.ts:54
↓ 23 callersFunctiongetAll
(collection: string)
lib/db/db.ts:34
↓ 22 callersFunctionupdateSingleCache
( type: Types, _id: string, data?: string | object )
lib/db/cache.ts:40
↓ 18 callersFunctiongetSingleCache
( type: Types, _id: string )
lib/db/cache.ts:18
↓ 16 callersFunctionpostData
( url, object, onSuccess: null | ((result: string) => void) = null )
lib/utils.ts:15
↓ 14 callersFunctionfind
( collection: string, query: Record<string, any> )
lib/db/db.ts:44
↓ 14 callersFunctionisLogin
(session: Session | null)
lib/session.ts:3
↓ 13 callersFunctiondeleteOne
( collection: string, query: Record<string, any> )
lib/db/db.ts:131
↓ 13 callersFunctioninsert
( collection: string, data: Record<string, any> )
lib/db/db.ts:82
↓ 12 callersFunctioncount
( collection: string, query: Record<string, any> = {} )
lib/db/db.ts:66
↓ 12 callersFunctionupdateOne
( collection: string, query: Record<string, any>, data: Record<string, any> )
lib/db/db.ts:107
↓ 10 callersFunctionisCurrentUser
(session: Session | null, uid)
lib/session.ts:36
↓ 9 callersFunctionfindOneTyped
( type: Types, _id: string | Record<string, any> )
lib/db/dbTyped.ts:60
↓ 7 callersFunctionisValidUrl
(url = '')
lib/utils.ts:5
↓ 7 callersFunctionupdateCollection
( _id: string, { urlId, img, name, nsfw, description, columns, items }: CollectionUpdate )
lib/db/collections.ts:52
↓ 6 callersFunctionclearSingleCache
(type: Types, _id: string)
lib/db/cache.ts:127
↓ 6 callersFunctiongetCollections
()
lib/db/collections.ts:8
↓ 6 callersFunctiongetItem
(_id: string)
lib/db/items.ts:40
↓ 6 callersFunctionhasOwnProperty
( obj: X, prop: Y )
lib/utils.ts:49
↓ 6 callersFunctionisEditor
(session: Session | null)
lib/session.ts:29
↓ 6 callersFunctionsingularToPlural
(type: Types)
lib/utils.ts:56
↓ 5 callersFunctioncreateScreenshot
(_id: string)
lib/crawler/screenshot.ts:5
↓ 5 callersFunctiongetLastViews
(type: Types, n: number)
lib/db/views.ts:11
↓ 5 callersFunctionpolluteId
(query: Record<string, any>)
lib/db/utils.ts:21
↓ 5 callersFunctionsetCache
(key: string, data: string | object)
lib/db/cache.ts:107
↓ 5 callersFunctionupdateLibrary
( _id: string, { urlId, img, name, nsfw, description, collections, order }: LibraryUpdate )
lib/db/libraries.ts:50
↓ 5 callersFunctionwarnEnv
(env, defaultValue)
cleanup.mjs:21
↓ 4 callersFunctioncleanId
(data: Record<string, any>)
lib/db/utils.ts:4
↓ 4 callersFunctiongetCache
(key: string)
lib/db/cache.ts:86
↓ 4 callersFunctiongetList
(_id: string)
lib/db/lists.ts:13
↓ 4 callersFunctionsortContent
(newContent)
components/boards/Board.tsx:137
↓ 4 callersFunctionupdate
(collection, query, data)
cleanup.mjs:125
↓ 4 callersFunctionupdateFilter
(column, value)
components/ColumnFilter.tsx:6
↓ 4 callersFunctionupdateUser
( uid: string, { accountType, description, favs, lists, followLists }: UserUpdate )
lib/db/users.ts:119
↓ 3 callersFunctionadjustDragPosition
({ x = toggleButtonDragPadding, y = toggleButtonDragPadding, })
components/navbar/NavbarOutsideToggler.tsx:92
↓ 3 callersFunctionclickFunc
()
components/navbar/Sidebar.tsx:32
↓ 3 callersFunctiongetAllTyped
(type: Types)
lib/db/dbTyped.ts:21
↓ 3 callersFunctiongetByUrlIdTyped
(type: Types, urlId: string)
lib/db/dbTyped.ts:121
↓ 3 callersFunctiongetColumns
()
lib/db/columns.ts:10
↓ 3 callersFunctiongetItems
()
lib/db/items.ts:27
↓ 3 callersFunctiongetLanguages
()
lib/utils.ts:74
↓ 3 callersFunctionpostItemUpdate
( user: User, oldItem: Item | null, newItem: Item | null )
lib/webhook.ts:184
↓ 3 callersFunctionscreenshotExists
(itemId: string)
lib/db/itemScreenshots.ts:68
↓ 3 callersFunctionsplitColumnsIntoTypes
( columns: Column[], itemData: Record<string, boolean | string | string[]> )
lib/item.ts:11
↓ 3 callersFunctionupdateContent
(newContent, newUnselectedContent)
components/boards/Board.tsx:141
↓ 3 callersFunctionupdateList
( _id: string, { name, nsfw, description, columns, items }: ListUpdate )
lib/db/lists.ts:42
↓ 2 callersFunctionaddItemScreenshot
(img: Uint8Array, itemId: string)
lib/db/itemScreenshots.ts:30
↓ 2 callersFunctionaddUser
({ uid, accountType = AccountType.user, description = '', }: { uid: string accountType?: AccountType
lib/db/users.ts:90
↓ 2 callersFunctiondeleteList
(_id: string)
lib/db/lists.ts:70
↓ 2 callersFunctionerrorEnv
(env)
cleanup.mjs:16
↓ 2 callersFunctionextractFieldsFromItemDataDiff
( oldItem: Item | null, newItem: Item | null )
lib/webhook.ts:8
↓ 2 callersFunctionfetchSite
(url: string, itemId?: string)
lib/crawler/browser.ts:3
↓ 2 callersFunctionfetchingEndpoint
( endpoint: string, secret: string, onSuccess: (data: any) => void )
pages/validate-api.tsx:442
↓ 2 callersFunctionfilterContent
(contentList)
components/boards/Board.tsx:273
↓ 2 callersFunctiongatherUserInfo
(user: User | null)
lib/db/users.ts:22
↓ 2 callersFunctiongetLibraries
()
lib/db/libraries.ts:10
↓ 2 callersFunctiongetLibrariesWithCollections
()
lib/db/libraries.ts:84
↓ 2 callersFunctionimages
()
lib/icon.ts:4
↓ 2 callersFunctionjoinUrlAndId
(url: string, id: string)
pages/validate-api.tsx:487
↓ 2 callersFunctionparseDataToArray
( input: boolean | string | string[] | undefined | null )
components/data/DataItem.tsx:30
↓ 2 callersFunctionparseDataToBooleanOrUndefined
( input: boolean | string | string[] | undefined | null )
components/data/DataItem.tsx:15
↓ 2 callersFunctionpolluteId
(query)
cleanup.mjs:110
↓ 2 callersFunctionrenderSingleContent
( renderContent, addAllowed = false, moveAllowed = false, removeAllowed = false )
components/boards/Board.tsx:186
↓ 2 callersFunctionreturnText
(bool: boolean)
components/alerts/DiscordBanner.tsx:22
↓ 2 callersFunctionsignIn
({ user, account, isNewUser })
auth.ts:62
↓ 2 callersFunctiontoggleClick
()
components/navbar/NavbarOutsideToggler.tsx:45
↓ 2 callersFunctiontriggerPingUpdate
(itemId: string)
pages/api/item/ping/[id].ts:53
↓ 1 callersFunctionaddCollection
( urlId: string, img = 'puzzled.png', name: string, nsfw = false, description = '', columns: strin
lib/db/collections.ts:24
↓ 1 callersFunctionaddColumn
( urlId: string, name: string, nsfw = false, description = '', type, values: string[] = [] )
lib/db/columns.ts:18
↓ 1 callersFunctionaddItem
( name: string, urls: string, nsfw: boolean = false, description: string = '', blacklist: boolean =
lib/db/items.ts:48
↓ 1 callersFunctionaddLibrary
( urlId: string, img: string = 'puzzled.png', name: string, nsfw: boolean = false, description: stri
lib/db/libraries.ts:24
↓ 1 callersFunctionaddList
( owner: string, name: string, nsfw: boolean = false, description: string = '', columns: string[] =
lib/db/lists.ts:17
↓ 1 callersFunctionaddView
({ uid, type, contentId })
lib/db/views.ts:63
↓ 1 callersFunctioncleanHtmlString
(htmlString: string)
lib/crawler/html.ts:62
↓ 1 callersFunctionclearAllScreenshots
()
lib/db/itemScreenshots.ts:77
↓ 1 callersFunctionclearCache
(key: string)
lib/db/cache.ts:131
↓ 1 callersFunctionclearCompleteCache
()
lib/db/cache.ts:139
↓ 1 callersFunctioncountLibraries
()
lib/db/libraries.ts:20
↓ 1 callersFunctioncountTyped
(type: Types, query?: Record<string, any>)
lib/db/dbTyped.ts:104
↓ 1 callersFunctiondataUpdate
(column, value)
components/edit/EditItem.tsx:115
↓ 1 callersFunctiondeleteCollection
(_id: string)
lib/db/collections.ts:113
↓ 1 callersFunctiondeleteColumn
(_id: string)
lib/db/columns.ts:101
↓ 1 callersFunctiondeleteItem
(_id: string, user?: User)
lib/db/items.ts:155
↓ 1 callersFunctiondeleteLibrary
(_id: string)
lib/db/libraries.ts:102
↓ 1 callersFunctiondist
(a, b)
components/navbar/NavbarOutsideToggler.tsx:96
↓ 1 callersFunctionexportData
(isAdmin = false)
lib/db/db.ts:14
↓ 1 callersFunctionfilterLinks
(links: string[], domain: URL)
lib/crawler/html.ts:28
↓ 1 callersFunctiongetCollection
(_id: string)
lib/db/collections.ts:16
↓ 1 callersFunctiongetColumn
(_id: string)
lib/db/columns.ts:14
↓ 1 callersFunctiongetError
(statusCode: number)
lib/error.ts:9
↓ 1 callersFunctiongetItemScreenshotBuffer
(itemId: string)
lib/db/itemScreenshots.ts:59
↓ 1 callersFunctiongetLibrary
(_id: string)
lib/db/libraries.ts:16
↓ 1 callersFunctiongetLists
()
lib/db/lists.ts:9
↓ 1 callersFunctionhandleRouteChange
(url)
pages/_app.tsx:30
↓ 1 callersFunctionimgToStream
(img: Uint8Array)
lib/db/itemScreenshots.ts:23
next →1–100 of 335, ranked by callers