MCPcopy Create free account

hub / github.com/PrivacySafe/sticktock / functions

Functions96 in github.com/PrivacySafe/sticktock

↓ 37 callersFunctionfindObjectWithKey
( obj: AnyObject, key: string )
backend-api/legacy/old-fetching-helpers.ts:72
↓ 14 callersFunctiondownloadFileHelper
( url: string, dirPath: string, path: string, cookies?: string )
backend-api/legacy/old-fetching-helpers.ts:20
↓ 14 callersFunctionfindObjectWithKey
( obj: AnyObject, key: string )
backend-api/utils/objects.ts:3
↓ 13 callersFunctionfetchPostByTiktokId
(id: string)
backend-api/utils/db-helpers.ts:15
↓ 9 callersFunctiondownloadFileHelper
( url: string, dirPath: string, filePath: string, cookies?: string )
backend-api/utils/disk-utils.ts:21
↓ 8 callersFunctioncreatePost
(postData: { authorId: number; type: string; tiktokId: string; videoId?: number; // Optional, assuming
backend-api/utils/db-helpers.ts:200
↓ 8 callersFunctionfetchSessionByToken
(token: string)
backend-api/utils/db-helpers.ts:267
↓ 6 callersFunctionfindAuthorByTiktokId
(tiktokId: string)
backend-api/utils/db-helpers.ts:225
↓ 5 callersFunctioncheckAndCleanPublicFolder
()
backend-api/utils/disk-utils.ts:169
↓ 5 callersFunctioncreateSession
(token: string)
backend-api/utils/db-helpers.ts:275
↓ 4 callersFunctioncreateAuthor
( tiktokId: string, name: string, image: string, handle: string )
backend-api/utils/db-helpers.ts:234
↓ 4 callersFunctioncreateCarousel
(carouselData: { audio: string; images: string; postId: number; })
backend-api/utils/db-helpers.ts:90
↓ 4 callersFunctioncreateVideo
(videoData: { mp4video: string; thumbnail?: string; postId: number; })
backend-api/utils/db-helpers.ts:110
↓ 4 callersFunctiondownloadFile
( url: string, dirPath: string, path: string, cookies?: { name: string; value: string; }[] )
backend-api/legacy/old-puppetteer-methods.ts:33
↓ 4 callersFunctiondownloadPostByUrl
(url: string, originalID: number)
backend-api/utils/tiktok-api-wrappers.ts:479
↓ 4 callersFunctionupdateSession
(token: string, watched: string)
backend-api/utils/db-helpers.ts:283
↓ 3 callersFunctionensureDirectoryExistence
(filePath: string)
backend-api/utils/disk-utils.ts:9
↓ 3 callersFunctionensureFolderPresence
(folderPath: string)
backend-api/utils/setup-funcs.ts:9
↓ 3 callersFunctionfetchPostById
(id: number)
backend-api/utils/db-helpers.ts:76
↓ 2 callersFunctionclickArrow
(dir: 'left' | 'right')
frontend/src/components/Carousel/index.tsx:70
↓ 2 callersFunctionensureDirectoryExistence
(filePath: string)
backend-api/legacy/old-fetching-helpers.ts:93
↓ 2 callersFunctionextractDataFromJson
(jsonData: any, cookies: string[])
backend-api/utils/tiktok-api-wrappers.ts:118
↓ 2 callersFunctionfetchAndFollowURL
(url: string)
backend-api/utils/tiktok-api-wrappers.ts:177
↓ 2 callersFunctionfetchPostByUrlAndMode
( url: string, mode: (typeof URL_SANS_BOGUS)[keyof typeof URL_SANS_BOGUS], sessionToken?: string )
backend-api/utils/tiktok-api-wrappers.ts:294
↓ 2 callersFunctiongetBrowser
()
backend-api/legacy/puppeteer.ts:5
↓ 2 callersFunctionjustFetchPost
(url: string)
backend-api/legacy/old-fetching-helpers.ts:354
↓ 2 callersFunctionparseTikTokData
(res: Response)
backend-api/utils/tiktok-api-wrappers.ts:55
↓ 2 callersFunctionpullVideoData
( jsonContent: any, mode: (typeof URL_SANS_BOGUS)[keyof typeof URL_SANS_BOGUS], watchedIds?: string[] )
backend-api/utils/tiktok-api-wrappers.ts:219
↓ 2 callersFunctionrestorePost
(id: number)
backend-api/utils/db-helpers.ts:64
↓ 2 callersFunctiontiktokFetchOptions
({ formattedCookies, stringURL, }: { formattedCookies: string; stringURL: string; })
backend-api/utils/tiktok-api-wrappers.ts:27
↓ 1 callersFunctioncalculateFolderSize
(currentPath: string)
backend-api/utils/disk-utils.ts:150
↓ 1 callersFunctioncheckURL
(url: string)
frontend/utils/strings/check-url.ts:1
↓ 1 callersFunctioncleanFolder
()
backend-api/utils/disk-utils.ts:218
↓ 1 callersFunctioncopyURL
()
frontend/src/components/PostOptions/index.tsx:49
↓ 1 callersFunctiondeleteFilesAndDirectories
( tiktokID: string, type: string, id: number )
backend-api/utils/disk-utils.ts:174
↓ 1 callersFunctiondeletePost
(id: number)
backend-api/utils/db-helpers.ts:53
↓ 1 callersFunctiondownloadThroughFetch
(url: string)
backend-api/legacy/old-fetching-helpers.ts:102
↓ 1 callersFunctionensureLinkPresence
(target: string, linkPath: string)
backend-api/utils/setup-funcs.ts:26
↓ 1 callersFunctionensurePresenceOfSqliteDBFile
()
backend-api/utils/setup-funcs.ts:43
↓ 1 callersFunctionfetchNewestPost
()
backend-api/utils/db-helpers.ts:150
↓ 1 callersFunctionfetchOldestPost
()
backend-api/utils/db-helpers.ts:35
↓ 1 callersFunctionfetchPostData
(url: string)
frontend/src/app/sd/[subdomain]/[...path]/page.tsx:78
↓ 1 callersFunctionfetchPostData
(id: string)
frontend/src/app/post/[id]/page.tsx:10
↓ 1 callersFunctiongenerateSessionToken
(length = 32)
frontend/utils/strings/generate-token.ts:6
↓ 1 callersFunctiongenerateSessionToken
(length = 32)
frontend/src/app/api/post/[id]/route.ts:8
↓ 1 callersFunctiongetFolderSize
(folderPath: string)
backend-api/utils/disk-utils.ts:147
↓ 1 callersFunctiongetImages
( audio: string | undefined, urls: string[], id: string, authorId: number, originalURL: string, po
backend-api/legacy/old-puppetteer-methods.ts:234
↓ 1 callersFunctiongetRandomPost
()
backend-api/utils/db-helpers.ts:129
↓ 1 callersFunctiongetRelatedPosts
(url: string, session?: string)
backend-api/legacy/old-fetching-helpers.ts:544
↓ 1 callersFunctiongetUserData
(url: string, browser: Browser)
backend-api/legacy/old-puppetteer-methods.ts:170
↓ 1 callersFunctiongetVideo
( url: string, id: string, authorId: number, browser: Browser, originalURL: string )
backend-api/legacy/old-puppetteer-methods.ts:88
↓ 1 callersFunctionisInBlacklist
(url: URL)
backend-api/utils/tiktok-api-wrappers.ts:159
↓ 1 callersFunctionisInWhitelist
(url: URL)
backend-api/utils/tiktok-api-wrappers.ts:146
↓ 1 callersFunctionopenDb
()
backend-api/utils/db-helpers.ts:6
↓ 1 callersFunctionproccess
(catchAll: string[])
frontend/src/app/[...catchAll]/page.tsx:4
↓ 1 callersFunctionsetupVarDataFolder
()
backend-api/utils/setup-funcs.ts:66
↓ 1 callersFunctionthrowIfBaseDomainIsNotInWhitelist
(url: URL)
backend-api/utils/tiktok-api-wrappers.ts:168
FunctionCarousel
({ images, audio, username, profilePic, handle, description, feedEl, postId, })
frontend/src/components/Carousel/index.tsx:38
FunctionCatchAll
({ params: { catchAll }, }: { params: { catchAll: string[]; }; })
frontend/src/app/[...catchAll]/page.tsx:33
FunctionCatchAll
({ params: { subdomain, path }, }: { params: { subdomain: string; path: string[]; }; })
frontend/src/app/sd/[subdomain]/[...path]/page.tsx:109
FunctionFeed
({ rootPost, token })
frontend/src/components/Feed/index.tsx:23
FunctionGET
( req: NextRequest, { params: { id } }: { params: { id: string } } )
frontend/src/app/api/post/[id]/route.ts:12
FunctionHome
()
frontend/src/app/page.tsx:4
FunctionHomePage
()
frontend/src/components/HomePage/index.tsx:10
FunctionLoading
()
frontend/src/app/[...catchAll]/loading.tsx:3
FunctionLoading
()
frontend/src/app/sd/[subdomain]/[...path]/loading.tsx:3
FunctionLoadingSpinner
({ width = 20, height = 20 })
frontend/src/components/Loading.tsx:1
FunctionPlayButton
()
frontend/src/components/Carousel/index.tsx:23
FunctionPlayButton
()
frontend/src/components/VideoPlayer/index.tsx:19
FunctionPostOptions
({ downloadURL, setAlert })
frontend/src/components/PostOptions/index.tsx:11
FunctionPostPage
({ params }: { params: { id: string } })
frontend/src/app/post/[id]/page.tsx:102
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
frontend/src/app/layout.tsx:14
FunctionVideoPlayer
({ mp4URL, thumbnail, username, profilePic, handle, description, feedEl, postId, })
frontend/src/components/VideoPlayer/index.tsx:34
FunctioncheckAspectRatio
()
frontend/src/components/VideoPlayer/index.tsx:164
FunctioncloseDb
()
backend-api/utils/db-helpers.ts:11
FunctionextractThumbnail
( videoPath: string, outputThumbnailPath: string, callback: (err: string | null, output?: string) => voi
backend-api/utils/video-processing.ts:11
FunctionfindVideoByMp4URL
(mp4URL: string)
backend-api/utils/db-helpers.ts:141
FunctionfindVideoByTiktokID
(tiktokId: string)
backend-api/utils/db-helpers.ts:169
FunctiongenerateMetadata
( { params: { subdomain, path }, }: { params: { subdomain: string; path: string[];
frontend/src/app/sd/[subdomain]/[...path]/page.tsx:6
FunctiongenerateMetadata
( { params }: { params: { id: string } }, parent: ResolvingMetadata )
frontend/src/app/post/[id]/page.tsx:35
FunctiongetFileSize
(filePath: string)
backend-api/utils/disk-utils.ts:142
FunctiongetPost
(post: string, parsedURL: ParsedURL)
backend-api/legacy/old-puppetteer-methods.ts:315
FunctiongetRandomPostWithVideo
(req, res)
backend-api/routes/random.ts:8
FunctiongetRelatedVideos
(req, res)
backend-api/routes/get-video.ts:26
FunctiongetRelatedVideos
(req, res)
backend-api/routes/related.ts:15
FunctiongetSessionToken
(req: NextApiRequest, res: NextApiResponse)
frontend/utils/strings/generate-token.ts:10
FunctiongetVideo
(req, res)
backend-api/routes/get-video.ts:71
FunctiongetVideoById
(req, res)
backend-api/routes/by-id.ts:10
FunctiongetVideoById
(req, res)
backend-api/routes/get-video.ts:148
FunctiongetVideoByUrl
(req, res)
backend-api/routes/by-url.ts:10
FunctionhandleResponse
(response: http.IncomingMessage)
backend-api/utils/disk-utils.ts:46
FunctionhandleTouchEnd
(e: Event)
frontend/src/components/VideoPlayer/index.tsx:94
FunctionhandleTouchStart
(e: Event)
frontend/src/components/VideoPlayer/index.tsx:85
FunctionparsePostURL
(post: string)
backend-api/legacy/old-puppetteer-methods.ts:277
FunctionupdateAuthor
( tiktokId: string, name: string, image: string )
backend-api/utils/db-helpers.ts:251
FunctionupdateVideo
(videoData: { mp4video?: string; thumbnail?: string; postId: number; })
backend-api/utils/db-helpers.ts:182