diff --git a/src/assets/mock/README.md b/src/assets/mock/README.md new file mode 100644 index 0000000..8e743b1 --- /dev/null +++ b/src/assets/mock/README.md @@ -0,0 +1,8 @@ +# Mock Data Boundaries + +- `bootstrap/`: tenant and platform configuration only. +- `website/`: website business/content mocks. +- `builder/`: builder configuration editing mocks. +- `backoffice/`: business domain data (products, categories, orders, customers). + +Backoffice business data must not be stored under `bootstrap/`. diff --git a/src/assets/mock/backoffice/categories/list.json b/src/assets/mock/backoffice/categories/list.json new file mode 100644 index 0000000..eac9d5f --- /dev/null +++ b/src/assets/mock/backoffice/categories/list.json @@ -0,0 +1,16 @@ +[ + { + "id": "cat-001", + "title": "Electronics", + "description": "Phones, laptops and accessories", + "imageUrl": "https://images.unsplash.com/photo-1498049794561-7780e7231661?w=400&h=300&fit=crop", + "itemsCount": 120 + }, + { + "id": "cat-002", + "title": "Clothing", + "description": "Fashion for everyone", + "imageUrl": "https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=400&h=300&fit=crop", + "itemsCount": 80 + } +] diff --git a/src/assets/mock/backoffice/customers/list.json b/src/assets/mock/backoffice/customers/list.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/src/assets/mock/backoffice/customers/list.json @@ -0,0 +1 @@ +[] diff --git a/src/assets/mock/backoffice/orders/list.json b/src/assets/mock/backoffice/orders/list.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/src/assets/mock/backoffice/orders/list.json @@ -0,0 +1 @@ +[] diff --git a/src/assets/mock/backoffice/products/list.json b/src/assets/mock/backoffice/products/list.json new file mode 100644 index 0000000..125f16d --- /dev/null +++ b/src/assets/mock/backoffice/products/list.json @@ -0,0 +1,34 @@ +[ + { + "id": "prod-001", + "sku": "SKU-001", + "title": "Demo Product 1", + "subtitle": "Platform product mock", + "imageUrl": "https://images.unsplash.com/photo-1511707171634-5f897ff02aa9?w=600&h=400&fit=crop", + "badges": ["new"], + "tags": ["featured"], + "rating": 4.8, + "reviewsCount": 15, + "price": { + "amount": 149990, + "currency": "RUB", + "originalAmount": 169990 + }, + "stockStatus": "in_stock" + }, + { + "id": "prod-002", + "sku": "SKU-002", + "title": "Demo Product 2", + "imageUrl": "https://images.unsplash.com/photo-1496181133206-80ce9b88a853?w=600&h=400&fit=crop", + "badges": ["sale"], + "tags": ["bestseller"], + "rating": 4.6, + "reviewsCount": 8, + "price": { + "amount": 89990, + "currency": "RUB" + }, + "stockStatus": "low_stock" + } +]