Create OrdersPage, load orders from backend, move NavDrawer items to Component

This commit is contained in:
2024-09-11 20:49:55 +02:00
parent 463b49ba93
commit 0c20ef4366
34 changed files with 361 additions and 178 deletions

View File

@@ -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"
}
]
}

View 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
}
]
}

View File

@@ -1,10 +0,0 @@
{
"data": [
{
"orderId": 0,
"productId": 4,
"quantity": 2,
"totalPrice": 0
}
]
}

View File

@@ -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
}
]
}