Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benjamintd/codegame.cards
/ functions
Functions
123 in github.com/benjamintd/codegame.cards
⨍
Functions
123
◇
Types & classes
28
↓ 23 callers
Function
useGameView
()
hooks/game.ts:35
↓ 9 callers
Function
useNetwork
()
hooks/network.ts:29
↓ 6 callers
Function
onClick
({ team, spymaster = false }: Partial<IPlayer>)
components/JoinGame.tsx:32
↓ 5 callers
Function
logEvent
(category: string, action: string, options = {})
lib/analytics.ts:15
↓ 5 callers
Method
update
(obj: { [key: string]: any })
hooks/network.ts:26
↓ 5 callers
Function
useGameMode
(gameView: IGameView = useGameView())
hooks/game.ts:57
↓ 5 callers
Function
usePlayers
(gameView: IGameView = useGameView())
hooks/game.ts:49
↓ 4 callers
Function
playSound
(path)
lib/playSounds.ts:66
↓ 4 callers
Function
useSelfPlayer
(gameView: IGameView = useGameView())
hooks/game.ts:53
↓ 3 callers
Function
getDuetColor
(g: DuetGridItem, team: IPlayer["team"])
lib/selectors.ts:137
↓ 3 callers
Function
isClassicGame
(game: IGame)
lib/game.ts:175
↓ 3 callers
Function
isDuetGame
(game: IGame)
lib/game.ts:171
↓ 3 callers
Function
onConfirm
()
components/Card.tsx:37
↓ 3 callers
Function
send
(hint: boolean = false)
components/Chat.tsx:28
↓ 3 callers
Function
setupFirebase
()
hooks/firebase.ts:7
↓ 3 callers
Method
updateKey
(key: string, value: any)
hooks/network.ts:24
↓ 3 callers
Function
useScores
(gameView: IGameView = useGameView())
hooks/game.ts:65
↓ 2 callers
Function
getRandomGrid
(counts)
lib/newGame.ts:128
↓ 2 callers
Function
gridSelector
(gameView: IGameView)
lib/selectors.ts:28
↓ 2 callers
Function
isClassicGrid
(grid: IGrid)
lib/game.ts:179
↓ 2 callers
Function
logPageView
()
lib/analytics.ts:10
↓ 2 callers
Function
onClick
(playerUpdate: Partial<IPlayer>)
components/ClaimSpymasterOrSwitchTeam.tsx:35
↓ 2 callers
Method
updateGame
(game: IGame)
hooks/network.ts:22
↓ 2 callers
Function
useGameOver
(gameView: IGameView = useGameView())
hooks/game.ts:81
↓ 2 callers
Function
useLocalStorage
(key, initialValue)
hooks/useLocalStorage.ts:3
↓ 2 callers
Function
useMaxScores
(gameView: IGameView = useGameView())
hooks/game.ts:69
↓ 2 callers
Function
useNewGame
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:302
↓ 2 callers
Function
usePushTurn
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:244
↓ 2 callers
Function
useSelfId
(gameView: IGameView = useGameView())
hooks/game.ts:61
↓ 2 callers
Function
useSendChat
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:106
↓ 2 callers
Function
useTurns
(gameView: IGameView = useGameView())
hooks/game.ts:77
↓ 1 callers
Function
chatSelector
(gameView: IGameView)
lib/selectors.ts:25
↓ 1 callers
Function
gameModeSelector
(gameView: IGameView)
lib/selectors.ts:52
↓ 1 callers
Function
getClassicGrid
(whoStarts: "red" | "blue")
lib/newGame.ts:93
↓ 1 callers
Function
getClassicReaction
(g: ClassicGridItem, player: IPlayer)
hooks/game.ts:342
↓ 1 callers
Function
getDuetClickTurnColor
(turn, players, grid)
lib/selectors.ts:339
↓ 1 callers
Function
getDuetGrid
()
lib/newGame.ts:104
↓ 1 callers
Function
getDuetReaction
(g: DuetGridItem, player: IPlayer)
hooks/game.ts:385
↓ 1 callers
Function
getFlag
(language: ILanguage)
components/LobbyGameRow.tsx:38
↓ 1 callers
Function
getId
()
lib/newGame.ts:120
↓ 1 callers
Function
getMobileDetect
(userAgent)
hooks/useMobileDetect.ts:3
↓ 1 callers
Method
getPublicGames
()
hooks/firebase.ts:32
↓ 1 callers
Function
getRandom
(arr, n)
lib/newGame.ts:149
↓ 1 callers
Function
getSize
()
hooks/useWindowSize.ts:7
↓ 1 callers
Function
getTurnChat
(turn: ITurn, game: IGame)
hooks/game.ts:264
↓ 1 callers
Function
hasSpymaster
(team)
components/ClaimSpymasterOrSwitchTeam.tsx:31
↓ 1 callers
Function
initAnalytics
()
lib/analytics.ts:3
↓ 1 callers
Function
isAndroid
()
hooks/useMobileDetect.ts:4
↓ 1 callers
Function
isIos
()
hooks/useMobileDetect.ts:5
↓ 1 callers
Function
isMobile
()
hooks/useMobileDetect.ts:10
↓ 1 callers
Function
isOpera
()
hooks/useMobileDetect.ts:6
↓ 1 callers
Function
isSSR
()
hooks/useMobileDetect.ts:8
↓ 1 callers
Function
isWindows
()
hooks/useMobileDetect.ts:7
↓ 1 callers
Function
playersSelector
(gameView: IGameView)
lib/selectors.ts:46
↓ 1 callers
Function
selfIdSelector
(gameView: IGameView)
lib/selectors.ts:49
↓ 1 callers
Method
subscribeToGame
(gameId: string, callback: GameHandler)
hooks/network.ts:20
↓ 1 callers
Function
turnsSelector
(gameView: IGameView)
lib/selectors.ts:43
↓ 1 callers
Function
useAddPlayer
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:220
↓ 1 callers
Function
useBoardView
(gameView: IGameView = useGameView())
hooks/game.ts:45
↓ 1 callers
Function
useChat
(gameView: IGameView = useGameView())
hooks/game.ts:41
↓ 1 callers
Function
useChatMessage
(id: string, network: Network = useNetwork())
hooks/game.ts:89
↓ 1 callers
Function
useDuetTurns
(gameView: IGameView = useGameView())
hooks/game.ts:85
↓ 1 callers
Function
useLastHint
(gameView: IGameView = useGameView())
hooks/game.ts:73
↓ 1 callers
Function
useMobileDetect
()
hooks/useMobileDetect.ts:21
↓ 1 callers
Function
usePlayersPresences
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:140
↓ 1 callers
Function
usePresence
( gameView: IGameView = useGameView(), network: Network = useNetwork() )
hooks/game.ts:122
↓ 1 callers
Function
useWindowSize
()
hooks/useWindowSize.ts:4
Function
Button
(props: IProps)
components/Button.tsx:12
Function
Card
({ pushTurn, selfPlayer, cardView, index, mode, }: { pushTurn: (turn: ITurn) => void; selfPlayer
components/Card.tsx:9
Function
Chat
()
components/Chat.tsx:17
Function
ClaimSpymaster
()
components/ClaimSpymasterOrSwitchTeam.tsx:19
Function
ConfirmationModal
({ onConfirm, onClose, }: { onConfirm: () => void; onClose: () => void; })
components/Card.tsx:145
Function
CopyIcon
(props)
components/CopyLink.tsx:66
Function
CopyLink
()
components/CopyLink.tsx:7
Function
CustomWordsInput
({ options, setOptions, }: { options: IGameOptions; setOptions: (opts: IGameOptions) => void; })
pages/new-game.tsx:189
Function
DiscordButton
()
components/DiscordButton.tsx:3
Function
DuetScore
()
components/DuetScore.tsx:8
Function
Form
({ className, options, setOptions, }: { className: string; options: IGameOptions; setOptions: (opt
pages/new-game.tsx:65
Function
GameBoard
()
components/GameBoard.tsx:13
Function
GameCreatedChatMessage
({ chat, }: { chat: IGameCreatedChatMessage; })
components/ChatMessage.tsx:125
Function
GameOver
()
components/GameOver.tsx:7
Function
Home
({ games, locale }: IProps)
pages/index.tsx:24
Function
JoinGame
()
components/JoinGame.tsx:14
Function
LanguageSelector
()
components/LanguageSelector.tsx:16
Function
Loading
()
components/Loading.tsx:3
Function
Meta
()
components/Meta.tsx:6
Function
MultipleChoice
({ options, onClick, selected })
pages/new-game.tsx:159
Function
NewGame
()
pages/new-game.tsx:12
Function
PlayerChatMessage
({ chat, player, }: { chat: IChatMessage; player: IPlayer; })
components/ChatMessage.tsx:44
Function
PlayerJoinedChatMessage
({ chat, }: { chat: IPlayerJoinedChatMessage; })
components/ChatMessage.tsx:112
Function
PrivacyPolicy
()
pages/privacy-policy.tsx:9
Function
RoomInfo
()
components/RoomInfo.tsx:22
Function
Rules
({ mode }: { mode: IGameMode })
components/Rules.tsx:5
Function
RulesModal
({ onClose, mode, open }: IProps)
components/RulesModal.tsx:12
Function
SendIcon
(props)
components/Chat.tsx:103
Function
Team
({ players, team, score, maxScore, presences, className, }: { players: IPlayer[] | undefined;
components/Team.tsx:6
Method
componentDidCatch
(error, errorInfo)
pages/_app.tsx:62
Method
componentDidMount
()
pages/_app.tsx:46
Method
componentDidUpdate
()
pages/_app.tsx:56
Method
constructor
(db?: firebase.database.Database)
hooks/firebase.ts:28
next →
1–100 of 123, ranked by callers