@wipzent/github-sync 1.0.1
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/LICENSE +21 -0
- package/README.md +77 -0
- package/dist/cli/index.js +185 -0
- package/dist/cli/prompts.js +16 -0
- package/dist/config/defaults.js +5 -0
- package/dist/config/env.js +23 -0
- package/dist/config/octokit.js +14 -0
- package/dist/git/clone.js +15 -0
- package/dist/git/rewriteAuthor.js +37 -0
- package/dist/git/sync.js +141 -0
- package/dist/mcp/resources/github.js +13 -0
- package/dist/mcp/server.js +92 -0
- package/dist/mcp/tools/autoSync.js +130 -0
- package/dist/mcp/tools/createRepo.js +120 -0
- package/dist/mcp/tools/resolveConflict.js +4 -0
- package/dist/mcp/tools/syncRepo.js +21 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/components/Toaster/toast.js +17 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/config/fetch.js +76 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/config/index.js +65 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/data/data.js +574 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/lib/utils.js +8 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/redux/config.js +7 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/redux/slices/AdminsSlice.js +20 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/redux/slices/userSlice.js +19 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/redux/store.js +15 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/types/interfaces.js +3 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/types/types.js +2 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/src/utils/helperFunctions.js +150 -0
- package/dist/temp/Terred-Mujtaba-/apps/app/tailwind.config.js +85 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/admin/admin.controller.js +113 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/admin/admin.controller.spec.js +18 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/admin/admin.module.js +64 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/admin/admin.service.js +327 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/admin/admin.service.spec.js +16 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/admin/dto/admin.dto.js +214 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/app.controller.js +67 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/app.controller.spec.js +20 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/app.module.js +67 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/app.service.js +60 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/categories/categories.controller.js +89 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/categories/categories.controller.spec.js +18 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/categories/categories.module.js +64 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/categories/categories.service.js +173 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/categories/categories.service.spec.js +16 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/categories/dto/category.dto.js +128 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/cloudinary/cloudinary.controller.js +86 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/cloudinary/cloudinary.controller.spec.js +18 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/cloudinary/cloudinary.module.js +63 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/cloudinary/cloudinary.service.js +132 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/cloudinary/cloudinary.service.spec.js +16 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/config/index.js +2 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/main.js +30 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/prisma/prisma.module.js +60 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/prisma/prisma.service.js +58 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/prisma/prisma.service.spec.js +16 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/products/dto/product.dto.js +124 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/products/products.controller.js +89 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/products/products.controller.spec.js +18 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/products/products.module.js +64 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/products/products.service.js +170 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/products/products.service.spec.js +16 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/types/index.js +2 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/utils/func.js +79 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/src/utils/helper.js +31 -0
- package/dist/temp/Terred-Mujtaba-/apps/backend/test/app.e2e-spec.js +54 -0
- package/dist/temp/Terred-Mujtaba-/packages/ui/turbo/generators/config.js +30 -0
- package/package.json +47 -0
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.categoryValidationSchema = exports.categoryInitialValues = exports.AddProductvalidationSchema = exports.AddproductsinitialValues = exports.imagesliderData = exports.categoriesData = exports.productsData = exports.legalFooterSection = exports.pagesFooterSection = void 0;
|
|
37
|
+
const Yup = __importStar(require("yup"));
|
|
38
|
+
exports.pagesFooterSection = [
|
|
39
|
+
{
|
|
40
|
+
label: 'Home',
|
|
41
|
+
href: '/',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: 'Products',
|
|
45
|
+
href: '/products',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: 'Faq',
|
|
49
|
+
href: '/faq',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: 'Contact Us',
|
|
53
|
+
href: '/contact',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
exports.legalFooterSection = [
|
|
57
|
+
{
|
|
58
|
+
label: 'Privacy Policy',
|
|
59
|
+
href: '/privacy-policy',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: 'Terms of Service',
|
|
63
|
+
href: '/terms-of-service',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: 'Cookie Policy',
|
|
67
|
+
href: '/cookie-policy',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: 'Contact Us',
|
|
71
|
+
href: '/contact',
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
exports.productsData = [
|
|
75
|
+
{
|
|
76
|
+
id: 1,
|
|
77
|
+
name: 'Silky Aroma Treatment',
|
|
78
|
+
price: 29.99,
|
|
79
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
80
|
+
stock: 50,
|
|
81
|
+
discountPrice: 25.99,
|
|
82
|
+
sale: '20% OFF',
|
|
83
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
84
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
85
|
+
posterImageUrl: '/images/product1.png',
|
|
86
|
+
posterImagePublicId: 'product1-poster',
|
|
87
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
88
|
+
hoverImagePublicId: 'product1-hover',
|
|
89
|
+
productImages: [
|
|
90
|
+
{
|
|
91
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
92
|
+
public_id: 'abc',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
96
|
+
public_id: 'abc',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
100
|
+
public_id: 'abc',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
104
|
+
public_id: 'abc',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
108
|
+
categoriesId: 1,
|
|
109
|
+
categories: 1,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 1,
|
|
113
|
+
name: 'Silky Aroma Treatment',
|
|
114
|
+
price: 29.99,
|
|
115
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
116
|
+
stock: 50,
|
|
117
|
+
discountPrice: 25.99,
|
|
118
|
+
sale: '20% OFF',
|
|
119
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
120
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
121
|
+
posterImageUrl: '/images/product2.png',
|
|
122
|
+
posterImagePublicId: 'product1-poster',
|
|
123
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
124
|
+
hoverImagePublicId: 'product1-hover',
|
|
125
|
+
productImages: [
|
|
126
|
+
{
|
|
127
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
128
|
+
public_id: 'abc',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
132
|
+
public_id: 'abc',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
136
|
+
public_id: 'abc',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
140
|
+
public_id: 'abc',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
144
|
+
categoriesId: 1,
|
|
145
|
+
categories: 1,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: 1,
|
|
149
|
+
name: 'Silky Aroma Treatment',
|
|
150
|
+
price: 29.99,
|
|
151
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
152
|
+
stock: 50,
|
|
153
|
+
discountPrice: 25.99,
|
|
154
|
+
sale: '20% OFF',
|
|
155
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
156
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
157
|
+
posterImageUrl: '/images/product3.png',
|
|
158
|
+
posterImagePublicId: 'product1-poster',
|
|
159
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
160
|
+
hoverImagePublicId: 'product1-hover',
|
|
161
|
+
productImages: [
|
|
162
|
+
{
|
|
163
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
164
|
+
public_id: 'abc',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
168
|
+
public_id: 'abc',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
172
|
+
public_id: 'abc',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
176
|
+
public_id: 'abc',
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
180
|
+
categoriesId: 1,
|
|
181
|
+
categories: 1,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: 1,
|
|
185
|
+
name: 'Silky Aroma Treatment',
|
|
186
|
+
price: 29.99,
|
|
187
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
188
|
+
stock: 50,
|
|
189
|
+
discountPrice: 25.99,
|
|
190
|
+
sale: '20% OFF',
|
|
191
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
192
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
193
|
+
posterImageUrl: '/images/product1.png',
|
|
194
|
+
posterImagePublicId: 'product1-poster',
|
|
195
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
196
|
+
hoverImagePublicId: 'product1-hover',
|
|
197
|
+
productImages: [
|
|
198
|
+
{
|
|
199
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
200
|
+
public_id: 'abc',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
204
|
+
public_id: 'abc',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
208
|
+
public_id: 'abc',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
212
|
+
public_id: 'abc',
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
216
|
+
categoriesId: 1,
|
|
217
|
+
categories: 1,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: 1,
|
|
221
|
+
name: 'Silky Aroma Treatment',
|
|
222
|
+
price: 29.99,
|
|
223
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
224
|
+
stock: 50,
|
|
225
|
+
discountPrice: 25.99,
|
|
226
|
+
sale: '20% OFF',
|
|
227
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
228
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
229
|
+
posterImageUrl: '/images/product2.png',
|
|
230
|
+
posterImagePublicId: 'product1-poster',
|
|
231
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
232
|
+
hoverImagePublicId: 'product1-hover',
|
|
233
|
+
productImages: [
|
|
234
|
+
{
|
|
235
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
236
|
+
public_id: 'abc',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
240
|
+
public_id: 'abc',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
244
|
+
public_id: 'abc',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
248
|
+
public_id: 'abc',
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
252
|
+
categoriesId: 1,
|
|
253
|
+
categories: 1,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
id: 1,
|
|
257
|
+
name: 'Silky Aroma Treatment',
|
|
258
|
+
price: 29.99,
|
|
259
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
260
|
+
stock: 50,
|
|
261
|
+
discountPrice: 25.99,
|
|
262
|
+
sale: '20% OFF',
|
|
263
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
264
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
265
|
+
posterImageUrl: '/images/product2.png',
|
|
266
|
+
posterImagePublicId: 'product1-poster',
|
|
267
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
268
|
+
hoverImagePublicId: 'product1-hover',
|
|
269
|
+
productImages: [
|
|
270
|
+
{
|
|
271
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
272
|
+
public_id: 'abc',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
276
|
+
public_id: 'abc',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
280
|
+
public_id: 'abc',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
284
|
+
public_id: 'abc',
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
288
|
+
categoriesId: 1,
|
|
289
|
+
categories: 1,
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: 1,
|
|
293
|
+
name: 'Silky Aroma Treatment',
|
|
294
|
+
price: 29.99,
|
|
295
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
296
|
+
stock: 50,
|
|
297
|
+
discountPrice: 25.99,
|
|
298
|
+
sale: '20% OFF',
|
|
299
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
300
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
301
|
+
posterImageUrl: '/images/product4.png',
|
|
302
|
+
posterImagePublicId: 'product1-poster',
|
|
303
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
304
|
+
hoverImagePublicId: 'product1-hover',
|
|
305
|
+
productImages: [
|
|
306
|
+
{
|
|
307
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
308
|
+
public_id: 'abc',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
312
|
+
public_id: 'abc',
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
316
|
+
public_id: 'abc',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
320
|
+
public_id: 'abc',
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
324
|
+
categoriesId: 1,
|
|
325
|
+
categories: 1,
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
id: 1,
|
|
329
|
+
name: 'Silky Aroma Treatment',
|
|
330
|
+
price: 29.99,
|
|
331
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
332
|
+
stock: 50,
|
|
333
|
+
discountPrice: 25.99,
|
|
334
|
+
sale: '20% OFF',
|
|
335
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
336
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
337
|
+
posterImageUrl: '/images/product3.png',
|
|
338
|
+
posterImagePublicId: 'product1-poster',
|
|
339
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
340
|
+
hoverImagePublicId: 'product1-hover',
|
|
341
|
+
productImages: [
|
|
342
|
+
{
|
|
343
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
344
|
+
public_id: 'abc',
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
348
|
+
public_id: 'abc',
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
352
|
+
public_id: 'abc',
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
356
|
+
public_id: 'abc',
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
360
|
+
categoriesId: 1,
|
|
361
|
+
categories: 1,
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: 1,
|
|
365
|
+
name: 'Silky Aroma Treatment',
|
|
366
|
+
price: 29.99,
|
|
367
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
368
|
+
stock: 50,
|
|
369
|
+
discountPrice: 25.99,
|
|
370
|
+
sale: '20% OFF',
|
|
371
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
372
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
373
|
+
posterImageUrl: '/images/product1.png',
|
|
374
|
+
posterImagePublicId: 'product1-poster',
|
|
375
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
376
|
+
hoverImagePublicId: 'product1-hover',
|
|
377
|
+
productImages: [
|
|
378
|
+
{
|
|
379
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
380
|
+
public_id: 'abc',
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
384
|
+
public_id: 'abc',
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
388
|
+
public_id: 'abc',
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
392
|
+
public_id: 'abc',
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
396
|
+
categoriesId: 1,
|
|
397
|
+
categories: 1,
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
id: 1,
|
|
401
|
+
name: 'Silky Aroma Treatment',
|
|
402
|
+
price: 29.99,
|
|
403
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
404
|
+
stock: 50,
|
|
405
|
+
discountPrice: 25.99,
|
|
406
|
+
sale: '20% OFF',
|
|
407
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
408
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
409
|
+
posterImageUrl: '/images/product4.png',
|
|
410
|
+
posterImagePublicId: 'product1-poster',
|
|
411
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
412
|
+
hoverImagePublicId: 'product1-hover',
|
|
413
|
+
productImages: [
|
|
414
|
+
{
|
|
415
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
416
|
+
public_id: 'abc',
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
420
|
+
public_id: 'abc',
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
424
|
+
public_id: 'abc',
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
428
|
+
public_id: 'abc',
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
432
|
+
categoriesId: 1,
|
|
433
|
+
categories: 1,
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
id: 1,
|
|
437
|
+
name: 'Silky Aroma Treatment',
|
|
438
|
+
price: 29.99,
|
|
439
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
440
|
+
stock: 50,
|
|
441
|
+
discountPrice: 25.99,
|
|
442
|
+
sale: '20% OFF',
|
|
443
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
444
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
445
|
+
posterImageUrl: '/images/product2.png',
|
|
446
|
+
posterImagePublicId: 'product1-poster',
|
|
447
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
448
|
+
hoverImagePublicId: 'product1-hover',
|
|
449
|
+
productImages: [
|
|
450
|
+
{
|
|
451
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
452
|
+
public_id: 'abc',
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
456
|
+
public_id: 'abc',
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
460
|
+
public_id: 'abc',
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
464
|
+
public_id: 'abc',
|
|
465
|
+
},
|
|
466
|
+
],
|
|
467
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
468
|
+
categoriesId: 1,
|
|
469
|
+
categories: 1,
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
id: 1,
|
|
473
|
+
name: 'Silky Aroma Treatment',
|
|
474
|
+
price: 29.99,
|
|
475
|
+
description: 'Terre D Silky Aroma Treatment 300ml',
|
|
476
|
+
stock: 50,
|
|
477
|
+
discountPrice: 25.99,
|
|
478
|
+
sale: '20% OFF',
|
|
479
|
+
colors: ['Red', 'Blue', 'Green'],
|
|
480
|
+
spacification: ['Volume: 300ml', 'Fragrance: Silky Aroma', 'Type: Shampoo'],
|
|
481
|
+
posterImageUrl: '/images/product3.png',
|
|
482
|
+
posterImagePublicId: 'product1-poster',
|
|
483
|
+
hoverImageUrl: '/images/product1-hover.jpg',
|
|
484
|
+
hoverImagePublicId: 'product1-hover',
|
|
485
|
+
productImages: [
|
|
486
|
+
{
|
|
487
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set3.jpg',
|
|
488
|
+
public_id: 'abc',
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set1.jpg',
|
|
492
|
+
public_id: 'abc',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set4.jpg',
|
|
496
|
+
public_id: 'abc',
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
imageUrl: 'https://furniturezone.pk/wp-content/uploads/2024/03/4-Seater-Interchangeable-L-Shape-Sofa-Set6.jpg',
|
|
500
|
+
public_id: 'abc',
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
additionalInformation: ['Suitable for all hair types', 'Paraben-free'],
|
|
504
|
+
categoriesId: 1,
|
|
505
|
+
categories: 1,
|
|
506
|
+
},
|
|
507
|
+
];
|
|
508
|
+
exports.categoriesData = [
|
|
509
|
+
{
|
|
510
|
+
id: 1,
|
|
511
|
+
name: 'Fleur Aroma Shampoo',
|
|
512
|
+
imageUrl: '/images/categories/cat1.png',
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
id: 2,
|
|
516
|
+
name: 'Essential Oil',
|
|
517
|
+
imageUrl: '/images/categories/cat4.png',
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
id: 3,
|
|
521
|
+
name: 'Deodorant Room & Fabric Spray',
|
|
522
|
+
imageUrl: '/images/categories/cat2.png',
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
id: 4,
|
|
526
|
+
name: 'Armstrong Slimming Oil 100ml',
|
|
527
|
+
imageUrl: '/images/categories/cat3.png',
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
id: 5,
|
|
531
|
+
name: 'Bodycare Travel Kit 20ml',
|
|
532
|
+
imageUrl: '/images/categories/cat4.png',
|
|
533
|
+
},
|
|
534
|
+
];
|
|
535
|
+
exports.imagesliderData = [
|
|
536
|
+
'/images/cover.webp',
|
|
537
|
+
'/images/categories/cat4.jpg',
|
|
538
|
+
'/images/categories/cat3.jpg',
|
|
539
|
+
'/images/categories/cat2.jpg',
|
|
540
|
+
'/images/categories/cat1.jpg',
|
|
541
|
+
'/images/categories/cat4.jpg',
|
|
542
|
+
'/images/categories/cat3.jpg',
|
|
543
|
+
'/images/categories/cat1.jpg',
|
|
544
|
+
'/images/categories/cat4.jpg',
|
|
545
|
+
'/images/categories/cat2.jpg',
|
|
546
|
+
'/images/categories/cat1.jpg',
|
|
547
|
+
'/images/categories/cat4.jpg',
|
|
548
|
+
];
|
|
549
|
+
// You can use your actual images in place of these placeholder URLs.
|
|
550
|
+
//@ts-expect-error
|
|
551
|
+
exports.AddproductsinitialValues = {
|
|
552
|
+
name: '',
|
|
553
|
+
description: '',
|
|
554
|
+
price: 0,
|
|
555
|
+
};
|
|
556
|
+
exports.AddProductvalidationSchema = Yup.object({
|
|
557
|
+
// name: yupToFormErrors.string()
|
|
558
|
+
// .min(2, 'Too Short!')
|
|
559
|
+
// .max(50, 'Too Long!')
|
|
560
|
+
// .required('Required'),
|
|
561
|
+
// description: Yup.string().required('Required'),
|
|
562
|
+
// price: Yup.string().required('Price is required'),
|
|
563
|
+
// salePrice: Yup.number()
|
|
564
|
+
// .min(1, 'Minimum sales price must be at least 1')
|
|
565
|
+
// .required('Required'),
|
|
566
|
+
});
|
|
567
|
+
exports.categoryInitialValues = {
|
|
568
|
+
name: '',
|
|
569
|
+
description: '',
|
|
570
|
+
};
|
|
571
|
+
exports.categoryValidationSchema = Yup.object({
|
|
572
|
+
name: Yup.string().required('Required'),
|
|
573
|
+
description: Yup.string().required('required'),
|
|
574
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cn = cn;
|
|
4
|
+
const clsx_1 = require("clsx");
|
|
5
|
+
const tailwind_merge_1 = require("tailwind-merge");
|
|
6
|
+
function cn(...inputs) {
|
|
7
|
+
return (0, tailwind_merge_1.twMerge)((0, clsx_1.clsx)(inputs));
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAppSelector = exports.useAppDispatch = void 0;
|
|
4
|
+
const react_redux_1 = require("react-redux");
|
|
5
|
+
const useAppDispatch = () => (0, react_redux_1.useDispatch)();
|
|
6
|
+
exports.useAppDispatch = useAppDispatch;
|
|
7
|
+
exports.useAppSelector = react_redux_1.useSelector;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loggedInAdminAction = void 0;
|
|
4
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
+
const initialState = {
|
|
6
|
+
userLoading: false,
|
|
7
|
+
loggedInUser: undefined,
|
|
8
|
+
assistantResponse: '',
|
|
9
|
+
};
|
|
10
|
+
const usersSlice = (0, toolkit_1.createSlice)({
|
|
11
|
+
name: 'usersSlice',
|
|
12
|
+
initialState: initialState,
|
|
13
|
+
reducers: {
|
|
14
|
+
loggedInAdminAction: (state, action) => {
|
|
15
|
+
state.loggedInUser = action.payload;
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
exports.loggedInAdminAction = usersSlice.actions.loggedInAdminAction;
|
|
20
|
+
exports.default = usersSlice.reducer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loggedInUserAction = void 0;
|
|
4
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
+
const initialState = {
|
|
6
|
+
userLoading: false,
|
|
7
|
+
loggedInUser: undefined,
|
|
8
|
+
};
|
|
9
|
+
const usrSlice = (0, toolkit_1.createSlice)({
|
|
10
|
+
name: 'usrSlice',
|
|
11
|
+
initialState: initialState,
|
|
12
|
+
reducers: {
|
|
13
|
+
loggedInUserAction: (state, action) => {
|
|
14
|
+
state.loggedInUser = action.payload;
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
exports.loggedInUserAction = usrSlice.actions.loggedInUserAction;
|
|
19
|
+
exports.default = usrSlice.reducer;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.store = void 0;
|
|
7
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
8
|
+
const AdminsSlice_1 = __importDefault(require("./slices/AdminsSlice"));
|
|
9
|
+
const userSlice_1 = __importDefault(require("./slices/userSlice"));
|
|
10
|
+
exports.store = (0, toolkit_1.configureStore)({
|
|
11
|
+
reducer: {
|
|
12
|
+
usersSlice: AdminsSlice_1.default,
|
|
13
|
+
userSlice: userSlice_1.default,
|
|
14
|
+
},
|
|
15
|
+
});
|