@meeovi/layer-commerce 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -2
- package/app/components/catalog/product/ProductAccordion/ProductAccordion.vue +0 -39
- package/app/components/catalog/product/ProductAccordion/__tests__/ProductAccordion.spec.ts +0 -15
- package/app/components/catalog/product/ProductAccordion/types.ts +0 -5
- package/app/components/catalog/product/ProductProperties/ProductProperties.vue +0 -50
- package/app/components/catalog/product/ProductProperties/__tests__/ProductProperties.spec.ts +0 -15
- package/app/components/catalog/product/ProductProperties/types.ts +0 -5
- package/app/components/catalog/product/ProductSlider/ProductSlider.vue +0 -28
- package/app/components/catalog/product/ProductSlider/__tests__/ProductSlider.spec.ts +0 -14
- package/app/components/catalog/product/ProductSlider/types.ts +0 -7
- package/app/components/catalog/product/RecommendedProducts/RecommendedProducts.vue +0 -12
- package/app/components/catalog/product/RecommendedProducts/types.ts +0 -5
- package/app/components/catalog/product/RenderContentProductSlider/RenderContentProductSlider.vue +0 -11
- package/app/components/catalog/product/add-attribute.vue +0 -54
- package/app/components/catalog/product/add-product-type.vue +0 -54
- package/app/components/catalog/product/add-product.vue +0 -53
- package/app/components/catalog/product/add-showcase.vue +0 -52
- package/app/components/catalog/product/add-station.vue +0 -54
- package/app/components/catalog/product/bestsellers.vue +0 -57
- package/app/components/catalog/product/bidding.vue +0 -93
- package/app/components/catalog/product/colorOptions.vue +0 -58
- package/app/components/catalog/product/deals.vue +0 -46
- package/app/components/catalog/product/exclusives.vue +0 -56
- package/app/components/catalog/product/featuredproducts.vue +0 -57
- package/app/components/catalog/product/giftCard.vue +0 -63
- package/app/components/catalog/product/latestproducts.vue +0 -46
- package/app/components/catalog/product/productCard.vue +0 -105
- package/app/components/catalog/product/productCompare.vue +0 -60
- package/app/components/catalog/product/productCompareTable.vue +0 -441
- package/app/components/catalog/product/productDetails.vue +0 -126
- package/app/components/catalog/product/productFaqs.vue +0 -17
- package/app/components/catalog/product/productGallery.vue +0 -16
- package/app/components/catalog/product/productQty.vue +0 -54
- package/app/components/catalog/product/productReviews.vue +0 -56
- package/app/components/catalog/product/productSpecs.vue +0 -116
- package/app/components/catalog/product/radiostation.vue +0 -36
- package/app/components/catalog/product/recentlyviewed.vue +0 -43
- package/app/components/catalog/product/relatedbrands.vue +0 -54
- package/app/components/catalog/product/relatedproducts.vue +0 -43
- package/app/components/catalog/product/relatedstations.vue +0 -40
- package/app/components/catalog/product/shippingOptions.vue +0 -41
- package/app/components/catalog/product/sizeOptions.vue +0 -42
- package/app/components/catalog/product/update-attribute-set.vue +0 -209
- package/app/components/catalog/product/update-attribute.vue +0 -118
- package/app/components/catalog/product/update-product.vue +0 -372
- package/app/components/catalog/product/update-showcase.vue +0 -153
- package/app/components/catalog/shops/relatedstores.vue +0 -37
- package/app/components/catalog/shops/restaurant.vue +0 -66
- package/app/components/catalog/shops/stores.vue +0 -44
- package/app/components/catalog/vendor/README.md +0 -3
- package/app/components/catalog/vendor/blocks/biggestcustomers.vue +0 -33
- package/app/components/catalog/vendor/blocks/lowestselling.vue +0 -33
- package/app/components/catalog/vendor/blocks/topcategories.vue +0 -33
- package/app/components/catalog/vendor/blocks/topproducts.vue +0 -27
- package/app/components/catalog/vendor/pages/attributes.vue +0 -43
- package/app/components/catalog/vendor/pages/commissions.vue +0 -43
- package/app/components/catalog/vendor/pages/crm.vue +0 -67
- package/app/components/catalog/vendor/pages/dashboard.vue +0 -46
- package/app/components/catalog/vendor/pages/emails.vue +0 -43
- package/app/components/catalog/vendor/pages/enquiries.vue +0 -43
- package/app/components/catalog/vendor/pages/invoices.vue +0 -43
- package/app/components/catalog/vendor/pages/orders.vue +0 -68
- package/app/components/catalog/vendor/pages/products.vue +0 -55
- package/app/components/catalog/vendor/pages/reviews.vue +0 -48
- package/app/components/catalog/vendor/pages/shipments.vue +0 -43
- package/app/components/catalog/vendor/pages/stores.vue +0 -43
- package/app/components/categories/chart/[id].vue +0 -200
- package/app/components/categories/chart/add-chart.vue +0 -142
- package/app/components/categories/chart/chart.vue +0 -82
- package/app/components/categories/chart/monthlyChart.vue +0 -46
- package/app/components/categories/chart/weeklyChart.vue +0 -46
- package/app/components/categories/chart/yearlyChart.vue +0 -46
- package/app/components/categories/charts.vue +0 -118
- package/app/components/categories/deals.vue +0 -101
- package/app/components/categories/eats.vue +0 -49
- package/app/components/categories/restaurants.vue +0 -26
- package/app/components/categories/station/[id].vue +0 -72
- package/app/components/categories/stations.vue +0 -124
- package/app/components/categories/time/time.vue +0 -63
- package/app/components/categories/travel.vue +0 -75
- package/app/components/categories/weather/weather.vue +0 -44
- package/app/components/content/blocks/breadcrumbs.vue +0 -0
- package/app/components/content/blocks/currencySwitcher.vue +0 -0
- package/app/components/content/blocks/languageSwitcher.vue +0 -0
- package/app/components/content/blocks/videoproduct.vue +0 -9
- package/app/components/content/pages/checkout.vue +0 -118
- package/app/components/content/pages/meeoviGlobal.vue +0 -68
- package/app/components/content/pages/pickup-locations.vue +0 -238
- package/app/components/content/pages/showcases.vue +0 -90
- package/app/components/content/pages/success.vue +0 -60
- package/app/components/marketing/add-brand.vue +0 -54
- package/app/components/marketing/add-incentive.vue +0 -54
- package/app/components/marketing/promotions/giftcards.vue +0 -102
- package/app/components/marketing/promotions/subscriptions.vue +0 -121
- package/app/components/marketing/update-incentive.vue +0 -326
- package/app/components/menus/lowernav.vue +0 -78
- package/app/components/partials/LocaleSelector.vue +0 -24
- package/app/components/partials/ShoppingCart.vue +0 -128
- package/app/components/partials/StripePayment.vue +0 -149
- package/app/components/partials/addToCartBtn.vue +0 -40
- package/app/components/partials/cartItem.vue +0 -124
- package/app/components/partials/checkoutButton.vue +0 -44
- package/app/components/partials/compareBtn.vue +0 -68
- package/app/components/partials/ratings.vue +0 -13
- package/app/components/partials/store/CurrencySelector.vue +0 -133
- package/app/components/partials/store/StoreSwitcher.vue +0 -13
- package/app/components/placeholders/Comments.vue +0 -15
- package/app/components/placeholders/CreateListBtn.vue +0 -7
- package/app/components/placeholders/Event.vue +0 -9
- package/app/components/placeholders/ListShowcases.vue +0 -9
- package/app/components/placeholders/Short.vue +0 -9
- package/app/components/placeholders/Space.vue +0 -9
- package/app/components/placeholders/Tag.vue +0 -7
- package/app/components/related/brandCard.vue +0 -41
- package/app/components/related/incentiveCard.vue +0 -44
- package/app/components/related/invoiceCard.vue +0 -43
- package/app/components/related/orderCard.vue +0 -43
- package/app/components/related/relatedproducts.vue +0 -17
- package/app/components/sales/CartPageContent/CartPageContent.vue +0 -37
- package/app/components/sales/CheckoutAddress/CheckoutAddress.vue +0 -50
- package/app/components/sales/CheckoutAddress/__tests__/CheckoutAddress.spec.ts +0 -16
- package/app/components/sales/CheckoutAddress/types.ts +0 -16
- package/app/components/sales/CheckoutPayment/CheckoutPayment.vue +0 -68
- package/app/components/sales/CheckoutPayment/__tests__/CheckoutPayment.spec.ts +0 -14
- package/app/components/sales/CheckoutPayment/types.ts +0 -12
- package/app/components/sales/OrderSummary/OrderSummary.vue +0 -57
- package/app/components/sales/OrderSummary/__tests__/ContactInformation.spec.ts +0 -52
- package/app/components/sales/OrderSummary/types.ts +0 -5
- package/app/components/sales/incentives.vue +0 -223
- package/app/components/sales/invoices.vue +0 -107
- package/app/components/sales/orders.vue +0 -378
- package/app/components/sales/shipments.vue +0 -65
- package/app/components/sales/transactions.vue +0 -109
- package/app/components/shop/add-shop.vue +0 -54
- package/app/components/shop/cart/cartItem.vue +0 -182
- package/app/components/shop/cart/checkout.vue +0 -415
- package/app/components/shop/checkout/StripeCardElement.vue +0 -206
- package/app/components/shop/checkout/StripeCheckout.vue +0 -49
- package/app/components/shop/checkout/addressBilling.vue +0 -263
- package/app/components/shop/checkout/addressShipping.vue +0 -175
- package/app/components/shop/checkout/cart/ProductItem.vue +0 -56
- package/app/components/shop/checkout/cart/PromotionItem.vue +0 -53
- package/app/composables/_types.ts +0 -18
- package/app/composables/adapters/abstract/cartAdapter.ts +0 -0
- package/app/composables/adapters/abstract/categoryAdapter.ts +0 -0
- package/app/composables/adapters/abstract/customerAdapter.ts +0 -0
- package/app/composables/adapters/abstract/inventoryAdapter.ts +0 -0
- package/app/composables/adapters/abstract/orderAdapter.ts +0 -0
- package/app/composables/adapters/abstract/productAdapter.ts +0 -7
- package/app/composables/cart/registry.ts +0 -20
- package/app/composables/cart/types.ts +0 -18
- package/app/composables/cart/useCart.ts +0 -15
- package/app/composables/config.ts +0 -19
- package/app/composables/defs/apiDefinitions.ts +0 -55
- package/app/composables/defs/extension.feature +0 -40
- package/app/composables/defs/extension.mocks.ts +0 -39
- package/app/composables/defs/extension.test.ts +0 -280
- package/app/composables/defs/extension.ts +0 -236
- package/app/composables/defs/index.ts +0 -3
- package/app/composables/defs/types.ts +0 -136
- package/app/composables/domain/cart.ts +0 -0
- package/app/composables/domain/category.ts +0 -0
- package/app/composables/domain/order.ts +0 -0
- package/app/composables/domain/price.ts +0 -0
- package/app/composables/domain/product.ts +0 -8
- package/app/composables/domain/reward.ts +0 -0
- package/app/composables/domain/transactions.ts +0 -0
- package/app/composables/helpers/contextualizedNormalizers.feature +0 -14
- package/app/composables/helpers/contextualizedNormalizers.test.ts +0 -85
- package/app/composables/helpers/contextualizedNormalizers.ts +0 -20
- package/app/composables/helpers/index.ts +0 -1
- package/app/composables/index.ts +0 -6
- package/app/composables/methods/auth.ts +0 -83
- package/app/composables/methods/cart.ts +0 -119
- package/app/composables/methods/category.ts +0 -27
- package/app/composables/methods/checkout.ts +0 -54
- package/app/composables/methods/customer.ts +0 -52
- package/app/composables/methods/helpers.ts +0 -5
- package/app/composables/methods/index.ts +0 -75
- package/app/composables/methods/order.ts +0 -39
- package/app/composables/methods/product.ts +0 -95
- package/app/composables/methods/settings.ts +0 -16
- package/app/composables/models/cart.ts +0 -95
- package/app/composables/models/category.ts +0 -13
- package/app/composables/models/checkout.ts +0 -17
- package/app/composables/models/customer.ts +0 -16
- package/app/composables/models/facets.ts +0 -25
- package/app/composables/models/index.ts +0 -94
- package/app/composables/models/order.ts +0 -43
- package/app/composables/models/product.ts +0 -73
- package/app/composables/models/shared.ts +0 -75
- package/app/composables/products/registry.ts +0 -20
- package/app/composables/products/types.ts +0 -13
- package/app/composables/products/useEvents.ts +0 -0
- package/app/composables/products/useGiftCards.ts +0 -0
- package/app/composables/products/useProducts.ts +0 -12
- package/app/composables/products/useSubscriptions.ts +0 -0
- package/app/composables/registry.ts +0 -21
- package/app/composables/stores/cart.ts +0 -218
- package/app/composables/stores/cartStore.ts +0 -300
- package/app/composables/stores/checkout.ts +0 -19
- package/app/composables/stores/compare.ts +0 -65
- package/app/composables/stores/currency.js +0 -29
- package/app/composables/stores/digital-products.js +0 -11
- package/app/composables/stores/index.js +0 -0
- package/app/composables/stores/orders.ts +0 -161
- package/app/composables/stores/product.ts +0 -26
- package/app/composables/stores/productList.ts +0 -0
- package/app/composables/stores/productListInfo.ts +0 -0
- package/app/composables/stores/products.ts +0 -112
- package/app/composables/stores/recentlyViewedProducts.ts +0 -0
- package/app/composables/stores/review.ts +0 -25
- package/app/composables/stores/storeInPickUp.ts +0 -22
- package/app/composables/stores/user.ts +0 -20
- package/app/composables/stores/wishlist.ts +0 -19
- package/app/composables/types/Order.type.ts +0 -181
- package/app/composables/types/index.ts +0 -285
- package/app/composables/types/product.ts +0 -14
- package/app/composables/useBreakpoints/index.ts +0 -1
- package/app/composables/useBreakpoints/useBreakpoints.ts +0 -28
- package/app/composables/useCart/__tests__/useCart.spec.ts +0 -11
- package/app/composables/useCart/index.ts +0 -1
- package/app/composables/useCart/types.ts +0 -17
- package/app/composables/useCart/useCart.ts +0 -46
- package/app/composables/useCartShippingMethods/__tests__/useCartShippingMethods.spec.ts +0 -11
- package/app/composables/useCartShippingMethods/index.ts +0 -1
- package/app/composables/useCartShippingMethods/types.ts +0 -17
- package/app/composables/useCartShippingMethods/useCartShippingMethods.ts +0 -47
- package/app/composables/useCatalog.ts +0 -64
- package/app/composables/useContent/index.ts +0 -1
- package/app/composables/useContent/types.ts +0 -44
- package/app/composables/useContent/useContent.ts +0 -45
- package/app/composables/useContent.ts +0 -57
- package/app/composables/useCustomer/__tests__/useCustomer.spec.ts +0 -25
- package/app/composables/useCustomer/index.ts +0 -2
- package/app/composables/useCustomer/types.ts +0 -17
- package/app/composables/useCustomer/useCustomer.ts +0 -40
- package/app/composables/useCustomerAddress/__tests__/useCustomerAddress.spec.ts +0 -11
- package/app/composables/useCustomerAddress/index.ts +0 -2
- package/app/composables/useCustomerAddress/types.ts +0 -17
- package/app/composables/useCustomerAddress/useCustomerAddress.ts +0 -55
- package/app/composables/useCustomerOrder/__tests__/useCustomerOrder.spec.ts +0 -11
- package/app/composables/useCustomerOrder/adress.ts +0 -10
- package/app/composables/useCustomerOrder/index.ts +0 -2
- package/app/composables/useCustomerOrder/product.ts +0 -37
- package/app/composables/useCustomerOrder/types.ts +0 -40
- package/app/composables/useCustomerOrder/useCustomerOrder.ts +0 -63
- package/app/composables/useCustomerOrders/__tests__/useCustomerOrders.spec.ts +0 -11
- package/app/composables/useCustomerOrders/index.ts +0 -2
- package/app/composables/useCustomerOrders/types.ts +0 -20
- package/app/composables/useCustomerOrders/useCustomerOrders.ts +0 -56
- package/app/composables/useCustomerReturns/__tests__/useCustomerReturns.spec.ts +0 -11
- package/app/composables/useCustomerReturns/index.ts +0 -2
- package/app/composables/useCustomerReturns/types.ts +0 -17
- package/app/composables/useCustomerReturns/useCustomerReturns.ts +0 -41
- package/app/composables/useHandleError/index.ts +0 -1
- package/app/composables/useHandleError/types.ts +0 -11
- package/app/composables/useHandleError/useHandleError.ts +0 -27
- package/app/composables/usePageTitle.ts +0 -16
- package/app/composables/useProduct/index.ts +0 -2
- package/app/composables/useProduct/types.ts +0 -17
- package/app/composables/useProduct/useProduct.ts +0 -42
- package/app/composables/useProductAttribute/__tests__/useProduct.mock.ts +0 -31
- package/app/composables/useProductAttribute/__tests__/useProductAttribute.spec.ts +0 -14
- package/app/composables/useProductAttribute/index.ts +0 -1
- package/app/composables/useProductAttribute/useProductAttribute.ts +0 -37
- package/app/composables/useProductRecommended/__tests__/useProductRecommended.spec.ts +0 -12
- package/app/composables/useProductRecommended/index.ts +0 -1
- package/app/composables/useProductRecommended/types.ts +0 -17
- package/app/composables/useProductRecommended/useProductRecommended.ts +0 -43
- package/app/composables/useProductReviews/__tests__/productReviews.mock.ts +0 -20
- package/app/composables/useProductReviews/__tests__/useProductReviews.spec.ts +0 -22
- package/app/composables/useProductReviews/index.ts +0 -2
- package/app/composables/useProductReviews/types.ts +0 -17
- package/app/composables/useProductReviews/useProductReviews.ts +0 -46
- package/app/composables/useProducts/__tests__/useProducts.spec.ts +0 -11
- package/app/composables/useProducts/types.ts +0 -22
- package/app/composables/useProducts/useProducts.ts +0 -41
- package/app/composables/utils/countryList.ts +0 -14
- package/app/composables/utils/currency.js +0 -56
- package/app/composables/utils/glossary.ts +0 -0
- package/app/composables/utils/importExport.ts +0 -0
- package/app/composables/utils/index.js +0 -0
- package/app/composables/utils/print.ts +0 -0
- package/app/composables/utils/shopThemes.ts +0 -0
- package/app/composables/utils/statistics.ts +0 -0
- package/app/composables/utils/stock.ts +0 -0
- package/app/composables/utils/stripe.ts +0 -16
- package/app/composables/utils/taxation.ts +0 -0
- package/app/composables/utils/tellFriends.ts +0 -0
- package/app/composables/validationRules/index.ts +0 -1
- package/app/composables/validationRules/password.feature +0 -67
- package/app/composables/validationRules/password.test.ts +0 -89
- package/app/composables/validationRules/password.ts +0 -25
- package/app/composables/vendors/index.ts +0 -0
- package/app/composables/vendors/registry.ts +0 -0
- package/app/composables/vendors/useAffiliates.ts +0 -0
- package/app/composables/vendors/useCommission.ts +0 -0
- package/app/modules/vue-head/composables/useHead.ts +0 -3
- package/app/pages/brand/[...slug].vue +0 -92
- package/app/pages/brands.vue +0 -90
- package/app/pages/cart.vue +0 -142
- package/app/pages/compare.vue +0 -166
- package/app/pages/departments/[...slug].vue +0 -385
- package/app/pages/departments/category/[...slug].vue +0 -135
- package/app/pages/incentive/[...id].vue +0 -66
- package/app/pages/invoice/[id].vue +0 -309
- package/app/pages/order/[id].vue +0 -327
- package/app/pages/product/[...id].vue +0 -309
- package/app/pages/product/showcases/index.vue +0 -86
- package/app/pages/shipment/[...id].vue +0 -176
- package/app/pages/shop/[...slug].vue +0 -158
- package/app/pages/shops.vue +0 -76
- package/app/pages/subscription/[...id].vue +0 -147
- package/app/pages/transaction/[...id].vue +0 -74
- package/app/types/shims-imports.d.ts +0 -13
- package/app/utils/client.ts +0 -26
- package/app/utils/index.ts +0 -53
- package/app/utils/normalizer.ts +0 -23
- package/app/utils/normalizers/magento.ts +0 -29
- package/app/utils/normalizers/shopify.ts +0 -29
- package/global.d.ts +0 -149
- package/tsconfig.json +0 -31
|
@@ -1,385 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div v-if="department?.name === 'Deals'">
|
|
4
|
-
<v-toolbar :style="`background-color: ${department?.color}; color: ${department?.colortext}`"
|
|
5
|
-
:title="department?.name"></v-toolbar>
|
|
6
|
-
<deals :category="department?.id" />
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div v-else>
|
|
10
|
-
<v-card variant="text">
|
|
11
|
-
<v-toolbar :style="`background-color: ${department?.color}; color: ${department?.colortext}`"
|
|
12
|
-
:title="department?.name">
|
|
13
|
-
<v-slide-group show-arrows v-if="department?.categories?.length">
|
|
14
|
-
<v-slide-group-item v-slot="{ isSelected, toggle }">
|
|
15
|
-
<v-menu>
|
|
16
|
-
<template v-slot:activator="{ props }">
|
|
17
|
-
<v-btn :color="isSelected ? 'primary' : undefined" class="ma-2" @click="toggle"
|
|
18
|
-
v-bind="props" append-icon="fas:fa fa-caret-down" variant="text">
|
|
19
|
-
Categories
|
|
20
|
-
</v-btn>
|
|
21
|
-
</template>
|
|
22
|
-
<v-list class="departmentMenu">
|
|
23
|
-
<v-row>
|
|
24
|
-
<v-col cols="3" v-for="categories in department?.categories"
|
|
25
|
-
:key="categories?.id">
|
|
26
|
-
<v-list-item>
|
|
27
|
-
<v-chip><NuxtLink
|
|
28
|
-
:to="`/departments/category/${categories?.categories_id?.slug}`">
|
|
29
|
-
{{ categories?.categories_id?.name }}</NuxtLink></v-chip>
|
|
30
|
-
</v-list-item>
|
|
31
|
-
</v-col>
|
|
32
|
-
</v-row>
|
|
33
|
-
</v-list>
|
|
34
|
-
</v-menu>
|
|
35
|
-
</v-slide-group-item>
|
|
36
|
-
|
|
37
|
-
<v-slide-group-item v-if="department?.menus?.length" v-for="menu in department?.menus"
|
|
38
|
-
:key="menu" v-slot="{ isSelected, toggle }">
|
|
39
|
-
<v-btn :color="isSelected ? 'primary' : undefined" class="ma-2" @click="toggle"
|
|
40
|
-
:href="`${menu?.url}`">
|
|
41
|
-
{{ menu?.name }}
|
|
42
|
-
</v-btn>
|
|
43
|
-
</v-slide-group-item>
|
|
44
|
-
</v-slide-group>
|
|
45
|
-
</v-toolbar>
|
|
46
|
-
|
|
47
|
-
<!--Department Top Banner Section-->
|
|
48
|
-
<section data-bs-version="5.1" class="pricing6 shopm5 cid-tZY31Y2JxZ" id="apricing6-6g">
|
|
49
|
-
|
|
50
|
-
<div class="mbr-overlay"></div>
|
|
51
|
-
<div class="container-fluid">
|
|
52
|
-
<div class="row align-items-stretch items-row justify-content-center">
|
|
53
|
-
|
|
54
|
-
<div class="col-lg-6">
|
|
55
|
-
<div v-if="department?.name === 'Travel'">
|
|
56
|
-
<travel :category="department?.name" />
|
|
57
|
-
</div>
|
|
58
|
-
<!--<div v-else-if="department?.name === 'Appstore'">
|
|
59
|
-
<appstore :category="department?.name" />
|
|
60
|
-
</div>-->
|
|
61
|
-
<div v-else-if="department?.name === 'Weather'">
|
|
62
|
-
<weather :category="department?.name" />
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<div v-else-if="department?.name === 'Time'">
|
|
66
|
-
<timeComponent :category="department?.name" />
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
<div v-else class="mbr-section-head" :style="`background-color: ${department?.color}`">
|
|
70
|
-
<h4 class="mbr-section-title mbr-fonts-style mb-0 display-7"
|
|
71
|
-
:style="`color: ${department?.colortext}`">
|
|
72
|
-
<strong>Meeovi</strong>
|
|
73
|
-
</h4>
|
|
74
|
-
<h5 class="mbr-section-subtitle mbr-fonts-style mb-0 display-2"
|
|
75
|
-
:style="`color: ${department?.colortext}`">
|
|
76
|
-
<strong>{{ department?.name }}</strong>
|
|
77
|
-
</h5>
|
|
78
|
-
<h5 class="main-text mbr-fonts-style mb-0 display-7"
|
|
79
|
-
:style="`color: ${department?.colortext}`">
|
|
80
|
-
{{ department?.description }}
|
|
81
|
-
</h5>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<v-sheet
|
|
86
|
-
class="mx-auto col-lg-6" style="background-color: transparent; box-shadow: none;">
|
|
87
|
-
<h4 style="left: 15px; position: relative;">{{ callouts?.menus?.[1]?.name }}</h4>
|
|
88
|
-
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
89
|
-
<v-slide-group-item v-slot="{ isSelected, toggle, selectedClass }"
|
|
90
|
-
v-for="products in department?.products" :key="products">
|
|
91
|
-
<productCard :product="products?.products_id" :class="['ma-4', selectedClass]"
|
|
92
|
-
@click="toggle" />
|
|
93
|
-
<div class="d-flex fill-height align-center justify-center">
|
|
94
|
-
<v-scale-transition>
|
|
95
|
-
<v-icon v-if="isSelected" color="white" icon="mdi-close-circle-outline"
|
|
96
|
-
size="48"></v-icon>
|
|
97
|
-
</v-scale-transition>
|
|
98
|
-
</div>
|
|
99
|
-
</v-slide-group-item>
|
|
100
|
-
</v-slide-group>
|
|
101
|
-
</v-sheet>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
</section>
|
|
105
|
-
|
|
106
|
-
<!--Department Content Section-->
|
|
107
|
-
<section data-bs-version="5.1" class="gallery2 shopm5 cid-uW1BojE78S" id="agallery2-0" v-if="department?.shorts?.length && department?.products?.products_id?.type === 'department'"
|
|
108
|
-
:style="`background-image: url(${$directus?.url}assets/${department?.image?.filename_disk})`">
|
|
109
|
-
<div class="mbr-overlay" style="opacity: 0.8; background-color: rgb(255, 255, 255);">
|
|
110
|
-
</div>
|
|
111
|
-
|
|
112
|
-
<div class="container-fluid">
|
|
113
|
-
<div class="row">
|
|
114
|
-
<!--Vibez Slider-->
|
|
115
|
-
<v-sheet
|
|
116
|
-
class="mx-auto sliderProducts row align-items-stretch items-row justify-content-center">
|
|
117
|
-
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
118
|
-
<v-slide-group-item v-slot="{ isSelected, toggle, selectedClass }"
|
|
119
|
-
v-for="shorts in department?.shorts" :key="shorts">
|
|
120
|
-
<shorts :short="shorts?.shorts_id" :class="['ma-4', selectedClass]"
|
|
121
|
-
@click="toggle" />
|
|
122
|
-
<div class="d-flex fill-height align-center justify-center">
|
|
123
|
-
<v-scale-transition>
|
|
124
|
-
<v-icon v-if="isSelected" color="white" icon="mdi-close-circle-outline"
|
|
125
|
-
size="48"></v-icon>
|
|
126
|
-
</v-scale-transition>
|
|
127
|
-
</div>
|
|
128
|
-
</v-slide-group-item>
|
|
129
|
-
</v-slide-group>
|
|
130
|
-
</v-sheet>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</section>
|
|
134
|
-
|
|
135
|
-
<v-row class="departmentRow">
|
|
136
|
-
<!--Best Seller Product Slider-->
|
|
137
|
-
<v-sheet class="mx-auto sliderProducts row align-items-stretch items-row justify-content-center">
|
|
138
|
-
<h4 style="left: 15px; position: relative;">{{ callouts?.menus?.[1]?.name }}</h4>
|
|
139
|
-
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
140
|
-
<v-slide-group-item v-slot="{ isSelected, toggle, selectedClass }"
|
|
141
|
-
v-for="products in best?.products" :key="products">
|
|
142
|
-
<productCard :product="products?.products_id" :class="['ma-4', selectedClass]"
|
|
143
|
-
@click="toggle" />
|
|
144
|
-
<div class="d-flex fill-height align-center justify-center">
|
|
145
|
-
<v-scale-transition>
|
|
146
|
-
<v-icon v-if="isSelected" color="white" icon="mdi-close-circle-outline"
|
|
147
|
-
size="48"></v-icon>
|
|
148
|
-
</v-scale-transition>
|
|
149
|
-
</div>
|
|
150
|
-
</v-slide-group-item>
|
|
151
|
-
</v-slide-group>
|
|
152
|
-
</v-sheet>
|
|
153
|
-
|
|
154
|
-
<!--List of latest products in the department-->
|
|
155
|
-
<v-sheet class="mx-auto sliderProducts row align-items-stretch items-row justify-content-center">
|
|
156
|
-
<h4 style="left: 15px; position: relative;">{{ callouts?.menus?.[2]?.name }}</h4>
|
|
157
|
-
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
158
|
-
<v-slide-group-item v-slot="{ isSelected, toggle, selectedClass }"
|
|
159
|
-
v-for="products in latestProducts?.products" :key="products">
|
|
160
|
-
<productCard :product="products?.products_id" :class="['ma-4', selectedClass]"
|
|
161
|
-
@click="toggle" />
|
|
162
|
-
<div class="d-flex fill-height align-center justify-center">
|
|
163
|
-
<v-scale-transition>
|
|
164
|
-
<v-icon v-if="isSelected" color="white" icon="mdi-close-circle-outline"
|
|
165
|
-
size="48"></v-icon>
|
|
166
|
-
</v-scale-transition>
|
|
167
|
-
</div>
|
|
168
|
-
</v-slide-group-item>
|
|
169
|
-
</v-slide-group>
|
|
170
|
-
</v-sheet>
|
|
171
|
-
|
|
172
|
-
<!--List of products in the department-->
|
|
173
|
-
<v-sheet class="mx-auto sliderProducts row align-items-stretch items-row justify-content-center">
|
|
174
|
-
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
175
|
-
<v-slide-group-item v-slot="{ isSelected, toggle, selectedClass }"
|
|
176
|
-
v-for="products in department?.products" :key="products">
|
|
177
|
-
<productCard :product="products?.products_id" :class="['ma-4', selectedClass]"
|
|
178
|
-
@click="toggle" />
|
|
179
|
-
<div class="d-flex fill-height align-center justify-center">
|
|
180
|
-
<v-scale-transition>
|
|
181
|
-
<v-icon v-if="isSelected" color="white" icon="mdi-close-circle-outline"
|
|
182
|
-
size="48"></v-icon>
|
|
183
|
-
</v-scale-transition>
|
|
184
|
-
</div>
|
|
185
|
-
</v-slide-group-item>
|
|
186
|
-
</v-slide-group>
|
|
187
|
-
</v-sheet>
|
|
188
|
-
|
|
189
|
-
<!--List of events in this department-->
|
|
190
|
-
<v-sheet class="mx-auto sliderProducts row align-items-stretch items-row justify-content-center"
|
|
191
|
-
v-if="department?.products?.products_id?.type === 'department' && events?.length">
|
|
192
|
-
<h4 style="left: 15px; position: relative;">{{ callouts?.menus?.[3]?.name }}
|
|
193
|
-
{{ department?.name }}</h4>
|
|
194
|
-
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
195
|
-
<v-slide-group-item v-slot="{ isSelected, toggle, selectedClass }"
|
|
196
|
-
v-for="products in events" :key="products">
|
|
197
|
-
<productCard :product="products?.events_id" :class="['ma-4', selectedClass]"
|
|
198
|
-
@click="toggle" />
|
|
199
|
-
<div class="d-flex fill-height align-center justify-center">
|
|
200
|
-
<v-scale-transition>
|
|
201
|
-
<v-icon v-if="isSelected" color="white" icon="mdi-close-circle-outline"
|
|
202
|
-
size="48"></v-icon>
|
|
203
|
-
</v-scale-transition>
|
|
204
|
-
</div>
|
|
205
|
-
</v-slide-group-item>
|
|
206
|
-
</v-slide-group>
|
|
207
|
-
</v-sheet>
|
|
208
|
-
<!---->
|
|
209
|
-
|
|
210
|
-
<!--List of spaces in the department-->
|
|
211
|
-
<v-sheet class="mx-auto sliderProducts row align-items-stretch items-row justify-content-center"
|
|
212
|
-
v-if="department?.spaces?.length">
|
|
213
|
-
<h4 style="left: 15px; position: relative;">{{ callouts?.menus?.[4]?.name }}
|
|
214
|
-
{{ department?.name }}</h4>
|
|
215
|
-
<v-slide-group v-model="model" class="pa-4" selected-class="bg-success" show-arrows>
|
|
216
|
-
<v-slide-group-item v-slot="{ isSelected, toggle, selectedClass }"
|
|
217
|
-
v-for="spaces in department?.spaces" :key="spaces">
|
|
218
|
-
<spaces :space="spaces?.spaces_id" :class="['ma-4', selectedClass]" @click="toggle" />
|
|
219
|
-
<div class="d-flex fill-height align-center justify-center">
|
|
220
|
-
<v-scale-transition>
|
|
221
|
-
<v-icon v-if="isSelected" color="white" icon="mdi-close-circle-outline"
|
|
222
|
-
size="48"></v-icon>
|
|
223
|
-
</v-scale-transition>
|
|
224
|
-
</div>
|
|
225
|
-
</v-slide-group-item>
|
|
226
|
-
</v-slide-group>
|
|
227
|
-
</v-sheet>
|
|
228
|
-
</v-row>
|
|
229
|
-
</v-card>
|
|
230
|
-
</div>
|
|
231
|
-
</div>
|
|
232
|
-
</template>
|
|
233
|
-
|
|
234
|
-
<script setup>
|
|
235
|
-
import shorts from '#social/app/components/related/short.vue'
|
|
236
|
-
import spaces from '#social/app/components/related/space.vue'
|
|
237
|
-
import productCard from '#commerce/app/components/catalog/product/productCard.vue'
|
|
238
|
-
import travel from '@/components/categories/travel.vue'
|
|
239
|
-
import deals from '@/components/categories/deals.vue'
|
|
240
|
-
import timeComponent from '@/components/categories/time/time.vue'
|
|
241
|
-
import weather from '@/components/categories/weather/weather.vue'
|
|
242
|
-
|
|
243
|
-
const route = useRoute()
|
|
244
|
-
const model = ref(null)
|
|
245
|
-
const {
|
|
246
|
-
$directus,
|
|
247
|
-
$readItem,
|
|
248
|
-
$readItems
|
|
249
|
-
} = useNuxtApp()
|
|
250
|
-
|
|
251
|
-
const slug = computed(() => {
|
|
252
|
-
const s = route.params.slug
|
|
253
|
-
return Array.isArray(s) ? s[0] : s
|
|
254
|
-
})
|
|
255
|
-
|
|
256
|
-
const {
|
|
257
|
-
data: departmentRaw
|
|
258
|
-
} = await useAsyncData('department', () => {
|
|
259
|
-
return $directus.request(
|
|
260
|
-
$readItems('departments', {
|
|
261
|
-
fields: [
|
|
262
|
-
'*',
|
|
263
|
-
'categories.categories_id.*',
|
|
264
|
-
'spaces.spaces_id.*',
|
|
265
|
-
'products.products_id.*',
|
|
266
|
-
'products.products_id.image.*',
|
|
267
|
-
'shorts.shorts_id.*',
|
|
268
|
-
'shops.shops_id.*',
|
|
269
|
-
'image.*'
|
|
270
|
-
],
|
|
271
|
-
filter: {
|
|
272
|
-
slug: {
|
|
273
|
-
_eq: slug.value
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
limit: 1
|
|
277
|
-
})
|
|
278
|
-
)
|
|
279
|
-
})
|
|
280
|
-
|
|
281
|
-
const department = computed(() => departmentRaw.value?.[0] || null)
|
|
282
|
-
|
|
283
|
-
const {
|
|
284
|
-
data: introProducts
|
|
285
|
-
} = await useAsyncData('introProducts', () => {
|
|
286
|
-
return $directus.request($readItems('departments', {
|
|
287
|
-
fields: ['*', { '*': ['*'] }],
|
|
288
|
-
limit: 2,
|
|
289
|
-
}))
|
|
290
|
-
})
|
|
291
|
-
|
|
292
|
-
const {
|
|
293
|
-
data: best
|
|
294
|
-
} = await useAsyncData('best', () => {
|
|
295
|
-
return $directus.request($readItems('departments', {
|
|
296
|
-
fields: ['*',
|
|
297
|
-
'products.products_id.*',
|
|
298
|
-
'images.*'
|
|
299
|
-
],
|
|
300
|
-
limit: 10,
|
|
301
|
-
filter: {
|
|
302
|
-
showcases: {
|
|
303
|
-
showcases_id: {
|
|
304
|
-
name: {
|
|
305
|
-
_eq: "Best Sellers"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
}
|
|
310
|
-
}))
|
|
311
|
-
})
|
|
312
|
-
|
|
313
|
-
const {
|
|
314
|
-
data: latestProducts
|
|
315
|
-
} = await useAsyncData('latestProducts', () => {
|
|
316
|
-
return $directus.request($readItems('departments', {
|
|
317
|
-
fields: ['*',
|
|
318
|
-
'products.products_id.*',
|
|
319
|
-
'images.*'
|
|
320
|
-
],
|
|
321
|
-
limit: 10,
|
|
322
|
-
filter: {
|
|
323
|
-
products: {
|
|
324
|
-
products_id: {
|
|
325
|
-
status: {
|
|
326
|
-
_eq: "published"
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
}
|
|
331
|
-
}))
|
|
332
|
-
})
|
|
333
|
-
|
|
334
|
-
const {
|
|
335
|
-
data: limitProducts
|
|
336
|
-
} = await useAsyncData('limitProducts', () => {
|
|
337
|
-
return $directus.request($readItems('departments', {
|
|
338
|
-
fields: ['*',
|
|
339
|
-
'products.products_id.*',
|
|
340
|
-
'images.*'
|
|
341
|
-
],
|
|
342
|
-
limit: 2,
|
|
343
|
-
filter: {
|
|
344
|
-
products: {
|
|
345
|
-
products_id: {
|
|
346
|
-
status: {
|
|
347
|
-
_eq: "published"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
}
|
|
352
|
-
}))
|
|
353
|
-
})
|
|
354
|
-
|
|
355
|
-
const {
|
|
356
|
-
data: events
|
|
357
|
-
} = await useAsyncData('events', () => {
|
|
358
|
-
return $directus.request($readItems('departments', {
|
|
359
|
-
fields: ['*',
|
|
360
|
-
'products.products_id.*',
|
|
361
|
-
'images.*'
|
|
362
|
-
],
|
|
363
|
-
limit: 10,
|
|
364
|
-
filter: {
|
|
365
|
-
products: {
|
|
366
|
-
products_id: {
|
|
367
|
-
type: {
|
|
368
|
-
_eq: "event"
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
}
|
|
373
|
-
}))
|
|
374
|
-
})
|
|
375
|
-
|
|
376
|
-
const {
|
|
377
|
-
data: callouts
|
|
378
|
-
} = await useAsyncData('callouts', () => {
|
|
379
|
-
return $directus.request($readItem('callouts', '2'))
|
|
380
|
-
})
|
|
381
|
-
|
|
382
|
-
useHead({
|
|
383
|
-
title: computed(() => department?.value?.name || 'Department Page')
|
|
384
|
-
});
|
|
385
|
-
</script>
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-if="category">
|
|
3
|
-
|
|
4
|
-
<!-- Special Categories -->
|
|
5
|
-
<div v-if="category.slug === 'charts'">
|
|
6
|
-
<charts />
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div v-else-if="category.slug === 'radio-stations'">
|
|
10
|
-
<stations />
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div v-else-if="category.slug === 'eats'">
|
|
14
|
-
<eats />
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div v-else-if="category.slug === 'restaurants'">
|
|
18
|
-
<div v-for="(shop, i) in restaurantsList" :key="i">
|
|
19
|
-
<restaurants :restaurant="shop" />
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<!-- Default Category Layout -->
|
|
24
|
-
<v-card variant="text" v-else>
|
|
25
|
-
<v-toolbar :style="`background-color: ${category?.color}; color: ${category?.colortext}`">
|
|
26
|
-
<v-toolbar-title><NuxtLink :to="`/departments/${category?.departments?.[0]?.departments_id?.name}`">Meeovi {{ category?.departments?.[0]?.departments_id?.name }}</NuxtLink> - {{ category?.name }}</v-toolbar-title>
|
|
27
|
-
<v-slide-group show-arrows v-if="category?.categories?.length">
|
|
28
|
-
<v-slide-group-item v-slot="{ isSelected, toggle }">
|
|
29
|
-
<v-menu>
|
|
30
|
-
<template #activator="{ props }">
|
|
31
|
-
<v-btn :color="isSelected ? 'primary' : undefined" class="ma-2" v-bind="props"
|
|
32
|
-
variant="text">
|
|
33
|
-
Categories
|
|
34
|
-
</v-btn>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<v-list class="departmentMenu">
|
|
38
|
-
<v-row>
|
|
39
|
-
<v-col cols="3" v-for="sub in category.categories" :key="sub?.categories_id?.id">
|
|
40
|
-
<v-list-item>
|
|
41
|
-
<NuxtLink :to="`/departments/categories/${sub.categories_id.id}`">
|
|
42
|
-
{{ sub.categories_id.name }}
|
|
43
|
-
</NuxtLink>
|
|
44
|
-
</v-list-item>
|
|
45
|
-
</v-col>
|
|
46
|
-
</v-row>
|
|
47
|
-
</v-list>
|
|
48
|
-
</v-menu>
|
|
49
|
-
</v-slide-group-item>
|
|
50
|
-
|
|
51
|
-
<v-slide-group-item v-for="menu in category.menus" :key="menu.id" v-slot="{ isSelected, toggle }">
|
|
52
|
-
<v-btn :color="isSelected ? 'primary' : undefined" class="ma-2" :href="menu.url">
|
|
53
|
-
{{ menu.name }}
|
|
54
|
-
</v-btn>
|
|
55
|
-
</v-slide-group-item>
|
|
56
|
-
</v-slide-group>
|
|
57
|
-
</v-toolbar>
|
|
58
|
-
</v-card>
|
|
59
|
-
|
|
60
|
-
<!-- Product List -->
|
|
61
|
-
<v-row>
|
|
62
|
-
<v-col cols="3" v-for="productRel in category.products" :key="productRel.products_id.id">
|
|
63
|
-
<productCard :product="productRel.products_id" />
|
|
64
|
-
</v-col>
|
|
65
|
-
</v-row>
|
|
66
|
-
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
<!-- Loading / Not Found -->
|
|
70
|
-
<div v-else class="p-10 text-center text-xl text-neutral-700">
|
|
71
|
-
Loading category...
|
|
72
|
-
</div>
|
|
73
|
-
</template>
|
|
74
|
-
|
|
75
|
-
<script setup>
|
|
76
|
-
import charts from '~/components/categories/charts.vue'
|
|
77
|
-
import stations from '~/components/categories/stations.vue'
|
|
78
|
-
import eats from '~/components/categories/eats.vue'
|
|
79
|
-
import restaurants from '~/components/categories/restaurants.vue'
|
|
80
|
-
import productCard from '#commerce/app/components/catalog/product/productCard.vue'
|
|
81
|
-
|
|
82
|
-
const route = useRoute()
|
|
83
|
-
const {
|
|
84
|
-
$directus,
|
|
85
|
-
$readItem,
|
|
86
|
-
$readItems
|
|
87
|
-
} = useNuxtApp()
|
|
88
|
-
|
|
89
|
-
const slug = computed(() => {
|
|
90
|
-
const s = route.params.slug
|
|
91
|
-
return Array.isArray(s) ? s[0] : s
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
const {
|
|
95
|
-
data: categoryRaw
|
|
96
|
-
} = await useAsyncData('categoryRaw', () => {
|
|
97
|
-
return $directus.request(
|
|
98
|
-
$readItems('categories', {
|
|
99
|
-
fields: [
|
|
100
|
-
'*',
|
|
101
|
-
'tags.tags_id.*',
|
|
102
|
-
'departments.departments_id.*',
|
|
103
|
-
'products.products_id.*',
|
|
104
|
-
'products.products_id.image.*',
|
|
105
|
-
'menus.*',
|
|
106
|
-
'image.*'
|
|
107
|
-
],
|
|
108
|
-
filter: {
|
|
109
|
-
slug: {
|
|
110
|
-
_eq: slug.value
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
limit: 1
|
|
114
|
-
})
|
|
115
|
-
)
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
// Unwrap array cleanly
|
|
119
|
-
const category = computed(() => categoryRaw.value?.[0] || null)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
// FETCH SHOPS FOR RESTAURANTS CATEGORY
|
|
123
|
-
const {
|
|
124
|
-
data: restaurantsList
|
|
125
|
-
} = await useAsyncData('restaurantsList', () => {
|
|
126
|
-
return $directus.request($readItems('shops', {
|
|
127
|
-
fields: ['*']
|
|
128
|
-
}))
|
|
129
|
-
})
|
|
130
|
-
|
|
131
|
-
// SEO
|
|
132
|
-
useHead({
|
|
133
|
-
title: computed(() => category.value?.name || 'Category Page')
|
|
134
|
-
})
|
|
135
|
-
</script>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<section data-bs-version="5.1" class="firmm4_features1 features1 cid-uhBuptnWmV" id="features1-9v"
|
|
4
|
-
data-sortbtn="btn-primary">
|
|
5
|
-
<div class="container-fluid">
|
|
6
|
-
<div class="row justify-content-center">
|
|
7
|
-
<div class="card">
|
|
8
|
-
<div class="card_wrapper">
|
|
9
|
-
<div class="card-box">
|
|
10
|
-
<div class="icon_block">
|
|
11
|
-
<div class="iconfont-wrapper">
|
|
12
|
-
<span class="mbr-iconfont mobi-mbri-cart-full mobi-mbri"></span>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<p class="card-text mbr-fonts-style display-4">Invoice: {{ invoice?.id }}</p>
|
|
16
|
-
<p class="card-text mbr-fonts-style display-4">Invoice Date: {{ new Date(invoice?.created_at).toLocaleDateString() }}</p>
|
|
17
|
-
<p class="card-text mbr-fonts-style display-4">Order #: {{ invoice?.order_id?.orders_id?.id }}</p>
|
|
18
|
-
<p class="card-text mbr-fonts-style display-4">Order Date: {{ new Date(invoice?.updated_at).toLocaleDateString() }}
|
|
19
|
-
</p>
|
|
20
|
-
<p class="card-text mbr-fonts-style display-4">Bill to Name: {{ invoice?.user?.first_name }} {{ invoice?.user?.last_name }}</p>
|
|
21
|
-
<p class="card-text mbr-fonts-style display-4">Status: {{ invoice?.state }}</p>
|
|
22
|
-
<p class="card-text mbr-fonts-style display-4">Grand Total (Base): {{ invoice?.base_grand_total }}</p>
|
|
23
|
-
<p class="card-text mbr-fonts-style display-4">Grand Total (Purchased): {{ invoice?.grand_total }}</p>
|
|
24
|
-
<p class="btn_link mbr-fonts-style display-4"><NuxtLink :to="`/commerce/invoice/${invoice?.id}`" class="text-secondary">View<span class="mobi-mbri mobi-mbri-right mbr-iconfont"></span></NuxtLink></p>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</section>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script setup>
|
|
35
|
-
import {
|
|
36
|
-
ref,
|
|
37
|
-
onMounted
|
|
38
|
-
} from 'vue';
|
|
39
|
-
const route = useRoute();
|
|
40
|
-
const {
|
|
41
|
-
$directus,
|
|
42
|
-
$readItem
|
|
43
|
-
} = useNuxtApp()
|
|
44
|
-
const user = useSupabaseUser()
|
|
45
|
-
|
|
46
|
-
const {
|
|
47
|
-
data: invoice
|
|
48
|
-
} = await useAsyncData('invoice', () => {
|
|
49
|
-
return $directus.request($readItem('invoices', route.params.id, {
|
|
50
|
-
filter: {
|
|
51
|
-
user: {
|
|
52
|
-
_eq: `${user?.id}`
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
limit: 1
|
|
56
|
-
})).then(response => response?.[0])
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
useHead({
|
|
60
|
-
title: 'Invoice' + invoice?.value?.id || 'Invoice Page',
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
definePageMeta({
|
|
64
|
-
//middleware: ['auth-logged-in'],
|
|
65
|
-
})
|
|
66
|
-
</script>
|