MCPcopy Index your code

hub / github.com/transitive-bullshit/nextjs-notion-starter-kit / functions

Functions73 in github.com/transitive-bullshit/nextjs-notion-starter-kit

↓ 22 callersFunctiongetSiteConfig
( key: string, defaultValue?: TDefault )
lib/get-config-value.ts:27
↓ 7 callersFunctiongetEnv
( key: string, defaultValue?: string | T, env = process.env )
lib/get-config-value.ts:52
↓ 5 callersFunctionmapImageUrl
(url: string | undefined, block: Block)
lib/map-image-url.ts:6
↓ 4 callersFunctiongetPage
(pageId: string)
lib/notion.ts:45
↓ 4 callersFunctiongetSiteMap
()
lib/get-site-map.ts:17
↓ 3 callersFunctiongetCanonicalPageId
( pageId: string, recordMap: ExtendedRecordMap, { uuid = true }: { uuid?: boolean } = {} )
lib/get-canonical-page-id.ts:9
↓ 3 callersFunctiongetRequiredSiteConfig
(key: string)
lib/get-config-value.ts:40
↓ 3 callersFunctionuseDarkMode
()
lib/use-dark-mode.ts:3
↓ 2 callersFunctioncleanPageUrlMap
( pageUrlMap: PageUrlOverridesMap, { label }: { label: string } )
lib/config.ts:173
↓ 2 callersFunctioncreateUrl
(path: string, searchParams: URLSearchParams)
lib/map-page-url.ts:41
↓ 2 callersFunctiongetCanonicalPageUrl
(site: Site, recordMap: ExtendedRecordMap)
lib/map-page-url.ts:28
↓ 2 callersFunctiongetCompatibleImageUrl
( url: string | undefined | null, fallbackUrl: string | undefined | null )
pages/api/social-image.tsx:287
↓ 2 callersFunctiongetSocialImageUrl
(pageId: string | undefined)
lib/get-social-image-url.ts:3
↓ 2 callersFunctionmapPageUrl
(site: Site, recordMap: ExtendedRecordMap, searchParams: URLSearchParams)
lib/map-page-url.ts:13
↓ 2 callersFunctionresolveNotionPage
( domain: string, rawPageId?: string )
lib/resolve-notion-page.ts:11
↓ 1 callersFunctionbootstrap
()
lib/bootstrap-client.ts:1
↓ 1 callersFunctioncreateSitemap
(siteMap: SiteMap)
pages/sitemap.xml.tsx:34
↓ 1 callersFunctiongetNotionPageInfo
({ pageId }: { pageId: string })
pages/api/social-image.tsx:167
↓ 1 callersFunctiongetPageTweet
( block: types.Block, recordMap: types.ExtendedRecordMap )
lib/get-page-tweet.ts:5
↓ 1 callersFunctiongetPreviewImageMap
( recordMap: ExtendedRecordMap )
lib/preview-images.ts:16
↓ 1 callersFunctiongetTweetsMap
( recordMap: ExtendedRecordMap )
lib/get-tweets.ts:10
↓ 1 callersFunctioninvertPageUrlOverrides
( pageUrlOverrides: PageUrlOverridesMap )
lib/config.ts:208
↓ 1 callersFunctionisUrlReachable
( url: string | undefined | null )
pages/api/social-image.tsx:272
↓ 1 callersFunctionsearch
(params: SearchParams)
lib/notion.ts:73
↓ 1 callersFunctionsiteConfig
(config: SiteConfig)
lib/site-config.ts:44
FunctionApp
({ Component, pageProps }: AppProps)
pages/_app.tsx:35
FunctionErrorPage
({ statusCode }: { statusCode: number })
components/ErrorPage.tsx:4
FunctionFooterImpl
()
components/Footer.tsx:13
FunctionGitHubIcon
()
lib/icons/github.tsx:1
FunctionGitHubShareButton
()
components/GitHubShareButton.tsx:3
FunctionLikeIcon
()
lib/icons/like.tsx:1
FunctionLinkedInIcon
()
lib/icons/linkedin.tsx:1
FunctionLoading
()
components/Loading.tsx:4
FunctionLoadingIcon
(props: any)
components/LoadingIcon.tsx:5
FunctionMoonIcon
()
lib/icons/moon.tsx:1
FunctionNotionDomainDynamicPage
(props: PageProps)
pages/[pageId].tsx:55
FunctionNotionDomainPage
(props: PageProps)
pages/index.tsx:20
FunctionNotionPage
({ site, recordMap, error, pageId }: types.PageProps)
components/NotionPage.tsx:204
FunctionNotionPageHeader
({ block }: { block: types.CollectionViewPageBlock | types.PageBlock })
components/NotionPageHeader.tsx:35
FunctionOGImage
( req: NextApiRequest, res: NextApiResponse )
pages/api/social-image.tsx:22
FunctionPage404
({ site, pageId, error }: types.PageProps)
components/Page404.tsx:6
FunctionPageActions
({ tweet }: { tweet: string })
components/PageActions.tsx:9
FunctionPageAside
({ block, recordMap, isBlogPost }: { block: Block recordMap: ExtendedRecordMap isBlogPost: boolean
components/PageAside.tsx:8
FunctionPageHead
({ site, title, description, pageId, image, url, isBlogPost }: types.PageProps & { title?: str
components/PageHead.tsx:7
FunctionPageSocial
()
components/PageSocial.tsx:72
FunctionRetweetIcon
()
lib/icons/retweet.tsx:1
FunctionSunIcon
()
lib/icons/sun.tsx:1
FunctionToggleThemeButton
()
components/NotionPageHeader.tsx:13
FunctionTweet
({ id }: { id: string })
components/NotionPage.tsx:137
FunctionTwitterIcon
()
lib/icons/twitter.tsx:1
FunctioncreatePreviewImage
( url: string, { cacheKey }: { cacheKey: string } )
lib/preview-images.ts:41
FunctiongetAllPagesImpl
( rootNotionPageId: string, rootNotionSpaceId?: string, { maxDepth = 1 }: { maxDepth?: number
lib/get-site-map.ts:43
FunctiongetMastodonHandle
()
lib/config.ts:67
FunctiongetPage
(pageId: string, opts?: any)
lib/get-site-map.ts:33
FunctiongetServerSideProps
({ req, res })
pages/robots.txt.tsx:5
FunctiongetServerSideProps
({ req, res })
pages/feed.tsx:17
FunctiongetServerSideProps
({ req, res })
pages/sitemap.xml.tsx:7
FunctiongetStaticPaths
()
pages/[pageId].tsx:27
FunctiongetStaticProps
( context )
pages/[pageId].tsx:9
FunctiongetStaticProps
()
pages/index.tsx:6
FunctiongetTweetImpl
(tweetId: string)
lib/get-tweets.ts:30
Functionnoop
()
pages/robots.txt.tsx:45
Functionnoop
()
pages/feed.tsx:101
Functionnoop
()
pages/sitemap.xml.tsx:57
Functionoembed
({ url, maxWidth, maxHeight, dark = false }: { url: string maxWidth?: number maxHeight?: number
lib/oembed.ts:6
FunctiononRouteChangeComplete
()
pages/_app.tsx:39
FunctionpageAcl
({ site, recordMap, pageId }: PageProps)
lib/acl.ts:5
FunctionpropertyDateValue
( { data, schema, pageHeader }: any, defaultFn: () => React.ReactNode )
components/NotionPage.tsx:161
FunctionpropertyLastEditedTimeValue
( { block, pageHeader }: any, defaultFn: () => React.ReactNode )
components/NotionPage.tsx:148
FunctionpropertyTextValue
( { schema, pageHeader }: any, defaultFn: () => React.ReactNode )
components/NotionPage.tsx:178
Methodrender
()
pages/_document.tsx:4
FunctionsearchNotion
( req: NextApiRequest, res: NextApiResponse )
pages/api/search-notion.ts:6
FunctionsearchNotionImpl
( params: types.SearchParams )
lib/search-notion.ts:12