MCPcopy Create free account

hub / github.com/collection-news/collection-news / functions

Functions142 in github.com/collection-news/collection-news

↓ 12 callersFunctiondayjs
(...param: Parameters<typeof _dayjs>)
src/utils/dayjs.ts:8
↓ 6 callersFunctiongetMedia
(matchKey?: media)
src/utils/dataHelper.ts:27
↓ 5 callersFunctionextractAppleDailyResizerPath
(url: string)
src/utils/dbHelper.ts:18
↓ 5 callersFunctiongetDate
(date: string)
src/utils/date.ts:39
↓ 5 callersFunctiongetZhFormatFromDateParam
(date: string)
src/utils/date.ts:23
↓ 4 callersFunctioncheckArticle
()
cypress/e2e/sanity.cy.js:68
↓ 4 callersFunctiongetDateParamFromDate
(date: Date | string)
src/utils/date.ts:11
↓ 4 callersFunctiongetFullFormatFromTs
(ts: string)
src/utils/date.ts:27
↓ 3 callersFunctionbase64Encode
(str: string)
src/utils/searchQuery.ts:2
↓ 3 callersFunctioncheckScrollingOnCategory
(count)
cypress/e2e/loading.cy.js:38
↓ 3 callersFunctioncheckScrollingOnHome
(count)
cypress/e2e/loading.cy.js:30
↓ 3 callersFunctiongetArticlesByDateAndCat
( request: GetArticlesByDateAndCatRequest, option: DynamoDBOption = {} )
src/services/dynamo.ts:104
↓ 3 callersFunctiongetCategory
(list: CategoryItem[], matchEngName?: string)
src/utils/dataHelper.ts:35
↓ 3 callersFunctionkeyGenerator
(buildId, key)
cache-handler.mjs:104
↓ 3 callersFunctionlastEvaluatedKey2startKey
* Transform the LastEvaluatedKey from DynamoDB using JSON.stringify and base64 encode * so that it is easier to carry to client side. * @param lastE
src/services/dynamo.ts:80
↓ 3 callersFunctionmediaToTableName
(key: media)
src/services/dynamo.ts:27
↓ 3 callersFunctionreplaceUrlDomain2CDN
(url: string, mediaKey: media)
src/utils/dbHelper.ts:66
↓ 2 callersFunctionbase64Decode
(q: string)
src/utils/searchQuery.ts:12
↓ 2 callersFunctiongetBlock
(block: ContentElement)
src/containers/Article/index.tsx:22
↓ 2 callersFunctiongetCategoryColor
(name: string)
src/utils/dataHelper.ts:38
↓ 2 callersFunctiongetCoverImageUrlFromStory
(article: Article)
src/utils/dataHelper.ts:8
↓ 2 callersFunctiongetDateFromDateParam
(date: string)
src/utils/date.ts:19
↓ 2 callersFunctiongetMedataMetaForPros
(media: MediaMeta)
src/utils/metaHelper.ts:3
↓ 2 callersFunctionstartKey2lastEvaluatedKey
* Reverse of lastEvaluatedKey2startKey * @param startKey string representation of LastEvaluatedKeyType * @returns DynamoDB raw LastEvaluatedKey
src/services/dynamo.ts:89
↓ 2 callersFunctionuseArticlesQuery
(initData: ArticleListResponse, queryParams: GetArticlesByDateAndCatRequest)
src/hooks/useArticlesQuery.ts:10
↓ 2 callersFunctionuseURLAndLogoSrc
()
src/components/HtmlHead.tsx:15
↓ 1 callersFunction_getArticlesByDateAndCat
( request: GetArticlesByDateAndCatRequest, option: DynamoDBOption = {}, totalCount = 0 )
src/services/dynamo.ts:115
↓ 1 callersFunctionapplyDmcaFilter
(media: media, articleId: string)
src/services/dynamo.ts:65
↓ 1 callersFunctionconvertArticleIdsQueryResp
(resp: QueryCommandOutput)
src/services/dynamo.ts:198
↓ 1 callersFunctionconvertArticleQueryResp
(resp: QueryCommandOutput)
src/services/dynamo.ts:93
↓ 1 callersFunctioncreateTestQueryClient
()
src/test/testUtils.tsx:7
↓ 1 callersFunctiondeleteFromObjectStore
cache-handler.mjs:29
↓ 1 callersFunctionfetchFromObjectStore
cache-handler.mjs:37
↓ 1 callersFunctionfilterTag
(tags: string[])
src/containers/Article/index.tsx:57
↓ 1 callersFunctiongenOtherSitemap
(path: string)
src/scripts/genSitemap.ts:30
↓ 1 callersFunctiongenSitemapIndex
(path: string)
src/scripts/genSitemap.ts:12
↓ 1 callersFunctiongetArticle
({ articleId, media, }: { articleId: string media: media })
src/services/dynamo.ts:38
↓ 1 callersFunctiongetArticleDesc
(article: Article)
src/utils/dataHelper.ts:15
↓ 1 callersFunctiongetArticleIds
( request: { date: string; media: media }, option: { nextCursor: string | null } )
src/services/dynamo.ts:207
↓ 1 callersFunctiongetDayPartFromDate
(date: Date | string)
src/utils/date.ts:15
↓ 1 callersFunctiongetFilter
(range: DateRange | undefined)
src/components/Search/DateRangeFilter.tsx:17
↓ 1 callersFunctiongetFormatForJsonLd
(ts: string)
src/utils/date.ts:35
↓ 1 callersFunctiongetISOFormatFromTs
(ts: string)
src/utils/date.ts:31
↓ 1 callersFunctiongetLatestGoogleIndexCount
()
src/services/dynamo.ts:234
↓ 1 callersFunctiongetTitle
(title: string, matchKey?: media)
src/utils/dataHelper.ts:29
↓ 1 callersFunctiongetTodayOfTheHistory
(year: string)
src/utils/date.ts:3
↓ 1 callersFunctionhandleSearch
()
src/components/Banner.tsx:17
↓ 1 callersFunctionisWithinGrayscaleWindow
()
src/containers/Layout/index.tsx:16
↓ 1 callersFunctionmaxYearForToday
(lastDay: string)
src/utils/date.ts:7
↓ 1 callersFunctionreplaceAppleDailyUrlDomain2CDN
(url: string)
src/utils/dbHelper.ts:46
↓ 1 callersFunctionreplaceCDNDomainForArticle
(article: Article)
src/utils/dbHelper.ts:75
↓ 1 callersFunctionreplaceDefaultUrlDomain2CDN
(url: string)
src/utils/dbHelper.ts:33
↓ 1 callersFunctionunGZipArticle
(article: Article)
src/utils/dbHelper.ts:92
↓ 1 callersFunctionuploadToObjectStore
(path, value)
cache-handler.mjs:15
↓ 1 callersFunctionuseWebShare
()
src/hooks/useWebShare.ts:1
FunctionArticle
({ article })
src/containers/Article/index.tsx:64
FunctionArticleCard
({ article })
src/components/ArticleCard.tsx:14
FunctionArticleHead
({ title, imgUrl, desc, media, publishTimestamp })
src/components/HtmlHead.tsx:59
FunctionArticleImage
({ onLoad, src, onError, ...props })
src/components/Image.tsx:6
FunctionArticleListView
({ articles, hasNextPage, fetchNextPage, isFetching }: Props)
src/components/ArticleList/index.tsx:17
FunctionArticlePage
({ article }: Props)
src/pages/[media]/articles/[articleId].tsx:48
FunctionBanner
()
src/components/Banner.tsx:11
FunctionCarousel
({ children })
src/components/Carousel.tsx:10
FunctionCategoryBtn
({ text, category, color, href, isInCategory, count }: CategoryBtnProps)
src/components/CategoryList.tsx:53
FunctionCategoryFilter
()
src/components/Search/CategoryFilter.tsx:18
FunctionCategoryList
({ getHref, total, categoryList, currentCategory }: CategoryListProps)
src/components/CategoryList.tsx:17
FunctionCategoryTag
({ category }: { category?: CategoryItem })
src/components/ArticleCard.tsx:99
FunctionContentWrapper
({ children })
src/components/ContentWrapper.tsx:8
FunctionCustom404Page
()
src/pages/404.tsx:8
FunctionDatePicker
({ onSelect, range: [firstDay, lastDay] }: DatePickerProps)
src/components/DatePicker/index.tsx:14
FunctionDateRangeFilter
()
src/components/Search/DateRangeFilter.tsx:31
FunctionEmpty
()
src/components/Empty.tsx:6
FunctionEnd
()
src/components/ArticleList/End.tsx:4
FunctionHScrollBar
({ children })
src/components/HScrollBar.tsx:18
FunctionHTMLBlock
({ html })
src/components/ArticleBlocks/HTMLBlock.tsx:5
FunctionHeader
({ mediaMeta, showSearch, dropdownShowMainPage, }: { mediaMeta?: MediaMeta showSearch: boolean dro
src/containers/Layout/Header.tsx:14
FunctionHeaderBlock
({ level, children })
src/components/ArticleBlocks/HeaderBlock.tsx:9
FunctionHistoryPage
({ initData, queryParams, currentCategory, currentMedia: { categoryList, brandName, range, count }, }:
src/pages/[media]/history/[year]/[[...path]].tsx:70
FunctionHome
({ initData, queryParams, currentCategory, currentMedia: { brandNameShorthand, brandName,
src/pages/[media]/[[...path]].tsx:89
FunctionImageBlock
({ url, caption })
src/components/ArticleBlocks/ImageBlock.tsx:12
FunctionImageFallback
()
src/components/Image.tsx:20
FunctionIndex
()
src/pages/index.tsx:30
FunctionLayout
({ children })
src/containers/Layout/index.tsx:14
FunctionListBlock
({ listType, items, itemRender }: Props<T>)
src/components/ArticleBlocks/ListBlock.tsx:10
FunctionLoading
({ isLoading, onClick }: LoadingProps)
src/components/Loading.tsx:9
FunctionLogo
({ src }: Props)
src/components/Logo.tsx:6
FunctionMarkdown
({ children })
src/components/Markdown.tsx:31
FunctionMediaBadge
({ media }: { media: MeiliSearchArticle['media'] })
src/components/Search/SearchArticleCard.tsx:15
FunctionMediaFilter
()
src/components/Search/MediaFilter.tsx:15
FunctionMyApp
({ Component, pageProps }: AppProps)
src/pages/_app.tsx:16
FunctionNativeShareBtn
()
src/components/NativeShareBtn.tsx:7
FunctionNavDropdown
({ children, showMainPage = true })
src/components/NavDropdown.tsx:14
FunctionNonArticleHead
({ title })
src/components/HtmlHead.tsx:26
FunctionProgressBar
()
src/components/ProgressBar.tsx:6
FunctionRetryButton
({ onRetry }: { onRetry: () => void })
src/components/Search/RetryButton.tsx:5
FunctionSearchArticleCard
({ article }: Props)
src/components/Search/SearchArticleCard.tsx:21
FunctionSearchBox
(props: UseSearchBoxProps)
src/components/Search/SearchBox.tsx:7
FunctionSearchHeader
({ onClose, isPageView }: SearchHeaderProps)
src/components/Search/SearchHeader.tsx:17
FunctionSearchHelpTips
()
src/components/Search/SearchHelpTips.tsx:17
FunctionSearchModal
({ isOpen, isPageView = false, onClose = noop, useRouter = false }: SearchModalProps)
src/components/Search/SearchModal.tsx:21
next →1–100 of 142, ranked by callers