MCPcopy Create free account

hub / github.com/benjamintd/codegame.cards / functions

Functions123 in github.com/benjamintd/codegame.cards

↓ 23 callersFunctionuseGameView
()
hooks/game.ts:35
↓ 9 callersFunctionuseNetwork
()
hooks/network.ts:29
↓ 6 callersFunctiononClick
({ team, spymaster = false }: Partial<IPlayer>)
components/JoinGame.tsx:32
↓ 5 callersFunctionlogEvent
(category: string, action: string, options = {})
lib/analytics.ts:15
↓ 5 callersMethodupdate
(obj: { [key: string]: any })
hooks/network.ts:26
↓ 5 callersFunctionuseGameMode
(gameView: IGameView = useGameView())
hooks/game.ts:57
↓ 5 callersFunctionusePlayers
(gameView: IGameView = useGameView())
hooks/game.ts:49
↓ 4 callersFunctionplaySound
(path)
lib/playSounds.ts:66
↓ 4 callersFunctionuseSelfPlayer
(gameView: IGameView = useGameView())
hooks/game.ts:53
↓ 3 callersFunctiongetDuetColor
(g: DuetGridItem, team: IPlayer["team"])
lib/selectors.ts:137
↓ 3 callersFunctionisClassicGame
(game: IGame)
lib/game.ts:175
↓ 3 callersFunctionisDuetGame
(game: IGame)
lib/game.ts:171
↓ 3 callersFunctiononConfirm
()
components/Card.tsx:37
↓ 3 callersFunctionsend
(hint: boolean = false)
components/Chat.tsx:28
↓ 3 callersFunctionsetupFirebase
()
hooks/firebase.ts:7
↓ 3 callersMethodupdateKey
(key: string, value: any)
hooks/network.ts:24
↓ 3 callersFunctionuseScores
(gameView: IGameView = useGameView())
hooks/game.ts:65
↓ 2 callersFunctiongetRandomGrid
(counts)
lib/newGame.ts:128
↓ 2 callersFunctiongridSelector
(gameView: IGameView)
lib/selectors.ts:28
↓ 2 callersFunctionisClassicGrid
(grid: IGrid)
lib/game.ts:179
↓ 2 callersFunctionlogPageView
()
lib/analytics.ts:10
↓ 2 callersFunctiononClick
(playerUpdate: Partial<IPlayer>)
components/ClaimSpymasterOrSwitchTeam.tsx:35
↓ 2 callersMethodupdateGame
(game: IGame)
hooks/network.ts:22
↓ 2 callersFunctionuseGameOver
(gameView: IGameView = useGameView())
hooks/game.ts:81
↓ 2 callersFunctionuseLocalStorage
(key, initialValue)
hooks/useLocalStorage.ts:3
↓ 2 callersFunctionuseMaxScores
(gameView: IGameView = useGameView())
hooks/game.ts:69
↓ 2 callersFunctionuseNewGame
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:302
↓ 2 callersFunctionusePushTurn
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:244
↓ 2 callersFunctionuseSelfId
(gameView: IGameView = useGameView())
hooks/game.ts:61
↓ 2 callersFunctionuseSendChat
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:106
↓ 2 callersFunctionuseTurns
(gameView: IGameView = useGameView())
hooks/game.ts:77
↓ 1 callersFunctionchatSelector
(gameView: IGameView)
lib/selectors.ts:25
↓ 1 callersFunctiongameModeSelector
(gameView: IGameView)
lib/selectors.ts:52
↓ 1 callersFunctiongetClassicGrid
(whoStarts: "red" | "blue")
lib/newGame.ts:93
↓ 1 callersFunctiongetClassicReaction
(g: ClassicGridItem, player: IPlayer)
hooks/game.ts:342
↓ 1 callersFunctiongetDuetClickTurnColor
(turn, players, grid)
lib/selectors.ts:339
↓ 1 callersFunctiongetDuetGrid
()
lib/newGame.ts:104
↓ 1 callersFunctiongetDuetReaction
(g: DuetGridItem, player: IPlayer)
hooks/game.ts:385
↓ 1 callersFunctiongetFlag
(language: ILanguage)
components/LobbyGameRow.tsx:38
↓ 1 callersFunctiongetId
()
lib/newGame.ts:120
↓ 1 callersFunctiongetMobileDetect
(userAgent)
hooks/useMobileDetect.ts:3
↓ 1 callersMethodgetPublicGames
()
hooks/firebase.ts:32
↓ 1 callersFunctiongetRandom
(arr, n)
lib/newGame.ts:149
↓ 1 callersFunctiongetSize
()
hooks/useWindowSize.ts:7
↓ 1 callersFunctiongetTurnChat
(turn: ITurn, game: IGame)
hooks/game.ts:264
↓ 1 callersFunctionhasSpymaster
(team)
components/ClaimSpymasterOrSwitchTeam.tsx:31
↓ 1 callersFunctioninitAnalytics
()
lib/analytics.ts:3
↓ 1 callersFunctionisAndroid
()
hooks/useMobileDetect.ts:4
↓ 1 callersFunctionisIos
()
hooks/useMobileDetect.ts:5
↓ 1 callersFunctionisMobile
()
hooks/useMobileDetect.ts:10
↓ 1 callersFunctionisOpera
()
hooks/useMobileDetect.ts:6
↓ 1 callersFunctionisSSR
()
hooks/useMobileDetect.ts:8
↓ 1 callersFunctionisWindows
()
hooks/useMobileDetect.ts:7
↓ 1 callersFunctionplayersSelector
(gameView: IGameView)
lib/selectors.ts:46
↓ 1 callersFunctionselfIdSelector
(gameView: IGameView)
lib/selectors.ts:49
↓ 1 callersMethodsubscribeToGame
(gameId: string, callback: GameHandler)
hooks/network.ts:20
↓ 1 callersFunctionturnsSelector
(gameView: IGameView)
lib/selectors.ts:43
↓ 1 callersFunctionuseAddPlayer
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:220
↓ 1 callersFunctionuseBoardView
(gameView: IGameView = useGameView())
hooks/game.ts:45
↓ 1 callersFunctionuseChat
(gameView: IGameView = useGameView())
hooks/game.ts:41
↓ 1 callersFunctionuseChatMessage
(id: string, network: Network = useNetwork())
hooks/game.ts:89
↓ 1 callersFunctionuseDuetTurns
(gameView: IGameView = useGameView())
hooks/game.ts:85
↓ 1 callersFunctionuseLastHint
(gameView: IGameView = useGameView())
hooks/game.ts:73
↓ 1 callersFunctionuseMobileDetect
()
hooks/useMobileDetect.ts:21
↓ 1 callersFunctionusePlayersPresences
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:140
↓ 1 callersFunctionusePresence
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:122
↓ 1 callersFunctionuseWindowSize
()
hooks/useWindowSize.ts:4
FunctionButton
(props: IProps)
components/Button.tsx:12
FunctionCard
({ pushTurn, selfPlayer, cardView, index, mode, }: { pushTurn: (turn: ITurn) => void; selfPlayer
components/Card.tsx:9
FunctionChat
()
components/Chat.tsx:17
FunctionClaimSpymaster
()
components/ClaimSpymasterOrSwitchTeam.tsx:19
FunctionConfirmationModal
({ onConfirm, onClose, }: { onConfirm: () => void; onClose: () => void; })
components/Card.tsx:145
FunctionCopyIcon
(props)
components/CopyLink.tsx:66
FunctionCopyLink
()
components/CopyLink.tsx:7
FunctionCustomWordsInput
({ options, setOptions, }: { options: IGameOptions; setOptions: (opts: IGameOptions) => void; })
pages/new-game.tsx:189
FunctionDiscordButton
()
components/DiscordButton.tsx:3
FunctionDuetScore
()
components/DuetScore.tsx:8
FunctionForm
({ className, options, setOptions, }: { className: string; options: IGameOptions; setOptions: (opt
pages/new-game.tsx:65
FunctionGameBoard
()
components/GameBoard.tsx:13
FunctionGameCreatedChatMessage
({ chat, }: { chat: IGameCreatedChatMessage; })
components/ChatMessage.tsx:125
FunctionGameOver
()
components/GameOver.tsx:7
FunctionHome
({ games, locale }: IProps)
pages/index.tsx:24
FunctionJoinGame
()
components/JoinGame.tsx:14
FunctionLanguageSelector
()
components/LanguageSelector.tsx:16
FunctionLoading
()
components/Loading.tsx:3
FunctionMeta
()
components/Meta.tsx:6
FunctionMultipleChoice
({ options, onClick, selected })
pages/new-game.tsx:159
FunctionNewGame
()
pages/new-game.tsx:12
FunctionPlayerChatMessage
({ chat, player, }: { chat: IChatMessage; player: IPlayer; })
components/ChatMessage.tsx:44
FunctionPlayerJoinedChatMessage
({ chat, }: { chat: IPlayerJoinedChatMessage; })
components/ChatMessage.tsx:112
FunctionPrivacyPolicy
()
pages/privacy-policy.tsx:9
FunctionRoomInfo
()
components/RoomInfo.tsx:22
FunctionRules
({ mode }: { mode: IGameMode })
components/Rules.tsx:5
FunctionRulesModal
({ onClose, mode, open }: IProps)
components/RulesModal.tsx:12
FunctionSendIcon
(props)
components/Chat.tsx:103
FunctionTeam
({ players, team, score, maxScore, presences, className, }: { players: IPlayer[] | undefined;
components/Team.tsx:6
MethodcomponentDidCatch
(error, errorInfo)
pages/_app.tsx:62
MethodcomponentDidMount
()
pages/_app.tsx:46
MethodcomponentDidUpdate
()
pages/_app.tsx:56
Methodconstructor
(db?: firebase.database.Database)
hooks/firebase.ts:28
next →1–100 of 123, ranked by callers