MCPcopy Create free account

hub / github.com/code100x/chess / functions

Functions114 in github.com/code100x/chess

↓ 34 callersFunctioncn
(...inputs: ClassValue[])
apps/frontend/src/lib/utils.ts:4
↓ 13 callersFunctionuseChessboardProps
()
apps/native/components/chessboard/context/props-context/hooks.ts:4
↓ 5 callersMethodaddUser
(user: User)
apps/ws/src/GameManager.ts:33
↓ 5 callersMethodbroadcast
(roomId: string, message: string)
apps/ws/src/SocketManager.ts:48
↓ 5 callersFunctionuseChessEngine
()
apps/native/components/chessboard/context/chess-engine-context/hooks.ts:5
↓ 5 callersFunctionuseReversePiecePosition
()
apps/native/components/chessboard/notation.ts:7
↓ 4 callersMethodendGame
(status: GAME_STATUS, result: GAME_RESULT)
apps/ws/src/Game.ts:325
↓ 4 callersFunctionuseUser
()
packages/store/src/hooks/useUser.ts:4
↓ 3 callersFunctionisPromoting
(chess: Chess, from: Square, to: Square)
apps/frontend/src/components/ChessBoard.tsx:18
↓ 3 callersFunctionisPromoting
(chess: Chess, from: Square, to: Square)
apps/ws/src/Game.ts:16
↓ 3 callersFunctionusePieceRefs
()
apps/native/components/chessboard/context/board-refs-context/hooks.ts:5
↓ 2 callersFunctioncalculateX
(square: string, isFlipped: boolean, squareSize: number)
apps/frontend/src/utils/canvas.ts:2
↓ 2 callersFunctioncalculateY
(square: string, isFlipped: boolean, squareSize: number)
apps/frontend/src/utils/canvas.ts:12
↓ 2 callersFunctionclearCanvas
()
apps/frontend/src/components/ChessBoard.tsx:106
↓ 2 callersFunctiongetChessboardState
(chess: ChessInstance)
apps/native/components/chessboard/helpers/get-chessboard-state.ts:22
↓ 2 callersMethodgetPlayer1TimeConsumed
()
apps/ws/src/Game.ts:286
↓ 2 callersMethodgetPlayer2TimeConsumed
()
apps/ws/src/Game.ts:293
↓ 2 callersFunctiongetPlayerName
(player: { id: string; name: string } | undefined)
apps/frontend/src/components/GameEndModal.tsx:67
↓ 2 callersFunctiongetTimer
(timeConsumed: number)
apps/frontend/src/screens/Game.tsx:220
↓ 2 callersMethodremoveGame
(gameId: string)
apps/ws/src/GameManager.ts:48
↓ 2 callersMethodresetAbandonTimer
()
apps/ws/src/Game.ts:300
↓ 2 callersMethodresetMoveTimer
()
apps/ws/src/Game.ts:309
↓ 2 callersMethodupdateSecondPlayer
(player2UserId: string)
apps/ws/src/Game.ts:110
↓ 2 callersFunctionuseBoardOperations
()
apps/native/components/chessboard/context/board-operations-context/hooks.ts:5
↓ 2 callersFunctionuseBoardPromotion
()
apps/native/components/chessboard/context/board-promotion-context/hooks.ts:4
↓ 2 callersFunctionuseSetBoard
()
apps/native/components/chessboard/context/board-context/index.ts:25
↓ 2 callersFunctionuseThemeContext
()
apps/frontend/src/hooks/useThemes.ts:4
↓ 1 callersMethodaddHandler
(user: User)
apps/ws/src/GameManager.ts:52
↓ 1 callersMethodaddMoveToDb
(move: Move, moveTimestamp: Date)
apps/ws/src/Game.ts:184
↓ 1 callersMethodclearMoveTimer
()
apps/ws/src/Game.ts:369
↓ 1 callersMethodclearTimer
()
apps/ws/src/Game.ts:377
↓ 1 callersMethodcreateGameInDb
()
apps/ws/src/Game.ts:154
↓ 1 callersFunctiondrawArrow
( { ctx, start, end, isFlipped, squareSize }:{ ctx: CanvasRenderingContext2D, start: string, end: stri
apps/frontend/src/utils/canvas.ts:20
↓ 1 callersMethodexitGame
(user : User)
apps/ws/src/Game.ts:321
↓ 1 callersFunctionextractAuthUser
(token: string, ws: WebSocket)
apps/ws/src/auth/index.ts:14
↓ 1 callersMethodgetInstance
()
apps/ws/src/SocketManager.ts:31
↓ 1 callersFunctiongetWinnerMessage
(result: Result)
apps/frontend/src/components/GameEndModal.tsx:56
↓ 1 callersFunctionget_captured_pieces
(moves: Move[], color: string)
apps/native/app/game/index.tsx:109
↓ 1 callersFunctionhandleDrawArrow
(squareRep: string)
apps/frontend/src/components/ChessBoard.tsx:122
↓ 1 callersFunctionhandleExit
()
apps/frontend/src/screens/Game.tsx:234
↓ 1 callersFunctionhandleMouseDown
(e: MouseEvent<HTMLDivElement>, squareRep: string)
apps/frontend/src/components/ChessBoard.tsx:93
↓ 1 callersFunctionhandleMouseUp
(e: MouseEvent<HTMLDivElement>, squareRep: string)
apps/frontend/src/components/ChessBoard.tsx:141
↓ 1 callersFunctionhandleResize
()
apps/frontend/src/components/sidebar.tsx:14
↓ 1 callersFunctionhandleRightClick
(squareRep: string)
apps/frontend/src/components/ChessBoard.tsx:114
↓ 1 callersFunctionhandleSize
()
apps/frontend/src/hooks/useWindowSize.ts:6
↓ 1 callersFunctioninitPassport
()
apps/backend/src/passport.ts:24
↓ 1 callersFunctionloginAsGuest
()
apps/frontend/src/screens/Login.tsx:22
↓ 1 callersMethodmakeMove
( user: User, move: Move )
apps/ws/src/Game.ts:211
↓ 1 callersFunctionprismaClientSingleton
()
packages/db/src/index.ts:3
↓ 1 callersMethodremoveUser
(socket: WebSocket)
apps/ws/src/GameManager.ts:38
↓ 1 callersMethodseedMoves
(moves: { id: string; gameId: string; moveNumber: number; from: string; to: string; co
apps/ws/src/Game.ts:66
↓ 1 callersFunctionupdateTheme
(theme: THEME)
apps/frontend/src/context/themeContext.tsx:17
↓ 1 callersFunctionuseBoard
()
apps/native/components/chessboard/context/board-context/index.ts:21
↓ 1 callersFunctionuseConst
(initialValue: T | (() => T))
apps/native/components/chessboard/hooks/use-const.ts:3
↓ 1 callersFunctionuseSocket
()
apps/frontend/src/hooks/useSocket.ts:6
↓ 1 callersFunctionuseSquareRefs
()
apps/native/components/chessboard/context/board-refs-context/hooks.ts:9
FunctionAlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
apps/frontend/src/components/ui/alert-dialog.tsx:60
FunctionAlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
apps/frontend/src/components/ui/alert-dialog.tsx:46
FunctionApp
()
apps/frontend/src/App.tsx:19
FunctionAuthApp
()
apps/frontend/src/App.tsx:33
FunctionBackgroundSvg
()
apps/frontend/src/components/BackgroundSvg.tsx:1
FunctionButton
({ children, className, appName }: ButtonProps)
packages/ui/src/button.tsx:11
FunctionButton
({ onClick, children, className, }: { onClick: () => void; children: React.ReactNode; className?:
apps/frontend/src/components/Button.tsx:1
FunctionCard
({ className, title, children, href, }: { className?: string; title: string; children: React.Rea
packages/ui/src/card.tsx:1
FunctionChessBoard
()
apps/native/app/game/index.tsx:20
FunctionChessSquare
({ square, }: { square: { square: Square; type: PieceSymbol; color: Color; }; })
apps/frontend/src/components/chess-board/ChessSquare.tsx:3
FunctionCode
({ children, className, }: { children: React.ReactNode; className?: string; })
packages/ui/src/code.tsx:1
FunctionExitGameModel
({ onClick } : {onClick : () => void})
apps/frontend/src/components/ExitGameModel.tsx:13
FunctionFooter
()
apps/frontend/src/components/Footer.tsx:8
FunctionGame
()
apps/frontend/src/screens/Game.tsx:59
FunctionGameEndModal
({ blackPlayer, whitePlayer, gameResult, })
apps/frontend/src/components/GameEndModal.tsx:12
FunctionGameModeComponent
({ icon, title, description, onClick, disabled, }: GameModeComponent)
apps/frontend/src/components/GameModeComponent.tsx:11
FunctionHome
()
apps/native/app/index.tsx:3
FunctionLanding
()
apps/frontend/src/screens/Landing.tsx:6
FunctionLayout
({ children }: { children: React.ReactNode })
apps/frontend/src/layout/index.tsx:4
FunctionLegalMoveIndicator
({ isPiece, isMainBoxColor, }: { isPiece: boolean; isMainBoxColor: boolean; })
apps/frontend/src/components/chess-board/LegalMoveIndicator.tsx:1
FunctionLetterNotation
({ label, isMainBoxColor, }: { label: string; isMainBoxColor: boolean; })
apps/frontend/src/components/chess-board/LetterNotation.tsx:1
FunctionLinkSvg
()
apps/frontend/src/components/ShareGame.tsx:37
FunctionLoader
()
apps/frontend/src/components/Loader.tsx:1
FunctionLogin
()
apps/frontend/src/screens/Login.tsx:9
FunctionLoginScreen
()
apps/native/app/login/index.tsx:6
FunctionMobileSidebar
()
apps/frontend/src/components/mobile-sidebar.tsx:7
FunctionMovesTable
()
apps/frontend/src/components/MovesTable.tsx:19
FunctionNavbar
()
apps/frontend/src/components/Navbar.tsx:5
FunctionNumberNotation
({ label, isMainBoxColor, }: { label: string; isMainBoxColor: boolean; })
apps/frontend/src/components/chess-board/NumberNotation.tsx:1
FunctionPlayCard
()
apps/frontend/src/components/Card.tsx:17
FunctionPlayerDisplay
({ player, gameResult, isWhite, }: { player?: { id: string; name: string }; gameResult:
apps/frontend/src/components/GameEndModal.tsx:23
FunctionPlayerStrip
()
apps/native/app/game/index.tsx:98
FunctionPlayerTitle
({player, isSelf}: PlayerTitleProps)
apps/frontend/src/components/PlayerTitle.tsx:8
FunctionRootLayoutNav
()
apps/native/app/_layout.tsx:8
FunctionSettings
()
apps/frontend/src/screens/Settings.tsx:3
FunctionShareGame
({className,gameId}:{className?:string,gameId:string})
apps/frontend/src/components/ShareGame.tsx:4
FunctionSheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
apps/frontend/src/components/ui/sheet.tsx:89
FunctionSheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
apps/frontend/src/components/ui/sheet.tsx:75
FunctionSideNav
({ items, setOpen, className }: SideNavProps)
apps/frontend/src/components/side-nav.tsx:31
FunctionSidebar
({ className }: SidebarProps)
apps/frontend/src/components/sidebar.tsx:11
FunctionThemes
()
apps/frontend/src/components/themes.tsx:4
FunctionThemesProvider
({ children }: { children: React.ReactNode })
apps/frontend/src/context/themeContext.tsx:14
FunctionUserAvatar
({ gameMetadata, self }: UserAvatarProps)
apps/frontend/src/components/UserAvatar.tsx:9
FunctionWaitopponent
()
apps/frontend/src/components/ui/waitopponent.tsx:1
next →1–100 of 114, ranked by callers