Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AlariCode/top-app-demo
/ functions
Functions
60 in github.com/AlariCode/top-app-demo
⨍
Functions
60
◇
Types & classes
44
↓ 6 callers
Function
priceRu
(price: number)
helpers/helpers.tsx:15
↓ 6 callers
Function
withLayout
(Component: FunctionComponent<T>)
layout/Layout.tsx:44
↓ 2 callers
Function
changeDispay
(i: number)
components/Rating/Rating.tsx:57
↓ 2 callers
Function
constructRating
(currentRating: number)
components/Rating/Rating.tsx:28
↓ 2 callers
Function
openSecondLevel
(secondCategory: string)
layout/Menu/Menu.tsx:36
↓ 2 callers
Function
setSort
(sort: SortEnum)
page-components/TopPageComponent/TopPageComponent.tsx:15
↓ 1 callers
Function
buildFirstLevel
()
layout/Menu/Menu.tsx:53
↓ 1 callers
Function
buildSecondLevel
(menuItem: FirstLevelMenuItem)
layout/Menu/Menu.tsx:75
↓ 1 callers
Function
buildThirdLevel
(pages: PageItem[], route: string, isOpened: boolean)
layout/Menu/Menu.tsx:106
↓ 1 callers
Function
computeFocus
(r: number, i: number)
components/Rating/Rating.tsx:15
↓ 1 callers
Function
declOfNum
(number: number, titles: [string, string, string])
helpers/helpers.tsx:17
↓ 1 callers
Function
goToSearch
()
components/Search/Search.tsx:14
↓ 1 callers
Function
onClick
(i: number)
components/Rating/Rating.tsx:64
↓ 1 callers
Function
openSecondLevelKey
(key: KeyboardEvent, secondCategory: string)
layout/Menu/Menu.tsx:46
↓ 1 callers
Function
setMenu
(newMenu: MenuItem[])
context/app.context.tsx:15
↓ 1 callers
Function
useScrollY
()
hooks/useScrollY.ts:4
Function
Advantages
({ advantages }: AdvantagesProps)
components/Advantages/Advantages.tsx:7
Function
AppContextProvider
({ menu, firstCategory, children }: PropsWithChildren<IAppContext>)
context/app.context.tsx:13
Function
Button
({ appearance, arrow = 'none', children, className, ...props }: ButtonProps)
components/Button/Button.tsx:7
Function
ButtonIcon
({ appearance, icon, className, ...props }: ButtonIconProps)
components/ButtonIcon/ButtonIcon.tsx:6
Function
Divider
({ className, ...props }: DividerProps)
components/Divider/Divider.tsx:5
Function
Error404
()
pages/404.tsx:5
Function
Error500
()
pages/500.tsx:5
Function
Footer
({ className, ...props }: FooterProps)
layout/Footer/Footer.tsx:6
Function
Header
({ className, ...props }: HeaderProps)
layout/Header/Header.tsx:11
Function
HhData
({ count, juniorSalary, middleSalary, seniorSalary }: HhDataProps)
components/HhData/HhData.tsx:8
Function
Home
({ menu }: HomeProps)
pages/index.tsx:9
Function
Htag
({ tag, children }: HtagProps)
components/Htag/Htag.tsx:4
Function
Layout
({ children }: LayoutProps)
layout/Layout.tsx:11
Function
Menu
()
layout/Menu/Menu.tsx:11
Function
MyApp
({ Component, pageProps, router }: AppProps)
pages/_app.tsx:15
Function
P
({ size = 'm', children, className, ...props }: PProps)
components/P/P.tsx:5
Function
Review
({ review, className, ...props }: ReviewProps)
components/Review/Review.tsx:9
Function
ReviewForm
({ productId, isOpened, className, ...props }: ReviewFormProps)
components/ReviewForm/ReviewForm.tsx:15
Function
Search
({ className, ...props }: SearchProps)
components/Search/Search.tsx:10
Function
Search
()
pages/search.tsx:8
Function
Sidebar
({ className, ...props }: SidebarProps)
layout/Sidebar/Sidebar.tsx:8
Function
Sort
({ sort, setSort, className, ...props }: SortProps)
components/Sort/Sort.tsx:6
Function
Tag
({ size = 's', children, color = 'ghost', href, className, ...props }: PProps)
components/Tag/Tag.tsx:5
Function
TopPage
({ firstCategory, page, products }: TopPageProps)
pages/[type]/[alias].tsx:15
Function
TopPageComponent
({ page, products, firstCategory }: TopPageComponentProps)
page-components/TopPageComponent/TopPageComponent.tsx:11
Function
Type
({ firstCategory }: TypeProps)
pages/[type]/index.tsx:10
Function
Up
()
components/Up/Up.tsx:7
Method
getInitialProps
(ctx: DocumentContext)
pages/_document.tsx:4
Function
getStaticPaths
()
pages/[type]/[alias].tsx:38
Function
getStaticPaths
()
pages/[type]/index.tsx:21
Function
getStaticProps
()
pages/search.tsx:19
Function
getStaticProps
()
pages/index.tsx:33
Function
getStaticProps
({ params }: GetStaticPropsContext<ParsedUrlQuery>)
pages/[type]/[alias].tsx:52
Function
getStaticProps
({ params }: GetStaticPropsContext<ParsedUrlQuery>)
pages/[type]/index.tsx:28
Function
handleKey
(e: KeyboardEvent)
components/Rating/Rating.tsx:71
Function
handleKeyDown
(e: KeyboardEvent)
components/Search/Search.tsx:23
Function
handleScroll
()
hooks/useScrollY.ts:9
Function
onSubmit
(formData: IReviewForm)
components/ReviewForm/ReviewForm.tsx:20
Method
render
()
pages/_document.tsx:9
Function
scrollToReview
()
components/Product/Product.tsx:25
Function
scrollToTop
()
components/Up/Up.tsx:15
Function
skipContentAction
(key: KeyboardEvent)
layout/Layout.tsx:15
Function
sortReducer
(state: SortReducerState, action: SortActions)
page-components/TopPageComponent/sort.reducer.ts:11
Function
webpack
(config, options)
next.config.js:5