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
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/i18n/config.ts
src/i18n/config.ts
export type Locale = (typeof locales)[number]; export const locales = ["pl", "en"] as const; export const defaultLocale: Locale = "pl";
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/i18n/routing.ts
src/i18n/routing.ts
import { createNavigation } from "next-intl/navigation"; import { defineRouting } from "next-intl/routing"; export const routing = defineRouting({ // A list of all locales that are supported locales: ["en", "pl"], // Used when no locale matches defaultLocale: "en", localeDetection: true, }); // Lightweigh...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/i18n/request.ts
src/i18n/request.ts
/* eslint-disable */ import { getRequestConfig } from "next-intl/server"; import { routing } from "./routing"; export default getRequestConfig(async ({ requestLocale }) => { // This typically corresponds to the `[locale]` segment let locale = await requestLocale; // Ensure that a valid locale is used if (!lo...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/Currency/index.tsx
src/stores/Currency/index.tsx
"use client"; import { create } from "zustand"; import canUseDOM from "@/utilities/canUseDOM"; import { type Currency } from "./types"; type CurrencyState = { currency: Currency; setCurrency: (currency: Currency) => void; }; const getInitialCurrency = (): Currency => { if (canUseDOM) { const stored = wind...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/Currency/types.ts
src/stores/Currency/types.ts
export type Currency = "USD" | "PLN" | "GBP" | "EUR";
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/Currency/CurrencySelector/index.tsx
src/stores/Currency/CurrencySelector/index.tsx
"use client"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { useCurrency } from ".."; import { type Currency } from "../types"; export const CurrencySelector = ({ currencyOptions }: { currencyOptions: string[] }) => { const { setCurrency, currency }...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/WishListStateStore/index.tsx
src/stores/WishListStateStore/index.tsx
import { create } from "zustand"; type WishListState = { isOpen: boolean; toggleWishList: () => void; setWishListState: (isOpen: boolean) => void; }; const useWishListStateStore = create<WishListState>((set) => ({ isOpen: false, toggleWishList: () => set((state) => ({ isOpen: !state.isOpen })), setWishLis...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/CartStateStore/index.tsx
src/stores/CartStateStore/index.tsx
import { create } from "zustand"; type CartState = { isOpen: boolean; toggleCart: () => void; setCartState: (isOpen: boolean) => void; }; const useCartStateStore = create<CartState>((set) => ({ isOpen: false, toggleCart: () => set((state) => ({ isOpen: !state.isOpen })), setCartState: (isOpen) => set({ is...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/WishlistStore/index.tsx
src/stores/WishlistStore/index.tsx
import axios from "axios"; import debounce from "lodash.debounce"; import { create } from "zustand"; import canUseDOM from "@/utilities/canUseDOM"; import { type WishList } from "./types"; type WishListState = { wishlist: WishList | null; setWishList: (wishlistToSet: WishList | null) => void; toggleWishList: (...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/WishlistStore/types.ts
src/stores/WishlistStore/types.ts
import { type Product } from "@/payload-types"; export type WishListProduct = { id: Product["id"]; choosenVariantSlug?: string; }; export type WishList = WishListProduct[];
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/CartStore/index.tsx
src/stores/CartStore/index.tsx
import axios from "axios"; import debounce from "lodash.debounce"; import { create } from "zustand"; import canUseDOM from "@/utilities/canUseDOM"; import { type Cart } from "./types"; type CartState = { cart: Cart | null; setCart: (cartToSet: Cart | null) => void; updateCart: (cartToSet: Cart) => void; remo...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/stores/CartStore/types.ts
src/stores/CartStore/types.ts
import { type Product } from "@/payload-types"; export type CartProduct = { id: Product["id"]; quantity: number; choosenVariantSlug?: string; }; export type Cart = CartProduct[];
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/config.ts
src/globals/(ecommerce)/Layout/config.ts
import { BlocksFeature, FixedToolbarFeature, HeadingFeature, HorizontalRuleFeature, InlineToolbarFeature, lexicalEditor, } from "@payloadcms/richtext-lexical"; import { Accordion } from "@/blocks/Accordion/config"; import { Banner } from "@/blocks/Banner/config"; import { Carousel } from "@/blocks/Carousel...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/Component.tsx
src/globals/(ecommerce)/Layout/ProductList/Component.tsx
import { notFound } from "next/navigation"; import { getLocale } from "next-intl/server"; import { getPayload } from "payload"; import { ListingBreadcrumbs } from "@/components/(ecommerce)/ListingBreadcrumbs"; import { type Locale } from "@/i18n/config"; import { type Product, type ProductCategory, type ProductSubCate...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/listings/WithInlinePrice.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/listings/WithInlinePrice.tsx
import { useTranslations } from "next-intl"; import { type ReactNode } from "react"; import { PriceClient } from "@/components/(ecommerce)/PriceClient"; import { Media } from "@/components/Media"; import { Link } from "@/i18n/routing"; import { type Product } from "@/payload-types"; import { getPriceRange } from "@/ut...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/None.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/None.tsx
import { type ReactNode } from "react"; export const None = ({ title, children }: { title: string; children: ReactNode }) => { return ( <main className="container pb-6 pt-24"> <h1 className="text-4xl font-bold tracking-tight text-gray-900">{title}</h1> <div className="mt-6 grid grid-cols-1 gap-x-6 ga...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/WithSidebar.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/WithSidebar.tsx
import "server-only"; import { DialogBackdrop, DialogPanel, Disclosure, DisclosureButton, DisclosurePanel, } from "@headlessui/react"; import { MinusIcon, PlusIcon } from "@heroicons/react/20/solid"; import { useTranslations } from "next-intl"; import { type ReactNode } from "react"; import { SelectContent,...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/FilterCheckbox.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/FilterCheckbox.tsx
"use client"; import { useSearchParams, useRouter } from "next/navigation"; import { type ChangeEvent } from "react"; export const FilterCheckbox = ({ option, sectionId, optionIdx, }: { option: { value: string; label: string; checked: boolean | undefined; }; sectionId: string; optionIdx: numb...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/SortSelect.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/SortSelect.tsx
"use client"; import { useRouter, useSearchParams } from "next/navigation"; import { type ReactNode } from "react"; import { Select } from "@/components/ui/select"; export const SortSelect = ({ children, defaultValue }: { children: ReactNode; defaultValue: string }) => { const searchParams = useSearchParams(); co...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/MobileFiltersDialog.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/MobileFiltersDialog.tsx
"use client"; import { Dialog } from "@headlessui/react"; import { type ReactNode } from "react"; import { useMobileFilters } from "../stores/MobileFiltersContext"; export const MobileFiltersDialog = ({ children }: { children: ReactNode }) => { const { mobileFiltersOpen, setMobileFiltersOpen } = useMobileFilters()...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/MobileFiltersCloseButton.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/MobileFiltersCloseButton.tsx
"use client"; import { XMarkIcon } from "@heroicons/react/24/outline"; import { useTranslations } from "next-intl"; import { useMobileFilters } from "../stores/MobileFiltersContext"; export const MobileFiltersCloseButton = () => { const { setMobileFiltersOpen } = useMobileFilters(); const t = useTranslations("Pr...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/MobileFunnelFiltersButton.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/components/MobileFunnelFiltersButton.tsx
"use client"; import { FunnelIcon } from "@heroicons/react/20/solid"; import { useTranslations } from "next-intl"; import { useMobileFilters } from "../stores/MobileFiltersContext"; export const MobileFunnelFiltersButton = () => { const { setMobileFiltersOpen } = useMobileFilters(); const t = useTranslations("Pr...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/stores/MobileFiltersContext.tsx
src/globals/(ecommerce)/Layout/ProductList/variants/filters/WithSidebar/stores/MobileFiltersContext.tsx
import { create } from "zustand"; type MobileFiltersState = { mobileFiltersOpen: boolean; setMobileFiltersOpen: (open: boolean) => void; }; const useMobileFiltersStore = create<MobileFiltersState>((set) => ({ mobileFiltersOpen: false, // domyślna wartość setMobileFiltersOpen: (open: boolean) => set({ mobileFi...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Cart/Component.tsx
src/globals/(ecommerce)/Layout/Cart/Component.tsx
import { getLocale } from "next-intl/server"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { SlideOver } from "./variants/SlideOver"; export const Cart = async () => { const locale = (await getLocale()) as Loca...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Cart/variants/SlideOver/index.tsx
src/globals/(ecommerce)/Layout/Cart/variants/SlideOver/index.tsx
"use client"; import { Dialog, DialogBackdrop, DialogPanel, DialogTitle } from "@headlessui/react"; import { XMarkIcon } from "@heroicons/react/24/outline"; import axios from "axios"; import debounce from "lodash.debounce"; import { useLocale, useTranslations } from "next-intl"; import { useCallback, useEffect, useMem...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/Component.tsx
src/globals/(ecommerce)/Layout/ClientPanel/Component.tsx
import { notFound } from "next/navigation"; import { getLocale } from "next-intl/server"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { WithSidebar } from "./variants/WithSidebar"; export const ClientPanel = asy...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/variants/WithSidebar/index.tsx
src/globals/(ecommerce)/Layout/ClientPanel/variants/WithSidebar/index.tsx
import { LogOutIcon } from "lucide-react"; import { useTranslations } from "next-intl"; import { type ReactNode } from "react"; import { LogoutButton } from "@/components/(ecommerce)/LogoutButton"; import { AsideMenu } from "./components/AsideMenu"; export const WithSidebar = ({ children }: { children: ReactNode }) ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/variants/WithSidebar/components/WithSidebarOrders.tsx
src/globals/(ecommerce)/Layout/ClientPanel/variants/WithSidebar/components/WithSidebarOrders.tsx
import { getLocale, getTranslations } from "next-intl/server"; import { getPayload } from "payload"; import { Media } from "@/components/Media"; import { Card } from "@/components/ui/card"; import { type Locale } from "@/i18n/config"; import { Link } from "@/i18n/routing"; import { formatDateTime } from "@/utilities/f...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/variants/WithSidebar/components/AsideMenu.tsx
src/globals/(ecommerce)/Layout/ClientPanel/variants/WithSidebar/components/AsideMenu.tsx
"use client"; import { AdjustmentsHorizontalIcon, ClipboardDocumentCheckIcon, CubeIcon, QuestionMarkCircleIcon, } from "@heroicons/react/24/outline"; import { useSelectedLayoutSegment } from "next/navigation"; import { useTranslations } from "next-intl"; import { Link } from "@/i18n/routing"; import { cn } fro...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/Orders/Component.tsx
src/globals/(ecommerce)/Layout/ClientPanel/Orders/Component.tsx
import { notFound } from "next/navigation"; import { getLocale } from "next-intl/server"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { WithSidebarOrders } from "../variants/WithSidebar/components/WithSidebarOrde...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/Help/Component.tsx
src/globals/(ecommerce)/Layout/ClientPanel/Help/Component.tsx
import { getLocale } from "next-intl/server"; import RichText from "@/components/RichText"; import { type Locale } from "@/i18n/config"; import { getCachedGlobal } from "@/utilities/getGlobals"; export const ClientHelp = async () => { const locale = (await getLocale()) as Locale; const { clientPanel } = await get...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/Settings/index.tsx
src/globals/(ecommerce)/Layout/ClientPanel/Settings/index.tsx
import { useTranslations } from "next-intl"; import { type Customer } from "@/payload-types"; import { ChangeData } from "./components/ChangeData"; import { ChangePassword } from "./components/ChangePassword"; export const Settings = ({ user }: { user: Customer }) => { const t = useTranslations("Account.settings")...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/Settings/components/ChangePassword.tsx
src/globals/(ecommerce)/Layout/ClientPanel/Settings/components/ChangePassword.tsx
"use client"; import { zodResolver } from "@hookform/resolvers/zod"; import { DialogTrigger } from "@radix-ui/react-dialog"; import axios from "axios"; import { useTranslations } from "next-intl"; import { useState } from "react"; import { useForm } from "react-hook-form"; import { Button } from "@/components/ui/butto...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/Settings/components/ChangeData.tsx
src/globals/(ecommerce)/Layout/ClientPanel/Settings/components/ChangeData.tsx
"use client"; import { Input } from "@headlessui/react"; import axios from "axios"; import { useState } from "react"; import { useForm } from "react-hook-form"; import { Button } from "@/components/ui/button"; import { Form, FormField, FormItem, FormControl, FormMessage } from "@/components/ui/form"; export const Ch...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ClientPanel/OrdersData/Component.tsx
src/globals/(ecommerce)/Layout/ClientPanel/OrdersData/Component.tsx
"use client"; import axios from "axios"; import { useTranslations } from "next-intl"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { type Customer } from "@/payload-types"; import { cn } from "@/utilities/cn"; import { AddNewAddressDialog } from "../../Checkout/variants/On...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Checkout/Component.tsx
src/globals/(ecommerce)/Layout/Checkout/Component.tsx
import { notFound } from "next/navigation"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { OneStepWithSummary } from "./variants/OneStepWithSummary"; export const Checkout = async ({ locale }: { locale: Locale })...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/index.tsx
src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/index.tsx
import { getTranslations } from "next-intl/server"; import { type Locale } from "@/i18n/config"; import { getCustomer } from "@/utilities/getCustomer"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { CheckoutForm } from "./components/CheckoutForm"; export const OneStepWithSummary = async ({ locale...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/DeliveryMethod.tsx
src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/DeliveryMethod.tsx
"use client"; import { useTranslations } from "next-intl"; import { type ReactNode, useState } from "react"; import { useFormContext, useWatch } from "react-hook-form"; import { InPostGeowidget } from "@/components/(ecommerce)/InPostGeowidget"; import { PriceClient } from "@/components/(ecommerce)/PriceClient"; import...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/ChangeAddressDialog.tsx
src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/ChangeAddressDialog.tsx
"use client"; import { useTranslations } from "next-intl"; import { type Dispatch, type SetStateAction } from "react"; import { Button } from "@/components/ui/button"; import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { type Custom...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/OrderSummary.tsx
src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/OrderSummary.tsx
import { TrashIcon } from "@heroicons/react/20/solid"; import { useTranslations } from "next-intl"; import { PriceClient } from "@/components/(ecommerce)/PriceClient"; import { QuantityInput } from "@/components/(ecommerce)/QuantityInput"; import { Media } from "@/components/Media"; import { type ProductWithFilledVari...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/AddNewAddressDialog.tsx
src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/AddNewAddressDialog.tsx
"use client"; import { zodResolver } from "@hookform/resolvers/zod"; import axios from "axios"; import { useTranslations } from "next-intl"; import { type Dispatch, type SetStateAction } from "react"; import { useForm } from "react-hook-form"; import { ShippingAddressForm } from "@/components/(ecommerce)/ShippingAddre...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/CheckoutForm.tsx
src/globals/(ecommerce)/Layout/Checkout/variants/OneStepWithSummary/components/CheckoutForm.tsx
"use client"; import { Button, Radio, RadioGroup } from "@headlessui/react"; import { zodResolver } from "@hookform/resolvers/zod"; import axios from "axios"; import debounce from "lodash.debounce"; import { useLocale, useTranslations } from "next-intl"; import { useCallback, useEffect, useMemo, useState } from "react...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductDetails/Component.tsx
src/globals/(ecommerce)/Layout/ProductDetails/Component.tsx
import { notFound } from "next/navigation"; import { getLocale } from "next-intl/server"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { type Product } from "@/payload-types"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { WithImageGalleryExpandableDe...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductDetails/variants/WithImageGalleryExpandableDetails/index.tsx
src/globals/(ecommerce)/Layout/ProductDetails/variants/WithImageGalleryExpandableDetails/index.tsx
import { Disclosure, DisclosureButton, DisclosurePanel, Tab, TabPanel } from "@headlessui/react"; import { StarIcon } from "@heroicons/react/20/solid"; import { MinusIcon, PlusIcon } from "@heroicons/react/24/outline"; import { useTranslations } from "next-intl"; import { PriceClient } from "@/components/(ecommerce)/P...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductDetails/variants/WithImageGalleryExpandableDetails/components/ProductGallery.tsx
src/globals/(ecommerce)/Layout/ProductDetails/variants/WithImageGalleryExpandableDetails/components/ProductGallery.tsx
"use client"; import { Tab, TabGroup, TabList, TabPanel, TabPanels } from "@headlessui/react"; import { type ReactNode, useState } from "react"; import { Media } from "@/components/Media"; import { type Product } from "@/payload-types"; import { type FilledVariant } from "../../../types"; export const ProductGallery...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductDetails/variants/WithImageGalleryExpandableDetails/components/ProductForm.tsx
src/globals/(ecommerce)/Layout/ProductDetails/variants/WithImageGalleryExpandableDetails/components/ProductForm.tsx
"use client"; import { Radio, RadioGroup } from "@headlessui/react"; import { HeartIcon } from "@heroicons/react/24/outline"; import { HeartIcon as FilledHeartIcon } from "@heroicons/react/24/solid"; import { useSearchParams } from "next/navigation"; import { useTranslations } from "next-intl"; import { useState } fro...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/ProductDetails/types/index.ts
src/globals/(ecommerce)/Layout/ProductDetails/types/index.ts
import { type Media } from "@/payload-types"; export type FilledVariant = { color: | { label: string; slug: string; colorValue?: string | null; id?: string | null; } | undefined; size: | { label: string; slug: string; id?: string | null; ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/WishList/Component.tsx
src/globals/(ecommerce)/Layout/WishList/Component.tsx
import { getLocale } from "next-intl/server"; import { type ReactNode } from "react"; import { type Locale } from "@/i18n/config"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { SlideOver } from "./variants/SlideOver"; export const WishList = async () => { const locale = (await getLocale()) as ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Layout/WishList/variants/SlideOver/index.tsx
src/globals/(ecommerce)/Layout/WishList/variants/SlideOver/index.tsx
"use client"; import { Dialog, DialogBackdrop, DialogPanel, DialogTitle } from "@headlessui/react"; import { XMarkIcon } from "@heroicons/react/24/outline"; import axios from "axios"; import debounce from "lodash.debounce"; import { useLocale, useTranslations } from "next-intl"; import { useCallback, useEffect, useMem...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Couriers/utils/countryList.ts
src/globals/(ecommerce)/Couriers/utils/countryList.ts
export const countryList = [ { value: "ad", label: { en: "Andorra", pl: "Andora", }, }, { value: "al", label: { en: "Albania", pl: "Albania", }, }, { value: "at", label: { en: "Austria", pl: "Austria", }, }, { value: "ba", lab...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Couriers/utils/couriersConfig.ts
src/globals/(ecommerce)/Couriers/utils/couriersConfig.ts
import { type Dimensions } from "@/app/(frontend)/next/package/route"; import { type Locale } from "@/i18n/config"; import { getInpostLabel } from "@/lib/couriers/labels/getInpostLabel"; import { createInpostCODCourierPackage } from "@/lib/couriers/packages/createInpostCODCourierPackage"; import { createInpostCourierPa...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Couriers/InPostCourier/config.ts
src/globals/(ecommerce)/Couriers/InPostCourier/config.ts
import { authenticated } from "@/access/authenticated"; import { courierFields } from "@/fields/courierFields"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; import type { GlobalConfig } from "payload"; export const InPostCourier: GlobalConfig = { slug: "inpost-courier", label: { en: "InPost Co...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Couriers/InPostCourierCOD/config.ts
src/globals/(ecommerce)/Couriers/InPostCourierCOD/config.ts
import { authenticated } from "@/access/authenticated"; import { courierFields } from "@/fields/courierFields"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; import type { GlobalConfig } from "payload"; export const InPostCourierCOD: GlobalConfig = { slug: "inpost-courier-cod", label: { en: "In...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Couriers/InPostPickup/config.ts
src/globals/(ecommerce)/Couriers/InPostPickup/config.ts
import { authenticated } from "@/access/authenticated"; import { courierFields } from "@/fields/courierFields"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; import type { GlobalConfig } from "payload"; export const InPostPickup: GlobalConfig = { slug: "inpost-pickup", label: { en: "InPost Pick...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/ShopSettings/config.ts
src/globals/(ecommerce)/ShopSettings/config.ts
import { currencyField } from "@/fields/currencyField"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; import type { GlobalConfig } from "payload"; export const ShopSettings: GlobalConfig = { slug: "shopSettings", label: { en: "General", pl: "Ogólne", }, access: { read: () => true, ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Paywalls/config.ts
src/globals/(ecommerce)/Paywalls/config.ts
import { authenticated } from "@/access/authenticated"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; import type { GlobalConfig } from "payload"; export const Paywalls: GlobalConfig = { slug: "paywalls", label: { en: "Paywalls", pl: "Bramki płatności", }, access: { read: () => true...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/(ecommerce)/Fulfilment/index.ts
src/globals/(ecommerce)/Fulfilment/index.ts
import { type GlobalConfig } from "payload"; import { countryList } from "../Couriers/utils/countryList"; export const Fulfilment: GlobalConfig = { slug: "fulfilment", admin: { group: { en: "Orders", pl: "Zamówienia", }, }, label: { en: "Fulfilment data", pl: "Dane realizacji", }...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Footer/config.ts
src/globals/Footer/config.ts
import { link } from "@/fields/link"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; import type { GlobalConfig } from "payload"; export const Footer: GlobalConfig = { slug: "footer", access: { read: () => true, }, label: { en: "Footer", pl: "Stopka", }, admin: { group: { ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Footer/Component.tsx
src/globals/Footer/Component.tsx
import Link from "next/link"; import { getLocale } from "next-intl/server"; import { CMSLink } from "@/components/Link"; import { LocaleSwitch } from "@/components/LocaleSwitch/LocaleSwitch"; import { Logo } from "@/components/Logo/Logo"; import RichText from "@/components/RichText"; import { type Locale } from "@/i18...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Footer/RowLabel.tsx
src/globals/Footer/RowLabel.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; import { type Header } from "@/payload-types"; export const RowLabel = () => { const data = useRowLabel<NonNullable<Header["navItems"]>[number]>(); const label = data?.data?.link?.label ? `Nav item ${data.rowNumber !== undefined ? data.rowNumber + 1...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/EmailMessages/config.ts
src/globals/EmailMessages/config.ts
import { type GlobalConfig } from "payload"; import { authenticated } from "@/access/authenticated"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; export const EmailMessages: GlobalConfig = { slug: "emailMessages", label: { en: "Email Messages", pl: "Wiadomości e-mail", }, access: { ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Header/config.ts
src/globals/Header/config.ts
import { backgroundPicker } from "@/fields/backgroundPicker"; import { link } from "@/fields/link"; import { revalidateGlobal } from "@/hooks/revalidateGlobal"; import type { GlobalConfig } from "payload"; export const Header: GlobalConfig = { slug: "header", access: { read: () => true, }, admin: { gr...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Header/Component.tsx
src/globals/Header/Component.tsx
import { getLocale } from "next-intl/server"; import { type Locale } from "@/i18n/config"; import { getCachedGlobal } from "@/utilities/getGlobals"; import { HeaderClient } from "./Component.client"; import type { Header } from "@/payload-types"; export async function Header({ disableCart }: { disableCart?: boolean...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Header/Component.client.tsx
src/globals/Header/Component.client.tsx
import { type ReactNode } from "react"; import { DefaultHeader } from "./variants/DefaultHeader"; import { FloatingHeader } from "./variants/FloatingHeader"; import type { Header } from "@/payload-types"; type HeaderClientProps = { data: Header; disableCart?: boolean; }; export const HeaderClient = ({ data, dis...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Header/RowLabel.tsx
src/globals/Header/RowLabel.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; import { type Header } from "@/payload-types"; export const RowLabel = () => { const data = useRowLabel<NonNullable<Header["navItems"]>[number]>(); const label = data?.data?.link?.label ? `Nav item ${data.rowNumber !== undefined ? data.rowNumber + 1...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Header/variants/FloatingHeader.tsx
src/globals/Header/variants/FloatingHeader.tsx
"use client"; import Link from "next/link"; import { useEffect, useState } from "react"; import { CMSLink } from "@/components/Link"; import { Logo } from "@/components/Logo/Logo"; import { Media } from "@/components/Media"; import { cn } from "@/utilities/cn"; import type { Header } from "@/payload-types"; export c...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Header/variants/DefaultHeader.tsx
src/globals/Header/variants/DefaultHeader.tsx
"use client"; import { HeartIcon, ShoppingBagIcon, UserIcon } from "@heroicons/react/24/outline"; import { useEffect, useState } from "react"; import { CMSLink } from "@/components/Link"; import { Logo } from "@/components/Logo/Logo"; import { Media } from "@/components/Media"; import { Link } from "@/i18n/routing"; i...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/globals/Header/components/Search.tsx
src/globals/Header/components/Search.tsx
"use client"; import axios from "axios"; import debounce from "lodash.debounce"; import { useSearchParams } from "next/navigation"; import { useLocale, useTranslations } from "next-intl"; import { type Where } from "payload"; import { stringify } from "qs-esm"; import { type ReactNode, useEffect, useRef, useState } fro...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/plugins/index.ts
src/plugins/index.ts
import { payloadCloudPlugin } from "@payloadcms/payload-cloud"; import { formBuilderPlugin } from "@payloadcms/plugin-form-builder"; import { nestedDocsPlugin } from "@payloadcms/plugin-nested-docs"; import { redirectsPlugin } from "@payloadcms/plugin-redirects"; import { searchPlugin } from "@payloadcms/plugin-search"...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/index.tsx
src/providers/index.tsx
// import { getLocale } from "next-intl/server"; import { type ReactNode } from "react"; // import { HeaderThemeProvider } from "./HeaderTheme"; // import { ThemeProvider } from "./Theme"; // import { type Locale } from "@/i18n/config"; // import { type ShopSetting } from "@/payload-types"; // import { getCachedGloba...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/Theme/index.tsx
src/providers/Theme/index.tsx
"use client"; import { createContext, type ReactNode, useCallback, useContext, useState } from "react"; import canUseDOM from "@/utilities/canUseDOM"; import { defaultTheme, getImplicitPreference, themeLocalStorageKey } from "./shared"; import { themeIsValid, type Theme, type ThemeContextType } from "./types"; cons...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/Theme/types.ts
src/providers/Theme/types.ts
export type Theme = "dark" | "light"; export type ThemeContextType = { setTheme: (theme: Theme | null) => void; theme?: Theme | null; }; export function themeIsValid(string: null | string): string is Theme { return string ? ["dark", "light"].includes(string) : false; }
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/Theme/shared.ts
src/providers/Theme/shared.ts
import type { Theme } from "./types"; export const themeLocalStorageKey = "payload-theme"; export const defaultTheme = "light"; export const getImplicitPreference = (): Theme | null => { const mediaQuery = "(prefers-color-scheme: dark)"; const mql = window.matchMedia(mediaQuery); const hasImplicitPreference = ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/Theme/ThemeSelector/index.tsx
src/providers/Theme/ThemeSelector/index.tsx
"use client"; import { useState } from "react"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { themeLocalStorageKey, type Theme } from "./types"; import { useTheme } from ".."; export const ThemeSelector = () => { const { setTheme } = useTheme(); ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/Theme/ThemeSelector/types.ts
src/providers/Theme/ThemeSelector/types.ts
export type Theme = "dark" | "light"; export const themeLocalStorageKey = "payload-theme"; export const defaultTheme = "light";
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/Theme/InitTheme/index.tsx
src/providers/Theme/InitTheme/index.tsx
import Script from "next/script"; import { defaultTheme, themeLocalStorageKey } from "../ThemeSelector/types"; export const InitTheme = () => { return ( // eslint-disable-next-line <Script dangerouslySetInnerHTML={{ __html: ` (function () { function getImplicitPreference() { var me...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/providers/HeaderTheme/index.tsx
src/providers/HeaderTheme/index.tsx
"use client"; import { createContext, useCallback, useContext, useState } from "react"; import canUseDOM from "@/utilities/canUseDOM"; import type { Theme } from "@/providers/Theme/types"; export type ContextType = { headerTheme?: Theme | null; setHeaderTheme: (theme: Theme | null) => void; }; const initialCon...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/Media.ts
src/collections/Media.ts
import path from "path"; import { fileURLToPath } from "url"; import { FixedToolbarFeature, InlineToolbarFeature, lexicalEditor } from "@payloadcms/richtext-lexical"; import { anyone } from "@/access/anyone"; import { authenticated } from "@/access/authenticated"; import type { CollectionConfig } from "payload"; co...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/Categories.ts
src/collections/Categories.ts
import { anyone } from "@/access/anyone"; import { authenticated } from "@/access/authenticated"; import type { CollectionConfig } from "payload"; export const Categories: CollectionConfig = { slug: "categories", labels: { plural: { en: "Posts Categories", pl: "Kategorie postów", }, singul...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Products/index.ts
src/collections/(ecommerce)/Products/index.ts
import { type CollectionConfig } from "payload"; import { anyone } from "@/access/anyone"; import { authenticated } from "@/access/authenticated"; // import { authenticatedOrPublished } from "@/access/authenticatedOrPublished"; import { currencyField } from "@/fields/currencyField"; import { defaultLexical } from "@/f...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Products/components/ColorSelect/index.tsx
src/collections/(ecommerce)/Products/components/ColorSelect/index.tsx
"use client"; import { FieldLabel, Select, useField, useForm } from "@payloadcms/ui"; import { type TextFieldClientComponent } from "payload"; import { useCallback, useEffect } from "react"; import { type Product } from "@/payload-types"; export const ColorSelect: TextFieldClientComponent = ({ path }) => { const {...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Products/components/RowLabels/OptionLabel/index.tsx
src/collections/(ecommerce)/Products/components/RowLabels/OptionLabel/index.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; export const OptionLabel = () => { const { data } = useRowLabel<{ slug: string; }>(); return <p>{data.slug}</p>; };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Products/components/RowLabels/VariantLabel/index.tsx
src/collections/(ecommerce)/Products/components/RowLabels/VariantLabel/index.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; export const VariantLabel = () => { const { data } = useRowLabel<{ variantSlug: string; }>(); return <p>{data.variantSlug}</p>; };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Products/components/RowLabels/DetailLabel/index.tsx
src/collections/(ecommerce)/Products/components/RowLabels/DetailLabel/index.tsx
"use client"; import { useRowLabel } from "@payloadcms/ui"; export const DetailLabel = () => { const { data } = useRowLabel<{ title: string; }>(); return <p>{data?.title}</p>; };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Products/components/SizeSelect/index.tsx
src/collections/(ecommerce)/Products/components/SizeSelect/index.tsx
"use client"; import { FieldLabel, Select, useField, useForm } from "@payloadcms/ui"; import { type TextFieldClientComponent } from "payload"; import { useCallback, useEffect } from "react"; import { type Product } from "@/payload-types"; export const SizeSelect: TextFieldClientComponent = ({ path }) => { const { ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/ProductSubCategories/index.ts
src/collections/(ecommerce)/ProductSubCategories/index.ts
import { type CollectionConfig } from "payload"; import { slugField } from "@/fields/slug"; export const ProductSubCategories: CollectionConfig = { slug: "productSubCategories", admin: { useAsTitle: "title", group: { en: "Products", pl: "Produkty", }, }, labels: { singular: { ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/index.ts
src/collections/(ecommerce)/Orders/index.ts
import { type CollectionConfig } from "payload"; import { getChartData } from "@/endpoints/adminDashboard/getChartData"; import { getOrderCount } from "@/endpoints/adminDashboard/getOrderCount"; import { getRevenue } from "@/endpoints/adminDashboard/getRevenue"; import { currencyField } from "@/fields/currencyField"; ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/hooks/restoreStocks.ts
src/collections/(ecommerce)/Orders/hooks/restoreStocks.ts
import { type Order } from "@/payload-types"; import type { FieldHook } from "payload"; export const restoreStocks: FieldHook<Order, Order["orderDetails"]["status"] | undefined> = async ({ operation, value, originalDoc, req, }) => { if (operation !== "update" || !originalDoc || !value || value !== "cancelle...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/hooks/generateID.ts
src/collections/(ecommerce)/Orders/hooks/generateID.ts
import { getPayload, type CollectionBeforeValidateHook } from "payload"; import { type Order } from "@/payload-types"; import config from "@payload-config"; export const generateID: CollectionBeforeValidateHook<Order> = async ({ data }) => { if (data && !data.id) { const payload = await getPayload({ config }); ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/hooks/sendStatusEmail.ts
src/collections/(ecommerce)/Orders/hooks/sendStatusEmail.ts
import { render } from "@react-email/components"; import { getLocale, getTranslations } from "next-intl/server"; import { OrderStatusEmail } from "@/components/Emails/OrderStatusEmail"; import { type Locale } from "@/i18n/config"; import { type Order } from "@/payload-types"; import { sendEmail } from "@/utilities/nod...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/ProductNameField/index.tsx
src/collections/(ecommerce)/Orders/components/ProductNameField/index.tsx
"use client"; import { useField, useFormFields, useLocale } from "@payloadcms/ui"; import axios from "axios"; import { type TextFieldClientComponent } from "payload"; import { stringify } from "qs-esm"; import { useCallback, useEffect } from "react"; import { type Product } from "@/payload-types"; export const Produc...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/VariantSelect/index.tsx
src/collections/(ecommerce)/Orders/components/VariantSelect/index.tsx
import { FieldLabel } from "@payloadcms/ui"; import { type TextFieldServerComponent } from "payload"; import { VariantSelectClient } from "./VariantSelect.client"; export type VariantsArr = { label: string | null | undefined; value: string | null | undefined; }[]; export const VariantSelect: TextFieldServerCompo...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/VariantSelect/VariantSelect.client.tsx
src/collections/(ecommerce)/Orders/components/VariantSelect/VariantSelect.client.tsx
"use client"; import { Select, useField, useFormFields, useLocale } from "@payloadcms/ui"; import axios from "axios"; import { stringify } from "qs-esm"; import { useEffect, useState } from "react"; import { type VariantsArr } from "."; import { type Product } from "@/payload-types"; export const VariantSelectClient...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/ProductUnitPriceField/index.tsx
src/collections/(ecommerce)/Orders/components/ProductUnitPriceField/index.tsx
import { type NumberFieldServerComponent } from "payload"; import { type Order, type Product } from "@/payload-types"; import { type Currency } from "@/stores/Currency/types"; import { ProductUnitPriceFieldClient } from "./ProductUnitPriceField.client"; export const ProductUnitPriceField: NumberFieldServerComponent ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/ProductUnitPriceField/ProductUnitPriceField.client.tsx
src/collections/(ecommerce)/Orders/components/ProductUnitPriceField/ProductUnitPriceField.client.tsx
"use client"; import { NumberField, useField, useForm, useFormFields } from "@payloadcms/ui"; import { type SanitizedFieldPermissions, type NumberFieldClient } from "payload"; import { useEffect } from "react"; export const ProductUnitPriceFieldClient = ({ path, // isFromAPI, unitPrice, field, schemaPath, ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/couriers/CourierShipmentMenu.client.tsx
src/collections/(ecommerce)/Orders/components/couriers/CourierShipmentMenu.client.tsx
"use client"; import { FieldLabel, useField, useForm, useTranslation } from "@payloadcms/ui"; import axios, { isAxiosError } from "axios"; import { useState } from "react"; import { type CustomTranslationsKeys, type CustomTranslationsObject, } from "@/admin/translations/custom-translations"; import { type Dimensi...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/couriers/CourierShipmentMenu.tsx
src/collections/(ecommerce)/Orders/components/couriers/CourierShipmentMenu.tsx
import { type Order } from "@/payload-types"; import { CourierShipmentMenuClient } from "./CourierShipmentMenu.client"; export const CourierShipmentMenu = ({ data }: { data: Order }) => { return <CourierShipmentMenuClient orderID={data.id} />; };
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/OrderTotalPriceField/index.tsx
src/collections/(ecommerce)/Orders/components/OrderTotalPriceField/index.tsx
"use client"; import { NumberField, useField, useFormFields } from "@payloadcms/ui"; import { type NumberFieldClientComponent } from "payload"; import { useEffect } from "react"; export const OrderTotalPriceField: NumberFieldClientComponent = (props) => { const { path } = props; const { setValue } = useField<numb...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/ProductTotalPriceField/index.tsx
src/collections/(ecommerce)/Orders/components/ProductTotalPriceField/index.tsx
"use client"; import { NumberField, useField, useFormFields } from "@payloadcms/ui"; import { type NumberFieldClientComponent } from "payload"; import { useCallback, useEffect } from "react"; export const ProductTotalPriceField: NumberFieldClientComponent = (props) => { const { path } = props; const { setValue } ...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false
Mandala-Software-House/payload-ecommerce-template
https://github.com/Mandala-Software-House/payload-ecommerce-template/blob/2e26afe62722a058eb7004397be20e7f067676c0/src/collections/(ecommerce)/Orders/components/inpost-pickup/PickupShipmentMenu.client.tsx
src/collections/(ecommerce)/Orders/components/inpost-pickup/PickupShipmentMenu.client.tsx
"use client"; import { Select, useField, useForm, useTranslation } from "@payloadcms/ui"; import axios, { isAxiosError } from "axios"; import { useState } from "react"; import { type CustomTranslationsKeys, type CustomTranslationsObject, } from "@/admin/translations/custom-translations"; import { Button } from "@...
typescript
MIT
2e26afe62722a058eb7004397be20e7f067676c0
2026-01-05T05:00:59.033803Z
false