From e5701e86d127a4da39952df597fb82200e584915 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Tue, 28 Jan 2020 21:57:24 +0530 Subject: [PATCH] added code for buy orders --- city e-commerce 0.0.1.html | 204 ++++++++++++++++++++++++++++++++----- 1 file changed, 180 insertions(+), 24 deletions(-) diff --git a/city e-commerce 0.0.1.html b/city e-commerce 0.0.1.html index 71eac94..9e64e2c 100644 --- a/city e-commerce 0.0.1.html +++ b/city e-commerce 0.0.1.html @@ -9560,7 +9560,46 @@ appObjects: {}, vectorClock: {}, generalData: {}, - generalVC: {} + generalVC: {}, + /* ecommerce app */ + // general purposes datastores + myInfo: { + indexes: {pubKey: null} + }, + live_orders: { + indexes: { + orderId: null, + productCategory: null, + dateOfOrder: null, + status: null, + } + }, + my_orders_history: { + indexes: { + orderId: null, + productCategory: null, + dateOfOrder: null, + status: null, + } + }, + + // for Seller view + sellerProducts: { + indexes: { + productFloId: null, + productCategory: null, + productType: null, + status: null, + } + }, + + // for Buyer view + my_search_history: { + indexes: { + productCategory: null, + } + } + } //add other given objectStores for (o in this.appObs) @@ -9798,7 +9837,7 @@ reactor.registerEvent("startUpErrorLog"); reactor.addEventListener("startUpErrorLog", log => console.error(log)) - reactor.addEventListener("startUpErrorLog", log => console.showMessage(log)) + reactor.addEventListener("startUpErrorLog", log => showMessage(log)) function onLoadStartUp() { showMessage("Starting the app! Please Wait!") @@ -9809,14 +9848,30 @@ }).catch(error => console.error(error)) } + + + + + +