Create OrdersPage, load orders from backend, move NavDrawer items to Component
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
{
|
||||
"data": [
|
||||
{ "id": 0, "icon": "mdi-chip", "name": "Electronic" },
|
||||
{ "id": 1, "icon": "mdi-soccer", "name": "Sports" },
|
||||
{ "id": 2, "icon": "mdi-tshirt-crew", "name": "Clothes" },
|
||||
{ "id": 3, "icon": "mdi-bookshelf", "name": "Books" }
|
||||
{
|
||||
"id": 0,
|
||||
"icon": "mdi-chip",
|
||||
"name": "Electronic"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"icon": "mdi-soccer",
|
||||
"name": "Sports"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"icon": "mdi-tshirt-crew",
|
||||
"name": "Clothes"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"icon": "mdi-bookshelf",
|
||||
"name": "Books"
|
||||
}
|
||||
]
|
||||
}
|
||||
28
software/backend/data/orderItems.json
Normal file
28
software/backend/data/orderItems.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": 0,
|
||||
"orderId": 0,
|
||||
"productId": 0,
|
||||
"quantity": 2
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"orderId": 1,
|
||||
"productId": 6,
|
||||
"quantity": 1
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"orderId": 2,
|
||||
"productId": 3,
|
||||
"quantity": 3
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"orderId": 2,
|
||||
"productId": 2,
|
||||
"quantity": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"orderId": 0,
|
||||
"productId": 4,
|
||||
"quantity": 2,
|
||||
"totalPrice": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,16 +1,19 @@
|
||||
{
|
||||
"data": [
|
||||
{ "id": 0, "accountId": 0, "totalPrice": 0 },
|
||||
{ "id": 1, "accountId": 1, "totalPrice": 0 },
|
||||
{ "id": 2, "accountId": 1, "totalPrice": 0 },
|
||||
{ "id": 3, "accountId": 2, "totalPrice": 0 },
|
||||
{ "id": 4, "accountId": 2, "totalPrice": 0 },
|
||||
{ "id": 5, "accountId": 3, "totalPrice": 0 },
|
||||
{ "id": 6, "accountId": 3, "totalPrice": 0 },
|
||||
{ "id": 7, "accountId": 3, "totalPrice": 0 },
|
||||
{ "id": 8, "accountId": 4, "totalPrice": 0 },
|
||||
{ "id": 9, "accountId": 5, "totalPrice": 0 },
|
||||
{ "id": 10, "accountId": 6, "totalPrice": 0 },
|
||||
{ "id": 11, "accountId": 6, "totalPrice": 0 }
|
||||
]
|
||||
{
|
||||
"id": 0,
|
||||
"accountId": 0,
|
||||
"totalPrice": 0
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"accountId": 3,
|
||||
"totalPrice": 0
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"accountId": 3,
|
||||
"totalPrice": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user