MCPcopy Create free account

hub / github.com/dfinity/cancan / functions

Functions136 in github.com/dfinity/cancan

↓ 10 callersFunctionunwrap
(val: Optional<T>)
src/utils/index.ts:19
↓ 6 callersFunctiongetUserFromCanister
( userId: string )
src/utils/canister.ts:92
↓ 5 callersFunctionsetDestination
(destination)
src/components/MainNav.tsx:16
↓ 4 callersMethodgetIdentity
()
src/utils/authClient.ts:43
↓ 4 callersFunctiongetPathRoot
(path)
src/components/MainNav.tsx:11
↓ 3 callersFunctiongetUserFromStorage
( storage = window.localStorage, key: string )
src/utils/canister.ts:24
↓ 3 callersMethodinitBaseActor
(identity?: Identity)
src/utils/canister/actor.ts:42
↓ 3 callersFunctionmultiSample
(array)
scripts/seed.ts:231
↓ 3 callersFunctionrandomize
(num)
scripts/seed.ts:225
↓ 3 callersFunctionuseAuth
()
src/utils/auth.tsx:171
↓ 2 callersFunctionclickSuperLike
(video: Cypress.Chainable<JQuery<HTMLElement>>)
e2e/cypress/integration/superlike.test.ts:19
↓ 2 callersFunctioncreateUser
( userId: string, principal?: Principal | null )
src/utils/canister.ts:48
↓ 2 callersFunctionencodeArrayBuffer
(file)
scripts/seed.ts:23
↓ 2 callersFunctionfileToImgSrc
(file: [] | number[][], imgType = "jpeg")
src/utils/index.ts:42
↓ 2 callersFunctiongenerateAliases
()
src/config/generateAliases.js:6
↓ 2 callersFunctiongenerateSeedData
()
scripts/seed.ts:155
↓ 2 callersFunctiongetCanisterId
(canisterName)
scripts/setup.ts:60
↓ 2 callersFunctiongetProfilePic
(userId: string)
src/utils/canister.ts:144
↓ 2 callersFunctionhandleFollow
(userToFollow: string, willFollow: boolean)
src/views/Profile.tsx:93
↓ 2 callersMethodisAuthenticated
()
src/utils/authClient.ts:47
↓ 2 callersFunctionsample
(array)
scripts/seed.ts:228
↓ 2 callersFunctionsetUserFromLocalStorage
()
src/utils/auth.tsx:42
↓ 2 callersFunctionwrapRouteWithFade
(Component)
src/AppRouter.tsx:14
↓ 1 callersMethodauthenticateActor
(identity: Identity)
src/utils/canister/actor.ts:62
↓ 1 callersFunctioncheckForNewMessages
()
src/components/RewardShowerNotification.tsx:44
↓ 1 callersFunctioncheckUsername
(username: string)
src/utils/canister.ts:251
↓ 1 callersFunctioncheckVidFromIC
(videoId: string, userId: string)
src/utils/video.ts:136
↓ 1 callersFunctionchunkFile
(filePath)
scripts/seed.ts:132
↓ 1 callersMethodcreate
()
src/utils/authClient.ts:22
↓ 1 callersFunctioncreateActor
(identity?: Identity)
src/utils/canister/actor.ts:20
↓ 1 callersFunctioncreateVideo
(videoInit: VideoInit)
src/utils/canister.ts:149
↓ 1 callersFunctioncreateVideo
( userNames: string[], videoNames: string[], captions: string[], _tags: string[] )
scripts/seed.ts:204
↓ 1 callersFunctionencodeArrayBuffer
(file: ArrayBuffer)
src/utils/index.ts:16
↓ 1 callersFunctionfetchProfilePic
()
src/views/Profile.tsx:75
↓ 1 callersFunctionfetchUserProfile
()
src/views/Profile.tsx:59
↓ 1 callersFunctionfollow
( userToFollow: string, follower: string, willFollow: boolean )
src/utils/canister.ts:160
↓ 1 callersFunctionformatBigNumber
(number: number)
src/utils/index.ts:27
↓ 1 callersFunctiongenerateThumbnail
(videoFile: File)
src/utils/video.ts:82
↓ 1 callersFunctiongetAlerted
()
src/components/DropDayNotification.tsx:15
↓ 1 callersFunctiongetCandid
(canisterName)
scripts/setup.ts:54
↓ 1 callersFunctiongetCanister
(canisterName: string, host = DEFAULT_HOST)
scripts/setup.ts:33
↓ 1 callersFunctiongetCanisterPath
(canisterName)
scripts/setup.ts:50
↓ 1 callersFunctiongetFeedVideos
(userId: string)
src/utils/canister.ts:122
↓ 1 callersFunctiongetFirstVideo
()
e2e/cypress/integration/superlike.test.ts:15
↓ 1 callersFunctiongetHost
()
src/utils/canister/actor.ts:13
↓ 1 callersFunctiongetMessages
(username: string)
src/utils/canister.ts:255
↓ 1 callersFunctiongetSearchVideos
( userId: string, terms: string[], limit: [] | [number] = [3] )
src/utils/canister.ts:105
↓ 1 callersFunctiongetUserNameByPrincipal
(principal: Principal)
src/utils/canister.ts:41
↓ 1 callersFunctiongetVideoChunks
(videoInfo: VideoInfo)
src/utils/canister.ts:197
↓ 1 callersFunctiongetVideoInfo
(userId: string, videoId: string)
src/utils/canister.ts:134
↓ 1 callersFunctiongetVideoInit
( userId: string, file: File, caption: string )
src/utils/video.ts:12
↓ 1 callersFunctiongetVideoPic
(videoId: string)
src/utils/canister.ts:230
↓ 1 callersFunctionhandleChange
(val: string)
src/views/Discover.tsx:26
↓ 1 callersFunctionhandleShowVideoPreview
(clickedVideo: VideoInfo)
src/views/Profile.tsx:55
↓ 1 callersFunctionhandleUpload
(fileToUpload)
src/utils/video.ts:154
↓ 1 callersFunctionisDropDay
()
src/utils/canister.ts:88
↓ 1 callersFunctionlike
(user: string, videoId: string, willLike: boolean)
src/utils/canister.ts:176
↓ 1 callersFunctionlogOut
()
src/utils/auth.tsx:144
↓ 1 callersMethodlogin
()
src/utils/authClient.ts:28
↓ 1 callersFunctionloginWithUser
(testUser: string)
e2e/cypress/integration/utils/index.ts:15
↓ 1 callersMethodlogout
()
src/utils/authClient.ts:39
↓ 1 callersFunctiononClick
()
src/components/MainNav.tsx:24
↓ 1 callersFunctionpollIsDropDay
()
src/components/DropDayNotification.tsx:35
↓ 1 callersFunctionprocessAndUploadChunk
( videoBuffer: ArrayBuffer, byteStart: number, videoSize: number, videoId: string, chunk: number )
src/utils/video.ts:38
↓ 1 callersFunctionputAbuseFlagVideo
( reporter: string, target: string, shouldFlag: boolean )
src/utils/canister.ts:272
↓ 1 callersFunctionputRewardTransfer
( sender: string, recipient: string, amount: BigInt )
src/utils/canister.ts:260
↓ 1 callersFunctionputVideoChunk
( videoId: string, chunkNum: number, chunkData: number[] )
src/utils/canister.ts:218
↓ 1 callersFunctionputVideoPic
(videoId: string, file: number[])
src/utils/canister.ts:226
↓ 1 callersFunctionseedProfiles
()
scripts/seed.ts:69
↓ 1 callersFunctionseedVideos
()
scripts/seed.ts:89
↓ 1 callersFunctionsetAlerted
()
src/components/DropDayNotification.tsx:18
↓ 1 callersFunctionsuperLike
( user: string, videoId: string, willSuperLike: boolean )
src/utils/canister.ts:184
↓ 1 callersFunctiontextToColor
(text: string)
src/utils/index.ts:50
↓ 1 callersMethodunauthenticateActor
()
src/utils/canister/actor.ts:70
↓ 1 callersFunctionupdateHead
(document: Document)
src/utils/updateHead.ts:24
↓ 1 callersFunctionuploadVideo
(userId: string, file: File, caption: string)
src/utils/video.ts:54
↓ 1 callersFunctionuploadVideoPic
(videoId: string, file: number[])
src/utils/video.ts:125
↓ 1 callersFunctionuseProvideAuth
(authClient)
src/utils/auth.tsx:25
↓ 1 callersFunctionuseUploadVideo
({ userId }: { userId: string })
src/utils/video.ts:148
↓ 1 callersFunctionwrapPrivateRouteWithSlide
(render)
src/components/PrivateRoutes.tsx:14
FunctionAppRouter
()
src/AppRouter.tsx:27
FunctionCanCanApp
()
src/index.tsx:7
FunctionCatchAll
()
src/utils/CatchAll.tsx:8
FunctionDiscover
(props: PropsWithRef<DiscoverProps>)
src/views/Discover.tsx:18
FunctionDropDayNotification
()
src/components/DropDayNotification.tsx:26
FunctionFeed
({ profileInfo, onRefreshUser, }: { profileInfo?: ProfileInfoPlus; onRefreshUser: any; })
src/views/Feed.tsx:10
FunctionFlagButton
({ currentUserId, videoInfo })
src/components/FlagButton.tsx:10
FunctionFollowButton
({ isFollowing, handleFollow })
src/components/FollowButton.tsx:4
FunctionFollowUserRow
({ userName, handleFollow = () => {}, following = false, disableFollow = false, }: { userName: strin
src/components/FollowUserRow.tsx:12
FunctionLoadingIndicator
({ loadingMessage = "Loading...", completedMessage, isLoading = true, }: LoadingIndicatorProps)
src/components/LoadingIndicator.tsx:11
FunctionLottieAnimation
({ animation, height, }: LottieAnimationProps)
src/components/LottieAnimation.tsx:12
FunctionMainNav
({ paths })
src/components/MainNav.tsx:15
FunctionPrivateRoutes
({ location, user, isAuthenticated, setUser, logOut, })
src/components/PrivateRoutes.tsx:27
FunctionProfile
({ currentUser, onLogOut, }: { currentUser?: ProfileInfoPlus; onLogOut?: (history: H.History) => any;
src/views/Profile.tsx:31
FunctionProfileNavLink
({ isActive, onClick, label, count })
src/views/Profile.tsx:235
FunctionProfilePic
({ name, profilePic })
src/components/ProfilePic.tsx:4
FunctionProvideAuth
({ children })
src/utils/auth.tsx:166
FunctionRewardShowerNotification
(props: RewardShowerProps)
src/components/RewardShowerNotification.tsx:39
FunctionRewards
()
src/views/Rewards.tsx:7
FunctionSearchVideoItem
(props: VideoProps)
src/components/SearchVideoItem.tsx:14
next →1–100 of 136, ranked by callers