├── .claude ├── agents │ └── code-reviewer.md ├── commands │ ├── create-PR.md │ └── push-changes.md ├── settings.json └── tasks │ └── .gitkeep ├── .devcontainer ├── Dockerfile └── devcontainer.json ├── .env ├── .github ├── instructions │ ├── code-generation.instructions.md │ ├── copilot-instructions.md │ └── vitest-tests.instructions.md └── workflows │ ├── ci.yml │ └── run-tests.yml ├── .gitignore ├── .husky └── pre-commit ├── .prettierignore ├── .prettierrc ├── .storybook ├── main.ts ├── preview-head.html ├── preview.ts └── vitest.setup.ts ├── .vscode ├── custom.code-snippets ├── extensions.json └── settings.json ├── CLAUDE.md ├── LICENSE ├── README.md ├── eslint.config.mjs ├── index.html ├── package.json ├── pnpm-lock.yaml ├── public ├── locales │ └── en-GB │ │ └── translation.json ├── mockServiceWorker.js └── vite.svg ├── src ├── app │ ├── App.tsx │ └── Providers.tsx ├── example.test.ts ├── features │ ├── auth │ │ ├── application │ │ │ ├── AuthProvider.tsx │ │ │ ├── RequireAuth.tsx │ │ │ ├── RequirePub.tsx │ │ │ ├── authStore.ts │ │ │ ├── withRequireAuth.tsx │ │ │ └── withRequirePub.tsx │ │ ├── infrastructure │ │ │ ├── getUser.ts │ │ │ └── loginUser.ts │ │ ├── presentation │ │ │ ├── SignInForm.stories.tsx │ │ │ ├── SignInForm.tsx │ │ │ └── useSignInNotifications.ts │ │ └── types │ │ │ └── IUser.ts │ ├── authv2 │ │ ├── application │ │ │ ├── AuthProvider.tsx │ │ │ ├── auth-context.tsx │ │ │ ├── auth-machine.test.ts │ │ │ ├── auth-machine.ts │ │ │ ├── storage-machine.ts │ │ │ └── use-authorized-context-selector.ts │ │ ├── infrastructure │ │ │ └── getRoles.ts │ │ └── types │ │ │ └── UserRoles.ts │ ├── carts │ │ ├── infrastructure │ │ │ ├── useAddToCart.ts │ │ │ ├── useCartProductsQuery.ts │ │ │ ├── useClearCart.ts │ │ │ └── usePurchase.ts │ │ ├── presentation │ │ │ ├── AddToCartButton │ │ │ │ ├── AddToCartButton.stories.tsx │ │ │ │ ├── AddToCartButton.tsx │ │ │ │ ├── ProductAddedDialog.tsx │ │ │ │ ├── useAddToCartNotifications.ts │ │ │ │ └── useProductAddedDialogStore.ts │ │ │ ├── CartItem.stories.tsx │ │ │ ├── CartItem.tsx │ │ │ ├── CartsList.stories.tsx │ │ │ ├── CartsList.tsx │ │ │ ├── CheckoutButton │ │ │ │ ├── CheckoutButton.stories.tsx │ │ │ │ ├── CheckoutButton.tsx │ │ │ │ ├── CheckoutDialog.tsx │ │ │ │ └── usePurchaseDialogStore.ts │ │ │ ├── CheckoutForm.stories.tsx │ │ │ ├── CheckoutForm.tsx │ │ │ ├── ClearCartButton │ │ │ │ ├── ClearCartButton.stories.tsx │ │ │ │ ├── ClearCartButton.tsx │ │ │ │ ├── ConfirmClearCartDialog.tsx │ │ │ │ ├── useClearCartNotifications.ts │ │ │ │ └── useConfirmClearCartDialogStore.ts │ │ │ └── useCheckoutNotifications.ts │ │ └── types │ │ │ ├── ICart.ts │ │ │ └── ICartProduct.ts │ ├── demo │ │ ├── application │ │ │ ├── useCounter.test.ts │ │ │ └── useCounter.ts │ │ └── presentation │ │ │ ├── Demo.stories.tsx │ │ │ └── Demo.tsx │ ├── marketing │ │ └── presentation │ │ │ ├── FeatureSection.tsx │ │ │ ├── HeroSection.tsx │ │ │ └── PricingSection.tsx │ └── products │ │ ├── infrastructure │ │ ├── productQuery.ts │ │ └── productsQuery.ts │ │ ├── presentation │ │ ├── ProductCard.stories.tsx │ │ ├── ProductCard.tsx │ │ ├── ProductDetails.stories.tsx │ │ ├── ProductDetails.tsx │ │ ├── ProductNotFoundResult.stories.tsx │ │ ├── ProductNotFoundResult.tsx │ │ ├── ProductsList.stories.tsx │ │ ├── ProductsList.tsx │ │ ├── StarRating.stories.tsx │ │ ├── StarRating.tsx │ │ └── useCategoryLabel.ts │ │ └── types │ │ ├── Category.ts │ │ ├── IProduct.ts │ │ └── IRating.ts ├── lib │ ├── api │ │ ├── auth │ │ │ ├── login │ │ │ │ ├── login-command.ts │ │ │ │ └── login-dto.ts │ │ │ └── users │ │ │ │ └── {user-id} │ │ │ │ ├── user-dto.ts │ │ │ │ └── user-query.ts │ │ ├── carts │ │ │ ├── cart-query-keys.ts │ │ │ └── {cart-id} │ │ │ │ ├── add-to-cart-command.ts │ │ │ │ ├── cart-dto.ts │ │ │ │ ├── cart-product-dto.ts │ │ │ │ ├── cart-products-query.ts │ │ │ │ ├── cart-query.ts │ │ │ │ ├── clear-cart-command.ts │ │ │ │ └── purchase-command.ts │ │ └── products │ │ │ ├── products-list │ │ │ ├── products-list-dto.ts │ │ │ └── products-list-query.ts │ │ │ ├── products-query-keys.ts │ │ │ └── {product-id} │ │ │ ├── product-dto.ts │ │ │ └── product-query.ts │ ├── assert-value.test.tsx │ ├── assert-value.ts │ ├── buildUrl.ts │ ├── components │ │ ├── ErrorBoundary │ │ │ ├── ErrorBoundary.stories.tsx │ │ │ ├── ErrorBoundary.tsx │ │ │ └── with-error-boundary.tsx │ │ ├── Form │ │ │ ├── Select.stories.tsx │ │ │ ├── Select.tsx │ │ │ ├── TextInput.stories.tsx │ │ │ └── TextInput.tsx │ │ ├── Layout │ │ │ ├── Footer │ │ │ │ ├── Footer.stories.tsx │ │ │ │ ├── Logo.tsx │ │ │ │ └── index.tsx │ │ │ ├── Layout.tsx │ │ │ ├── Navbar │ │ │ │ ├── DesktopNav.tsx │ │ │ │ ├── INavItem.ts │ │ │ │ ├── LoaderBar.tsx │ │ │ │ ├── MobileNav.tsx │ │ │ │ ├── Navbar.stories.tsx │ │ │ │ ├── index.tsx │ │ │ │ └── useNavItems.ts │ │ │ ├── Page.stories.tsx │ │ │ ├── Page.tsx │ │ │ ├── PageHeader.stories.tsx │ │ │ ├── PageHeader.tsx │ │ │ └── ToggleModeButton.tsx │ │ ├── Modal │ │ │ └── createModalStore.ts │ │ ├── Result │ │ │ ├── Buttons │ │ │ │ ├── ContactUsButton.tsx │ │ │ │ └── ResetFiltersButton.tsx │ │ │ ├── EmptyStateResult.stories.tsx │ │ │ ├── EmptyStateResult.tsx │ │ │ ├── ErrorPageStrategy.tsx │ │ │ ├── Icons │ │ │ │ ├── ErrorIcon.tsx │ │ │ │ ├── InfoIcon.tsx │ │ │ │ ├── SuccessIcon.tsx │ │ │ │ └── WarningIcon.tsx │ │ │ ├── InternalErrorResult.stories.tsx │ │ │ ├── InternalErrorResult.tsx │ │ │ ├── InternalServerErrorResult.stories.tsx │ │ │ ├── InternalServerErrorResult.tsx │ │ │ ├── NotFoundResult.stories.tsx │ │ │ ├── NotFoundResult.tsx │ │ │ └── Result.tsx │ │ ├── Suspense │ │ │ └── with-suspense.tsx │ │ └── Toast │ │ │ ├── useNotImplementedYetToast.ts │ │ │ └── useToast.ts │ ├── compose.ts │ ├── date │ │ ├── Date.test.ts │ │ ├── Date.ts │ │ ├── testOutput.ts │ │ ├── useFormatDate.test.ts │ │ ├── useFormatDate.ts │ │ ├── useFormatDateTime.test.ts │ │ ├── useFormatDateTime.ts │ │ ├── useRelativeTime.test.ts │ │ └── useRelativeTime.ts │ ├── debounce.test.ts │ ├── debounce.ts │ ├── format │ │ ├── Money.ts │ │ └── Number.ts │ ├── get.test.ts │ ├── get.ts │ ├── http │ │ ├── AjaxError.ts │ │ ├── HttpService.ts │ │ ├── IHttpService.ts │ │ ├── IHttpServiceClient.ts │ │ ├── IHttpServiceOptions.ts │ │ ├── KyClient.ts │ │ ├── Options.ts │ │ ├── exceptions │ │ │ ├── InternalServerException.ts │ │ │ └── ResourceNotFoundException.ts │ │ └── index.ts │ ├── i18n │ │ ├── i18n.ts │ │ └── useTransations.ts │ ├── is-guid.test.ts │ ├── is-guid.ts │ ├── isEmpty.ts │ ├── logger │ │ ├── ConsoleLogger.ts │ │ ├── ILogger.ts │ │ ├── MockLogger.ts │ │ ├── StorybookLogger.ts │ │ └── index.ts │ ├── machine │ │ ├── provided-action.ts │ │ ├── replace.ts │ │ ├── union-context-selector.ts │ │ └── use-actor-ref.ts │ ├── permissions │ │ ├── use-has-all-permissions.ts │ │ ├── use-has-permission.ts │ │ └── when-permitted-to.tsx │ ├── query.ts │ ├── router │ │ ├── handleLazyImportError.ts │ │ ├── index.ts │ │ ├── routePath.ts │ │ ├── routes.ts │ │ ├── useNavigate.test.ts │ │ └── useRouteError.ts │ ├── sleep.ts │ ├── theme │ │ ├── theme.ts │ │ ├── useBrandColor.ts │ │ └── useSecondaryTextColor.ts │ ├── to-kebab-case.test.ts │ ├── to-kebab-case.ts │ └── types │ │ └── one-of-union.ts ├── main.tsx ├── pages │ ├── Cart │ │ ├── Cart.stories.tsx │ │ ├── index.tsx │ │ └── loader.ts │ ├── Home │ │ ├── Home.stories.tsx │ │ ├── index.tsx │ │ └── loader.ts │ ├── Product │ │ ├── Product.stories.tsx │ │ ├── index.tsx │ │ └── loader.ts │ ├── Products │ │ ├── Products.stories.tsx │ │ ├── index.tsx │ │ └── loader.ts │ ├── SignIn │ │ ├── SignIn.stories.tsx │ │ └── index.tsx │ └── router.tsx ├── test-lib │ ├── date │ │ └── generateDate.ts │ ├── fixtures │ │ ├── CartFixture.ts │ │ ├── MetaFixture.ts │ │ ├── ProductFixture.ts │ │ ├── UserFixture.ts │ │ ├── createFixture.test.ts │ │ └── createFixture.ts │ ├── generateUuid.ts │ ├── handlers │ │ ├── getAddToCartHandler.ts │ │ ├── getCartHandler.ts │ │ ├── getClearCartHandler.ts │ │ ├── getProductHandler.ts │ │ ├── getProductsHandler.ts │ │ ├── getUserHandler.ts │ │ ├── resolvers.ts │ │ └── signInHandler.ts │ ├── initI18n.ts │ └── storybook │ │ ├── sleep.ts │ │ ├── with-suspense-decorator.tsx │ │ ├── withAuth.tsx │ │ ├── withI18Next.tsx │ │ ├── withReactQuery.tsx │ │ └── withoutAuth.tsx ├── types │ ├── AllOrNothing.test.ts │ ├── AllOrNothing.ts │ ├── Autocomplete.ts │ ├── Branded.ts │ ├── DeepPartial.ts │ ├── IMeta.ts │ ├── IQueryParams.ts │ ├── NonEmptyArray.ts │ ├── NonNullableProps.ts │ ├── OneOfUnion.test.ts │ └── OneOfUnion.ts ├── typings │ └── react-router-config.d.ts └── vite-env.d.ts ├── test-globals.ts ├── test-setup.ts ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts ├── vitest.config.ts └── vitest.shims.d.ts /.claude/agents/code-reviewer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.claude/agents/code-reviewer.md -------------------------------------------------------------------------------- /.claude/commands/create-PR.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.claude/commands/create-PR.md -------------------------------------------------------------------------------- /.claude/commands/push-changes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.claude/commands/push-changes.md -------------------------------------------------------------------------------- /.claude/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.claude/settings.json -------------------------------------------------------------------------------- /.claude/tasks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.devcontainer/Dockerfile -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.env -------------------------------------------------------------------------------- /.github/instructions/code-generation.instructions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.github/instructions/code-generation.instructions.md -------------------------------------------------------------------------------- /.github/instructions/copilot-instructions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.github/instructions/copilot-instructions.md -------------------------------------------------------------------------------- /.github/instructions/vitest-tests.instructions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.github/instructions/vitest-tests.instructions.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/run-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.github/workflows/run-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | **/node_modules 2 | **/public/mockServiceWorker.js 3 | dist/ -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.prettierrc -------------------------------------------------------------------------------- /.storybook/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.storybook/main.ts -------------------------------------------------------------------------------- /.storybook/preview-head.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.storybook/preview-head.html -------------------------------------------------------------------------------- /.storybook/preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.storybook/preview.ts -------------------------------------------------------------------------------- /.storybook/vitest.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.storybook/vitest.setup.ts -------------------------------------------------------------------------------- /.vscode/custom.code-snippets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.vscode/custom.code-snippets -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /public/locales/en-GB/translation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/public/locales/en-GB/translation.json -------------------------------------------------------------------------------- /public/mockServiceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/public/mockServiceWorker.js -------------------------------------------------------------------------------- /public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/public/vite.svg -------------------------------------------------------------------------------- /src/app/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/app/App.tsx -------------------------------------------------------------------------------- /src/app/Providers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/app/Providers.tsx -------------------------------------------------------------------------------- /src/example.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/example.test.ts -------------------------------------------------------------------------------- /src/features/auth/application/AuthProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/application/AuthProvider.tsx -------------------------------------------------------------------------------- /src/features/auth/application/RequireAuth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/application/RequireAuth.tsx -------------------------------------------------------------------------------- /src/features/auth/application/RequirePub.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/application/RequirePub.tsx -------------------------------------------------------------------------------- /src/features/auth/application/authStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/application/authStore.ts -------------------------------------------------------------------------------- /src/features/auth/application/withRequireAuth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/application/withRequireAuth.tsx -------------------------------------------------------------------------------- /src/features/auth/application/withRequirePub.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/application/withRequirePub.tsx -------------------------------------------------------------------------------- /src/features/auth/infrastructure/getUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/infrastructure/getUser.ts -------------------------------------------------------------------------------- /src/features/auth/infrastructure/loginUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/infrastructure/loginUser.ts -------------------------------------------------------------------------------- /src/features/auth/presentation/SignInForm.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/presentation/SignInForm.stories.tsx -------------------------------------------------------------------------------- /src/features/auth/presentation/SignInForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/presentation/SignInForm.tsx -------------------------------------------------------------------------------- /src/features/auth/presentation/useSignInNotifications.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/presentation/useSignInNotifications.ts -------------------------------------------------------------------------------- /src/features/auth/types/IUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/auth/types/IUser.ts -------------------------------------------------------------------------------- /src/features/authv2/application/AuthProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/application/AuthProvider.tsx -------------------------------------------------------------------------------- /src/features/authv2/application/auth-context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/application/auth-context.tsx -------------------------------------------------------------------------------- /src/features/authv2/application/auth-machine.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/application/auth-machine.test.ts -------------------------------------------------------------------------------- /src/features/authv2/application/auth-machine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/application/auth-machine.ts -------------------------------------------------------------------------------- /src/features/authv2/application/storage-machine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/application/storage-machine.ts -------------------------------------------------------------------------------- /src/features/authv2/application/use-authorized-context-selector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/application/use-authorized-context-selector.ts -------------------------------------------------------------------------------- /src/features/authv2/infrastructure/getRoles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/infrastructure/getRoles.ts -------------------------------------------------------------------------------- /src/features/authv2/types/UserRoles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/authv2/types/UserRoles.ts -------------------------------------------------------------------------------- /src/features/carts/infrastructure/useAddToCart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/infrastructure/useAddToCart.ts -------------------------------------------------------------------------------- /src/features/carts/infrastructure/useCartProductsQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/infrastructure/useCartProductsQuery.ts -------------------------------------------------------------------------------- /src/features/carts/infrastructure/useClearCart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/infrastructure/useClearCart.ts -------------------------------------------------------------------------------- /src/features/carts/infrastructure/usePurchase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/infrastructure/usePurchase.ts -------------------------------------------------------------------------------- /src/features/carts/presentation/AddToCartButton/AddToCartButton.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/AddToCartButton/AddToCartButton.stories.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/AddToCartButton/AddToCartButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/AddToCartButton/AddToCartButton.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/AddToCartButton/ProductAddedDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/AddToCartButton/ProductAddedDialog.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/AddToCartButton/useAddToCartNotifications.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/AddToCartButton/useAddToCartNotifications.ts -------------------------------------------------------------------------------- /src/features/carts/presentation/AddToCartButton/useProductAddedDialogStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/AddToCartButton/useProductAddedDialogStore.ts -------------------------------------------------------------------------------- /src/features/carts/presentation/CartItem.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CartItem.stories.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CartItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CartItem.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CartsList.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CartsList.stories.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CartsList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CartsList.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CheckoutButton/CheckoutButton.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CheckoutButton/CheckoutButton.stories.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CheckoutButton/CheckoutButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CheckoutButton/CheckoutButton.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CheckoutButton/CheckoutDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CheckoutButton/CheckoutDialog.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CheckoutButton/usePurchaseDialogStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CheckoutButton/usePurchaseDialogStore.ts -------------------------------------------------------------------------------- /src/features/carts/presentation/CheckoutForm.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CheckoutForm.stories.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/CheckoutForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/CheckoutForm.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/ClearCartButton/ClearCartButton.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/ClearCartButton/ClearCartButton.stories.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/ClearCartButton/ClearCartButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/ClearCartButton/ClearCartButton.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/ClearCartButton/ConfirmClearCartDialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/ClearCartButton/ConfirmClearCartDialog.tsx -------------------------------------------------------------------------------- /src/features/carts/presentation/ClearCartButton/useClearCartNotifications.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/ClearCartButton/useClearCartNotifications.ts -------------------------------------------------------------------------------- /src/features/carts/presentation/ClearCartButton/useConfirmClearCartDialogStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/ClearCartButton/useConfirmClearCartDialogStore.ts -------------------------------------------------------------------------------- /src/features/carts/presentation/useCheckoutNotifications.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/presentation/useCheckoutNotifications.ts -------------------------------------------------------------------------------- /src/features/carts/types/ICart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/types/ICart.ts -------------------------------------------------------------------------------- /src/features/carts/types/ICartProduct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/carts/types/ICartProduct.ts -------------------------------------------------------------------------------- /src/features/demo/application/useCounter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/demo/application/useCounter.test.ts -------------------------------------------------------------------------------- /src/features/demo/application/useCounter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/demo/application/useCounter.ts -------------------------------------------------------------------------------- /src/features/demo/presentation/Demo.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/demo/presentation/Demo.stories.tsx -------------------------------------------------------------------------------- /src/features/demo/presentation/Demo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/demo/presentation/Demo.tsx -------------------------------------------------------------------------------- /src/features/marketing/presentation/FeatureSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/marketing/presentation/FeatureSection.tsx -------------------------------------------------------------------------------- /src/features/marketing/presentation/HeroSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/marketing/presentation/HeroSection.tsx -------------------------------------------------------------------------------- /src/features/marketing/presentation/PricingSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/marketing/presentation/PricingSection.tsx -------------------------------------------------------------------------------- /src/features/products/infrastructure/productQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/infrastructure/productQuery.ts -------------------------------------------------------------------------------- /src/features/products/infrastructure/productsQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/infrastructure/productsQuery.ts -------------------------------------------------------------------------------- /src/features/products/presentation/ProductCard.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductCard.stories.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/ProductCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductCard.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/ProductDetails.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductDetails.stories.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/ProductDetails.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductDetails.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/ProductNotFoundResult.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductNotFoundResult.stories.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/ProductNotFoundResult.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductNotFoundResult.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/ProductsList.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductsList.stories.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/ProductsList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/ProductsList.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/StarRating.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/StarRating.stories.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/StarRating.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/StarRating.tsx -------------------------------------------------------------------------------- /src/features/products/presentation/useCategoryLabel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/presentation/useCategoryLabel.ts -------------------------------------------------------------------------------- /src/features/products/types/Category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/types/Category.ts -------------------------------------------------------------------------------- /src/features/products/types/IProduct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/types/IProduct.ts -------------------------------------------------------------------------------- /src/features/products/types/IRating.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/features/products/types/IRating.ts -------------------------------------------------------------------------------- /src/lib/api/auth/login/login-command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/auth/login/login-command.ts -------------------------------------------------------------------------------- /src/lib/api/auth/login/login-dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/auth/login/login-dto.ts -------------------------------------------------------------------------------- /src/lib/api/auth/users/{user-id}/user-dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/auth/users/{user-id}/user-dto.ts -------------------------------------------------------------------------------- /src/lib/api/auth/users/{user-id}/user-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/auth/users/{user-id}/user-query.ts -------------------------------------------------------------------------------- /src/lib/api/carts/cart-query-keys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/cart-query-keys.ts -------------------------------------------------------------------------------- /src/lib/api/carts/{cart-id}/add-to-cart-command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/{cart-id}/add-to-cart-command.ts -------------------------------------------------------------------------------- /src/lib/api/carts/{cart-id}/cart-dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/{cart-id}/cart-dto.ts -------------------------------------------------------------------------------- /src/lib/api/carts/{cart-id}/cart-product-dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/{cart-id}/cart-product-dto.ts -------------------------------------------------------------------------------- /src/lib/api/carts/{cart-id}/cart-products-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/{cart-id}/cart-products-query.ts -------------------------------------------------------------------------------- /src/lib/api/carts/{cart-id}/cart-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/{cart-id}/cart-query.ts -------------------------------------------------------------------------------- /src/lib/api/carts/{cart-id}/clear-cart-command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/{cart-id}/clear-cart-command.ts -------------------------------------------------------------------------------- /src/lib/api/carts/{cart-id}/purchase-command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/carts/{cart-id}/purchase-command.ts -------------------------------------------------------------------------------- /src/lib/api/products/products-list/products-list-dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/products/products-list/products-list-dto.ts -------------------------------------------------------------------------------- /src/lib/api/products/products-list/products-list-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/products/products-list/products-list-query.ts -------------------------------------------------------------------------------- /src/lib/api/products/products-query-keys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/products/products-query-keys.ts -------------------------------------------------------------------------------- /src/lib/api/products/{product-id}/product-dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/products/{product-id}/product-dto.ts -------------------------------------------------------------------------------- /src/lib/api/products/{product-id}/product-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/api/products/{product-id}/product-query.ts -------------------------------------------------------------------------------- /src/lib/assert-value.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/assert-value.test.tsx -------------------------------------------------------------------------------- /src/lib/assert-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/assert-value.ts -------------------------------------------------------------------------------- /src/lib/buildUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/buildUrl.ts -------------------------------------------------------------------------------- /src/lib/components/ErrorBoundary/ErrorBoundary.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/ErrorBoundary/ErrorBoundary.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/ErrorBoundary/ErrorBoundary.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/ErrorBoundary/ErrorBoundary.tsx -------------------------------------------------------------------------------- /src/lib/components/ErrorBoundary/with-error-boundary.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/ErrorBoundary/with-error-boundary.tsx -------------------------------------------------------------------------------- /src/lib/components/Form/Select.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Form/Select.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Form/Select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Form/Select.tsx -------------------------------------------------------------------------------- /src/lib/components/Form/TextInput.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Form/TextInput.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Form/TextInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Form/TextInput.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Footer/Footer.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Footer/Footer.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Footer/Logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Footer/Logo.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Footer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Footer/index.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Layout.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Navbar/DesktopNav.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Navbar/DesktopNav.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Navbar/INavItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Navbar/INavItem.ts -------------------------------------------------------------------------------- /src/lib/components/Layout/Navbar/LoaderBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Navbar/LoaderBar.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Navbar/MobileNav.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Navbar/MobileNav.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Navbar/Navbar.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Navbar/Navbar.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Navbar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Navbar/index.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Navbar/useNavItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Navbar/useNavItems.ts -------------------------------------------------------------------------------- /src/lib/components/Layout/Page.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Page.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/Page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/Page.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/PageHeader.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/PageHeader.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/PageHeader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/PageHeader.tsx -------------------------------------------------------------------------------- /src/lib/components/Layout/ToggleModeButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Layout/ToggleModeButton.tsx -------------------------------------------------------------------------------- /src/lib/components/Modal/createModalStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Modal/createModalStore.ts -------------------------------------------------------------------------------- /src/lib/components/Result/Buttons/ContactUsButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/Buttons/ContactUsButton.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/Buttons/ResetFiltersButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/Buttons/ResetFiltersButton.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/EmptyStateResult.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/EmptyStateResult.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/EmptyStateResult.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/EmptyStateResult.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/ErrorPageStrategy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/ErrorPageStrategy.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/Icons/ErrorIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/Icons/ErrorIcon.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/Icons/InfoIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/Icons/InfoIcon.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/Icons/SuccessIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/Icons/SuccessIcon.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/Icons/WarningIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/Icons/WarningIcon.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/InternalErrorResult.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/InternalErrorResult.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/InternalErrorResult.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/InternalErrorResult.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/InternalServerErrorResult.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/InternalServerErrorResult.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/InternalServerErrorResult.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/InternalServerErrorResult.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/NotFoundResult.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/NotFoundResult.stories.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/NotFoundResult.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/NotFoundResult.tsx -------------------------------------------------------------------------------- /src/lib/components/Result/Result.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Result/Result.tsx -------------------------------------------------------------------------------- /src/lib/components/Suspense/with-suspense.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Suspense/with-suspense.tsx -------------------------------------------------------------------------------- /src/lib/components/Toast/useNotImplementedYetToast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Toast/useNotImplementedYetToast.ts -------------------------------------------------------------------------------- /src/lib/components/Toast/useToast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/components/Toast/useToast.ts -------------------------------------------------------------------------------- /src/lib/compose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/compose.ts -------------------------------------------------------------------------------- /src/lib/date/Date.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/Date.test.ts -------------------------------------------------------------------------------- /src/lib/date/Date.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/Date.ts -------------------------------------------------------------------------------- /src/lib/date/testOutput.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/lib/date/useFormatDate.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/useFormatDate.test.ts -------------------------------------------------------------------------------- /src/lib/date/useFormatDate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/useFormatDate.ts -------------------------------------------------------------------------------- /src/lib/date/useFormatDateTime.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/useFormatDateTime.test.ts -------------------------------------------------------------------------------- /src/lib/date/useFormatDateTime.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/useFormatDateTime.ts -------------------------------------------------------------------------------- /src/lib/date/useRelativeTime.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/useRelativeTime.test.ts -------------------------------------------------------------------------------- /src/lib/date/useRelativeTime.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/date/useRelativeTime.ts -------------------------------------------------------------------------------- /src/lib/debounce.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/debounce.test.ts -------------------------------------------------------------------------------- /src/lib/debounce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/debounce.ts -------------------------------------------------------------------------------- /src/lib/format/Money.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/format/Money.ts -------------------------------------------------------------------------------- /src/lib/format/Number.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/format/Number.ts -------------------------------------------------------------------------------- /src/lib/get.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/get.test.ts -------------------------------------------------------------------------------- /src/lib/get.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/get.ts -------------------------------------------------------------------------------- /src/lib/http/AjaxError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/AjaxError.ts -------------------------------------------------------------------------------- /src/lib/http/HttpService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/HttpService.ts -------------------------------------------------------------------------------- /src/lib/http/IHttpService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/IHttpService.ts -------------------------------------------------------------------------------- /src/lib/http/IHttpServiceClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/IHttpServiceClient.ts -------------------------------------------------------------------------------- /src/lib/http/IHttpServiceOptions.ts: -------------------------------------------------------------------------------- 1 | export interface IHttpServiceOptions {} 2 | -------------------------------------------------------------------------------- /src/lib/http/KyClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/KyClient.ts -------------------------------------------------------------------------------- /src/lib/http/Options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/Options.ts -------------------------------------------------------------------------------- /src/lib/http/exceptions/InternalServerException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/exceptions/InternalServerException.ts -------------------------------------------------------------------------------- /src/lib/http/exceptions/ResourceNotFoundException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/exceptions/ResourceNotFoundException.ts -------------------------------------------------------------------------------- /src/lib/http/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/http/index.ts -------------------------------------------------------------------------------- /src/lib/i18n/i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/i18n/i18n.ts -------------------------------------------------------------------------------- /src/lib/i18n/useTransations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/i18n/useTransations.ts -------------------------------------------------------------------------------- /src/lib/is-guid.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/is-guid.test.ts -------------------------------------------------------------------------------- /src/lib/is-guid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/is-guid.ts -------------------------------------------------------------------------------- /src/lib/isEmpty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/isEmpty.ts -------------------------------------------------------------------------------- /src/lib/logger/ConsoleLogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/logger/ConsoleLogger.ts -------------------------------------------------------------------------------- /src/lib/logger/ILogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/logger/ILogger.ts -------------------------------------------------------------------------------- /src/lib/logger/MockLogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/logger/MockLogger.ts -------------------------------------------------------------------------------- /src/lib/logger/StorybookLogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/logger/StorybookLogger.ts -------------------------------------------------------------------------------- /src/lib/logger/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/logger/index.ts -------------------------------------------------------------------------------- /src/lib/machine/provided-action.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/machine/provided-action.ts -------------------------------------------------------------------------------- /src/lib/machine/replace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/machine/replace.ts -------------------------------------------------------------------------------- /src/lib/machine/union-context-selector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/machine/union-context-selector.ts -------------------------------------------------------------------------------- /src/lib/machine/use-actor-ref.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/machine/use-actor-ref.ts -------------------------------------------------------------------------------- /src/lib/permissions/use-has-all-permissions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/permissions/use-has-all-permissions.ts -------------------------------------------------------------------------------- /src/lib/permissions/use-has-permission.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/permissions/use-has-permission.ts -------------------------------------------------------------------------------- /src/lib/permissions/when-permitted-to.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/permissions/when-permitted-to.tsx -------------------------------------------------------------------------------- /src/lib/query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/query.ts -------------------------------------------------------------------------------- /src/lib/router/handleLazyImportError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/router/handleLazyImportError.ts -------------------------------------------------------------------------------- /src/lib/router/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/router/index.ts -------------------------------------------------------------------------------- /src/lib/router/routePath.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/router/routePath.ts -------------------------------------------------------------------------------- /src/lib/router/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/router/routes.ts -------------------------------------------------------------------------------- /src/lib/router/useNavigate.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/router/useNavigate.test.ts -------------------------------------------------------------------------------- /src/lib/router/useRouteError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/router/useRouteError.ts -------------------------------------------------------------------------------- /src/lib/sleep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/sleep.ts -------------------------------------------------------------------------------- /src/lib/theme/theme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/theme/theme.ts -------------------------------------------------------------------------------- /src/lib/theme/useBrandColor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/theme/useBrandColor.ts -------------------------------------------------------------------------------- /src/lib/theme/useSecondaryTextColor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/theme/useSecondaryTextColor.ts -------------------------------------------------------------------------------- /src/lib/to-kebab-case.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/to-kebab-case.test.ts -------------------------------------------------------------------------------- /src/lib/to-kebab-case.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/to-kebab-case.ts -------------------------------------------------------------------------------- /src/lib/types/one-of-union.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/lib/types/one-of-union.ts -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/pages/Cart/Cart.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Cart/Cart.stories.tsx -------------------------------------------------------------------------------- /src/pages/Cart/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Cart/index.tsx -------------------------------------------------------------------------------- /src/pages/Cart/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Cart/loader.ts -------------------------------------------------------------------------------- /src/pages/Home/Home.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Home/Home.stories.tsx -------------------------------------------------------------------------------- /src/pages/Home/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Home/index.tsx -------------------------------------------------------------------------------- /src/pages/Home/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Home/loader.ts -------------------------------------------------------------------------------- /src/pages/Product/Product.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Product/Product.stories.tsx -------------------------------------------------------------------------------- /src/pages/Product/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Product/index.tsx -------------------------------------------------------------------------------- /src/pages/Product/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Product/loader.ts -------------------------------------------------------------------------------- /src/pages/Products/Products.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Products/Products.stories.tsx -------------------------------------------------------------------------------- /src/pages/Products/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Products/index.tsx -------------------------------------------------------------------------------- /src/pages/Products/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/Products/loader.ts -------------------------------------------------------------------------------- /src/pages/SignIn/SignIn.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/SignIn/SignIn.stories.tsx -------------------------------------------------------------------------------- /src/pages/SignIn/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/SignIn/index.tsx -------------------------------------------------------------------------------- /src/pages/router.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/pages/router.tsx -------------------------------------------------------------------------------- /src/test-lib/date/generateDate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/date/generateDate.ts -------------------------------------------------------------------------------- /src/test-lib/fixtures/CartFixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/fixtures/CartFixture.ts -------------------------------------------------------------------------------- /src/test-lib/fixtures/MetaFixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/fixtures/MetaFixture.ts -------------------------------------------------------------------------------- /src/test-lib/fixtures/ProductFixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/fixtures/ProductFixture.ts -------------------------------------------------------------------------------- /src/test-lib/fixtures/UserFixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/fixtures/UserFixture.ts -------------------------------------------------------------------------------- /src/test-lib/fixtures/createFixture.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/fixtures/createFixture.test.ts -------------------------------------------------------------------------------- /src/test-lib/fixtures/createFixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/fixtures/createFixture.ts -------------------------------------------------------------------------------- /src/test-lib/generateUuid.ts: -------------------------------------------------------------------------------- 1 | export const generateUuid = () => crypto.randomUUID(); 2 | -------------------------------------------------------------------------------- /src/test-lib/handlers/getAddToCartHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/getAddToCartHandler.ts -------------------------------------------------------------------------------- /src/test-lib/handlers/getCartHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/getCartHandler.ts -------------------------------------------------------------------------------- /src/test-lib/handlers/getClearCartHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/getClearCartHandler.ts -------------------------------------------------------------------------------- /src/test-lib/handlers/getProductHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/getProductHandler.ts -------------------------------------------------------------------------------- /src/test-lib/handlers/getProductsHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/getProductsHandler.ts -------------------------------------------------------------------------------- /src/test-lib/handlers/getUserHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/getUserHandler.ts -------------------------------------------------------------------------------- /src/test-lib/handlers/resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/resolvers.ts -------------------------------------------------------------------------------- /src/test-lib/handlers/signInHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/handlers/signInHandler.ts -------------------------------------------------------------------------------- /src/test-lib/initI18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/initI18n.ts -------------------------------------------------------------------------------- /src/test-lib/storybook/sleep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/storybook/sleep.ts -------------------------------------------------------------------------------- /src/test-lib/storybook/with-suspense-decorator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/storybook/with-suspense-decorator.tsx -------------------------------------------------------------------------------- /src/test-lib/storybook/withAuth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/storybook/withAuth.tsx -------------------------------------------------------------------------------- /src/test-lib/storybook/withI18Next.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/storybook/withI18Next.tsx -------------------------------------------------------------------------------- /src/test-lib/storybook/withReactQuery.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/storybook/withReactQuery.tsx -------------------------------------------------------------------------------- /src/test-lib/storybook/withoutAuth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/test-lib/storybook/withoutAuth.tsx -------------------------------------------------------------------------------- /src/types/AllOrNothing.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/AllOrNothing.test.ts -------------------------------------------------------------------------------- /src/types/AllOrNothing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/AllOrNothing.ts -------------------------------------------------------------------------------- /src/types/Autocomplete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/Autocomplete.ts -------------------------------------------------------------------------------- /src/types/Branded.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/Branded.ts -------------------------------------------------------------------------------- /src/types/DeepPartial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/DeepPartial.ts -------------------------------------------------------------------------------- /src/types/IMeta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/IMeta.ts -------------------------------------------------------------------------------- /src/types/IQueryParams.ts: -------------------------------------------------------------------------------- 1 | export interface IQueryParams { 2 | limit: number; 3 | sort?: string; 4 | } 5 | -------------------------------------------------------------------------------- /src/types/NonEmptyArray.ts: -------------------------------------------------------------------------------- 1 | export type NonEmptyArray = [T, ...T[]]; 2 | -------------------------------------------------------------------------------- /src/types/NonNullableProps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/NonNullableProps.ts -------------------------------------------------------------------------------- /src/types/OneOfUnion.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/OneOfUnion.test.ts -------------------------------------------------------------------------------- /src/types/OneOfUnion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/types/OneOfUnion.ts -------------------------------------------------------------------------------- /src/typings/react-router-config.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/typings/react-router-config.d.ts -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/src/vite-env.d.ts -------------------------------------------------------------------------------- /test-globals.ts: -------------------------------------------------------------------------------- 1 | export const setup = () => { 2 | process.env.TZ = "Europe/London"; 3 | }; 4 | -------------------------------------------------------------------------------- /test-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/test-setup.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/tsconfig.node.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/vite.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bartstc/vite-ts-react-template/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /vitest.shims.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | --------------------------------------------------------------------------------