@crm-market/template-shared 1.0.7 → 1.0.8
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/assets/scss/_variables.scss +3 -3
- package/assets/scss/components/_header.scss +1 -1
- package/assets/scss/style.css +4 -4
- package/components/AboutUs/StaticContent.vue +32 -0
- package/components/Cart/CartEmpty.vue +42 -0
- package/components/Cart/CartItem.vue +145 -0
- package/components/Cart/CartSummary.vue +57 -0
- package/components/Cart/ProductQuantity.vue +23 -13
- package/components/Cart/index.vue +68 -150
- package/components/Categories/index.vue +88 -291
- package/components/Checkout/AddressFields.vue +74 -0
- package/components/Checkout/CheckoutForm.vue +75 -0
- package/components/Checkout/CityAutocomplete.vue +68 -0
- package/components/Checkout/DeliveryMethodCard.vue +66 -0
- package/components/Checkout/DeliveryOptions.vue +148 -0
- package/components/Checkout/OrderSummary.vue +116 -0
- package/components/Checkout/PaymentOptions.vue +76 -0
- package/components/Checkout/PickupPoints.vue +46 -0
- package/components/Checkout/PromoCode.vue +166 -0
- package/components/Checkout/index.vue +235 -173
- package/components/Checkout/types.ts +45 -0
- package/components/Common/PageBanner.vue +22 -20
- package/components/Common/ProductCard.vue +139 -115
- package/components/Common/Services.vue +4 -4
- package/components/Contact/ContactForm.vue +44 -74
- package/components/Contact/ContactInfo.vue +35 -61
- package/components/FAQ/index.vue +6 -119
- package/components/Layout/Copyright.vue +11 -9
- package/components/Layout/Footer.vue +49 -136
- package/components/Layout/HeaderBar.vue +174 -0
- package/components/Layout/HeaderLogo.vue +27 -0
- package/components/Layout/MiddleHeader.vue +1 -228
- package/components/Layout/MiddleHeaderThree.vue +1 -203
- package/components/Layout/MiddleHeaderTwo.vue +1 -239
- package/components/Layout/NavLinks.vue +23 -0
- package/components/Layout/Navbar.vue +38 -151
- package/components/Layout/NavbarStyleFour.vue +1 -332
- package/components/Layout/NavbarStyleThree.vue +1 -188
- package/components/Layout/NavbarStyleTwo.vue +1 -108
- package/components/Layout/Preloader.vue +5 -12
- package/components/Layout/ResponsiveNavbar.vue +32 -418
- package/components/Layout/SitewideBanner.vue +285 -0
- package/components/Layout/TopHeader.vue +17 -83
- package/components/Layout/layoutData.ts +83 -0
- package/components/PrivacyPolicy/index.vue +6 -110
- package/components/ProductDetails/ProductDetailsTab.vue +31 -321
- package/components/ProductDetails/ProductGallery.vue +45 -0
- package/components/ProductDetails/ProductQuantity.vue +8 -14
- package/components/ProductDetails/RecentlyViewed.vue +53 -289
- package/components/ProductDetails/RelatedProducts.vue +64 -0
- package/components/ProductDetails/index.vue +90 -230
- package/components/Products/index.vue +78 -16
- package/components/TermsConditions/index.vue +6 -110
- package/components/Wishlist/index.vue +62 -88
- package/composables/useCart.ts +133 -81
- package/composables/useCategories.ts +66 -29
- package/composables/useCategoryImages.ts +45 -0
- package/composables/useCheckout.ts +302 -95
- package/composables/useContactForm.ts +57 -0
- package/composables/useHomeContent.ts +220 -0
- package/composables/useI18n.ts +12 -24
- package/composables/useJsonLd.ts +162 -0
- package/composables/useProducts.ts +244 -81
- package/composables/useRecent.ts +30 -0
- package/composables/useSanitize.ts +76 -0
- package/composables/useSiteConfig.ts +51 -45
- package/composables/useStaticPages.ts +48 -0
- package/composables/useStoreOrigin.ts +32 -0
- package/composables/useTemplateSections.ts +51 -3
- package/composables/useThemeVars.ts +113 -0
- package/composables/useWishlist.ts +72 -0
- package/layouts/default.vue +80 -19
- package/locales/en.json +255 -86
- package/locales/uk.json +251 -82
- package/modules/template-schema.ts +35 -0
- package/nuxt.config.ts +8 -11
- package/package.json +1 -1
- package/pages/about-us.vue +9 -9
- package/pages/cart.vue +0 -1
- package/pages/categories.vue +0 -1
- package/pages/category/[slug].vue +84 -0
- package/pages/checkout.vue +0 -1
- package/pages/contact.vue +6 -6
- package/pages/delivery.vue +12 -0
- package/pages/faq.vue +6 -6
- package/pages/order-success.vue +113 -0
- package/pages/privacy-policy.vue +6 -6
- package/pages/product/[slug].vue +82 -0
- package/pages/product-details.vue +14 -6
- package/pages/products.vue +12 -1
- package/pages/returns.vue +12 -0
- package/pages/terms-conditions.vue +6 -6
- package/pages/wishlist.vue +2 -2
- package/utils/seo-urls.ts +70 -0
- package/utils/store-origin.ts +36 -0
- package/components/AboutUs/AboutUsTuan.vue +0 -25
- package/components/AboutUs/Statistics.vue +0 -42
- package/components/AboutUs/SubscribeToTheNewsletter.vue +0 -57
- package/components/AddAddress/index.vue +0 -68
- package/components/BestSellers/Products.vue +0 -1562
- package/components/BestSellers/RecentlyViewed.vue +0 -304
- package/components/ChangePassword/index.vue +0 -69
- package/components/Common/DashboardNavigation.vue +0 -35
- package/components/Dashboard/RecentOrder.vue +0 -173
- package/components/Dashboard/index.vue +0 -77
- package/components/EditAddress/index.vue +0 -117
- package/components/EditProfile/index.vue +0 -95
- package/components/FeaturedProduct/FeaturedProducts.vue +0 -304
- package/components/FeaturedProduct/Products.vue +0 -1562
- package/components/ForgotPassword/index.vue +0 -49
- package/components/Layout/FooterTwo.vue +0 -159
- package/components/Layout/LocationOption.vue +0 -178
- package/components/Layout/RTLSwitchBtn.vue +0 -40
- package/components/Login/index.vue +0 -89
- package/components/MyAccount/index.vue +0 -154
- package/components/NewArrivals/Products.vue +0 -1969
- package/components/NewArrivals/RecentlyViewed.vue +0 -304
- package/components/OrderDetails/index.vue +0 -75
- package/components/OrderHistory/index.vue +0 -195
- package/components/Products/RecentlyViewed.vue +0 -302
- package/components/Register/index.vue +0 -83
- package/components/TrendingProducts/FeaturedProducts.vue +0 -304
- package/components/TrendingProducts/Products.vue +0 -1564
- package/components/Wishlist/ProductQuantity.vue +0 -29
- package/layouts/inner.vue +0 -70
- package/locales/ar.json +0 -234
- package/locales/ru.json +0 -234
- package/pages/address.vue +0 -11
- package/pages/change-password.vue +0 -11
- package/pages/dashboard.vue +0 -11
- package/pages/edit-address.vue +0 -11
- package/pages/edit-profile.vue +0 -11
- package/pages/forgot-password.vue +0 -11
- package/pages/login.vue +0 -11
- package/pages/my-account.vue +0 -11
- package/pages/order-details.vue +0 -11
- package/pages/order-history.vue +0 -11
- package/pages/register.vue +0 -11
|
@@ -1,190 +1,3 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<div class="container mw-1610">
|
|
4
|
-
<NuxtLink class="navbar-brand d-lg-none" to="/">
|
|
5
|
-
<img
|
|
6
|
-
:src="logoUrl || defaultLogo"
|
|
7
|
-
class="main-logo"
|
|
8
|
-
alt="logo"
|
|
9
|
-
/>
|
|
10
|
-
</NuxtLink>
|
|
11
|
-
<a
|
|
12
|
-
class="navbar-toggler"
|
|
13
|
-
href="javascript:void(0);"
|
|
14
|
-
@click="stateStoreInstance.onChangeShow"
|
|
15
|
-
>
|
|
16
|
-
<span class="burger-menu">
|
|
17
|
-
<span class="top-bar"></span>
|
|
18
|
-
<span class="middle-bar"></span>
|
|
19
|
-
<span class="bottom-bar"></span>
|
|
20
|
-
</span>
|
|
21
|
-
</a>
|
|
22
|
-
|
|
23
|
-
<ul class="categories-nav categories-style-three d-none d-lg-block">
|
|
24
|
-
<li class="categories-item dropdown">
|
|
25
|
-
<div
|
|
26
|
-
class="categories-link dropdown-toggle"
|
|
27
|
-
@click="toggleCategories"
|
|
28
|
-
:aria-pressed="show ? 'true' : 'false'"
|
|
29
|
-
:class="{ show: buttonShowState }"
|
|
30
|
-
>
|
|
31
|
-
<i class="ri-menu-2-line"></i>
|
|
32
|
-
<span>{{ t('nav.browseCategories') }}</span>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<ul class="dropdown-menu" :class="{ show: show }">
|
|
36
|
-
<li v-for="category in topLevelCategories" :key="category.id">
|
|
37
|
-
<template v-if="getSubcategories(category.id).length > 0">
|
|
38
|
-
<a
|
|
39
|
-
class="dropdown-item sub-dropdown dropdown-toggle"
|
|
40
|
-
href="javascript:void(0)"
|
|
41
|
-
@click="toggleSubDropdown(category.id)"
|
|
42
|
-
>
|
|
43
|
-
<i class="ri-folder-line"></i>
|
|
44
|
-
<span>{{ category.name }}</span>
|
|
45
|
-
</a>
|
|
46
|
-
|
|
47
|
-
<ul
|
|
48
|
-
class="dropdown-menu dropdown-menu-sub"
|
|
49
|
-
:class="{ show: activeSubDropdown === category.id }"
|
|
50
|
-
>
|
|
51
|
-
<li v-for="sub in getSubcategories(category.id)" :key="sub.id">
|
|
52
|
-
<NuxtLink
|
|
53
|
-
class="dropdown-item"
|
|
54
|
-
:to="`/products?categoryId=${sub.id}`"
|
|
55
|
-
>
|
|
56
|
-
{{ sub.name }}
|
|
57
|
-
</NuxtLink>
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
</template>
|
|
61
|
-
<template v-else>
|
|
62
|
-
<NuxtLink
|
|
63
|
-
class="dropdown-item single-style"
|
|
64
|
-
:to="`/products?categoryId=${category.id}`"
|
|
65
|
-
>
|
|
66
|
-
{{ category.name }}
|
|
67
|
-
</NuxtLink>
|
|
68
|
-
</template>
|
|
69
|
-
</li>
|
|
70
|
-
<li v-if="topLevelCategories.length === 0">
|
|
71
|
-
<span class="dropdown-item text-muted">{{ t('nav.noCategories') }}</span>
|
|
72
|
-
</li>
|
|
73
|
-
</ul>
|
|
74
|
-
</li>
|
|
75
|
-
</ul>
|
|
76
|
-
|
|
77
|
-
<div class="collapse navbar-collapse">
|
|
78
|
-
<ul class="navbar-nav me-auto ms-68">
|
|
79
|
-
<li class="nav-item">
|
|
80
|
-
<NuxtLink class="nav-link" to="/"> {{ t('nav.home') }} </NuxtLink>
|
|
81
|
-
</li>
|
|
82
|
-
|
|
83
|
-
<li class="nav-item">
|
|
84
|
-
<NuxtLink class="nav-link" to="/products"> {{ t('nav.products') }} </NuxtLink>
|
|
85
|
-
</li>
|
|
86
|
-
|
|
87
|
-
<li class="nav-item">
|
|
88
|
-
<NuxtLink class="nav-link" to="/categories"> {{ t('nav.categories') }} </NuxtLink>
|
|
89
|
-
</li>
|
|
90
|
-
|
|
91
|
-
<li class="nav-item">
|
|
92
|
-
<NuxtLink class="nav-link" to="/about-us"> {{ t('nav.about') }} </NuxtLink>
|
|
93
|
-
</li>
|
|
94
|
-
|
|
95
|
-
<li class="nav-item">
|
|
96
|
-
<NuxtLink class="nav-link" to="/contact"> {{ t('nav.contact') }} </NuxtLink>
|
|
97
|
-
</li>
|
|
98
|
-
</ul>
|
|
99
|
-
</div>
|
|
100
|
-
|
|
101
|
-
<ul
|
|
102
|
-
class="d-none d-lg-flex others-options grocery-options ps-0 mb-0 list-unstyled justify-content-end"
|
|
103
|
-
>
|
|
104
|
-
<li class="info" v-if="phone">
|
|
105
|
-
<a
|
|
106
|
-
:href="`tel:${phone}`"
|
|
107
|
-
class="text-decoration-none success-hover-bg"
|
|
108
|
-
>
|
|
109
|
-
<div class="d-flex align-items-center">
|
|
110
|
-
<div class="flex-shrink-0">
|
|
111
|
-
<i class="ri-phone-line"></i>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="flex-grow-1 ms-10">
|
|
114
|
-
<span>{{ t('nav.hotline') }}</span>
|
|
115
|
-
<h3>{{ phone }}</h3>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
</a>
|
|
119
|
-
</li>
|
|
120
|
-
</ul>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
2
|
+
<LayoutNavbar wrap-class="py-0" />
|
|
123
3
|
</template>
|
|
124
|
-
|
|
125
|
-
<script lang="ts">
|
|
126
|
-
import { defineComponent, ref, watch, onMounted, computed } from "vue";
|
|
127
|
-
import stateStore from "~/utils/store";
|
|
128
|
-
|
|
129
|
-
import defaultLogoImg from "~/assets/images/grocery-shop-logo.png";
|
|
130
|
-
|
|
131
|
-
export default defineComponent({
|
|
132
|
-
name: "NavbarStyleThree",
|
|
133
|
-
setup() {
|
|
134
|
-
const isSticky = ref(false);
|
|
135
|
-
const show = ref(false);
|
|
136
|
-
const buttonShowState = ref(false);
|
|
137
|
-
const activeSubDropdown = ref<string | null>(null);
|
|
138
|
-
const stateStoreInstance = stateStore;
|
|
139
|
-
const defaultLogo = defaultLogoImg;
|
|
140
|
-
|
|
141
|
-
const { t } = useI18n();
|
|
142
|
-
const { topLevelCategories, getSubcategories } = useCategories();
|
|
143
|
-
const { logoUrl, contactInfo } = useSiteConfig();
|
|
144
|
-
|
|
145
|
-
const phone = computed(() => contactInfo.value?.phone);
|
|
146
|
-
|
|
147
|
-
const toggleCategories = () => {
|
|
148
|
-
show.value = !show.value;
|
|
149
|
-
buttonShowState.value = !buttonShowState.value;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
const toggleSubDropdown = (subDropdown: string) => {
|
|
153
|
-
activeSubDropdown.value =
|
|
154
|
-
activeSubDropdown.value === subDropdown ? null : subDropdown;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
const handleScroll = () => {
|
|
158
|
-
const scrollPos = window.scrollY;
|
|
159
|
-
isSticky.value = scrollPos >= 100;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
onMounted(() => {
|
|
163
|
-
window.addEventListener("scroll", handleScroll);
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
watch(isSticky, (newValue: any) => {
|
|
167
|
-
if (newValue) {
|
|
168
|
-
show.value = false;
|
|
169
|
-
buttonShowState.value = false;
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
return {
|
|
174
|
-
isSticky,
|
|
175
|
-
show,
|
|
176
|
-
buttonShowState,
|
|
177
|
-
toggleCategories,
|
|
178
|
-
toggleSubDropdown,
|
|
179
|
-
activeSubDropdown,
|
|
180
|
-
stateStoreInstance,
|
|
181
|
-
defaultLogo,
|
|
182
|
-
topLevelCategories,
|
|
183
|
-
getSubcategories,
|
|
184
|
-
logoUrl,
|
|
185
|
-
phone,
|
|
186
|
-
t,
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
|
-
});
|
|
190
|
-
</script>
|
|
@@ -1,110 +1,3 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
:class="['navbar navbar-expand-lg bg-white ptb-6', { sticky: isSticky }]"
|
|
4
|
-
>
|
|
5
|
-
<div class="container mw-1610">
|
|
6
|
-
<NuxtLink class="navbar-brand d-lg-none" to="/">
|
|
7
|
-
<img
|
|
8
|
-
:src="logoUrl || defaultLogo"
|
|
9
|
-
class="main-logo"
|
|
10
|
-
alt="logo"
|
|
11
|
-
/>
|
|
12
|
-
</NuxtLink>
|
|
13
|
-
<a
|
|
14
|
-
class="navbar-toggler"
|
|
15
|
-
href="javascript:void(0);"
|
|
16
|
-
@click="stateStoreInstance.onChangeShow"
|
|
17
|
-
>
|
|
18
|
-
<span class="burger-menu">
|
|
19
|
-
<span class="top-bar"></span>
|
|
20
|
-
<span class="middle-bar"></span>
|
|
21
|
-
<span class="bottom-bar"></span>
|
|
22
|
-
</span>
|
|
23
|
-
</a>
|
|
24
|
-
|
|
25
|
-
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
26
|
-
<ul class="navbar-nav me-auto">
|
|
27
|
-
<li class="nav-item">
|
|
28
|
-
<NuxtLink class="nav-link" to="/"> {{ t('nav.home') }} </NuxtLink>
|
|
29
|
-
</li>
|
|
30
|
-
|
|
31
|
-
<li class="nav-item">
|
|
32
|
-
<NuxtLink class="nav-link" to="/products"> {{ t('nav.products') }} </NuxtLink>
|
|
33
|
-
</li>
|
|
34
|
-
|
|
35
|
-
<li class="nav-item">
|
|
36
|
-
<NuxtLink class="nav-link" to="/categories"> {{ t('nav.categories') }} </NuxtLink>
|
|
37
|
-
</li>
|
|
38
|
-
|
|
39
|
-
<li class="nav-item">
|
|
40
|
-
<NuxtLink class="nav-link" to="/about-us"> {{ t('nav.about') }} </NuxtLink>
|
|
41
|
-
</li>
|
|
42
|
-
|
|
43
|
-
<li class="nav-item">
|
|
44
|
-
<NuxtLink class="nav-link" to="/contact"> {{ t('nav.contact') }} </NuxtLink>
|
|
45
|
-
</li>
|
|
46
|
-
</ul>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<ul
|
|
50
|
-
class="d-none d-lg-flex others-options grocery-options ps-0 mb-0 list-unstyled justify-content-end"
|
|
51
|
-
>
|
|
52
|
-
<li class="info" v-if="phone">
|
|
53
|
-
<a
|
|
54
|
-
:href="`tel:${phone}`"
|
|
55
|
-
class="text-decoration-none success-hover-bg"
|
|
56
|
-
>
|
|
57
|
-
<div class="d-flex align-items-center">
|
|
58
|
-
<div class="flex-shrink-0">
|
|
59
|
-
<i class="ri-phone-line"></i>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="flex-grow-1 ms-10">
|
|
62
|
-
<span>{{ t('nav.hotline') }}</span>
|
|
63
|
-
<h3>{{ phone }}</h3>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</a>
|
|
67
|
-
</li>
|
|
68
|
-
</ul>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
2
|
+
<LayoutNavbar :with-categories="false" />
|
|
71
3
|
</template>
|
|
72
|
-
|
|
73
|
-
<script lang="ts">
|
|
74
|
-
import { defineComponent, ref, onMounted, computed } from "vue";
|
|
75
|
-
import stateStore from "~/utils/store";
|
|
76
|
-
|
|
77
|
-
import defaultLogoImg from "~/assets/images/grocery-shop-logo.png";
|
|
78
|
-
|
|
79
|
-
export default defineComponent({
|
|
80
|
-
name: "NavbarStyleTwo",
|
|
81
|
-
setup() {
|
|
82
|
-
const isSticky = ref(false);
|
|
83
|
-
const stateStoreInstance = stateStore;
|
|
84
|
-
const defaultLogo = defaultLogoImg;
|
|
85
|
-
|
|
86
|
-
const { t } = useI18n();
|
|
87
|
-
const { logoUrl, contactInfo } = useSiteConfig();
|
|
88
|
-
|
|
89
|
-
const phone = computed(() => contactInfo.value?.phone);
|
|
90
|
-
|
|
91
|
-
const handleScroll = () => {
|
|
92
|
-
const scrollPos = window.scrollY;
|
|
93
|
-
isSticky.value = scrollPos >= 100;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
onMounted(() => {
|
|
97
|
-
window.addEventListener("scroll", handleScroll);
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
return {
|
|
101
|
-
isSticky,
|
|
102
|
-
stateStoreInstance,
|
|
103
|
-
defaultLogo,
|
|
104
|
-
logoUrl,
|
|
105
|
-
phone,
|
|
106
|
-
t,
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
});
|
|
110
|
-
</script>
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// Нейтральний прелоадер без брендингу теми
|
|
3
|
+
</script>
|
|
4
|
+
|
|
1
5
|
<template>
|
|
2
6
|
<div id="preloader">
|
|
3
7
|
<div class="preloader">
|
|
4
|
-
<div class="
|
|
5
|
-
<span>T</span>
|
|
6
|
-
<span>U</span>
|
|
7
|
-
<span>A</span>
|
|
8
|
-
<span>N</span>
|
|
9
|
-
</div>
|
|
8
|
+
<div class="spinner-border text-success" role="status" aria-hidden="true"></div>
|
|
10
9
|
</div>
|
|
11
10
|
</div>
|
|
12
11
|
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
export default {
|
|
16
|
-
name: "Preloader",
|
|
17
|
-
};
|
|
18
|
-
</script>
|