From da87401f27d4fe416943f8f76a8ea336432b2794 Mon Sep 17 00:00:00 2001 From: Aleksandr Vishniakov Date: Wed, 9 Aug 2023 16:14:26 +0200 Subject: [PATCH 1/2] chore: apply automatic linter formatting --- .../account/mutations/addWishlist/index.ts | 2 +- .../account/mutations/changePassword/index.ts | 2 +- .../mutations/deleteMemberAddresses/index.ts | 2 +- .../account/mutations/deleteWishlist/index.ts | 2 +- .../mutations/registerAccount/index.ts | 2 +- .../mutations/registerByInvitation/index.ts | 2 +- .../account/mutations/renameWishlist/index.ts | 2 +- .../mutations/resetPasswordByToken/index.ts | 2 +- .../mutations/updateMemberAddresses/index.ts | 2 +- .../mutations/changeCartItemQuantity/index.ts | 2 +- .../cart/mutations/removeCartItem/index.ts | 2 +- .../cart/mutations/removeShipment/index.ts | 2 +- .../cart/mutations/validateCoupon/index.ts | 2 +- .../catalog/queries/getSearchResults/index.ts | 2 +- .../catalog/queries/searchProducts/index.ts | 2 +- .../changeOrganizationContactRoles/index.ts | 2 +- .../removeMemberFromOrganization/index.ts | 2 +- .../queries/getOrganizationAddresses/index.ts | 2 +- .../queries/getOrganizationContacts/index.ts | 2 +- .../changeQuoteItemQuantity/index.ts | 2 +- .../core/composables/useCategoriesRoutes.ts | 2 +- client-app/core/composables/useCurrency.ts | 2 +- .../core/composables/useGoogleAnalytics.ts | 5 ++-- client-app/core/composables/useLanguages.ts | 2 +- client-app/core/composables/useNavigations.ts | 14 +++++----- client-app/core/composables/usePageHead.ts | 2 +- .../core/composables/useProductsRoutes.ts | 4 +-- .../core/composables/useRouteQueryParam.ts | 2 +- client-app/core/types/search/sorting/sort.ts | 5 +++- client-app/core/utilities/address/index.ts | 2 +- client-app/core/utilities/common/index.ts | 2 +- client-app/core/utilities/line-items/index.ts | 4 +-- client-app/core/utilities/search/facets.ts | 2 +- client-app/pages/account/addresses.vue | 2 +- client-app/pages/account/edit-quote.vue | 10 +++---- client-app/pages/account/list-details.vue | 9 +++---- client-app/pages/account/order-details.vue | 2 +- client-app/pages/account/orders.vue | 4 +-- client-app/pages/account/profile.vue | 4 +-- client-app/pages/account/quotes.vue | 2 +- client-app/pages/branch.vue | 2 +- client-app/pages/cart.vue | 6 ++--- client-app/pages/checkout/index.vue | 2 +- client-app/pages/checkout/review.vue | 4 +-- client-app/pages/checkout/shipping.vue | 2 +- client-app/pages/company/info.vue | 6 ++--- client-app/pages/company/members.vue | 4 +-- client-app/pages/compare-products.vue | 4 +-- client-app/pages/confirm-invitation.vue | 2 +- client-app/pages/index.vue | 12 +++++++-- client-app/pages/matcher.vue | 4 +-- client-app/pages/sign-up.vue | 6 ++--- client-app/router/index.ts | 2 +- .../components/change-password-form.vue | 2 +- .../components/forgot-password-form.vue | 2 +- .../account/components/password-tips.vue | 6 ++--- .../account/components/quote-line-items.vue | 4 +-- .../components/reset-password-form.vue | 2 +- .../account/components/sign-in-form.vue | 2 +- .../composables/usePasswordRequirements.ts | 2 +- .../account/composables/useUserOrder.ts | 4 +-- .../account/composables/useUserOrders.ts | 2 +- .../account/composables/useUserQuote.ts | 10 +++---- .../broadcast/composables/useBroadcast.ts | 2 +- .../shared/cart/components/add-to-cart.vue | 14 +++++----- .../cart/components/cart-line-items.vue | 27 ++++++++++--------- client-app/shared/cart/composables/useCart.ts | 14 +++++----- client-app/shared/cart/utils/index.ts | 4 +-- .../shared/catalog/components/category.vue | 14 +++++----- .../catalog/components/discount-badge.vue | 2 +- .../catalog/components/facet-filter.vue | 4 +-- .../catalog/components/product-card-grid.vue | 2 +- .../catalog/components/product-card-list.vue | 2 +- .../components/product-price-block.vue | 4 +-- .../components/product-variation-card.vue | 2 +- .../catalog/components/product/properties.vue | 2 +- .../catalog/components/products-filters.vue | 8 +++--- .../shared/catalog/components/vendor.vue | 2 +- .../shared/catalog/composables/useProducts.ts | 10 +++---- .../components/billing-details-section.vue | 2 +- .../checkout/components/order-summary.vue | 2 +- .../components/select-address-modal.vue | 4 +-- .../components/shipping-details-section.vue | 2 +- .../checkout/composables/useCheckout.ts | 20 +++++++------- .../add-or-update-company-address-modal.vue | 2 +- .../company/components/filter-facet.vue | 2 +- .../components/invite-member-modal.vue | 8 +++--- .../shared/company/components/role-icon.vue | 2 +- .../composables/useOrganizationContacts.ts | 4 +-- .../useOrganizationContactsFilterFacets.ts | 2 +- .../components/add-to-compare-catalog.vue | 2 +- .../components/branches-dialog.vue | 2 +- .../header/_internal/bottom-header.vue | 4 +-- .../header/_internal/catalog-menu-item.vue | 2 +- .../header/_internal/mobile-header.vue | 2 +- .../header/_internal/mobile-menu.vue | 2 +- .../nested-mobile-header.ts | 2 +- .../components/search-bar/search-bar.vue | 2 +- client-app/shared/layout/utils/index.ts | 2 +- .../payment/components/bank-card-form.vue | 8 +++--- .../static-content/composables/useTemplate.ts | 2 +- .../wishlists/components/add-to-list.vue | 2 +- .../components/wishlist-product-item.vue | 2 +- .../components/atoms/checkbox/vc-checkbox.vue | 2 +- .../atoms/count-in-cart/vc-count-in-cart.vue | 4 +-- .../ui-kit/components/atoms/icon/vc-icon.vue | 2 +- .../components/atoms/image/vc-image.vue | 2 +- .../components/atoms/in-stock/vc-in-stock.vue | 2 +- .../components/atoms/popover/vc-popover.vue | 2 +- .../vc-price-display-catalog.vue | 2 +- .../components/atoms/tooltip/vc-tooltip.vue | 2 +- .../atoms/total-display/vc-total-display.vue | 2 +- .../address-form/vc-address-form.vue | 2 +- .../molecules/carousel/vc-carousel.vue | 4 +-- .../vc-collapsible-content.vue | 2 +- .../expansion-panel/vc-expansion-panel.vue | 2 +- .../components/molecules/select/vc-select.vue | 2 +- .../vc-add-or-update-address-modal.vue | 2 +- .../organisms/add-to-cart/vc-add-to-cart.vue | 2 +- 119 files changed, 229 insertions(+), 217 deletions(-) diff --git a/client-app/core/api/graphql/account/mutations/addWishlist/index.ts b/client-app/core/api/graphql/account/mutations/addWishlist/index.ts index bb519d835..417414fd7 100644 --- a/client-app/core/api/graphql/account/mutations/addWishlist/index.ts +++ b/client-app/core/api/graphql/account/mutations/addWishlist/index.ts @@ -18,7 +18,7 @@ export default async function addWishlist(listName?: string): Promise { await graphqlClient.mutate>, MutationsDeleteMemberAddressesArgs>({ mutation: mutationDocument, diff --git a/client-app/core/api/graphql/account/mutations/deleteWishlist/index.ts b/client-app/core/api/graphql/account/mutations/deleteWishlist/index.ts index 649a0295a..83f8346ea 100644 --- a/client-app/core/api/graphql/account/mutations/deleteWishlist/index.ts +++ b/client-app/core/api/graphql/account/mutations/deleteWishlist/index.ts @@ -11,7 +11,7 @@ export default async function deleteWishlist(listId: string): Promise { listId, }, }, - } + }, ); return data!.removeWishlist; diff --git a/client-app/core/api/graphql/account/mutations/registerAccount/index.ts b/client-app/core/api/graphql/account/mutations/registerAccount/index.ts index c28b6ac27..7ee73e0be 100644 --- a/client-app/core/api/graphql/account/mutations/registerAccount/index.ts +++ b/client-app/core/api/graphql/account/mutations/registerAccount/index.ts @@ -8,7 +8,7 @@ import type { } from "@/core/api/graphql/types"; export default async function registerAccount( - registrationData: InputRequestRegistrationType + registrationData: InputRequestRegistrationType, ): Promise { const { data } = await graphqlClient.mutate< Required>, diff --git a/client-app/core/api/graphql/account/mutations/registerByInvitation/index.ts b/client-app/core/api/graphql/account/mutations/registerByInvitation/index.ts index 504440907..c9175f722 100644 --- a/client-app/core/api/graphql/account/mutations/registerByInvitation/index.ts +++ b/client-app/core/api/graphql/account/mutations/registerByInvitation/index.ts @@ -8,7 +8,7 @@ import type { } from "@/core/api/graphql/types"; export default async function registerByInvitation( - payload: InputRegisterByInvitationType + payload: InputRegisterByInvitationType, ): Promise { const { data } = await graphqlClient.mutate< Required>, diff --git a/client-app/core/api/graphql/account/mutations/renameWishlist/index.ts b/client-app/core/api/graphql/account/mutations/renameWishlist/index.ts index b19c37c76..ac7f93fe7 100644 --- a/client-app/core/api/graphql/account/mutations/renameWishlist/index.ts +++ b/client-app/core/api/graphql/account/mutations/renameWishlist/index.ts @@ -14,7 +14,7 @@ export default async function renameWishlist(payload: InputRenameWishlistType): variables: { command: payload, }, - } + }, ); return data!.renameWishlist; diff --git a/client-app/core/api/graphql/account/mutations/resetPasswordByToken/index.ts b/client-app/core/api/graphql/account/mutations/resetPasswordByToken/index.ts index c4b623e66..8767af842 100644 --- a/client-app/core/api/graphql/account/mutations/resetPasswordByToken/index.ts +++ b/client-app/core/api/graphql/account/mutations/resetPasswordByToken/index.ts @@ -8,7 +8,7 @@ import type { } from "@/core/api/graphql/types"; export default async function resetPasswordByToken( - payload: InputResetPasswordByTokenType + payload: InputResetPasswordByTokenType, ): Promise { const { data } = await graphqlClient.mutate< Required>, diff --git a/client-app/core/api/graphql/account/mutations/updateMemberAddresses/index.ts b/client-app/core/api/graphql/account/mutations/updateMemberAddresses/index.ts index 76c27dc9a..7cc6939a2 100644 --- a/client-app/core/api/graphql/account/mutations/updateMemberAddresses/index.ts +++ b/client-app/core/api/graphql/account/mutations/updateMemberAddresses/index.ts @@ -4,7 +4,7 @@ import type { InputMemberAddressType, Mutations, MutationsUpdateMemberAddressesA export default async function updateMemberAddresses( memberId: string, - addresses: InputMemberAddressType[] + addresses: InputMemberAddressType[], ): Promise { await graphqlClient.mutate>, MutationsUpdateMemberAddressesArgs>({ mutation: mutationDocument, diff --git a/client-app/core/api/graphql/cart/mutations/changeCartItemQuantity/index.ts b/client-app/core/api/graphql/cart/mutations/changeCartItemQuantity/index.ts index 6bb62becf..2ae810d01 100644 --- a/client-app/core/api/graphql/cart/mutations/changeCartItemQuantity/index.ts +++ b/client-app/core/api/graphql/cart/mutations/changeCartItemQuantity/index.ts @@ -12,7 +12,7 @@ export type ChangeCartItemQuantityOptionsType = { export async function changeCartItemQuantity( lineItemId: string, quantity: number, - options: ChangeCartItemQuantityOptionsType = {} + options: ChangeCartItemQuantityOptionsType = {}, ): Promise { const { reloadFullCart = false } = options; const { storeId, userId, cultureName, currencyCode } = globals; diff --git a/client-app/core/api/graphql/cart/mutations/removeCartItem/index.ts b/client-app/core/api/graphql/cart/mutations/removeCartItem/index.ts index 945ef7ef9..366c957e4 100644 --- a/client-app/core/api/graphql/cart/mutations/removeCartItem/index.ts +++ b/client-app/core/api/graphql/cart/mutations/removeCartItem/index.ts @@ -18,7 +18,7 @@ export async function removeCartItem(lineItemId: string): Promise { lineItemId, }, }, - } + }, ); return data!.removeCartItem; diff --git a/client-app/core/api/graphql/cart/mutations/removeShipment/index.ts b/client-app/core/api/graphql/cart/mutations/removeShipment/index.ts index 04294d42e..ab6034a5f 100644 --- a/client-app/core/api/graphql/cart/mutations/removeShipment/index.ts +++ b/client-app/core/api/graphql/cart/mutations/removeShipment/index.ts @@ -19,7 +19,7 @@ export async function removeShipment(shipmentId: string, cartId?: string): Promi shipmentId, }, }, - } + }, ); return data!.removeShipment; diff --git a/client-app/core/api/graphql/cart/mutations/validateCoupon/index.ts b/client-app/core/api/graphql/cart/mutations/validateCoupon/index.ts index 7eafb0a60..f55dd73a1 100644 --- a/client-app/core/api/graphql/cart/mutations/validateCoupon/index.ts +++ b/client-app/core/api/graphql/cart/mutations/validateCoupon/index.ts @@ -18,7 +18,7 @@ export async function validateCoupon(coupon: string): Promise { coupon, }, }, - } + }, ); return data!.validateCoupon; diff --git a/client-app/core/api/graphql/catalog/queries/getSearchResults/index.ts b/client-app/core/api/graphql/catalog/queries/getSearchResults/index.ts index 37a2c0081..89690dc02 100644 --- a/client-app/core/api/graphql/catalog/queries/getSearchResults/index.ts +++ b/client-app/core/api/graphql/catalog/queries/getSearchResults/index.ts @@ -127,6 +127,6 @@ export async function getSearchResults(params: GetSearchResultsParamsType): Prom categories: {}, products: {}, }, - data + data, ); } diff --git a/client-app/core/api/graphql/catalog/queries/searchProducts/index.ts b/client-app/core/api/graphql/catalog/queries/searchProducts/index.ts index 95d29bea6..bcf4266dc 100644 --- a/client-app/core/api/graphql/catalog/queries/searchProducts/index.ts +++ b/client-app/core/api/graphql/catalog/queries/searchProducts/index.ts @@ -25,7 +25,7 @@ export async function searchProducts( withImages?: boolean; /** @default false */ withZeroPrice?: boolean; - } = {} + } = {}, ): Promise { const { storeId, catalogId, userId, cultureName, currencyCode } = globals; const { withFacets = false, withImages = true, withZeroPrice = false } = options; diff --git a/client-app/core/api/graphql/organization/mutations/changeOrganizationContactRoles/index.ts b/client-app/core/api/graphql/organization/mutations/changeOrganizationContactRoles/index.ts index 619a4be4b..b05a6404b 100644 --- a/client-app/core/api/graphql/organization/mutations/changeOrganizationContactRoles/index.ts +++ b/client-app/core/api/graphql/organization/mutations/changeOrganizationContactRoles/index.ts @@ -8,7 +8,7 @@ import type { } from "@/core/api/graphql/types"; export default async function changeOrganizationContactRole( - payload: InputChangeOrganizationContactRoleType + payload: InputChangeOrganizationContactRoleType, ): Promise { const { data } = await graphqlClient.mutate< Required>, diff --git a/client-app/core/api/graphql/organization/mutations/removeMemberFromOrganization/index.ts b/client-app/core/api/graphql/organization/mutations/removeMemberFromOrganization/index.ts index 81527c472..396deb986 100644 --- a/client-app/core/api/graphql/organization/mutations/removeMemberFromOrganization/index.ts +++ b/client-app/core/api/graphql/organization/mutations/removeMemberFromOrganization/index.ts @@ -7,7 +7,7 @@ import type { } from "@/core/api/graphql/types"; export default async function removeMemberFromOrganization( - payload: InputRemoveMemberFromOrganizationType + payload: InputRemoveMemberFromOrganizationType, ): Promise { await graphqlClient.mutate< Required>, diff --git a/client-app/core/api/graphql/organization/queries/getOrganizationAddresses/index.ts b/client-app/core/api/graphql/organization/queries/getOrganizationAddresses/index.ts index 5576a7dee..2a5a22d13 100644 --- a/client-app/core/api/graphql/organization/queries/getOrganizationAddresses/index.ts +++ b/client-app/core/api/graphql/organization/queries/getOrganizationAddresses/index.ts @@ -10,7 +10,7 @@ import type { export default async function getOrganizationAddresses( organizationId: string, - payload?: OrganizationAddressesArgs + payload?: OrganizationAddressesArgs, ): Promise { const { userId } = globals; diff --git a/client-app/core/api/graphql/organization/queries/getOrganizationContacts/index.ts b/client-app/core/api/graphql/organization/queries/getOrganizationContacts/index.ts index bc13fbc25..49c414e90 100644 --- a/client-app/core/api/graphql/organization/queries/getOrganizationContacts/index.ts +++ b/client-app/core/api/graphql/organization/queries/getOrganizationContacts/index.ts @@ -10,7 +10,7 @@ import type { export default async function getOrganizationContacts( organizationId: string, - payload: OrganizationContactsArgs + payload: OrganizationContactsArgs, ): Promise { const { userId } = globals; diff --git a/client-app/core/api/graphql/quotes/mutations/changeQuoteItemQuantity/index.ts b/client-app/core/api/graphql/quotes/mutations/changeQuoteItemQuantity/index.ts index 4a28440d9..1ca5a94b8 100644 --- a/client-app/core/api/graphql/quotes/mutations/changeQuoteItemQuantity/index.ts +++ b/client-app/core/api/graphql/quotes/mutations/changeQuoteItemQuantity/index.ts @@ -3,7 +3,7 @@ import mutationDocument from "./changeQuoteItemQuantityMutation.graphql"; import type { Mutations, MutationsChangeQuoteItemQuantityArgs, QuoteType } from "@/core/api/graphql/types"; export default async function changeQuoteItemQuantity( - payload: MutationsChangeQuoteItemQuantityArgs + payload: MutationsChangeQuoteItemQuantityArgs, ): Promise { const { data } = await graphqlClient.mutate< Required>, diff --git a/client-app/core/composables/useCategoriesRoutes.ts b/client-app/core/composables/useCategoriesRoutes.ts index 1f6f8768b..7b61ed000 100644 --- a/client-app/core/composables/useCategoriesRoutes.ts +++ b/client-app/core/composables/useCategoriesRoutes.ts @@ -10,6 +10,6 @@ export function useCategoriesRoutes(categories: MaybeRef<(Category | CategoryTre unref(categories).reduce>((result, category) => { result[category.id] = getCategoryRoute(category); return result; - }, {}) + }, {}), ); } diff --git a/client-app/core/composables/useCurrency.ts b/client-app/core/composables/useCurrency.ts index 2ef31ad8c..4566c2a91 100644 --- a/client-app/core/composables/useCurrency.ts +++ b/client-app/core/composables/useCurrency.ts @@ -10,7 +10,7 @@ const savedCurrencyCode = useLocalStorage("currency", ""); const defaultCurrency = computed(() => themeContext.value.defaultCurrency); const supportedCurrencies = computed(() => themeContext.value.availCurrencies); const currentCurrency = computed( - () => supportedCurrencies.value?.find((item) => item.code === savedCurrencyCode.value) || defaultCurrency.value + () => supportedCurrencies.value?.find((item) => item.code === savedCurrencyCode.value) || defaultCurrency.value, ); function saveCurrencyCodeAndReload(code: string) { diff --git a/client-app/core/composables/useGoogleAnalytics.ts b/client-app/core/composables/useGoogleAnalytics.ts index 7edb06769..f1fec7837 100644 --- a/client-app/core/composables/useGoogleAnalytics.ts +++ b/client-app/core/composables/useGoogleAnalytics.ts @@ -183,9 +183,8 @@ function addShippingInfo(cart: CartType, params?: EventParamsExtendedType, shipm function addPaymentInfo(cart: CartType, params?: EventParamsExtendedType, paymentGatewayCode?: string): void { const paymentMethodCode = paymentGatewayCode || cart.payments?.[0]?.paymentGatewayCode; - const payment_type = cart.availablePaymentMethods?.find( - (paymentMethod) => paymentMethod.code === paymentMethodCode - )?.paymentMethodGroupType; + const payment_type = cart.availablePaymentMethods?.find((paymentMethod) => paymentMethod.code === paymentMethodCode) + ?.paymentMethodGroupType; sendEvent("add_payment_info", { ...params, diff --git a/client-app/core/composables/useLanguages.ts b/client-app/core/composables/useLanguages.ts index 9722c5ebf..45ab3eea0 100644 --- a/client-app/core/composables/useLanguages.ts +++ b/client-app/core/composables/useLanguages.ts @@ -29,7 +29,7 @@ const currentLocale = computed(() => { }); const currentLanguage = computed( - () => supportedLanguages.value.find((x) => x.twoLetterLanguageName === currentLocale.value) || defaultLanguage.value + () => supportedLanguages.value.find((x) => x.twoLetterLanguageName === currentLocale.value) || defaultLanguage.value, ); function fetchLocaleMessages(locale: string): Promise { diff --git a/client-app/core/composables/useNavigations.ts b/client-app/core/composables/useNavigations.ts index 8232ba0dd..2e0547508 100644 --- a/client-app/core/composables/useNavigations.ts +++ b/client-app/core/composables/useNavigations.ts @@ -19,11 +19,11 @@ const catalogMenuItems = shallowRef([]); const openedMenuItemsStack = shallowRef([]); const openedItem = computed( - () => openedMenuItemsStack.value[openedMenuItemsStack.value.length - 1] + () => openedMenuItemsStack.value[openedMenuItemsStack.value.length - 1], ); const desktopMainMenuItems = computed(() => - (menuSchema.value?.header.desktop || []).map((item: ExtendedMenuLinkType) => getTranslatedMenuLink(item)) + (menuSchema.value?.header.desktop || []).map((item: ExtendedMenuLinkType) => getTranslatedMenuLink(item)), ); const mobileMainMenuItems = computed(() => @@ -35,19 +35,19 @@ const mobileMainMenuItems = computed(() => } return menuLink; - }) + }), ); const mobileCatalogMenuItem = computed( - () => mobileMainMenuItems.value.find((item) => item.id === "catalog") || null + () => mobileMainMenuItems.value.find((item) => item.id === "catalog") || null, ); const mobileAccountMenuItem = computed(() => - menuSchema.value ? getTranslatedMenuLink(menuSchema.value.header.mobile.account) : null + menuSchema.value ? getTranslatedMenuLink(menuSchema.value.header.mobile.account) : null, ); const mobileCorporateMenuItem = computed(() => - menuSchema.value ? getTranslatedMenuLink(menuSchema.value.header.mobile.corporate) : null + menuSchema.value ? getTranslatedMenuLink(menuSchema.value.header.mobile.corporate) : null, ); const mobilePreSelectedMenuItem = computed(() => { @@ -92,7 +92,7 @@ export function useNavigations() { if (catalog_menu_link_list_name) { // Use a list of links catalogMenuItems.value = (await getMenu(catalog_menu_link_list_name)).map((item) => - convertToExtendedMenuLink(item, true) + convertToExtendedMenuLink(item, true), ); } else { // Use the query `childCategories`, with `maxLevel` equal to 2 diff --git a/client-app/core/composables/usePageHead.ts b/client-app/core/composables/usePageHead.ts index 13e9a560a..b7e9378ef 100644 --- a/client-app/core/composables/usePageHead.ts +++ b/client-app/core/composables/usePageHead.ts @@ -40,7 +40,7 @@ export function usePageHead(data: IUsePageSeoData) { if (data.meta) { Object.entries(data.meta).forEach(([name, content]) => - headObject.meta.push({ name, content: () => unref(content) ?? "" }) + headObject.meta.push({ name, content: () => unref(content) ?? "" }), ); } diff --git a/client-app/core/composables/useProductsRoutes.ts b/client-app/core/composables/useProductsRoutes.ts index 8dcb977b4..525b90882 100644 --- a/client-app/core/composables/useProductsRoutes.ts +++ b/client-app/core/composables/useProductsRoutes.ts @@ -6,7 +6,7 @@ import type { RouteLocationRaw } from "vue-router"; export function useProductsRoutes( products: MaybeRef[]>, // eslint-disable-line @typescript-eslint/no-explicit-any - options: { productIdProperty?: string; slugProperty?: string } = {} + options: { productIdProperty?: string; slugProperty?: string } = {}, ): ComputedRef> { const { productIdProperty = "id", slugProperty = "slug" } = options; @@ -14,6 +14,6 @@ export function useProductsRoutes( unref(products).reduce>((result, item) => { result[item[productIdProperty]] = getProductRoute(item[productIdProperty], item[slugProperty]); return result; - }, {}) + }, {}), ); } diff --git a/client-app/core/composables/useRouteQueryParam.ts b/client-app/core/composables/useRouteQueryParam.ts index ec145f195..b7834c757 100644 --- a/client-app/core/composables/useRouteQueryParam.ts +++ b/client-app/core/composables/useRouteQueryParam.ts @@ -6,7 +6,7 @@ import type { LocationAsRelativeRaw, LocationQueryValue, LocationQueryValueRaw, export function useRouteQueryParam | NonNullable[]>( key: string, - options: IUseRouteQueryParamOptions = {} + options: IUseRouteQueryParamOptions = {}, ): WritableComputedRef { const { validator, diff --git a/client-app/core/types/search/sorting/sort.ts b/client-app/core/types/search/sorting/sort.ts index 3e654d394..56ec214b2 100644 --- a/client-app/core/types/search/sorting/sort.ts +++ b/client-app/core/types/search/sorting/sort.ts @@ -11,7 +11,10 @@ export class Sort extends SearchEntity implements ISortInfo { this.fieldName = value; } - constructor(public fieldName: string = "createdDate", public direction: SortDirection = SortDirection.Descending) { + constructor( + public fieldName: string = "createdDate", + public direction: SortDirection = SortDirection.Descending, + ) { super(); } diff --git a/client-app/core/utilities/address/index.ts b/client-app/core/utilities/address/index.ts index c86d261e8..87efa368b 100644 --- a/client-app/core/utilities/address/index.ts +++ b/client-app/core/utilities/address/index.ts @@ -21,7 +21,7 @@ export function getAddressName(address: AnyAddressType): string { export function isEqualAddresses( address1: AnyAddressType, address2: AnyAddressType, - options: { skipDescription?: boolean } = {} + options: { skipDescription?: boolean } = {}, ): boolean { const { skipDescription = true } = options; const verifiableProperties: Array = [ diff --git a/client-app/core/utilities/common/index.ts b/client-app/core/utilities/common/index.ts index dea526710..b1b0a4aed 100644 --- a/client-app/core/utilities/common/index.ts +++ b/client-app/core/utilities/common/index.ts @@ -83,7 +83,7 @@ export function convertToType>(value?: From): To { export async function asyncForEach( array: T[], - callbackFn: (value: T, index: number, arr: T[]) => Promise + callbackFn: (value: T, index: number, arr: T[]) => Promise, ): Promise { for (let i = 0, l = array.length; i < l; i++) { await callbackFn(array[i], i, array); diff --git a/client-app/core/utilities/line-items/index.ts b/client-app/core/utilities/line-items/index.ts index 7d295d917..13349f539 100644 --- a/client-app/core/utilities/line-items/index.ts +++ b/client-app/core/utilities/line-items/index.ts @@ -14,7 +14,7 @@ export function isQuoteItemType(item: AnyLineItemType): item is QuoteItemType { } export function getLineItemsGroupedByVendor( - items: T[] + items: T[], ): LineItemsGroupByVendorType[] { // NOTE: The group without the vendor should be displayed last. const groupWithoutVendor: LineItemsGroupByVendorType = { items: [] }; @@ -101,7 +101,7 @@ export function prepareLineItem(item: AnyLineItemType, countInCart?: number): Pr } export function prepareLineItems( - items: LineItemType[] | OrderLineItemType[] | QuoteItemType[] + items: LineItemType[] | OrderLineItemType[] | QuoteItemType[], ): PreparedLineItemType[] { return items.map((item) => prepareLineItem(item)); } diff --git a/client-app/core/utilities/search/facets.ts b/client-app/core/utilities/search/facets.ts index d81a5be94..bfe9d73c5 100644 --- a/client-app/core/utilities/search/facets.ts +++ b/client-app/core/utilities/search/facets.ts @@ -38,7 +38,7 @@ export function getFilterExpressionFromFacets(facets: MaybeRef) item.value // https://github.com/VirtoCommerce/vc-module-experience-api/blob/dev/docs/filter-syntax.md#escaping-special-characters .replace(/\\/g, "\\\\") - .replace(/"/g, '\\"') + .replace(/"/g, '\\"'), ); if (!selectedValues.length) { diff --git a/client-app/pages/account/addresses.vue b/client-app/pages/account/addresses.vue index 043b12fe8..cf1c4f7e5 100644 --- a/client-app/pages/account/addresses.vue +++ b/client-app/pages/account/addresses.vue @@ -219,7 +219,7 @@ const itemsPerPage = ref(6); const pages = computed(() => Math.ceil(addresses.value.length / itemsPerPage.value)); const paginatedAddresses = computed(() => - addresses.value.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value) + addresses.value.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value), ); const columns = computed(() => [ diff --git a/client-app/pages/account/edit-quote.vue b/client-app/pages/account/edit-quote.vue index 7fd2ca1cb..e8a5f465c 100644 --- a/client-app/pages/account/edit-quote.vue +++ b/client-app/pages/account/edit-quote.vue @@ -190,18 +190,18 @@ const quoteChanged = computed( () => !isEqual(originalQuote.value, quote.value) || (comment.value && originalQuote.value?.comment !== comment.value && quoteItemsValid.value) || - (!!shippingAddress.value && billingAddressEqualsShipping.value && !isBillingAddressEqualsShipping.value) + (!!shippingAddress.value && billingAddressEqualsShipping.value && !isBillingAddressEqualsShipping.value), ); const quoteItemsValid = computed( () => !!quote.value?.items?.length && - every(quote.value?.items, (item: QuoteItemType) => item.selectedTierPrice?.quantity > 0) + every(quote.value?.items, (item: QuoteItemType) => item.selectedTierPrice?.quantity > 0), ); const quoteValid = computed( () => !!shippingAddress.value && (!!billingAddress.value || billingAddressEqualsShipping.value) && - (!!comment.value || quoteItemsValid.value) + (!!comment.value || quoteItemsValid.value), ); const userHasAddresses = computedEager(() => !!accountAddresses.value.length); @@ -276,7 +276,7 @@ function openSelectAddressModal(addressType: AddressType): void { props: { addresses: accountAddresses.value, currentAddress: convertToType( - addressType === AddressType.Billing ? billingAddress.value : shippingAddress.value + addressType === AddressType.Billing ? billingAddress.value : shippingAddress.value, ), isCorporateAddresses: isCorporateMember.value, @@ -305,7 +305,7 @@ async function saveChanges(): Promise { await asyncForEach(originalQuote.value!.items!, async (originalItem: QuoteItemType) => { const quoteItem: QuoteItemType | undefined = quote.value!.items?.find( - (item: QuoteItemType) => item.id === originalItem.id + (item: QuoteItemType) => item.id === originalItem.id, ); if (quoteItem) { if (quoteItem.selectedTierPrice!.quantity !== originalItem.selectedTierPrice!.quantity) { diff --git a/client-app/pages/account/list-details.vue b/client-app/pages/account/list-details.vue index 5242ef592..2320551d8 100644 --- a/client-app/pages/account/list-details.vue +++ b/client-app/pages/account/list-details.vue @@ -179,12 +179,12 @@ const wishlistItems = ref([]); const cartItemsBySkus = computed(() => keyBy(cart.value?.items, "sku")); const preparedLineItems = computed(() => - wishlistItems.value.map((item) => prepareLineItem(item, cartItemsBySkus.value[item.sku!]?.quantity)) + wishlistItems.value.map((item) => prepareLineItem(item, cartItemsBySkus.value[item.sku!]?.quantity)), ); const loading = computed(() => listLoading.value || cartLoading.value); const pagesCount = computed(() => Math.ceil((wishlistItems.value.length ?? 0) / itemsPerPage.value)); const pagedListItems = computed(() => - preparedLineItems.value.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value) + preparedLineItems.value.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value), ); const actualPageRowsCount = computed(() => pagedListItems.value.length || itemsPerPage.value); const canSaveChanges = computed(() => !isEqual(list.value?.items, wishlistItems.value)); @@ -259,9 +259,8 @@ function updateWishListItem(item: InputNewBulkItemType): void { } async function addOrUpdateCartItem(item: InputNewBulkItemType): Promise { - const product: Product | undefined = wishlistItems.value.find( - (listItem) => listItem.sku === item.productSku - )?.product; + const product: Product | undefined = wishlistItems.value.find((listItem) => listItem.sku === item.productSku) + ?.product; if (!product) { return; diff --git a/client-app/pages/account/order-details.vue b/client-app/pages/account/order-details.vue index aeb986ab1..3ab3b162d 100644 --- a/client-app/pages/account/order-details.vue +++ b/client-app/pages/account/order-details.vue @@ -173,7 +173,7 @@ const isMobile = breakpoints.smaller("lg"); const loadingAddItemsToCart = ref(false); const showPaymentButton = computed( - () => !!order.value && (order.value.status === "New" || order.value.status === "Payment required") + () => !!order.value && (order.value.status === "New" || order.value.status === "Payment required"), ); const showReorderButton = computed(() => !!order.value && order.value.status === "Completed"); diff --git a/client-app/pages/account/orders.vue b/client-app/pages/account/orders.vue index c604ca62f..fdd2c7719 100644 --- a/client-app/pages/account/orders.vue +++ b/client-app/pages/account/orders.vue @@ -410,7 +410,7 @@ onClickOutside( () => { hideFilters(); }, - { ignore: [filtersButtonElement] } + { ignore: [filtersButtonElement] }, ); onMounted(() => { @@ -423,6 +423,6 @@ watch( page.value = 1; loadOrders(); }, - { deep: true } + { deep: true }, ); diff --git a/client-app/pages/account/profile.vue b/client-app/pages/account/profile.vue index e6a104903..75ec4b4ea 100644 --- a/client-app/pages/account/profile.vue +++ b/client-app/pages/account/profile.vue @@ -171,7 +171,7 @@ const validationSchema = toTypedSchema( then: (stringSchema) => stringSchema.required().oneOf([yupRef("newPassword")], t("identity_error.PasswordMismatch")), }), - }) + }), ); const initialValues = computed(() => ({ @@ -255,7 +255,7 @@ whenever( () => { newPassword.value = ""; confirmNewPassword.value = ""; - } + }, ); if (!passwordRequirements.value) { diff --git a/client-app/pages/account/quotes.vue b/client-app/pages/account/quotes.vue index 595af6e47..84e2effe8 100644 --- a/client-app/pages/account/quotes.vue +++ b/client-app/pages/account/quotes.vue @@ -240,7 +240,7 @@ watch( }, { immediate: true, - } + }, ); fetchQuotes(); diff --git a/client-app/pages/branch.vue b/client-app/pages/branch.vue index 1c8115495..b71b2375a 100644 --- a/client-app/pages/branch.vue +++ b/client-app/pages/branch.vue @@ -88,7 +88,7 @@ watch( () => props.branchId, () => { loadFulfillmentCenter(props.branchId); - } + }, ); diff --git a/client-app/pages/cart.vue b/client-app/pages/cart.vue index 6c7146cd0..e3fa2b3f2 100644 --- a/client-app/pages/cart.vue +++ b/client-app/pages/cart.vue @@ -249,11 +249,11 @@ const creatingQuote = ref(false); const loading = computed(() => loadingCart.value || creatingQuote.value || creatingOrder.value); const isDisabledNextStep = computed(() => loading.value || hasValidationErrors.value); const isDisabledOrderCreation = computed(() => loading.value || !isValidCheckout.value); -const cartContainsDeletedProducts = computed(() => - cart.value?.items?.some((item: LineItemType) => !item.product) +const cartContainsDeletedProducts = computed( + () => cart.value?.items?.some((item: LineItemType) => !item.product), ); const isShowIncompleteDataWarning = computed( - () => (!allItemsAreDigital.value && !isValidShipment.value) || !isValidPayment.value + () => (!allItemsAreDigital.value && !isValidShipment.value) || !isValidPayment.value, ); async function handleRemoveSelectedItems(items: string[]): Promise { diff --git a/client-app/pages/checkout/index.vue b/client-app/pages/checkout/index.vue index 9bade80e2..d0639aee7 100644 --- a/client-app/pages/checkout/index.vue +++ b/client-app/pages/checkout/index.vue @@ -92,7 +92,7 @@ const steps = computed(() => { { id: "CheckoutPaymentResult", text: t("pages.checkout.steps.completed"), - } + }, ); } diff --git a/client-app/pages/checkout/review.vue b/client-app/pages/checkout/review.vue index ec4dca017..afaecd31e 100644 --- a/client-app/pages/checkout/review.vue +++ b/client-app/pages/checkout/review.vue @@ -168,12 +168,12 @@ const creatingOrder = ref(false); const isDisabledOrderCreation = computed(() => !isValidCheckout.value); const shippingMethodId = computed( - () => shipment.value?.shipmentMethodCode + "_" + shipment.value?.shipmentMethodOption + () => shipment.value?.shipmentMethodCode + "_" + shipment.value?.shipmentMethodOption, ); const billingAddress = computed(() => !allItemsAreDigital.value && billingAddressEqualsShipping.value ? shipment.value?.deliveryAddress - : payment.value?.billingAddress + : payment.value?.billingAddress, ); async function createOrder(): Promise { diff --git a/client-app/pages/checkout/shipping.vue b/client-app/pages/checkout/shipping.vue index b09db026e..957000bf7 100644 --- a/client-app/pages/checkout/shipping.vue +++ b/client-app/pages/checkout/shipping.vue @@ -43,6 +43,6 @@ const { loading, cart, shipment, hasValidationErrors, availableShippingMethods } const { comment, isValidShipment, onDeliveryAddressChange, setShippingMethod } = useCheckout(); const isDisabledNextStep = computed( - () => loading.value || hasValidationErrors.value || !isValidShipment.value + () => loading.value || hasValidationErrors.value || !isValidShipment.value, ); diff --git a/client-app/pages/company/info.vue b/client-app/pages/company/info.vue index d3f665643..9ed562de7 100644 --- a/client-app/pages/company/info.vue +++ b/client-app/pages/company/info.vue @@ -287,7 +287,7 @@ const userCanEditOrganization = computedEager(() => checkPermissions(XA const pages = computed(() => Math.ceil(addresses.value.length / itemsPerPage.value)); const paginatedAddresses = computed(() => - addresses.value.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value) + addresses.value.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value), ); const columns = computed(() => { @@ -429,7 +429,7 @@ function itemActionsBuilder(inputObject: MemberAddressType) { clickHandler(address: MemberAddressType) { openAddOrUpdateCompanyAddressModal(address); }, - } + }, ); } @@ -441,6 +441,6 @@ fetchAddresses(); watch( () => organization.value!.name!, (name) => resetOrganizationField({ value: name }), - { immediate: true } + { immediate: true }, ); diff --git a/client-app/pages/company/members.vue b/client-app/pages/company/members.vue index 195c58f3c..a8ee8b620 100644 --- a/client-app/pages/company/members.vue +++ b/client-app/pages/company/members.vue @@ -649,7 +649,7 @@ function itemActionsBuilder(item: ExtendedContactType) { clickHandler(contact: ExtendedContactType) { openDeleteModal(contact); }, - } + }, ); } @@ -661,7 +661,7 @@ onClickOutside( () => { hideFilters(); }, - { ignore: [filtersButtonElement] } + { ignore: [filtersButtonElement] }, ); onMounted(() => { diff --git a/client-app/pages/compare-products.vue b/client-app/pages/compare-products.vue index c4ecf1204..98366d25a 100644 --- a/client-app/pages/compare-products.vue +++ b/client-app/pages/compare-products.vue @@ -206,7 +206,7 @@ function getProperties() { name: prop!.name, label: prop!.label!, }; - }) + }), ); _.each(names, ({ name, label }) => { @@ -242,7 +242,7 @@ watch( () => { refreshProducts(); }, - { immediate: true } + { immediate: true }, ); /** diff --git a/client-app/pages/confirm-invitation.vue b/client-app/pages/confirm-invitation.vue index 973492eb6..71292123c 100644 --- a/client-app/pages/confirm-invitation.vue +++ b/client-app/pages/confirm-invitation.vue @@ -138,7 +138,7 @@ const schema = toTypedSchema( confirmPassword: string() .required() .oneOf([yupRef("password")], t("identity_error.PasswordMismatch")), - }) + }), ); const { errors, meta, handleSubmit, setFieldError } = useForm({ diff --git a/client-app/pages/index.vue b/client-app/pages/index.vue index 5e4c68bd5..d3cdb4ef6 100644 --- a/client-app/pages/index.vue +++ b/client-app/pages/index.vue @@ -129,12 +129,20 @@ onMounted(async () => { url(/static/images/home/hexa-left.png), url(/static/images/home/hexa-right.png); background-repeat: no-repeat, no-repeat, no-repeat, no-repeat; background-size: 100%, 100%, auto, auto; - background-position: top, bottom, left top 40%, right bottom; + background-position: + top, + bottom, + left top 40%, + right bottom; } @media (max-width: 768px) { .main { - background-position: top, bottom, left -140px top 40%, right -140px bottom; + background-position: + top, + bottom, + left -140px top 40%, + right -140px bottom; } } diff --git a/client-app/pages/matcher.vue b/client-app/pages/matcher.vue index bfc3a4d7e..27e031797 100644 --- a/client-app/pages/matcher.vue +++ b/client-app/pages/matcher.vue @@ -90,7 +90,7 @@ const seoInfo = computedAsync( } const result = await innerFetch( - `/storefrontapi/slug/${seoUrl.value}?culture=${currentLanguage.value!.cultureName}` + `/storefrontapi/slug/${seoUrl.value}?culture=${currentLanguage.value!.cultureName}`, ); if (result.contentItem?.type === "page") { @@ -106,7 +106,7 @@ const seoInfo = computedAsync( } }, undefined, - loading + loading, ); onBeforeUnmount(() => { diff --git a/client-app/pages/sign-up.vue b/client-app/pages/sign-up.vue index 42efccdbd..88c568e3a 100644 --- a/client-app/pages/sign-up.vue +++ b/client-app/pages/sign-up.vue @@ -181,8 +181,8 @@ const validationSchema = toTypedSchema( nextTick(() => emailValidationData.isChecked ? resolve(emailValidationData.isUnique) - : emailValidationDebounced(value, resolve) - ) + : emailValidationDebounced(value, resolve), + ), ), }), firstName: string().required().max(64), @@ -191,7 +191,7 @@ const validationSchema = toTypedSchema( confirmPassword: string() .required() .oneOf([yupRef("password")], t("identity_error.PasswordMismatch")), - }) + }), ); const { errors, handleSubmit, setFieldError } = useForm({ diff --git a/client-app/router/index.ts b/client-app/router/index.ts index 73504abe8..893363364 100644 --- a/client-app/router/index.ts +++ b/client-app/router/index.ts @@ -52,7 +52,7 @@ export function createRouter(options: { base: string }) { "ForgotPassword", "ResetPassword", "SetPassword", - "ConfirmInvitation" + "ConfirmInvitation", ).includes(to.name!) ) { return next(getReturnUrlValue() || { name: "Dashboard" }); diff --git a/client-app/shared/account/components/change-password-form.vue b/client-app/shared/account/components/change-password-form.vue index cae4dd790..1a9a7cb86 100644 --- a/client-app/shared/account/components/change-password-form.vue +++ b/client-app/shared/account/components/change-password-form.vue @@ -89,7 +89,7 @@ const validationSchema = toTypedSchema( confirmPassword: string() .required() .oneOf([yupRef("newPassword")], t("shared.account.change_password_form.errors.passwords_do_not_match")), - }) + }), ); const { errors, meta, handleSubmit } = useForm({ diff --git a/client-app/shared/account/components/forgot-password-form.vue b/client-app/shared/account/components/forgot-password-form.vue index 146914b50..b152e8af3 100644 --- a/client-app/shared/account/components/forgot-password-form.vue +++ b/client-app/shared/account/components/forgot-password-form.vue @@ -50,7 +50,7 @@ const { forgotPassword, loading } = useUser(); const schema = toTypedSchema( object({ email: string().required().email().max(64), - }) + }), ); const { errors, meta, handleSubmit } = useForm({ diff --git a/client-app/shared/account/components/password-tips.vue b/client-app/shared/account/components/password-tips.vue index 84c0b61b2..b1e2434eb 100644 --- a/client-app/shared/account/components/password-tips.vue +++ b/client-app/shared/account/components/password-tips.vue @@ -38,7 +38,7 @@ const requirementsLabels = computed(() => { } if (props.requirements.requiredLength) { result.push( - t("password_tips.required_length", [props.requirements.requiredLength], props.requirements.requiredLength) + t("password_tips.required_length", [props.requirements.requiredLength], props.requirements.requiredLength), ); } if (props.requirements.requiredUniqueChars) { @@ -46,8 +46,8 @@ const requirementsLabels = computed(() => { t( "password_tips.required_unique_chars", [props.requirements.requiredUniqueChars], - props.requirements.requiredUniqueChars - ) + props.requirements.requiredUniqueChars, + ), ); } diff --git a/client-app/shared/account/components/quote-line-items.vue b/client-app/shared/account/components/quote-line-items.vue index 6caabd69a..0907fcd9c 100644 --- a/client-app/shared/account/components/quote-line-items.vue +++ b/client-app/shared/account/components/quote-line-items.vue @@ -207,11 +207,11 @@ defineEmits(); const props = defineProps(); const extendedItems = computed[]>(() => - props.items.map((item: QuoteItemType) => extendLineItem(item)) + props.items.map((item: QuoteItemType) => extendLineItem(item)), ); const subtotal = computed(() => - sumBy(props.items, (item: QuoteItemType) => item.selectedTierPrice!.price!.amount * item.selectedTierPrice!.quantity) + sumBy(props.items, (item: QuoteItemType) => item.selectedTierPrice!.price!.amount * item.selectedTierPrice!.quantity), ); diff --git a/client-app/shared/account/components/reset-password-form.vue b/client-app/shared/account/components/reset-password-form.vue index 44756ef85..f837cbb12 100644 --- a/client-app/shared/account/components/reset-password-form.vue +++ b/client-app/shared/account/components/reset-password-form.vue @@ -85,7 +85,7 @@ const validationSchema = toTypedSchema( confirmPassword: string() .required() .oneOf([yupRef("password")], t("identity_error.PasswordMismatch")), - }) + }), ); const { errors, meta, handleSubmit } = useForm({ diff --git a/client-app/shared/account/components/sign-in-form.vue b/client-app/shared/account/components/sign-in-form.vue index ca9266eeb..ee5b7a1ec 100644 --- a/client-app/shared/account/components/sign-in-form.vue +++ b/client-app/shared/account/components/sign-in-form.vue @@ -92,7 +92,7 @@ const schema = toTypedSchema( object({ email: string().required().email(), password: string().required(), - }) + }), ); const { errors, handleSubmit, values } = useForm({ diff --git a/client-app/shared/account/composables/usePasswordRequirements.ts b/client-app/shared/account/composables/usePasswordRequirements.ts index a6db29af1..da714a061 100644 --- a/client-app/shared/account/composables/usePasswordRequirements.ts +++ b/client-app/shared/account/composables/usePasswordRequirements.ts @@ -12,7 +12,7 @@ export default function usePasswordRequirements() { try { passwordRequirements.value = await innerFetch( "/storefrontapi/account/passwordrequirements", - "GET" + "GET", ); } catch (e) { Logger.error(`${usePasswordRequirements.name}.${fetchPasswordRequirements.name}`, e); diff --git a/client-app/shared/account/composables/useUserOrder.ts b/client-app/shared/account/composables/useUserOrder.ts index e90ee2270..be7f30423 100644 --- a/client-app/shared/account/composables/useUserOrder.ts +++ b/client-app/shared/account/composables/useUserOrder.ts @@ -19,10 +19,10 @@ const order = shallowRef(null); const giftItems = computed(() => (order.value?.items || []).filter((item) => item.isGift)); const orderItems = computed(() => (order.value?.items || []).filter((item) => !item.isGift)); const orderItemsGroupedByVendor = computed[]>(() => - getLineItemsGroupedByVendor(orderItems.value) + getLineItemsGroupedByVendor(orderItems.value), ); const allItemsAreDigital = computed( - () => !!order.value?.items?.every((item) => item.productType === ProductType.Digital) + () => !!order.value?.items?.every((item) => item.productType === ProductType.Digital), ); const shipment = computed(() => order.value?.shipments?.[0]); const payment = computed(() => order.value?.inPayments?.[0]); diff --git a/client-app/shared/account/composables/useUserOrders.ts b/client-app/shared/account/composables/useUserOrders.ts index 653d30287..783974d47 100644 --- a/client-app/shared/account/composables/useUserOrders.ts +++ b/client-app/shared/account/composables/useUserOrders.ts @@ -73,7 +73,7 @@ function getFilterExpression(keyword: string, filterData: OrdersFilterData): str if (filterData.startDate && filterData.endDate) { filterExpression += `createddate:[${dateToIsoDateString(filterData.startDate)} TO ${dateToIsoDateString( - filterData.endDate + filterData.endDate, )}] `; } else if (filterData.startDate) { filterExpression += `createddate:[${dateToIsoDateString(filterData.startDate)} TO] `; diff --git a/client-app/shared/account/composables/useUserQuote.ts b/client-app/shared/account/composables/useUserQuote.ts index 39de277cc..b81c975ce 100644 --- a/client-app/shared/account/composables/useUserQuote.ts +++ b/client-app/shared/account/composables/useUserQuote.ts @@ -14,11 +14,11 @@ import type { QueryQuoteArgs, QuoteType, QuoteAddressType, InputQuoteAddressType const fetching = ref(false); const quote = ref(); -const billingAddress = computed(() => - quote.value?.addresses?.find((address: QuoteAddressType) => address.addressType === AddressType.Billing) +const billingAddress = computed( + () => quote.value?.addresses?.find((address: QuoteAddressType) => address.addressType === AddressType.Billing), ); -const shippingAddress = computed(() => - quote.value?.addresses?.find((address: QuoteAddressType) => address.addressType === AddressType.Shipping) +const shippingAddress = computed( + () => quote.value?.addresses?.find((address: QuoteAddressType) => address.addressType === AddressType.Shipping), ); export default function useUserQuote() { @@ -89,7 +89,7 @@ export default function useUserQuote() { try { const inputAddresses: InputQuoteAddressType[] = addresses.map( (address: QuoteAddressType) => - convertToType(omit(address, ["id", "isDefault", "description"])) + convertToType(omit(address, ["id", "isDefault", "description"])), ); await updateQuoteAddresses({ command: { quoteId, addresses: inputAddresses } }); diff --git a/client-app/shared/broadcast/composables/useBroadcast.ts b/client-app/shared/broadcast/composables/useBroadcast.ts index 97d87fb86..14b2408b0 100644 --- a/client-app/shared/broadcast/composables/useBroadcast.ts +++ b/client-app/shared/broadcast/composables/useBroadcast.ts @@ -23,7 +23,7 @@ interface IUseBroadcastReturn { /** * Enum indicating whether an event will be send to the current or to the other or to the all tabs. */ - tabsType?: TabsType + tabsType?: TabsType, ) => void; } diff --git a/client-app/shared/cart/components/add-to-cart.vue b/client-app/shared/cart/components/add-to-cart.vue index a80c6d127..b8b16a419 100644 --- a/client-app/shared/cart/components/add-to-cart.vue +++ b/client-app/shared/cart/components/add-to-cart.vue @@ -87,23 +87,23 @@ const inputElement = shallowRef(); const isDigital = computed(() => props.product.productType === ProductType.Digital); -const lineItemInCart = computed(() => - cart.value?.items?.find((item) => item.productId === props.product.id) +const lineItemInCart = computed( + () => cart.value?.items?.find((item) => item.productId === props.product.id), ); const countInCart = computed(() => lineItemInCart.value?.quantity || 0); const minQty = computed(() => props.product.minQuantity || 1); const maxQty = computed(() => - Math.min(props.product.availabilityData?.availableQuantity || MAX_VALUE, props.product.maxQuantity || MAX_VALUE) + Math.min(props.product.availabilityData?.availableQuantity || MAX_VALUE, props.product.maxQuantity || MAX_VALUE), ); const disabled = computed( () => loading.value || - (!isDigital.value && (!props.product.availabilityData?.isAvailable || !props.product.availabilityData?.isInStock)) + (!isDigital.value && (!props.product.availabilityData?.isAvailable || !props.product.availabilityData?.isInStock)), ); const buttonText = computed(() => - countInCart.value ? t("common.buttons.update_cart") : t("common.buttons.add_to_cart") + countInCart.value ? t("common.buttons.update_cart") : t("common.buttons.add_to_cart"), ); const rules = computed(() => @@ -113,8 +113,8 @@ const rules = computed(() => .integer() .positive() .min(minQty.value, ({ min }) => t("shared.cart.add_to_cart.errors.min", [min])) - .max(maxQty.value, ({ max }) => t("shared.cart.add_to_cart.errors.max", [max])) - ) + .max(maxQty.value, ({ max }) => t("shared.cart.add_to_cart.errors.max", [max])), + ), ); const enteredQuantity = ref(!disabled.value ? countInCart.value || minQty.value : undefined); diff --git a/client-app/shared/cart/components/cart-line-items.vue b/client-app/shared/cart/components/cart-line-items.vue index 6354c6846..791be3022 100644 --- a/client-app/shared/cart/components/cart-line-items.vue +++ b/client-app/shared/cart/components/cart-line-items.vue @@ -94,20 +94,23 @@ const preparedLineItems = computed(() => prepareLineItems(props.items)); const getValidationErrorTranslation = useCartValidationErrorTranslator(); const validationErrorsByItemId = computed>(() => { - const result: Record = props.validationErrors.reduce((records, item) => { - if (item.objectId) { - const key = item.objectId; - const editedItem = { ...item, errorMessage: getValidationErrorTranslation(item) }; - - if (records[key]) { - records[key].push(editedItem); - } else { - records[key] = [editedItem]; + const result: Record = props.validationErrors.reduce( + (records, item) => { + if (item.objectId) { + const key = item.objectId; + const editedItem = { ...item, errorMessage: getValidationErrorTranslation(item) }; + + if (records[key]) { + records[key].push(editedItem); + } else { + records[key] = [editedItem]; + } } - } - return records; - }, {} as Record); + return records; + }, + {} as Record, + ); return result; }); diff --git a/client-app/shared/cart/composables/useCart.ts b/client-app/shared/cart/composables/useCart.ts index d5ecdd683..7e78e4c6f 100644 --- a/client-app/shared/cart/composables/useCart.ts +++ b/client-app/shared/cart/composables/useCart.ts @@ -57,21 +57,21 @@ const availableShippingMethods = computed(() => cart.value const availablePaymentMethods = computed(() => cart.value?.availablePaymentMethods ?? []); const lineItemsGroupedByVendor = computed[]>(() => - getLineItemsGroupedByVendor(cart.value?.items ?? []) + getLineItemsGroupedByVendor(cart.value?.items ?? []), ); const allItemsAreDigital = computed( - () => !!cart.value?.items?.every((item) => item.productType === ProductType.Digital) + () => !!cart.value?.items?.every((item) => item.productType === ProductType.Digital), ); const addedGiftsByIds = computed(() => keyBy(cart.value?.gifts, "id")); const availableExtendedGifts = computed(() => - (cart.value?.availableGifts || []).map((gift) => ({ ...gift, isAddedInCart: !!addedGiftsByIds.value[gift.id] })) + (cart.value?.availableGifts || []).map((gift) => ({ ...gift, isAddedInCart: !!addedGiftsByIds.value[gift.id] })), ); const hasValidationErrors = computedEager( - () => !!cart.value?.validationErrors?.length || !!cart.value?.items?.some((item) => item.validationErrors?.length) + () => !!cart.value?.validationErrors?.length || !!cart.value?.items?.some((item) => item.validationErrors?.length), ); export default function useCart() { @@ -110,7 +110,7 @@ export default function useCart() { options: { /** @default true */ reloadCart?: boolean; - } = {} + } = {}, ): Promise { const { reloadCart = true } = options; let result = false; @@ -218,7 +218,7 @@ export default function useCart() { async function changeItemQuantity( lineItemId: string, qty: number, - options: ChangeCartItemQuantityOptionsType = {} + options: ChangeCartItemQuantityOptionsType = {}, ): Promise { loading.value = true; @@ -304,7 +304,7 @@ export default function useCart() { async function updateShipment( newShipment: InputShipmentType, - options: { withBroadcast?: boolean } = {} + options: { withBroadcast?: boolean } = {}, ): Promise { const { withBroadcast = false } = options; diff --git a/client-app/shared/cart/utils/index.ts b/client-app/shared/cart/utils/index.ts index e01dbfc0a..b4d8fc480 100644 --- a/client-app/shared/cart/utils/index.ts +++ b/client-app/shared/cart/utils/index.ts @@ -2,7 +2,7 @@ import type { LineItemType, OrderLineItemType, ValidationErrorType } from "@/cor import type { ItemForAddBulkItemsToCartResultsPopupType, OutputBulkItemType } from "@/shared/cart"; export function getLineItemValidationErrorsGroupedBySKU( - errors: ValidationErrorType[] = [] + errors: ValidationErrorType[] = [], ): Record { const result: Record = {}; @@ -18,7 +18,7 @@ export function getLineItemValidationErrorsGroupedBySKU( export function getItemsForAddBulkItemsToCartResultsPopup( inputItems: OrderLineItemType[] | LineItemType[], - resultItems: OutputBulkItemType[] + resultItems: OutputBulkItemType[], ): ItemForAddBulkItemsToCartResultsPopupType[] { const errorsGroupedBySKU: Record = {}; diff --git a/client-app/shared/catalog/components/category.vue b/client-app/shared/catalog/components/category.vue index ffc32c483..4fb58e162 100644 --- a/client-app/shared/catalog/components/category.vue +++ b/client-app/shared/catalog/components/category.vue @@ -451,11 +451,11 @@ const searchParams = computedEager(() => ({ })); const isExistSelectedFacets = computedEager(() => - facets.value.some((facet) => facet.values.some((value) => value.selected)) + facets.value.some((facet) => facet.values.some((value) => value.selected)), ); const isExistSelectedMobileFacets = computedEager(() => - mobileFilters.facets.some((facet) => facet.values.some((value) => value.selected)) + mobileFilters.facets.some((facet) => facet.values.some((value) => value.selected)), ); const isMobileFilterDirty = computedEager( @@ -465,7 +465,7 @@ const isMobileFilterDirty = computedEager( facets: facets.value, inStock: savedInStock.value, branches: savedBranches.value, - } as ProductsFilters) + } as ProductsFilters), ); function sendGASelectItemEvent(product: Product) { @@ -708,7 +708,7 @@ watch( }); } }, - { immediate: true } + { immediate: true }, ); watch( @@ -717,14 +717,14 @@ watch( if (value !== oldValue) { setFiltersPosition(); } - } + }, ); watch( () => cHeight.value, () => { setFiltersPosition(); - } + }, ); watchDebounced( @@ -734,6 +734,6 @@ watchDebounced( immediate: true, flush: "post", debounce: 20, - } + }, ); diff --git a/client-app/shared/catalog/components/discount-badge.vue b/client-app/shared/catalog/components/discount-badge.vue index 636388c3c..497d690ac 100644 --- a/client-app/shared/catalog/components/discount-badge.vue +++ b/client-app/shared/catalog/components/discount-badge.vue @@ -46,6 +46,6 @@ const props = defineProps({ }); const discount = computedEager(() => - props.price.discountPercent >= 0.05 ? `${Math.round(props.price.discountPercent * 100)}%` : null + props.price.discountPercent >= 0.05 ? `${Math.round(props.price.discountPercent * 100)}%` : null, ); diff --git a/client-app/shared/catalog/components/facet-filter.vue b/client-app/shared/catalog/components/facet-filter.vue index ad483572b..25bbacd9b 100644 --- a/client-app/shared/catalog/components/facet-filter.vue +++ b/client-app/shared/catalog/components/facet-filter.vue @@ -87,7 +87,7 @@ const searchKeyword = ref(""); const searchFieldVisible = computed(() => facet.value.values.length > SEARCH_FIELD_AMOUNT); const searchedValues = computed(() => { const filtered = facet.value.values.filter( - (item) => item.label.toLowerCase().indexOf(searchKeyword.value.toLowerCase()) >= 0 + (item) => item.label.toLowerCase().indexOf(searchKeyword.value.toLowerCase()) >= 0, ); // 1 - for fade at the bottom return isExpanded.value ? filtered : filtered.slice(0, SHOW_MORE_AMOUNT + 1); @@ -107,7 +107,7 @@ const isAnchorAdded = computed(() => searchedValues.value.length > MAX_ITEMS_VIS const hasFade = computed( () => (searchedValues.value.length > SHOW_MORE_AMOUNT && !isExpanded.value) || - (isAnchorAdded.value && !fadeVisibilityAnchorIsVisible.value) + (isAnchorAdded.value && !fadeVisibilityAnchorIsVisible.value), ); diff --git a/client-app/shared/catalog/components/product-card-grid.vue b/client-app/shared/catalog/components/product-card-grid.vue index c38422062..6a1a55d58 100644 --- a/client-app/shared/catalog/components/product-card-grid.vue +++ b/client-app/shared/catalog/components/product-card-grid.vue @@ -239,7 +239,7 @@ const link = computed(() => getProductRoute(props.product.id, const target = computed(() => getLinkTarget(props.openInNewTab)); const isDigital = computed(() => props.product.productType === ProductType.Digital); const properties = computed(() => - Object.values(getPropertiesGroupedByName(props.product.properties ?? [], PropertyType.Product)).slice(0, 3) + Object.values(getPropertiesGroupedByName(props.product.properties ?? [], PropertyType.Product)).slice(0, 3), ); function slideChanged(swiper: SwiperInstance) { diff --git a/client-app/shared/catalog/components/product-card-list.vue b/client-app/shared/catalog/components/product-card-list.vue index 94676abf1..f6d4dff29 100644 --- a/client-app/shared/catalog/components/product-card-list.vue +++ b/client-app/shared/catalog/components/product-card-list.vue @@ -174,7 +174,7 @@ const link = computed(() => getProductRoute(props.product.id, const target = computed(() => getLinkTarget(props.openInNewTab)); const isDigital = computed(() => props.product.productType === ProductType.Digital); const properties = computed(() => - Object.values(getPropertiesGroupedByName(props.product.properties ?? [], PropertyType.Product)).slice(0, 3) + Object.values(getPropertiesGroupedByName(props.product.properties ?? [], PropertyType.Product)).slice(0, 3), ); diff --git a/client-app/shared/catalog/components/product-price-block.vue b/client-app/shared/catalog/components/product-price-block.vue index 5d8729e8b..9060ad779 100644 --- a/client-app/shared/catalog/components/product-price-block.vue +++ b/client-app/shared/catalog/components/product-price-block.vue @@ -151,8 +151,8 @@ function openAddToListModal() { const mailToLink = computed( () => `mailto:?subject=${encodeURIComponent( - t("shared.catalog.product_details.price_block.product_email_title", [props.product?.name]) - )}&body=${encodeURIComponent(pageUrl.value)}` + t("shared.catalog.product_details.price_block.product_email_title", [props.product?.name]), + )}&body=${encodeURIComponent(pageUrl.value)}`, ); function getProductSocialShareUrl(urlTemplate: string, url: string): string { diff --git a/client-app/shared/catalog/components/product-variation-card.vue b/client-app/shared/catalog/components/product-variation-card.vue index c5b6df64e..3b45f4e2e 100644 --- a/client-app/shared/catalog/components/product-variation-card.vue +++ b/client-app/shared/catalog/components/product-variation-card.vue @@ -77,7 +77,7 @@ interface IProps { const props = defineProps(); const propertiesByName = computed(() => - getPropertiesGroupedByName(props.variation.properties ?? [], PropertyType.Variation) + getPropertiesGroupedByName(props.variation.properties ?? [], PropertyType.Variation), ); const isDigital = computed(() => props.variation.productType === ProductType.Digital); diff --git a/client-app/shared/catalog/components/product/properties.vue b/client-app/shared/catalog/components/product/properties.vue index 3ebad1eec..6d8986a89 100644 --- a/client-app/shared/catalog/components/product/properties.vue +++ b/client-app/shared/catalog/components/product/properties.vue @@ -39,7 +39,7 @@ const props = defineProps(); const config = inject(configInjectionKey, {}); const properties = computed(() => - Object.values(getPropertiesGroupedByName(props.product.properties ?? [], PropertyType.Product)) + Object.values(getPropertiesGroupedByName(props.product.properties ?? [], PropertyType.Product)), ); const showVendor = computed(() => config.vendor_enabled && !props.product.hasVariations && props.product.vendor); diff --git a/client-app/shared/catalog/components/products-filters.vue b/client-app/shared/catalog/components/products-filters.vue index 18bab9387..efa910447 100644 --- a/client-app/shared/catalog/components/products-filters.vue +++ b/client-app/shared/catalog/components/products-filters.vue @@ -102,25 +102,25 @@ const localFilters = shallowReactive({ facets: [], inStock: fal watch( () => props.filters.facets, (newFacets) => (localFilters.facets = cloneDeep(newFacets)), - { immediate: true } + { immediate: true }, ); watch( () => props.filters.inStock, (newValue) => (localFilters.inStock = newValue), - { immediate: true } + { immediate: true }, ); watch( () => props.filters.branches, (newValue) => (localFilters.branches = newValue.slice()), - { immediate: true } + { immediate: true }, ); watch( () => props.keyword, (newKeyword) => (localKeyword.value = newKeyword ?? ""), - { immediate: true } + { immediate: true }, ); const isAppliedKeyword = eagerComputed(() => localKeyword.value === props.keyword); diff --git a/client-app/shared/catalog/components/vendor.vue b/client-app/shared/catalog/components/vendor.vue index 14c60bb32..94decde5b 100644 --- a/client-app/shared/catalog/components/vendor.vue +++ b/client-app/shared/catalog/components/vendor.vue @@ -23,6 +23,6 @@ const props = withDefaults(defineProps(), { }); const displayRating = computed( - () => props.withRating && props.vendor.rating?.reviewCount !== undefined && props.vendor.rating?.reviewCount > 0 + () => props.withRating && props.vendor.rating?.reviewCount !== undefined && props.vendor.rating?.reviewCount > 0, ); diff --git a/client-app/shared/catalog/composables/useProducts.ts b/client-app/shared/catalog/composables/useProducts.ts index 49423ea7e..c78734238 100644 --- a/client-app/shared/catalog/composables/useProducts.ts +++ b/client-app/shared/catalog/composables/useProducts.ts @@ -19,7 +19,7 @@ export default ( withImages?: boolean; /** @default config.zero_price_product_enabled */ withZeroPrice?: boolean; - } = {} + } = {}, ) => { const config = inject(configInjectionKey, {}); const { @@ -43,8 +43,8 @@ export default ( result[product.id] = { index, product }; return result; }, - {} as Record - ) + {} as Record, + ), ); function setFacets({ termFacets = [], rangeFacets = [] }: { termFacets?: TermFacet[]; rangeFacets?: RangeFacet[] }) { @@ -57,7 +57,7 @@ export default ( facets.value = Array().concat( termFacets.map(termFacetToCommonFacet), - rangeFacets.map(rangeFacetToCommonFacet) + rangeFacets.map(rangeFacetToCommonFacet), ); } @@ -125,7 +125,7 @@ export default ( return Array().concat( term_facets.map(termFacetToCommonFacet), - range_facets.map(rangeFacetToCommonFacet) + range_facets.map(rangeFacetToCommonFacet), ); } catch (e) { Logger.error(`useProducts.${getFacets.name}`, e); diff --git a/client-app/shared/checkout/components/billing-details-section.vue b/client-app/shared/checkout/components/billing-details-section.vue index a27c3020b..51e473bd3 100644 --- a/client-app/shared/checkout/components/billing-details-section.vue +++ b/client-app/shared/checkout/components/billing-details-section.vue @@ -113,7 +113,7 @@ const poNumber = useVModel(props, "purchaseOrderNumber", emit); const address = computed(() => !!props.shipment && billingAddressEqualsShipping.value ? props.shipment?.deliveryAddress - : props.payment?.billingAddress + : props.payment?.billingAddress, ); const method = computed({ diff --git a/client-app/shared/checkout/components/order-summary.vue b/client-app/shared/checkout/components/order-summary.vue index 1ffb53c81..6bf6ed04f 100644 --- a/client-app/shared/checkout/components/order-summary.vue +++ b/client-app/shared/checkout/components/order-summary.vue @@ -119,7 +119,7 @@ const getDiscountAmmount = (discount: DiscountType | OrderDiscountType) => { }; const lineItemsDiscountTotal = computed(() => - sumBy(props.cart.items, (item) => item.discountTotal?.amount || 0) + sumBy(props.cart.items, (item) => item.discountTotal?.amount || 0), ); const hasDiscounts = computed(() => props.cart.discounts?.length || lineItemsDiscountTotal.value > 0); diff --git a/client-app/shared/checkout/components/select-address-modal.vue b/client-app/shared/checkout/components/select-address-modal.vue index 6762bf994..f0ad2351a 100644 --- a/client-app/shared/checkout/components/select-address-modal.vue +++ b/client-app/shared/checkout/components/select-address-modal.vue @@ -220,7 +220,7 @@ const itemsPerPage = ref(4); const pages = computed(() => Math.ceil(props.addresses.length / itemsPerPage.value)); const paginatedAddresses = computed(() => - props.addresses.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value) + props.addresses.slice((page.value - 1) * itemsPerPage.value, page.value * itemsPerPage.value), ); const columns = computed(() => @@ -237,7 +237,7 @@ const columns = computed(() => { id: "phone", title: t("common.labels.phone") }, { id: "email", title: t("common.labels.email") }, { id: "id", title: t("common.labels.active_address"), align: "center" }, - ] + ], ); const onPageChange = async (newPage: number) => { diff --git a/client-app/shared/checkout/components/shipping-details-section.vue b/client-app/shared/checkout/components/shipping-details-section.vue index faecc2e53..fb73dbeb7 100644 --- a/client-app/shared/checkout/components/shipping-details-section.vue +++ b/client-app/shared/checkout/components/shipping-details-section.vue @@ -80,7 +80,7 @@ const address = computed(() => props.shipment?.deli const method = computed({ get: () => props.methods.find( - (item) => item.id === props.shipment?.shipmentMethodCode + "_" + props.shipment?.shipmentMethodOption + (item) => item.id === props.shipment?.shipmentMethodCode + "_" + props.shipment?.shipmentMethodOption, ), set: (value?: ShippingMethodType) => value && emit("change:method", value), }); diff --git a/client-app/shared/checkout/composables/useCheckout.ts b/client-app/shared/checkout/composables/useCheckout.ts index a1ca58432..34a842d97 100644 --- a/client-app/shared/checkout/composables/useCheckout.ts +++ b/client-app/shared/checkout/composables/useCheckout.ts @@ -99,7 +99,7 @@ export default function useCheckout() { const isValidDeliveryAddress = computed(() => !!shipment.value?.deliveryAddress); const isValidBillingAddress = computed( - () => (!allItemsAreDigital.value && billingAddressEqualsShipping.value) || !!payment.value?.billingAddress + () => (!allItemsAreDigital.value && billingAddressEqualsShipping.value) || !!payment.value?.billingAddress, ); const isValidShipmentMethod = computed(() => !!shipment.value?.shipmentMethodCode); const isValidPaymentMethod = computed(() => !!payment.value?.paymentGatewayCode); @@ -108,7 +108,7 @@ export default function useCheckout() { const isValidCheckout = computed(() => allItemsAreDigital.value ? isValidPayment.value && !hasValidationErrors.value - : isValidShipment.value && isValidPayment.value && !hasValidationErrors.value + : isValidShipment.value && isValidPayment.value && !hasValidationErrors.value, ); const selectedPaymentMethodGroupType = computed(() => { @@ -120,7 +120,7 @@ export default function useCheckout() { () => isAuthenticated.value && !!selectedPaymentMethodGroupType.value && - selectedPaymentMethodGroupType.value !== PaymentMethodGroupType[PaymentMethodGroupType.Manual] + selectedPaymentMethodGroupType.value !== PaymentMethodGroupType[PaymentMethodGroupType.Manual], ); const addresses = computed(() => { @@ -134,11 +134,11 @@ export default function useCheckout() { const isPurchaseOrderNumberEnabled = computed( () => !!selectedPaymentMethodGroupType.value && - selectedPaymentMethodGroupType.value === PaymentMethodGroupType[PaymentMethodGroupType.Manual] + selectedPaymentMethodGroupType.value === PaymentMethodGroupType[PaymentMethodGroupType.Manual], ); const allOrderItemsAreDigital = computed( - () => !!placedOrder.value?.items?.every((item) => item.productType === ProductType.Digital) + () => !!placedOrder.value?.items?.every((item) => item.productType === ProductType.Digital), ); function isExistAddress(address: AnyAddressType): boolean { @@ -153,7 +153,7 @@ export default function useCheckout() { shipmentMethodCode: method.code, shipmentMethodOption: method.optionName, }, - options + options, ); ga.addShippingInfo(cart.value!, {}, method.optionName); @@ -165,7 +165,7 @@ export default function useCheckout() { id: payment.value?.id, paymentGatewayCode: method.code, }, - options + options, ); ga.addPaymentInfo(cart.value!, {}, method.code); @@ -228,7 +228,7 @@ export default function useCheckout() { id: payment.value?.id, billingAddress: inputAddress, }, - { withBroadcast: true } + { withBroadcast: true }, ); } else if ( addressType === AddressType.Shipping && @@ -239,14 +239,14 @@ export default function useCheckout() { id: shipment.value?.id, deliveryAddress: inputAddress, }, - { withBroadcast: true } + { withBroadcast: true }, ); } } function openAddOrUpdateAddressModal( addressType: AddressType, - editableAddress?: MemberAddressType | CartAddressType + editableAddress?: MemberAddressType | CartAddressType, ) { openPopup({ component: VcAddOrUpdateAddressModal, diff --git a/client-app/shared/company/components/add-or-update-company-address-modal.vue b/client-app/shared/company/components/add-or-update-company-address-modal.vue index 5f2bba6e8..e43c41568 100644 --- a/client-app/shared/company/components/add-or-update-company-address-modal.vue +++ b/client-app/shared/company/components/add-or-update-company-address-modal.vue @@ -4,7 +4,7 @@ $t( !address ? 'shared.company.add_or_update_address_dialog.create_title' - : 'shared.company.add_or_update_address_dialog.edit_title' + : 'shared.company.add_or_update_address_dialog.edit_title', ) " hide-actions diff --git a/client-app/shared/company/components/filter-facet.vue b/client-app/shared/company/components/filter-facet.vue index 603f0579d..8e3c9cccb 100644 --- a/client-app/shared/company/components/filter-facet.vue +++ b/client-app/shared/company/components/filter-facet.vue @@ -39,6 +39,6 @@ function change() { watch( () => props.modelValue, - (value) => (facet.value = _.cloneDeep(value)) + (value) => (facet.value = _.cloneDeep(value)), ); diff --git a/client-app/shared/company/components/invite-member-modal.vue b/client-app/shared/company/components/invite-member-modal.vue index 9d44750bb..9ac5ec45c 100644 --- a/client-app/shared/company/components/invite-member-modal.vue +++ b/client-app/shared/company/components/invite-member-modal.vue @@ -127,7 +127,7 @@ const { value: emails } = useField( (value: string | undefined) => { const emailAddresses: string[] = getEmailAddresses(value); return emailAddresses.length <= MAX_INVITED_CONTACTS_COUNT; - } + }, ) .test( "email-length", @@ -135,10 +135,10 @@ const { value: emails } = useField( (value: string | undefined) => { const emailAddresses: string[] = getEmailAddresses(value); return emailAddresses.every((emailAddress: string) => emailAddress.length <= MAX_EMAIL_LENGTH); - } + }, ) - .matches(emailsValidationPattern, t("common.messages.invalid_value")) - ) + .matches(emailsValidationPattern, t("common.messages.invalid_value")), + ), ); const send = handleSubmit(async (data) => { diff --git a/client-app/shared/company/components/role-icon.vue b/client-app/shared/company/components/role-icon.vue index 8daf44d4c..110f0fa6a 100644 --- a/client-app/shared/company/components/role-icon.vue +++ b/client-app/shared/company/components/role-icon.vue @@ -17,6 +17,6 @@ const fallback = ref(false); watch( () => props.roleId, - () => (fallback.value = false) + () => (fallback.value = false), ); diff --git a/client-app/shared/company/composables/useOrganizationContacts.ts b/client-app/shared/company/composables/useOrganizationContacts.ts index 73bf7e4fe..dd965dabd 100644 --- a/client-app/shared/company/composables/useOrganizationContacts.ts +++ b/client-app/shared/company/composables/useOrganizationContacts.ts @@ -55,7 +55,7 @@ export default function useOrganizationContacts(organizationId: MaybeRef const contactFullNameFallback: string = t("pages.company.members.invite_sent"); contacts.value = _.map(response.items, (item: ContactType) => - convertToExtendedContact(item, contactFullNameFallback) + convertToExtendedContact(item, contactFullNameFallback), ); pages.value = Math.ceil((response.totalCount ?? 0) / itemsPerPage.value); } catch (e) { @@ -125,7 +125,7 @@ export default function useOrganizationContacts(organizationId: MaybeRef } async function changeContactOrganizationRole( - payload: InputChangeOrganizationContactRoleType + payload: InputChangeOrganizationContactRoleType, ): Promise { loading.value = true; diff --git a/client-app/shared/company/composables/useOrganizationContactsFilterFacets.ts b/client-app/shared/company/composables/useOrganizationContactsFilterFacets.ts index 9da621591..9165f3580 100644 --- a/client-app/shared/company/composables/useOrganizationContactsFilterFacets.ts +++ b/client-app/shared/company/composables/useOrganizationContactsFilterFacets.ts @@ -50,7 +50,7 @@ export default function useOrganizationContactsFilterFacets() { const numberOfFacetsApplied = computedEager(() => appliedFacets.value.reduce((result, filterFacet) => { return result + filterFacet.values.filter((value) => value.selected).length; - }, 0) + }, 0), ); function applyFacets() { diff --git a/client-app/shared/compare/components/add-to-compare-catalog.vue b/client-app/shared/compare/components/add-to-compare-catalog.vue index 598fff9d8..68ec5791a 100644 --- a/client-app/shared/compare/components/add-to-compare-catalog.vue +++ b/client-app/shared/compare/components/add-to-compare-catalog.vue @@ -49,7 +49,7 @@ const isInCompareList = eagerComputed(() => productsIds.value.includes( const tooltipText = computed(() => isInCompareList.value ? t("shared.compare.add_to_compare.tooltips.remove") - : t("shared.compare.add_to_compare.tooltips.add") + : t("shared.compare.add_to_compare.tooltips.add"), ); const toggle = () => { diff --git a/client-app/shared/fulfillmentCenters/components/branches-dialog.vue b/client-app/shared/fulfillmentCenters/components/branches-dialog.vue index 06babb7aa..c6655308d 100644 --- a/client-app/shared/fulfillmentCenters/components/branches-dialog.vue +++ b/client-app/shared/fulfillmentCenters/components/branches-dialog.vue @@ -225,7 +225,7 @@ function toggleShowSelectedBranchesMobile(show: boolean) { } const isSaveButtonDisabled = computed( - () => JSON.stringify(props.selectedBranches) === JSON.stringify(selectedBranchesIds.value) + () => JSON.stringify(props.selectedBranches) === JSON.stringify(selectedBranchesIds.value), ); function save() { diff --git a/client-app/shared/layout/components/header/_internal/bottom-header.vue b/client-app/shared/layout/components/header/_internal/bottom-header.vue index a1e126598..20d83bb33 100644 --- a/client-app/shared/layout/components/header/_internal/bottom-header.vue +++ b/client-app/shared/layout/components/header/_internal/bottom-header.vue @@ -107,7 +107,7 @@ const { bottom } = useElementBounding(bottomHeader); const catalogLink = router.resolve({ name: "Catalog" }).fullPath; const catalogButtonIcon = computed(() => (catalogMenuVisible.value ? "chevron-up" : "chevron-down")); const catalogMenuStyle = computed(() => - bottom.value ? { maxHeight: `calc(100vh - ${bottom.value}px)` } : undefined + bottom.value ? { maxHeight: `calc(100vh - ${bottom.value}px)` } : undefined, ); onClickOutside( @@ -115,7 +115,7 @@ onClickOutside( () => { catalogMenuVisible.value = false; }, - { ignore: [showCatalogMenuButton] } + { ignore: [showCatalogMenuButton] }, ); syncRefs(catalogMenuVisible, useScrollLock(document.body)); diff --git a/client-app/shared/layout/components/header/_internal/catalog-menu-item.vue b/client-app/shared/layout/components/header/_internal/catalog-menu-item.vue index 3f4cb061a..66204eab8 100644 --- a/client-app/shared/layout/components/header/_internal/catalog-menu-item.vue +++ b/client-app/shared/layout/components/header/_internal/catalog-menu-item.vue @@ -58,7 +58,7 @@ const showAll = ref(false); const children = computed(() => props.item.children || []); const visibleChildren = computed(() => - showAll.value ? children.value : children.value.slice(0, SHORT_VIEW_ITEMS_COUNT) + showAll.value ? children.value : children.value.slice(0, SHORT_VIEW_ITEMS_COUNT), ); const buttonIcon = computed(() => (showAll.value ? "chevron-up" : "chevron-down")); diff --git a/client-app/shared/layout/components/header/_internal/mobile-header.vue b/client-app/shared/layout/components/header/_internal/mobile-header.vue index 11a021365..ac4e4a59f 100644 --- a/client-app/shared/layout/components/header/_internal/mobile-header.vue +++ b/client-app/shared/layout/components/header/_internal/mobile-header.vue @@ -110,7 +110,7 @@ const { height } = useElementSize(headerElement); const { cart } = useCart(); const placeholderStyle = computed(() => - height.value ? { height: height.value + "px" } : undefined + height.value ? { height: height.value + "px" } : undefined, ); const preparedCartItemsQuantity = computed(() => numberToShortString(cart.value?.itemsQuantity ?? 0)); diff --git a/client-app/shared/layout/components/header/_internal/mobile-menu.vue b/client-app/shared/layout/components/header/_internal/mobile-menu.vue index 700c0e639..b46facb1f 100644 --- a/client-app/shared/layout/components/header/_internal/mobile-menu.vue +++ b/client-app/shared/layout/components/header/_internal/mobile-menu.vue @@ -277,7 +277,7 @@ const homeMenuItem = computed(() => route: "/", title: t("shared.layout.header.menu.home"), icon: "/static/images/dashboard/icons/dashboard.svg#main", - } + }, ); async function signOut() { diff --git a/client-app/shared/layout/components/nested-mobile-header/nested-mobile-header.ts b/client-app/shared/layout/components/nested-mobile-header/nested-mobile-header.ts index 00c0f74bb..0b1541ea0 100644 --- a/client-app/shared/layout/components/nested-mobile-header/nested-mobile-header.ts +++ b/client-app/shared/layout/components/nested-mobile-header/nested-mobile-header.ts @@ -37,7 +37,7 @@ export default defineComponent({ warn("Component content is empty."); } }, - { immediate: true } + { immediate: true }, ); watchEffect(async () => { diff --git a/client-app/shared/layout/components/search-bar/search-bar.vue b/client-app/shared/layout/components/search-bar/search-bar.vue index ddb4a2618..9f405abcf 100644 --- a/client-app/shared/layout/components/search-bar/search-bar.vue +++ b/client-app/shared/layout/components/search-bar/search-bar.vue @@ -201,7 +201,7 @@ const categoriesColumns = computed>(() => { }); const isExistResults = computed( - () => categories.value.length || products.value.length || suggestions.value.length || pages.value.length + () => categories.value.length || products.value.length || suggestions.value.length || pages.value.length, ); async function searchAndShowDropdownResults() { diff --git a/client-app/shared/layout/utils/index.ts b/client-app/shared/layout/utils/index.ts index c4844dda6..b27cd97d6 100644 --- a/client-app/shared/layout/utils/index.ts +++ b/client-app/shared/layout/utils/index.ts @@ -9,7 +9,7 @@ export function highlightSearchText(text: string, rawSearchText: string): string const charactersToDelete = escapeRegExp("'`\"\\@#$%^&()_.,!?<>:;[]{}/|*+-="); const preparedText = prepareSearchText(rawSearchText); const searchRegexp = escapeRegExp( - preparedText.replace(new RegExp(`^[\\s${charactersToDelete}]+|[\\s${charactersToDelete}]+$`), "") + preparedText.replace(new RegExp(`^[\\s${charactersToDelete}]+|[\\s${charactersToDelete}]+$`), ""), ); return text.replace(new RegExp(searchRegexp, "i"), "$&"); diff --git a/client-app/shared/payment/components/bank-card-form.vue b/client-app/shared/payment/components/bank-card-form.vue index a25bed2ab..7ff64fc9b 100644 --- a/client-app/shared/payment/components/bank-card-form.vue +++ b/client-app/shared/payment/components/bank-card-form.vue @@ -115,7 +115,7 @@ const validationSchema = toTypedSchema( then: (stringSchema) => stringSchema.length(2), }), securityCode: string().required().min(3).max(4), - }) + }), ); const { values, meta, errors: formErrors } = useForm({ validationSchema, initialValues }); @@ -136,7 +136,7 @@ const expirationDate = computed({ }); const expirationDateErrors = computed(() => - [formErrors.value.month, formErrors.value.year, props.errors.month, props.errors.year].filter(Boolean).join(". ") + [formErrors.value.month, formErrors.value.year, props.errors.month, props.errors.year].filter(Boolean).join(". "), ); function input() { @@ -146,12 +146,12 @@ function input() { watch( () => props.modelValue, (value) => (initialValues.value = clone(value)), - { deep: true } + { deep: true }, ); watch( () => meta.value.valid, (value) => emit("update:valid", value), - { immediate: true } + { immediate: true }, ); diff --git a/client-app/shared/static-content/composables/useTemplate.ts b/client-app/shared/static-content/composables/useTemplate.ts index 563baa06d..9eea32e09 100644 --- a/client-app/shared/static-content/composables/useTemplate.ts +++ b/client-app/shared/static-content/composables/useTemplate.ts @@ -8,7 +8,7 @@ const template: { [template: string]: Ref } = {}; export default function useTemplate( templateName: string, - pageContent: PageTemplate | null = null + pageContent: PageTemplate | null = null, ): Ref { if (!template[templateName]) { template[templateName] = ref(null); diff --git a/client-app/shared/wishlists/components/add-to-list.vue b/client-app/shared/wishlists/components/add-to-list.vue index 2229c756e..d0c41870d 100644 --- a/client-app/shared/wishlists/components/add-to-list.vue +++ b/client-app/shared/wishlists/components/add-to-list.vue @@ -76,7 +76,7 @@ function openAddToListModal() { inWishlist: isInList, }, ], - TabsType.ALL + TabsType.ALL, ); }, }, diff --git a/client-app/shared/wishlists/components/wishlist-product-item.vue b/client-app/shared/wishlists/components/wishlist-product-item.vue index 59391e6da..3fcfcabc0 100644 --- a/client-app/shared/wishlists/components/wishlist-product-item.vue +++ b/client-app/shared/wishlists/components/wishlist-product-item.vue @@ -88,7 +88,7 @@ defineEmits<{ const props = defineProps(); const link = computed(() => - props.listItem.product ? getProductRoute(props.listItem.product.id, props.listItem.product.slug) : undefined + props.listItem.product ? getProductRoute(props.listItem.product.id, props.listItem.product.slug) : undefined, ); const productAvailable = computedEager(() => !!props.listItem.product); diff --git a/client-app/ui-kit/components/atoms/checkbox/vc-checkbox.vue b/client-app/ui-kit/components/atoms/checkbox/vc-checkbox.vue index be96b7ce6..41039b359 100644 --- a/client-app/ui-kit/components/atoms/checkbox/vc-checkbox.vue +++ b/client-app/ui-kit/components/atoms/checkbox/vc-checkbox.vue @@ -51,7 +51,7 @@ const props = defineProps({ }); const checked = computed(() => - typeof props.modelValue === "boolean" ? props.modelValue : props.modelValue.includes(props.value) + typeof props.modelValue === "boolean" ? props.modelValue : props.modelValue.includes(props.value), ); function change() { diff --git a/client-app/ui-kit/components/atoms/count-in-cart/vc-count-in-cart.vue b/client-app/ui-kit/components/atoms/count-in-cart/vc-count-in-cart.vue index fb132c215..58ad89870 100644 --- a/client-app/ui-kit/components/atoms/count-in-cart/vc-count-in-cart.vue +++ b/client-app/ui-kit/components/atoms/count-in-cart/vc-count-in-cart.vue @@ -23,8 +23,8 @@ const props = defineProps({ const { cart } = useCart(); -const lineItemInCart = computed(() => - cart.value?.items?.find((item) => item.productId === props.productId) +const lineItemInCart = computed( + () => cart.value?.items?.find((item) => item.productId === props.productId), ); const countInCart = eagerComputed(() => lineItemInCart.value?.quantity || 0); diff --git a/client-app/ui-kit/components/atoms/icon/vc-icon.vue b/client-app/ui-kit/components/atoms/icon/vc-icon.vue index 24c82a101..a37615a82 100644 --- a/client-app/ui-kit/components/atoms/icon/vc-icon.vue +++ b/client-app/ui-kit/components/atoms/icon/vc-icon.vue @@ -22,7 +22,7 @@ const style = computed(() => width: `${props.size}px`, height: `${props.size}px`, } - : {} + : {}, ); const sizeClass = computed(() => (typeof props.size === "string" ? `vc-icon--size--${props.size}` : "")); diff --git a/client-app/ui-kit/components/atoms/image/vc-image.vue b/client-app/ui-kit/components/atoms/image/vc-image.vue index 46bf210c5..5b5f5c323 100644 --- a/client-app/ui-kit/components/atoms/image/vc-image.vue +++ b/client-app/ui-kit/components/atoms/image/vc-image.vue @@ -86,6 +86,6 @@ watch( () => { fallbackEnabled.value = false; originalEnabled.value = false; - } + }, ); diff --git a/client-app/ui-kit/components/atoms/in-stock/vc-in-stock.vue b/client-app/ui-kit/components/atoms/in-stock/vc-in-stock.vue index ef1856282..a5842a486 100644 --- a/client-app/ui-kit/components/atoms/in-stock/vc-in-stock.vue +++ b/client-app/ui-kit/components/atoms/in-stock/vc-in-stock.vue @@ -57,7 +57,7 @@ const MAX_DISPLAY_IN_STOCK_QUANTITY = 9999; const inStockQuantityLabel = computed(() => props.quantity && props.quantity > MAX_DISPLAY_IN_STOCK_QUANTITY ? `${MAX_DISPLAY_IN_STOCK_QUANTITY}+` - : props.quantity!.toString() + : props.quantity!.toString(), ); diff --git a/client-app/ui-kit/components/atoms/popover/vc-popover.vue b/client-app/ui-kit/components/atoms/popover/vc-popover.vue index aa99ade0d..5972f78e1 100644 --- a/client-app/ui-kit/components/atoms/popover/vc-popover.vue +++ b/client-app/ui-kit/components/atoms/popover/vc-popover.vue @@ -93,7 +93,7 @@ onClickOutside( togglePopover(false); } }, - { ignore: [triggerNode] } + { ignore: [triggerNode] }, ); diff --git a/client-app/ui-kit/components/atoms/price-display-catalog/vc-price-display-catalog.vue b/client-app/ui-kit/components/atoms/price-display-catalog/vc-price-display-catalog.vue index 190dcd41c..e162dc629 100644 --- a/client-app/ui-kit/components/atoms/price-display-catalog/vc-price-display-catalog.vue +++ b/client-app/ui-kit/components/atoms/price-display-catalog/vc-price-display-catalog.vue @@ -25,6 +25,6 @@ const props = defineProps({ }); const isSignFirst = computed( - () => (props.value?.formattedAmount.search(/\d/) && props.value?.formattedAmount.search(/\d/) > 0) || false + () => (props.value?.formattedAmount.search(/\d/) && props.value?.formattedAmount.search(/\d/) > 0) || false, ); diff --git a/client-app/ui-kit/components/atoms/tooltip/vc-tooltip.vue b/client-app/ui-kit/components/atoms/tooltip/vc-tooltip.vue index ba852d2b7..033659d32 100644 --- a/client-app/ui-kit/components/atoms/tooltip/vc-tooltip.vue +++ b/client-app/ui-kit/components/atoms/tooltip/vc-tooltip.vue @@ -94,7 +94,7 @@ onClickOutside( () => { toggleTooltip(false); }, - { ignore: [triggerNode] } + { ignore: [triggerNode] }, ); onUnmounted(() => { diff --git a/client-app/ui-kit/components/atoms/total-display/vc-total-display.vue b/client-app/ui-kit/components/atoms/total-display/vc-total-display.vue index b709c1a46..3b536fec9 100644 --- a/client-app/ui-kit/components/atoms/total-display/vc-total-display.vue +++ b/client-app/ui-kit/components/atoms/total-display/vc-total-display.vue @@ -26,6 +26,6 @@ const formattedAmount = computed(() => new Intl.NumberFormat(props.cultureName, { currency: props.currencyCode, style: "currency", - }).format(props.amount) + }).format(props.amount), ); diff --git a/client-app/ui-kit/components/molecules/address-form/vc-address-form.vue b/client-app/ui-kit/components/molecules/address-form/vc-address-form.vue index 6546edbdf..cc6361cb7 100644 --- a/client-app/ui-kit/components/molecules/address-form/vc-address-form.vue +++ b/client-app/ui-kit/components/molecules/address-form/vc-address-form.vue @@ -314,6 +314,6 @@ watch( initialValues.value = clone(value || _emptyAddress); setValues(initialValues.value); }, - { deep: true } + { deep: true }, ); diff --git a/client-app/ui-kit/components/molecules/carousel/vc-carousel.vue b/client-app/ui-kit/components/molecules/carousel/vc-carousel.vue index f75ef1439..0a847a46e 100644 --- a/client-app/ui-kit/components/molecules/carousel/vc-carousel.vue +++ b/client-app/ui-kit/components/molecules/carousel/vc-carousel.vue @@ -80,7 +80,7 @@ const navigationParams = computed(() => hiddenClass: "vc-carousel__btn--hidden", disabledClass: "vc-carousel__btn--disabled", } - : false + : false, ); const paginationParams = computed(() => @@ -88,7 +88,7 @@ const paginationParams = computed(() => ? { clickable: true, } - : false + : false, ); diff --git a/client-app/ui-kit/components/molecules/collapsible-content/vc-collapsible-content.vue b/client-app/ui-kit/components/molecules/collapsible-content/vc-collapsible-content.vue index 74cd0d997..026ee16bf 100644 --- a/client-app/ui-kit/components/molecules/collapsible-content/vc-collapsible-content.vue +++ b/client-app/ui-kit/components/molecules/collapsible-content/vc-collapsible-content.vue @@ -48,7 +48,7 @@ const { height: contentWrapperElementHeight } = useElementSize(contentWrapperEle const { height: contentElementHeight } = useElementSize(contentElement); const showSeeMoreButton = computed( - () => contentElementHeight.value > contentWrapperElementHeight.value || showAll.value + () => contentElementHeight.value > contentWrapperElementHeight.value || showAll.value, ); watchEffect(() => { diff --git a/client-app/ui-kit/components/molecules/expansion-panel/vc-expansion-panel.vue b/client-app/ui-kit/components/molecules/expansion-panel/vc-expansion-panel.vue index beb886620..9f5392c62 100644 --- a/client-app/ui-kit/components/molecules/expansion-panel/vc-expansion-panel.vue +++ b/client-app/ui-kit/components/molecules/expansion-panel/vc-expansion-panel.vue @@ -72,7 +72,7 @@ const { panels, toggle: providedToggleFn } = inject { panels.value[id] = !panels.value[id]; }, - } + }, ); const isExpanded = computedEager(() => panels.value[panelId] ?? props.expanded); diff --git a/client-app/ui-kit/components/molecules/select/vc-select.vue b/client-app/ui-kit/components/molecules/select/vc-select.vue index 39b033d52..4f788e342 100644 --- a/client-app/ui-kit/components/molecules/select/vc-select.vue +++ b/client-app/ui-kit/components/molecules/select/vc-select.vue @@ -211,7 +211,7 @@ function onFilter() { } const selectedText = computed(() => - props.textField && selected.value ? selected.value[props.textField] : selected.value + props.textField && selected.value ? selected.value[props.textField] : selected.value, ); function hideList() { diff --git a/client-app/ui-kit/components/organisms/add-or-update-address-modal/vc-add-or-update-address-modal.vue b/client-app/ui-kit/components/organisms/add-or-update-address-modal/vc-add-or-update-address-modal.vue index 87cbcda9b..c684a0232 100644 --- a/client-app/ui-kit/components/organisms/add-or-update-address-modal/vc-add-or-update-address-modal.vue +++ b/client-app/ui-kit/components/organisms/add-or-update-address-modal/vc-add-or-update-address-modal.vue @@ -59,7 +59,7 @@ const { t } = useI18n(); const editableAddress = ref(); const title = computed(() => - editableAddress.value ? t("common.titles.edit_address") : t("common.titles.new_address") + editableAddress.value ? t("common.titles.edit_address") : t("common.titles.new_address"), ); const saveButtonLabel = computed(() => (editableAddress.value ? t("common.buttons.save") : t("common.buttons.create"))); diff --git a/client-app/ui-kit/components/organisms/add-to-cart/vc-add-to-cart.vue b/client-app/ui-kit/components/organisms/add-to-cart/vc-add-to-cart.vue index 7b67b5bcc..8a696db64 100644 --- a/client-app/ui-kit/components/organisms/add-to-cart/vc-add-to-cart.vue +++ b/client-app/ui-kit/components/organisms/add-to-cart/vc-add-to-cart.vue @@ -57,7 +57,7 @@ const { t } = useI18n(); const isButtonOutlined = computed(() => !props.countInCart); const buttonText = computed(() => - props.countInCart ? t("common.buttons.update_cart") : t("common.buttons.add_to_cart") + props.countInCart ? t("common.buttons.update_cart") : t("common.buttons.add_to_cart"), ); const quantity = ref(props.modelValue); From ab77d5ff96aba385cace442c139710a1b0ee9046 Mon Sep 17 00:00:00 2001 From: Aleksandr Vishniakov Date: Thu, 10 Aug 2023 09:09:15 +0200 Subject: [PATCH 2/2] fix: package.json final new line --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index 8c462cd2c..d35c1e30d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -18,3 +18,6 @@ trim_trailing_whitespace = false [*.svg] insert_final_newline = false + +[package.json] +insert_final_newline = false