MCPcopy Create free account

hub / github.com/acorn1010/vote / functions

Functions68 in github.com/acorn1010/vote

↓ 5 callersFunctionuseTopicId
()
src/components/topics/useTopicId.ts:3
↓ 2 callersFunctionassertUserId
Returns the session's userId, else throws an exception.
src/server/router/models/post.ts:224
↓ 2 callersFunctioncropImage
Returns a cropped version of `blob` in a 2:1 aspect ratio for use on Twitter.
src/pages/_/twitter.tsx:117
↓ 2 callersFunctionfilterPost
(post: T)
src/server/router/models/post.ts:237
↓ 2 callersFunctionformatErrors
( /** @type {import('zod').ZodFormattedError<Map<string,string>,string>} */ errors )
src/env/client.mjs:6
↓ 2 callersFunctiongetServerAuthSession
(ctx: { req: GetServerSidePropsContext['req']; res: GetServerSidePropsContext['res']; })
src/server/common/get-server-auth-session.ts:8
↓ 2 callersFunctionmakeHandleClick
(newMagnitude: -1 | 0 | 1)
src/components/buttons/UpvoteDownvote.tsx:22
↓ 1 callersFunctionaddDays
(days: number)
src/utils/DateUtils.ts:2
↓ 1 callersFunctioncreateContextInner
(opts: CreateContextOptions)
src/server/router/context.ts:16
↓ 1 callersFunctiondefineNextConfig
* Don't be scared of the generics here. * All they do is to give us autocompletion when using this. * * @template {import('next').NextConfig} T *
next.config.mjs:12
↓ 1 callersFunctiongetBaseUrl
()
src/utils/trpc.ts:9
↓ 1 callersFunctiongetLocalStorage
(key: string)
src/components/io/useLocalStorage.ts:43
↓ 1 callersFunctiongetOptionStyle
* Returns the special style for this `option`. This includes a background image that displays the * % that voted on this option.
src/components/posts/PostPollOptions.tsx:144
↓ 1 callersFunctiongetWinningPoll
(options: ExtendedPollOption[])
src/components/posts/PostPollOptions.tsx:159
↓ 1 callersFunctionisValidFileType
(file: File)
src/pages/_/twitter.tsx:111
↓ 1 callersFunctionreadImageBlob
(blob: Blob)
src/pages/_/twitter.tsx:132
↓ 1 callersFunctionsetLocalStorage
(key: string, value: T)
src/components/io/useLocalStorage.ts:58
↓ 1 callersFunctiontoPrettyName
Given a `topicId` such as 'my-topic_ID'.
src/components/navigation/Navbar.tsx:56
↓ 1 callersFunctionusePostId
()
src/pages/[topicId]/[postId].tsx:10
FunctionButton
(props: PropsWithChildren<ButtonProps>)
src/components/buttons/Button.tsx:12
FunctionContainer
(props: PropsWithChildren<ContainerProps>)
src/components/containers/Container.tsx:7
FunctionCreate
()
src/pages/[topicId]/create.tsx:21
FunctionCreateNewPollButton
(props: { className?: string })
src/components/buttons/CreateNewPollButton.tsx:5
FunctionHome
()
src/pages/index.tsx:5
FunctionLogInButton
(props: { fullWidth?: boolean })
src/components/auth/LogInButton.tsx:4
FunctionMenuItem
(props: PropsWithChildren<MenuItemProps>)
src/components/select/Select.tsx:91
FunctionMenuItemWrapper
(props: PropsWithChildren<MenuItemWrapperProps>)
src/components/select/Select.tsx:57
FunctionMobileMenuButton
(props: { open?: boolean })
src/components/navigation/Navbar.tsx:35
FunctionMobileMenuDropdown
()
src/components/navigation/Navbar.tsx:63
FunctionMyApp
({ Component, pageProps: { session, ...pageProps }, })
src/pages/_app.tsx:9
FunctionNavItem
(props: NavItemProps)
src/components/navigation/Navbar.tsx:89
FunctionNavLogInButton
()
src/components/navigation/Navbar.tsx:149
FunctionNavLogInSection
()
src/components/navigation/Navbar.tsx:139
FunctionNavProfile
()
src/components/navigation/NavProfile.tsx:7
FunctionNavSearch
()
src/components/navigation/Navbar.tsx:112
FunctionNavTitle
()
src/components/navigation/NavTitle.tsx:4
FunctionNavbar
()
src/components/navigation/Navbar.tsx:14
FunctionPageHeader
()
src/components/PageHeader.tsx:3
FunctionPost
()
src/pages/[topicId]/[postId].tsx:14
FunctionPostCard
(props: PostCardProps)
src/components/posts/PostCard.tsx:13
FunctionPostHead
({ title }: { title: string })
src/pages/[topicId]/[postId].tsx:44
FunctionPostOption
(props: { disableRemove?: boolean; errors: FieldErrors<CreatePostInputSchema>; register: UseFormRegister
src/pages/[topicId]/create.tsx:147
FunctionPostOptions
(props: { control: Control<CreatePostInputSchema>; errors: FieldErrors<CreatePostInputSchema>; register:
src/pages/[topicId]/create.tsx:106
FunctionPostPoll
(props: PostPollProps)
src/components/posts/PostPoll.tsx:16
FunctionPostPollOption
(props: PostPollOptionProps)
src/components/posts/PostPollOptions.tsx:91
FunctionPostPollOptions
(props: PostPollOptionsProps)
src/components/posts/PostPollOptions.tsx:18
FunctionPostsList
()
src/components/posts/PostsList.tsx:7
FunctionResizeArea
()
src/pages/_/twitter.tsx:22
FunctionSelect
(props: SelectProps)
src/components/select/Select.tsx:11
FunctionSkeleton
(props: { className?: string })
src/components/loading/Skeleton.tsx:4
FunctionTitleLink
()
src/components/navigation/NavTitle.tsx:16
FunctionToggleable
(props: PropsWithChildren<{}>)
src/pages/[topicId]/create.tsx:191
FunctionTooltip
(props: PropsWithChildren<{ title: string }>)
src/components/tooltip/Tooltip.tsx:4
FunctionTopic
()
src/pages/[topicId].tsx:7
FunctionTopicHead
()
src/pages/[topicId].tsx:17
FunctionTwitterClipper
()
src/pages/_/twitter.tsx:10
FunctionUpvoteDownvote
(props: UpvoteDownvoteProps)
src/components/buttons/UpvoteDownvote.tsx:16
Functionconfig
()
src/utils/trpc.ts:16
FunctioncreateContext
( opts: trpcNext.CreateNextContextOptions )
src/server/router/context.ts:27
FunctionerrorFormatter
({ shape })
src/server/trpc.ts:7
Functionexamples
(req: NextApiRequest, res: NextApiResponse)
src/pages/api/examples.ts:5
FunctionhandleLeave
()
src/components/tooltip/Tooltip.tsx:28
FunctionhandlePaste
(e: ClipboardEvent)
src/pages/_/twitter.tsx:47
Functionjwt
({ token })
src/pages/api/auth/[...nextauth].ts:45
FunctiononSubmit
(data: CreatePostInputSchema)
src/pages/[topicId]/create.tsx:42
Functionrestricted
(req: NextApiRequest, res: NextApiResponse)
src/pages/api/restricted.ts:6
Functionsession
({ session, token })
src/pages/api/auth/[...nextauth].ts:39
FunctionuseLocalStorage
( key: string, initialValue?: T )
src/components/io/useLocalStorage.ts:6