Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dfinity/cancan
/ functions
Functions
136 in github.com/dfinity/cancan
⨍
Functions
136
◇
Types & classes
29
↓ 10 callers
Function
unwrap
(val: Optional<T>)
src/utils/index.ts:19
↓ 6 callers
Function
getUserFromCanister
( userId: string )
src/utils/canister.ts:92
↓ 5 callers
Function
setDestination
(destination)
src/components/MainNav.tsx:16
↓ 4 callers
Method
getIdentity
()
src/utils/authClient.ts:43
↓ 4 callers
Function
getPathRoot
(path)
src/components/MainNav.tsx:11
↓ 3 callers
Function
getUserFromStorage
( storage = window.localStorage, key: string )
src/utils/canister.ts:24
↓ 3 callers
Method
initBaseActor
(identity?: Identity)
src/utils/canister/actor.ts:42
↓ 3 callers
Function
multiSample
(array)
scripts/seed.ts:231
↓ 3 callers
Function
randomize
(num)
scripts/seed.ts:225
↓ 3 callers
Function
useAuth
()
src/utils/auth.tsx:171
↓ 2 callers
Function
clickSuperLike
(video: Cypress.Chainable<JQuery<HTMLElement>>)
e2e/cypress/integration/superlike.test.ts:19
↓ 2 callers
Function
createUser
( userId: string, principal?: Principal | null )
src/utils/canister.ts:48
↓ 2 callers
Function
encodeArrayBuffer
(file)
scripts/seed.ts:23
↓ 2 callers
Function
fileToImgSrc
(file: [] | number[][], imgType = "jpeg")
src/utils/index.ts:42
↓ 2 callers
Function
generateAliases
()
src/config/generateAliases.js:6
↓ 2 callers
Function
generateSeedData
()
scripts/seed.ts:155
↓ 2 callers
Function
getCanisterId
(canisterName)
scripts/setup.ts:60
↓ 2 callers
Function
getProfilePic
(userId: string)
src/utils/canister.ts:144
↓ 2 callers
Function
handleFollow
(userToFollow: string, willFollow: boolean)
src/views/Profile.tsx:93
↓ 2 callers
Method
isAuthenticated
()
src/utils/authClient.ts:47
↓ 2 callers
Function
sample
(array)
scripts/seed.ts:228
↓ 2 callers
Function
setUserFromLocalStorage
()
src/utils/auth.tsx:42
↓ 2 callers
Function
wrapRouteWithFade
(Component)
src/AppRouter.tsx:14
↓ 1 callers
Method
authenticateActor
(identity: Identity)
src/utils/canister/actor.ts:62
↓ 1 callers
Function
checkForNewMessages
()
src/components/RewardShowerNotification.tsx:44
↓ 1 callers
Function
checkUsername
(username: string)
src/utils/canister.ts:251
↓ 1 callers
Function
checkVidFromIC
(videoId: string, userId: string)
src/utils/video.ts:136
↓ 1 callers
Function
chunkFile
(filePath)
scripts/seed.ts:132
↓ 1 callers
Method
create
()
src/utils/authClient.ts:22
↓ 1 callers
Function
createActor
(identity?: Identity)
src/utils/canister/actor.ts:20
↓ 1 callers
Function
createVideo
(videoInit: VideoInit)
src/utils/canister.ts:149
↓ 1 callers
Function
createVideo
( userNames: string[], videoNames: string[], captions: string[], _tags: string[] )
scripts/seed.ts:204
↓ 1 callers
Function
encodeArrayBuffer
(file: ArrayBuffer)
src/utils/index.ts:16
↓ 1 callers
Function
fetchProfilePic
()
src/views/Profile.tsx:75
↓ 1 callers
Function
fetchUserProfile
()
src/views/Profile.tsx:59
↓ 1 callers
Function
follow
( userToFollow: string, follower: string, willFollow: boolean )
src/utils/canister.ts:160
↓ 1 callers
Function
formatBigNumber
(number: number)
src/utils/index.ts:27
↓ 1 callers
Function
generateThumbnail
(videoFile: File)
src/utils/video.ts:82
↓ 1 callers
Function
getAlerted
()
src/components/DropDayNotification.tsx:15
↓ 1 callers
Function
getCandid
(canisterName)
scripts/setup.ts:54
↓ 1 callers
Function
getCanister
(canisterName: string, host = DEFAULT_HOST)
scripts/setup.ts:33
↓ 1 callers
Function
getCanisterPath
(canisterName)
scripts/setup.ts:50
↓ 1 callers
Function
getFeedVideos
(userId: string)
src/utils/canister.ts:122
↓ 1 callers
Function
getFirstVideo
()
e2e/cypress/integration/superlike.test.ts:15
↓ 1 callers
Function
getHost
()
src/utils/canister/actor.ts:13
↓ 1 callers
Function
getMessages
(username: string)
src/utils/canister.ts:255
↓ 1 callers
Function
getSearchVideos
( userId: string, terms: string[], limit: [] | [number] = [3] )
src/utils/canister.ts:105
↓ 1 callers
Function
getUserNameByPrincipal
(principal: Principal)
src/utils/canister.ts:41
↓ 1 callers
Function
getVideoChunks
(videoInfo: VideoInfo)
src/utils/canister.ts:197
↓ 1 callers
Function
getVideoInfo
(userId: string, videoId: string)
src/utils/canister.ts:134
↓ 1 callers
Function
getVideoInit
( userId: string, file: File, caption: string )
src/utils/video.ts:12
↓ 1 callers
Function
getVideoPic
(videoId: string)
src/utils/canister.ts:230
↓ 1 callers
Function
handleChange
(val: string)
src/views/Discover.tsx:26
↓ 1 callers
Function
handleShowVideoPreview
(clickedVideo: VideoInfo)
src/views/Profile.tsx:55
↓ 1 callers
Function
handleUpload
(fileToUpload)
src/utils/video.ts:154
↓ 1 callers
Function
isDropDay
()
src/utils/canister.ts:88
↓ 1 callers
Function
like
(user: string, videoId: string, willLike: boolean)
src/utils/canister.ts:176
↓ 1 callers
Function
logOut
()
src/utils/auth.tsx:144
↓ 1 callers
Method
login
()
src/utils/authClient.ts:28
↓ 1 callers
Function
loginWithUser
(testUser: string)
e2e/cypress/integration/utils/index.ts:15
↓ 1 callers
Method
logout
()
src/utils/authClient.ts:39
↓ 1 callers
Function
onClick
()
src/components/MainNav.tsx:24
↓ 1 callers
Function
pollIsDropDay
()
src/components/DropDayNotification.tsx:35
↓ 1 callers
Function
processAndUploadChunk
( videoBuffer: ArrayBuffer, byteStart: number, videoSize: number, videoId: string, chunk: number )
src/utils/video.ts:38
↓ 1 callers
Function
putAbuseFlagVideo
( reporter: string, target: string, shouldFlag: boolean )
src/utils/canister.ts:272
↓ 1 callers
Function
putRewardTransfer
( sender: string, recipient: string, amount: BigInt )
src/utils/canister.ts:260
↓ 1 callers
Function
putVideoChunk
( videoId: string, chunkNum: number, chunkData: number[] )
src/utils/canister.ts:218
↓ 1 callers
Function
putVideoPic
(videoId: string, file: number[])
src/utils/canister.ts:226
↓ 1 callers
Function
seedProfiles
()
scripts/seed.ts:69
↓ 1 callers
Function
seedVideos
()
scripts/seed.ts:89
↓ 1 callers
Function
setAlerted
()
src/components/DropDayNotification.tsx:18
↓ 1 callers
Function
superLike
( user: string, videoId: string, willSuperLike: boolean )
src/utils/canister.ts:184
↓ 1 callers
Function
textToColor
(text: string)
src/utils/index.ts:50
↓ 1 callers
Method
unauthenticateActor
()
src/utils/canister/actor.ts:70
↓ 1 callers
Function
updateHead
(document: Document)
src/utils/updateHead.ts:24
↓ 1 callers
Function
uploadVideo
(userId: string, file: File, caption: string)
src/utils/video.ts:54
↓ 1 callers
Function
uploadVideoPic
(videoId: string, file: number[])
src/utils/video.ts:125
↓ 1 callers
Function
useProvideAuth
(authClient)
src/utils/auth.tsx:25
↓ 1 callers
Function
useUploadVideo
({ userId }: { userId: string })
src/utils/video.ts:148
↓ 1 callers
Function
wrapPrivateRouteWithSlide
(render)
src/components/PrivateRoutes.tsx:14
Function
AppRouter
()
src/AppRouter.tsx:27
Function
CanCanApp
()
src/index.tsx:7
Function
CatchAll
()
src/utils/CatchAll.tsx:8
Function
Discover
(props: PropsWithRef<DiscoverProps>)
src/views/Discover.tsx:18
Function
DropDayNotification
()
src/components/DropDayNotification.tsx:26
Function
Feed
({ profileInfo, onRefreshUser, }: { profileInfo?: ProfileInfoPlus; onRefreshUser: any; })
src/views/Feed.tsx:10
Function
FlagButton
({ currentUserId, videoInfo })
src/components/FlagButton.tsx:10
Function
FollowButton
({ isFollowing, handleFollow })
src/components/FollowButton.tsx:4
Function
FollowUserRow
({ userName, handleFollow = () => {}, following = false, disableFollow = false, }: { userName: strin
src/components/FollowUserRow.tsx:12
Function
LoadingIndicator
({ loadingMessage = "Loading...", completedMessage, isLoading = true, }: LoadingIndicatorProps)
src/components/LoadingIndicator.tsx:11
Function
LottieAnimation
({ animation, height, }: LottieAnimationProps)
src/components/LottieAnimation.tsx:12
Function
MainNav
({ paths })
src/components/MainNav.tsx:15
Function
PrivateRoutes
({ location, user, isAuthenticated, setUser, logOut, })
src/components/PrivateRoutes.tsx:27
Function
Profile
({ currentUser, onLogOut, }: { currentUser?: ProfileInfoPlus; onLogOut?: (history: H.History) => any;
src/views/Profile.tsx:31
Function
ProfileNavLink
({ isActive, onClick, label, count })
src/views/Profile.tsx:235
Function
ProfilePic
({ name, profilePic })
src/components/ProfilePic.tsx:4
Function
ProvideAuth
({ children })
src/utils/auth.tsx:166
Function
RewardShowerNotification
(props: RewardShowerProps)
src/components/RewardShowerNotification.tsx:39
Function
Rewards
()
src/views/Rewards.tsx:7
Function
SearchVideoItem
(props: VideoProps)
src/components/SearchVideoItem.tsx:14
next →
1–100 of 136, ranked by callers