repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/AsideMenu.tsx
components/AsideMenu.tsx
import clsx from 'clsx'; import {useAppDispatch, useAppSelector} from '../hooks/redux'; import {RootState} from '../redux/store'; import {disableBodyScroll, enableBodyScroll, clearAllBodyScrollLocks} from 'body-scroll-lock'; import {useEffect, useRef} from 'react'; import {setIsOpened} from '../redux/reducers/asideMenu...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/ProductsSliderByQuery.tsx
components/ProductsSliderByQuery.tsx
import {IGetProductsParams, IProduct} from 'boundless-api-client'; import {useEffect, useState} from 'react'; import {useAppDispatch} from '../hooks/redux'; import {apiClient} from '../lib/api'; import {addPromise} from '../redux/reducers/xhr'; import ProductsSlider from './ProductsSlider'; export default function Pro...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/SortButtons.tsx
components/SortButtons.tsx
import React, {useEffect, useState} from 'react'; import clsx from 'clsx'; import {TQuery, TSortOrder} from '../@types/common'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faSortAmountDown, faSortAmountDownAlt} from '@fortawesome/free-solid-svg-icons'; const sortFields = [ {id: 1, title: '...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/BreadCrumbs.tsx
components/BreadCrumbs.tsx
import clsx from 'clsx'; import Link from 'next/link'; import {IBreadCrumbItem} from '../@types/components'; export default function BreadCrumbs({items}: {items: IBreadCrumbItem[]}) { const isEmpty = items.length === 0; const richItemAttrs = { itemProp: 'itemListElement', itemScope: true, itemType: '//schema....
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/SwiperSlider.tsx
components/SwiperSlider.tsx
import {Swiper, SwiperProps, SwiperSlide} from 'swiper/react'; import {Navigation, Scrollbar, Pagination} from 'swiper'; import clsx from 'clsx'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faChevronLeft} from '@fortawesome/free-solid-svg-icons/faChevronLeft'; import {faChevronRight} from '@...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/FilterForm.tsx
components/FilterForm.tsx
import {IFilterField, IFilterFieldRange, TCharacteristicType, TFilterFieldType} from 'boundless-api-client'; import {TQuery} from '../@types/common'; import {SyntheticEvent, useCallback, useEffect, useState} from 'react'; import {apiClient} from '../lib/api'; import PriceRangeField from './filterForm/PriceRange'; impor...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/Alert.tsx
components/Alert.tsx
import Toast from 'react-bootstrap/Toast'; import ToastContainer from 'react-bootstrap/ToastContainer'; import {useAppDispatch, useAppSelector} from '../hooks/redux'; import {hideAlert} from '../redux/reducers/alert'; import {RootState} from '../redux/store'; export default function AlertWidget() { const dispatch = u...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/LoadingLine.tsx
components/LoadingLine.tsx
import React, {useEffect} from 'react'; import NProgress from 'nprogress'; import {useAppDispatch, useAppSelector} from '../hooks/redux'; import {RootState} from '../redux/store'; import {cleanPromises} from '../redux/reducers/xhr'; export default function LoadingLine() { const dispatch = useAppDispatch(); const pro...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/HorizontalMenu.tsx
components/HorizontalMenu.tsx
import React from 'react'; import clsx from 'clsx'; import Link from 'next/link'; import {CSSTransition} from 'react-transition-group'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faCaretDown} from '@fortawesome/free-solid-svg-icons/faCaretDown'; import {IMenuItem} from '../@types/components...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/Footer.tsx
components/Footer.tsx
import FooterMenu from './footer/FooterMenu'; import SocialButtons from './footer/SocialButtons'; import FooterContacts from './footer/Contacts'; import FooterAbout from './footer/About'; import {IMenuItem} from '../@types/components'; export default function Footer({menuList, companyTitle}: {menuList: IMenuItem[], co...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/Loader.tsx
components/Loader.tsx
export default function Loader() { return ( <div className='loader-page-centered'> <div className='lds-facebook'> <div></div> <div></div> <div></div> </div> </div> ); }
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/Header.tsx
components/Header.tsx
import {MouseEvent} from 'react'; import Link from 'next/link'; import HeaderCart from './cart/HeaderCart'; import ChooseVariantModal from './header/ChooseVariantModal'; import logoImg from '../assets/logo.svg'; import {faBars} from '@fortawesome/free-solid-svg-icons/faBars'; import {FontAwesomeIcon} from '@fortawesome...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/Pagination.tsx
components/Pagination.tsx
import {IPagination} from 'boundless-api-client'; import {createGetStr} from 'boundless-api-client/utils'; import clsx from 'clsx'; import {useRouter} from 'next/router'; import React from 'react'; export default function Pagination({pagination, params, onChange}: IPaginationProps) { const router = useRouter(); cons...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/category/FiltersModal.tsx
components/category/FiltersModal.tsx
import React from 'react'; import Modal from 'react-bootstrap/Modal'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faArrowLeft} from '@fortawesome/free-solid-svg-icons/faArrowLeft'; export default function FiltersModal({show, setShow, children}: FiltersModalProps) { const onBackClick = (e: ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/category/HomeMenu.tsx
components/category/HomeMenu.tsx
import clsx from 'clsx'; import Link from 'next/link'; import {ICategoryPartial} from '../../@types/category'; import {getCategoryImg} from '../../lib/imgs'; import {getCategoryUrl} from '../../lib/urls'; export default function CategoryHomeMenu({categoryTree}: {categoryTree: ICategoryPartial[]}) { return ( <ul cla...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/category/Controls.tsx
components/category/Controls.tsx
import {TQuery} from '../../@types/common'; import SortButtons from '../SortButtons'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faSlidersH} from '@fortawesome/free-solid-svg-icons/faSlidersH'; export default function CaregoryControls({params, onSort, onMobileShow}: ControlBarProps) { ret...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/category/Sidebar.tsx
components/category/Sidebar.tsx
import clsx from 'clsx'; import Link from 'next/link'; import {getCategoryImg} from '../../lib/imgs'; import {getCategoryUrl} from '../../lib/urls'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faChevronLeft} from '@fortawesome/free-solid-svg-icons/faChevronLeft'; import {ICategoryFlatItem, I...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/productsList/ProductImage.tsx
components/productsList/ProductImage.tsx
import Image from 'next/legacy/image'; import {getProductsListImg, IImagePartial} from '../../lib/imgs'; export default function ProductListImage({image, alt, maxSize = 300}: {image: IImagePartial, alt?: string, maxSize?: number}) { const {src, blurSrc, width, height} = getProductsListImg(image, maxSize); return ( ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/productsList/ProductItem.tsx
components/productsList/ProductItem.tsx
import {IProduct} from 'boundless-api-client'; import clsx from 'clsx'; import {useAppDispatch} from '../../hooks/redux'; import {addItem2Cart} from '../../redux/actions/cart'; import {getProductUrl} from '../../lib/urls'; import ProductListImage from './ProductImage'; import ProductPrice from './ProductPrice'; import ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/productsList/ProductPrice.tsx
components/productsList/ProductPrice.tsx
import {IFinalPrice} from 'boundless-api-client'; import clsx from 'clsx'; import {getPriceForTpl} from '../../lib/product'; import useFormatCurrency from '../../hooks/useFormatCurrency'; export default function ProductPrice({price, className = 'products__price'}: {price: IFinalPrice, className?: string}) { const tpl...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/ProductImage.tsx
components/product/ProductImage.tsx
import Image from 'next/legacy/image'; import {getProductImg, IImagePartial} from '../../lib/imgs'; export default function ProductImage({image, alt, maxSize = 800, preserveRatio = false}: IProductImageProps) { const {src, blurSrc, width, height} = getProductImg(image, maxSize, preserveRatio); return ( <> {wid...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/MetaSchemaOrg.tsx
components/product/MetaSchemaOrg.tsx
import {ICategoryFlatItem, IProductItem} from 'boundless-api-client'; import {getProductItemUrl} from '../../lib/urls'; import {findSellingPrice} from '../../lib/product'; export default function MetaSchemaOrg({product, parents}: IProductMetaProps) { const productSellingPrice = findSellingPrice(product.prices); ret...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/Characteristics.tsx
components/product/Characteristics.tsx
import {IItemSize, IProductAttribute, IProductItemManufacturer} from 'boundless-api-client'; import React from 'react'; import CharacteristicItem from './characteristics/CharacteristicItem'; import Manufacturer from './characteristics/Manufacturer'; import SizeAndWeight from './characteristics/SizeAndWeight'; export d...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/VariantPicker.tsx
components/product/VariantPicker.tsx
import {IExtendedVariants, IVariant} from 'boundless-api-client'; import {useState} from 'react'; import VariantPickerCharacteristic from './variantPicker/Characteristic'; import {IVariantCombination} from 'boundless-api-client'; import _isEqual from 'lodash/isEqual'; import clsx from 'clsx'; export default function P...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/PriceAndBuy.tsx
components/product/PriceAndBuy.tsx
import {useState, useMemo, ChangeEvent, MouseEvent} from 'react'; import {IProductItem, IVariant} from 'boundless-api-client'; import clsx from 'clsx'; import {useAppDispatch} from '../../hooks/redux'; import {addItem2Cart} from '../../redux/actions/cart'; import {findSellingPrice, getPriceForTpl, IPriceForTpl} from '....
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/VariantAndBuy.tsx
components/product/VariantAndBuy.tsx
import {useState} from 'react'; import {IProductItem, IVariant} from 'boundless-api-client'; import ProductVariantPicker from './VariantPicker'; import ProductPriceAndBuy from './PriceAndBuy'; import clsx from 'clsx'; import {CSSTransition} from 'react-transition-group'; export default function ProductVariantAndBuy({p...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/Labels.tsx
components/product/Labels.tsx
import {ILabel, TLabelIcon} from 'boundless-api-client'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faStar} from '@fortawesome/free-solid-svg-icons/faStar'; import {faFlag} from '@fortawesome/free-solid-svg-icons/faFlag'; import {faFire} from '@fortawesome/free-solid-svg-icons/faFire'; impo...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/Images.tsx
components/product/Images.tsx
import React, {useMemo, useState} from 'react'; import clsx from 'clsx'; import ProductImage from './ProductImage'; import {getMetaImgUrl, getProductImg, productImgRatio} from '../../lib/imgs'; import NoImage from '../NoImage'; import {IProductItem} from 'boundless-api-client'; import dynamic from 'next/dynamic'; impor...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/ImagesSlider.tsx
components/product/ImagesSlider.tsx
import React, {useRef} from 'react'; import {Swiper, SwiperSlide} from 'swiper/react'; import SwiperCore, {Pagination, Navigation} from 'swiper'; import {IProductImage} from 'boundless-api-client'; import ProductImage from './ProductImage'; export default function ImagesSlider({images, onClick}: ImagesSliderProps) { ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/Shipping.tsx
components/product/Shipping.tsx
import {faUndo} from '@fortawesome/free-solid-svg-icons/faUndo'; import {faCalendarAlt} from '@fortawesome/free-solid-svg-icons/faCalendarAlt'; import {faPhoneVolume} from '@fortawesome/free-solid-svg-icons/faPhoneVolume'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; const shippingInfo = [ {id: 1, ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/characteristics/Manufacturer.tsx
components/product/characteristics/Manufacturer.tsx
import {IProductItemManufacturer} from 'boundless-api-client'; import {getManufacturerImg} from '../../../lib/imgs'; export default function Manufacturer({manufacturer}: {manufacturer: IProductItemManufacturer}) { const image = manufacturer.image?.path ? getManufacturerImg(manufacturer.image) : null; const title = m...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/characteristics/CharacteristicItem.tsx
components/product/characteristics/CharacteristicItem.tsx
import {IProductAttribute} from 'boundless-api-client'; export default function CharacteristicItem({characteristic}: {characteristic: IProductAttribute}) { return ( <> <dl className='product-attrs__item'> <dt className='product-attrs__item-name-wrapper'> <span className='product-attrs__item-name'> ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/characteristics/SizeAndWeight.tsx
components/product/characteristics/SizeAndWeight.tsx
import {IItemSize} from 'boundless-api-client'; const LENGTH_MEASURE_UNIT = 'cm.'; const WEIGHT_MEASURE_UNIT = 'kg.'; export default function SizeAndWeight({size}: {size: IItemSize}) { const {weight, width, length, height} = size; const hasDimensions = length || width || height; return ( <> {hasDimensions &&...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/product/variantPicker/Characteristic.tsx
components/product/variantPicker/Characteristic.tsx
import {IVariantCharacteristic, IVariantIdCombinations} from 'boundless-api-client'; import {MouseEvent} from 'react'; import {IVariant} from 'boundless-api-client'; import clsx from 'clsx'; // values, onSelect, idCombinations export default function VariantPickerCharacteristic({characteristic, onSelectCase, value, id...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/filterForm/TextCharacteristic.tsx
components/filterForm/TextCharacteristic.tsx
import {IFilterFieldProps} from '../FilterForm'; import {ChangeEvent} from 'react'; export default function TextCharacteristic({field, onChange, values, idsPrefix}: IFilterFieldProps) { const characteristic = field.characteristic!; const id = `${idsPrefix}filter_prop_${characteristic.id}`; const onInput = (e: Chan...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/filterForm/BrandSelect.tsx
components/filterForm/BrandSelect.tsx
import {IFilterFieldProps} from '../FilterForm'; import React, {ChangeEvent, useEffect, useState} from 'react'; import {IProductManufacturer} from 'boundless-api-client'; import {TQuery} from '../../@types/common'; import Collapse from 'react-bootstrap/Collapse'; export default function BrandSelect({field, onChange, ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/filterForm/PriceRange.tsx
components/filterForm/PriceRange.tsx
import {IFilterFieldProps} from '../FilterForm'; import {ChangeEvent} from 'react'; import {Range as RangeComponent, createSliderWithTooltip} from 'rc-slider'; import 'rc-slider/assets/index.css'; import useFormatCurrency from '../../hooks/useFormatCurrency'; import {useAppSelector} from '../../hooks/redux'; const Ran...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/filterForm/MultipleSelectCharacteristic.tsx
components/filterForm/MultipleSelectCharacteristic.tsx
import {IFilterFieldProps} from '../FilterForm'; import {ChangeEvent, useEffect, useState} from 'react'; import {ICharacteristicCase} from 'boundless-api-client'; import Collapse from 'react-bootstrap/Collapse'; export default function MultipleSelectCharacteristic({field, onChange, values, displayLimit, idsPrefix}: IF...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/filterForm/Stock.tsx
components/filterForm/Stock.tsx
import {IFilterFieldProps} from '../FilterForm'; export default function Stock({onChange, values}: IFilterFieldProps) { return ( <div className={'mb-3'}> <label className='form-label'>Stock</label> <div className='form-check'> <label className='form-check-label'> <input className='form-check-input' ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/productsSlider/SliderProductItem.tsx
components/productsSlider/SliderProductItem.tsx
import {IProduct} from 'boundless-api-client'; import clsx from 'clsx'; import {useAppDispatch} from '../../hooks/redux'; import {addItem2Cart} from '../../redux/actions/cart'; import {getProductUrl} from '../../lib/urls'; import Link from 'next/link'; import ProductLabels from '../product/Labels'; import {FontAwesomeI...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/productsSlider/ProductItemLoader.tsx
components/productsSlider/ProductItemLoader.tsx
import ContentLoader from 'react-content-loader'; export default function ProductItemLoader() { return ( <div className='products-slider__product in-stock' > <div className='products-slider__product-wrapper'> <ProductImageLoader /> <h4 className='products-slider__product-title'> <ProductTitle /> ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/footer/About.tsx
components/footer/About.tsx
import Link from 'next/link'; import logoImg from '../../assets/logo.svg'; export default function FooterAbout({companyTitle}: {companyTitle?: string}) { const title = companyTitle || 'Your Company LLC.'; return <> <div className='page-footer__logo'> <Link href='/'> <img src={logoImg.src} width={l...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/footer/SocialButtons.tsx
components/footer/SocialButtons.tsx
import {faFacebook} from '@fortawesome/free-brands-svg-icons/faFacebook'; import {faInstagram} from '@fortawesome/free-brands-svg-icons/faInstagram'; import {faTwitter} from '@fortawesome/free-brands-svg-icons/faTwitter'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; export default function SocialBut...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/footer/FooterMenu.tsx
components/footer/FooterMenu.tsx
import clsx from 'clsx'; import Link from 'next/link'; import {IMenuItem} from '../../@types/components'; export default function FooterMenu({menuList}: {menuList: IMenuItem[]}) { return ( <> <h3 className='page-footer__header'>Most popular</h3> <ul className='page-footer-menu list-unstyled' itemScope itemTyp...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/footer/Contacts.tsx
components/footer/Contacts.tsx
import {faWhatsapp} from '@fortawesome/free-brands-svg-icons/faWhatsapp'; import {faClock} from '@fortawesome/free-solid-svg-icons/faClock'; import {faMapMarkerAlt} from '@fortawesome/free-solid-svg-icons/faMapMarkerAlt'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; export default function FooterCon...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/cart/CartRowLoader.tsx
components/cart/CartRowLoader.tsx
import ContentLoader from 'react-content-loader'; export default function CartRowLoader({bg}: {bg: string}) { return ( <div className='row mb-2 mx-1 py-3 rounded' style={{backgroundColor: bg || '#fff'}}> <div className='col-md-4 d-flex mb-2 align-items-start '> <ContentLoader speed={2} width={230} ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/cart/CartRow.tsx
components/cart/CartRow.tsx
import {ICartItem} from 'boundless-api-client'; import Link from 'next/link'; import {getCartImg} from '../../lib/imgs'; import {getProductUrl} from '../../lib/urls'; import NoImage from '../NoImage'; import {TThumbRatio} from 'boundless-api-client'; import {calcTotalPrice} from '../../lib/calculator'; import useFormat...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/cart/CartLoader.tsx
components/cart/CartLoader.tsx
import CartRowLoader from './CartRowLoader'; export default function CartLoader () { return ( <div className='pt-md-4'> {[...Array(3)].map((_, i) => ( <CartRowLoader key={i} bg={i % 2 === 0 ? '#f9f9f9' : ''} /> ))} </div> ); }
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/cart/HeaderCart.tsx
components/cart/HeaderCart.tsx
import Link from 'next/link'; import {useCart} from '../../hooks/cart'; import clsx from 'clsx'; import useFormatCurrency from '../../hooks/useFormatCurrency'; export default function HeaderCart({className}: {className?: string}) { const {total} = useCart(); const {formatCurrency} = useFormatCurrency(); const isEmp...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/cart/CartItems.tsx
components/cart/CartItems.tsx
import {ICartItem} from 'boundless-api-client'; import {Dispatch, SetStateAction, useEffect, useMemo, useRef, useState} from 'react'; import {useAppDispatch, useAppSelector} from '../../hooks/redux'; import {apiClient} from '../../lib/api'; import {addPromise} from '../../redux/reducers/xhr'; import {RootState} from '....
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/asideMenu/MenuList.tsx
components/asideMenu/MenuList.tsx
import {faCaretDown, faCaretRight} from '@fortawesome/free-solid-svg-icons'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import clsx from 'clsx'; import Link from 'next/link'; import React, {useEffect, useState} from 'react'; import {IMenuItem} from '../../@types/components'; import {useAppSelector}...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/asideMenu/Backdrop.tsx
components/asideMenu/Backdrop.tsx
import {useAppDispatch, useAppSelector} from '../../hooks/redux'; import {RootState} from '../../redux/store'; import clsx from 'clsx'; import {setIsOpened} from '../../redux/reducers/asideMenu'; export default function AsideBackdrop() { const asideIsOpened = useAppSelector((state: RootState) => state.asideMenu.isOpe...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/header/ChooseVariantModal.tsx
components/header/ChooseVariantModal.tsx
import Modal from 'react-bootstrap/Modal'; import {useAppDispatch, useAppSelector} from '../../hooks/redux'; import {hideVariantModal} from '../../redux/reducers/cart'; import {RootState} from '../../redux/store'; import ProductVariantAndBuy from '../product/VariantAndBuy'; import ProductImage from '../productsList/Pro...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/header/CallToOrder.tsx
components/header/CallToOrder.tsx
import clsx from 'clsx'; import Link from 'next/link'; import {useAppDispatch, useAppSelector} from '../../hooks/redux'; import {calcTotalPrice} from '../../lib/calculator'; import {hideCall2Order} from '../../redux/reducers/cart'; import {RootState} from '../../redux/store'; import ProductImage from '../productsList/P...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/components/swiperSlider/SwiperSliderSlide.tsx
components/swiperSlider/SwiperSliderSlide.tsx
import clsx from 'clsx'; import Link from 'next/link'; export default function SwiperSliderSlide({img, link, caption, captionPosition, useFilling, fillingColor, fillingOpacity}: ISwiperSliderSlide) { const isGlobalLink = Boolean(link && /^http/.test(link)); const linkProps = isGlobalLink ? {target: '_blank'} : {}; ...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/layouts/Main.tsx
layouts/Main.tsx
import dynamic from 'next/dynamic'; import {ReactNode, useEffect} from 'react'; import Head from 'next/head'; import Header from '../components/Header'; import Footer from '../components/Footer'; import AlertWidget from '../components/Alert'; import {useAppSelector} from '../hooks/redux'; import {RootState} from '../re...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/menu.ts
lib/menu.ts
import {ICategory} from 'boundless-api-client'; import {getCategoryUrl} from './urls'; import {getCategoryImg} from './imgs'; import {IMenuItem} from '../@types/components'; export const makeMenuByCategoryTree = ({categoryTree, isActiveClb}: {categoryTree: ICategory[], isActiveClb?: (category: ICategory) => boolean}):...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/urls.ts
lib/urls.ts
import {ICategory, ICategoryItem} from 'boundless-api-client'; import {IProduct, IProductItem} from 'boundless-api-client'; import {createGetStr} from 'boundless-api-client/utils'; import {TQuery} from '../@types/common'; const CATEGORY_PREFIX = '/category'; const PRODUCTS_PREFIX = '/product'; const shopBaseUrl = proc...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/meta.ts
lib/meta.ts
import {ICategoryItem, IProductItem} from 'boundless-api-client'; import {getMetaImgUrl} from './imgs'; import {getCanonicalCategoryUrl, getCanonicalProductUrl} from './urls'; export const getProductMetaData = (product: IProductItem) => { return { canonicalUrl: getCanonicalProductUrl(product), imgUrl: product.ima...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/product.ts
lib/product.ts
import {IFinalPrice} from 'boundless-api-client'; export interface IPriceForTpl { price: string|null, oldPrice?: string|null, isFrom?: boolean } export const getPriceForTpl = (price: IFinalPrice|null): IPriceForTpl => { if (!price) { return {price: null}; } return { price: price.min ? price.min : price.val...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/imgs.ts
lib/imgs.ts
import {TThumbRatio} from 'boundless-api-client'; import {apiClient} from './api'; //fixed aspect ratio for product images export const productImgRatio = process.env.BOUNDLESS_PRODUCTS_IMAGE_PROPORTION as TThumbRatio || null; export function getProductsListImg(image: IImagePartial, maxSize: number): IImageData { con...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/api.ts
lib/api.ts
import {BoundlessClient} from 'boundless-api-client'; const baseURL = process.env.BOUNDLESS_API_BASE_URL; const permanentToken = process.env.BOUNDLESS_API_PERMANENT_TOKEN; const s3Prefix = process.env.BOUNDLESS_S3_PREFIX; const mediaServer = process.env.BOUNDLESS_MEDIA_SERVER; const apiClient = new BoundlessClient(pe...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/calculator.ts
lib/calculator.ts
import currency from 'currency.js'; export const calcTotal = (items: ICalcTotalItem[]) => { let totalQty = 0; let totalPrice = currency(0); for (const {qty, price} of items) { totalQty += qty; totalPrice = currency(totalPrice).add(price); } return { qty: totalQty, price: totalPrice.toString() }; }; exp...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/breadcrumbs.ts
lib/breadcrumbs.ts
import {ICategoryFlatItem} from 'boundless-api-client'; import {TQuery} from '../@types/common'; import {IBreadCrumbItem} from '../@types/components'; import {getCategoryUrl} from './urls'; export const makeBreadCrumbsFromCats = ( categories: ICategoryFlatItem[], onItem?: (category: ICategoryFlatItem) => IOnItemResp...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/lib/category.ts
lib/category.ts
import {IGetProductsParams} from 'boundless-api-client'; import {TQuery} from '../@types/common'; export const filterKeys = ['brand', 'price_min', 'price_max', 'props', 'in_stock']; export const filterProductsQuery = (query: TQuery, allowedKeys: string[]|null = null): IGetProductsParams => { if (allowedKeys === null...
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/@types/components.ts
@types/components.ts
export interface IBreadCrumbItem { title: string; isActive?: boolean; url?: string } export interface IMenuItem { title: string, url?: string, img?: IMenuItemImage, isActive?: boolean, children?: IMenuItem[] } export interface IMenuItemImage { src: string, width?: number, height?: number }
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/@types/common.ts
@types/common.ts
export enum TPublishingStatus { published = 'published', draft = 'draft' } export type TQuery = { [key: string]: any; } export enum TSortOrder { asc = '', desc = '-', }
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/@types/settings.ts
@types/settings.ts
import {ICurrency, ILocaleSettings} from 'boundless-api-client'; export interface IBasicSettings { 'system.locale': ILocaleSettings, 'system.currency': ICurrency }
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
kirill-zhirnov/boundless-nextjs-ecommerce-template
https://github.com/kirill-zhirnov/boundless-nextjs-ecommerce-template/blob/e7b8f3ee18be3bae47094d71e8e609f05e30052f/@types/category.ts
@types/category.ts
import {ICategory} from 'boundless-api-client'; export type ICategoryPartial = Pick<ICategory, 'category_id' | 'title' | 'custom_link' | 'url_key' | 'image'> & {children?: ICategory[] | null};
typescript
MIT
e7b8f3ee18be3bae47094d71e8e609f05e30052f
2026-01-05T04:59:31.108481Z
false
jaredpalmer/react-simple-infinite-scroll
https://github.com/jaredpalmer/react-simple-infinite-scroll/blob/2dfa76d82cabcb2b0bc6dfbaefbd7d1b252931eb/src/index.tsx
src/index.tsx
import * as React from 'react'; const throttle = require('lodash.throttle'); export interface InfiniteScrollProps { /** * Does the resource have more entities */ hasMore: boolean; /** * Should show loading */ isLoading: boolean; /** * Callback to load more entities */ onLoadMore: () =>...
typescript
MIT
2dfa76d82cabcb2b0bc6dfbaefbd7d1b252931eb
2026-01-05T04:59:31.045141Z
false
jaredpalmer/react-simple-infinite-scroll
https://github.com/jaredpalmer/react-simple-infinite-scroll/blob/2dfa76d82cabcb2b0bc6dfbaefbd7d1b252931eb/src/__tests__/InfiniteScroll.tsx
src/__tests__/InfiniteScroll.tsx
import * as React from 'react'; import * as renderer from 'react-test-renderer'; import { InfiniteScroll } from '../.'; describe('<InfiniteScroll />', () => { it('renders InfiniteScroll correctly', () => { const tree = renderer.create( <InfiniteScroll isLoading={true} throttle={100} ...
typescript
MIT
2dfa76d82cabcb2b0bc6dfbaefbd7d1b252931eb
2026-01-05T04:59:31.045141Z
false
edrickleong/obsidian-feed-bases
https://github.com/edrickleong/obsidian-feed-bases/blob/4bf7cd73e1400ff0154a644f8879fc5b9f74afa9/src/context.tsx
src/context.tsx
import { createContext } from "react"; import { App } from "obsidian"; export const AppContext = createContext<App | undefined>(undefined);
typescript
MIT
4bf7cd73e1400ff0154a644f8879fc5b9f74afa9
2026-01-05T04:59:31.281849Z
false
edrickleong/obsidian-feed-bases
https://github.com/edrickleong/obsidian-feed-bases/blob/4bf7cd73e1400ff0154a644f8879fc5b9f74afa9/src/feed-view.tsx
src/feed-view.tsx
import { BasesEntry, BasesPropertyId, BasesView, Menu, QueryController, } from "obsidian"; import { StrictMode } from "react"; import { createRoot, Root } from "react-dom/client"; import { FeedReactView } from "./FeedReactView"; import { AppContext } from "./context"; export const FeedViewType = "feed"; exp...
typescript
MIT
4bf7cd73e1400ff0154a644f8879fc5b9f74afa9
2026-01-05T04:59:31.281849Z
false
edrickleong/obsidian-feed-bases
https://github.com/edrickleong/obsidian-feed-bases/blob/4bf7cd73e1400ff0154a644f8879fc5b9f74afa9/src/main.ts
src/main.ts
import { Plugin } from "obsidian"; import { FeedView, FeedViewType } from "./feed-view"; export default class ObsidianFeedPlugin extends Plugin { async onload() { this.registerBasesView(FeedViewType, { name: "Feed", icon: "lucide-newspaper", factory: (controller, containerEl) => new Fee...
typescript
MIT
4bf7cd73e1400ff0154a644f8879fc5b9f74afa9
2026-01-05T04:59:31.281849Z
false
edrickleong/obsidian-feed-bases
https://github.com/edrickleong/obsidian-feed-bases/blob/4bf7cd73e1400ff0154a644f8879fc5b9f74afa9/src/hooks.tsx
src/hooks.tsx
import { useContext } from "react"; import { App } from "obsidian"; import { AppContext } from "./context"; export const useApp = (): App => { const app = useContext(AppContext); if (!app) { throw new Error("useApp must be used within an AppContext provider"); } return app; };
typescript
MIT
4bf7cd73e1400ff0154a644f8879fc5b9f74afa9
2026-01-05T04:59:31.281849Z
false
edrickleong/obsidian-feed-bases
https://github.com/edrickleong/obsidian-feed-bases/blob/4bf7cd73e1400ff0154a644f8879fc5b9f74afa9/src/MasonryView.tsx
src/MasonryView.tsx
import { App, BasesEntry, MarkdownView, WorkspaceLeaf } from "obsidian"; import React, { useCallback, useEffect, useMemo, useRef, useState, } from "react"; import { useVirtualizer } from "@tanstack/react-virtual"; import { useApp } from "./hooks"; export const MasonryView: React.FC<MasonryViewProps> = ({ e...
typescript
MIT
4bf7cd73e1400ff0154a644f8879fc5b9f74afa9
2026-01-05T04:59:31.281849Z
false
edrickleong/obsidian-feed-bases
https://github.com/edrickleong/obsidian-feed-bases/blob/4bf7cd73e1400ff0154a644f8879fc5b9f74afa9/src/FeedReactView.tsx
src/FeedReactView.tsx
import { App, BasesEntry, MarkdownView, WorkspaceLeaf } from "obsidian"; import React, { useCallback, useMemo } from "react"; import { useVirtualizer } from "@tanstack/react-virtual"; import { useApp } from "./hooks"; import { MasonryView } from "./MasonryView"; export const FeedReactView: React.FC<FeedReactViewProps>...
typescript
MIT
4bf7cd73e1400ff0154a644f8879fc5b9f74afa9
2026-01-05T04:59:31.281849Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/playwright.config.ts
tests/base/playwright.config.ts
import { defineConfig, devices } from "@playwright/test"; import path from "path"; // Use process.env.PORT by default and fallback to port 3000 const PORT = process.env.PORT || 3000; // Set webServer.url and use.baseURL with the location of the WebServer respecting the correct set port const baseURL = `http://localho...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/layout.tsx
tests/base/app/layout.tsx
export default function RootLayout({ children, }: { children: React.ReactNode; }) { return ( <html lang="en"> <body>{children}</body> </html> ); }
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/not-found.spec.ts
tests/base/app/not-found.spec.ts
import { test, expect } from "@playwright/test"; test.describe("get-params with custom pagePaths", async () => { test(`should return correct params for /specific/ pages`, async ({ page }) => { await page.goto("/specific/de/unknown-page"); page.waitForSelector("#not-found"); const params = ...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/utils-unit.spec.ts
tests/base/app/utils-unit.spec.ts
import { test, expect } from "@playwright/test"; import { parseParams, INVALID_PARSE } from "@nimpl/getters/utils"; test.describe("Test utils", () => { test(`test parseParams`, () => { expect(parseParams("/", "/page")).toEqual({}); expect(parseParams("/", "/[slug]/page")).toBe(INVALID_PARSE); ...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/base-tests.spec.ts
tests/base/app/base-tests.spec.ts
import { test, expect } from "@playwright/test"; const variants = [ { path: "", id: "#home-page" }, { path: "/dynamic/auto", id: "#dynamic-auto-page" }, { path: "/dynamic/error", id: "#dynamic-error-page" }, { path: "/dynamic/force-static", id: "#dynamic-force-static-page" }, { path: "/dynamic/forc...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/page.tsx
tests/base/app/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getPageConfig } from "@nimpl/getters/get-page-config"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../components/Nav"; export default function Page() { const pathname = getPathname(); const pageConfig = getPageConfi...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/not-found.tsx
tests/base/app/not-found.tsx
import { getParams } from "@nimpl/getters/get-params"; export default function NotFound() { const params = getParams({ ignoreDifferenceError: true, pagePaths: ["/specific/[locale]/[...subpaths]/page", "/[locale]/base/[...subpaths]/page"], }); return ( <div id="not-found"> ...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/(group1)/groups.spec.ts
tests/base/app/(group1)/groups.spec.ts
import { test, expect } from "@playwright/test"; test("should return correct page params and pathname for nested groups", async ({ page }) => { await page.goto("/groups"); page.waitForSelector("#groups-page"); const pathname = await page.$("#get-pathname"); const pathnameRow = await pathname?.textCont...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/(group1)/(group2)/groups/page.tsx
tests/base/app/(group1)/(group2)/groups/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../../../../components/Nav"; export default function Page() { const pathname = getPathname(); const params = getParams(); return ( <div id="groups-page"> <...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/(group1)/nested/page.tsx
tests/base/app/(group1)/nested/page.tsx
import Nav from "../../../components/Nav"; export default function Page() { return ( <div id="nested-page"> <Nav /> </div> ); }
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/(group1)/nested/(..)nested-intercepted/page.tsx
tests/base/app/(group1)/nested/(..)nested-intercepted/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../../../../components/Nav"; export default function Page() { const pathname = getPathname(); const params = getParams(); return ( <div id="nested-intercepted-page"> ...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/(group1)/(.)intercepted/page.tsx
tests/base/app/(group1)/(.)intercepted/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../../../components/Nav"; export default function Page() { const pathname = getPathname(); const params = getParams(); return ( <div id="intercepted-page"> ...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/(group1)/nested-intercepted/page.tsx
tests/base/app/(group1)/nested-intercepted/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getParams } from "@nimpl/getters/get-params"; export default function Page() { const pathname = getPathname(); const params = getParams(); return ( <div id="nested-intercepted-page"> <div> <p id="get-pa...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/(group1)/intercepted/page.tsx
tests/base/app/(group1)/intercepted/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getParams } from "@nimpl/getters/get-params"; export default function Page() { const pathname = getPathname(); const params = getParams(); return ( <div id="intercepted-page"> <div> <p id="get-pathname"...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/force-static-revalidate/dynamic-force-static-revalidate.spec.ts
tests/base/app/dynamic/force-static-revalidate/dynamic-force-static-revalidate.spec.ts
import { test, expect } from "@playwright/test"; test("should return correct page config on dynamic force-static-revalidate page", async ({ page }) => { await page.goto("/dynamic/force-static-revalidate"); page.waitForSelector("#dynamic-force-static-revalidate-page"); const pageConfig = await page.$("#get...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/force-static-revalidate/page.tsx
tests/base/app/dynamic/force-static-revalidate/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getPageConfig } from "@nimpl/getters/get-page-config"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../../../components/Nav"; export default function Page() { const pathname = getPathname(); const pageConfig = getPag...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/force-dynamic/dynamic-force-dynamic.spec.ts
tests/base/app/dynamic/force-dynamic/dynamic-force-dynamic.spec.ts
import { test, expect } from "@playwright/test"; test("should return correct page config on dynamic force-dynamic page", async ({ page }) => { await page.goto("/dynamic/force-dynamic"); page.waitForSelector("#dynamic-force-dynamic-page"); const pageConfig = await page.$("#get-page-config"); const page...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/force-dynamic/page.tsx
tests/base/app/dynamic/force-dynamic/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getPageConfig } from "@nimpl/getters/get-page-config"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../../../components/Nav"; export default function Page() { const pathname = getPathname(); const pageConfig = getPag...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/error/dynamic-error.spec.ts
tests/base/app/dynamic/error/dynamic-error.spec.ts
import { test, expect } from "@playwright/test"; test("should return correct page config on dynamic error page", async ({ page }) => { await page.goto("/dynamic/error"); page.waitForSelector("#dynamic-error-page"); const pageConfig = await page.$("#get-page-config"); const pageConfigRow = await pageCo...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/error/page.tsx
tests/base/app/dynamic/error/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getPageConfig } from "@nimpl/getters/get-page-config"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../../../components/Nav"; export default function Page() { const pathname = getPathname(); const pageConfig = getPag...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/force-static/page.tsx
tests/base/app/dynamic/force-static/page.tsx
import { getPathname } from "@nimpl/getters/get-pathname"; import { getPageConfig } from "@nimpl/getters/get-page-config"; import { getParams } from "@nimpl/getters/get-params"; import Nav from "../../../components/Nav"; export default function Page() { const pathname = getPathname(); const pageConfig = getPag...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/force-static/dynamic-force-static.spec.ts
tests/base/app/dynamic/force-static/dynamic-force-static.spec.ts
import { test, expect } from "@playwright/test"; test("should return correct page config on dynamic force-static page", async ({ page }) => { await page.goto("/dynamic/force-static"); page.waitForSelector("#dynamic-force-static-page"); const pageConfig = await page.$("#get-page-config"); const pageCon...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false
alexdln/nimpl-getters
https://github.com/alexdln/nimpl-getters/blob/e7425b8ece0a025b1d7d205a18a056baaa6eb3d1/tests/base/app/dynamic/auto/dynamic-auto.spec.ts
tests/base/app/dynamic/auto/dynamic-auto.spec.ts
import { test, expect } from "@playwright/test"; test("should return correct page config on dynamic auto page", async ({ page }) => { await page.goto("/dynamic/auto"); page.waitForSelector("#dynamic-auto-page"); const pageConfig = await page.$("#get-page-config"); const pageConfigRow = await pageConfi...
typescript
MIT
e7425b8ece0a025b1d7d205a18a056baaa6eb3d1
2026-01-05T04:59:32.981997Z
false