integration

This commit is contained in:
sdarbinyan
2026-02-20 10:43:47 +04:00
parent 6850a911f3
commit f7919f6ca7
9 changed files with 79 additions and 1 deletions

View File

@@ -90,6 +90,7 @@ export class MockDataService {
priority: 1,
quantity: 50,
price: 1299,
discount: 0,
currency: 'USD',
imgs: [
'https://via.placeholder.com/600x400?text=iPhone+Front',
@@ -121,6 +122,7 @@ export class MockDataService {
priority: 2,
quantity: 35,
price: 1199,
discount: 10,
currency: 'USD',
imgs: ['https://via.placeholder.com/600x400?text=Samsung+S24'],
tags: ['new', 'android'],
@@ -140,6 +142,7 @@ export class MockDataService {
priority: 3,
quantity: 20,
price: 999,
discount: 15,
currency: 'USD',
imgs: ['https://via.placeholder.com/600x400?text=Pixel+8'],
tags: ['sale', 'android', 'ai'],
@@ -158,6 +161,7 @@ export class MockDataService {
priority: 1,
quantity: 15,
price: 2499,
discount: 0,
currency: 'USD',
imgs: ['https://via.placeholder.com/600x400?text=MacBook'],
tags: ['featured', 'professional'],
@@ -177,6 +181,7 @@ export class MockDataService {
priority: 2,
quantity: 0,
price: 1799,
discount: 5,
currency: 'USD',
imgs: ['https://via.placeholder.com/600x400?text=Dell+XPS'],
tags: ['out-of-stock'],
@@ -200,6 +205,7 @@ export class MockDataService {
priority: i,
quantity: Math.floor(Math.random() * 100),
price: Math.floor(Math.random() * 1000) + 100,
discount: Math.random() > 0.7 ? Math.floor(Math.random() * 30) + 5 : 0,
currency: 'USD',
imgs: [`https://via.placeholder.com/600x400?text=Product+${i}`],
tags: ['test'],
@@ -404,6 +410,7 @@ export class MockDataService {
priority: data.priority || 99,
quantity: data.quantity || 0,
price: data.price || 0,
discount: data.discount || 0,
currency: data.currency || 'USD',
imgs: data.imgs || [],
tags: data.tags || [],