-
Settings
-
- Losing your Private Key means losing all the data & money attached to your
- FLO ID. Private Key once lost can NEVER be recovered. Please store
- it safely.
-
-
-
-
-
-
-
Logout
+
+
Settings
+
+ Losing your Private Key means losing all the data & money attached
+ to your FLO ID. Private Key once lost can NEVER be
+ recovered. Please store it safely.
+
+
+
+
+
+
+
Logout
-
-
- Go Back
-
-
-
-
-
-
- Go Back
-
+
+
+ Go Back
+
+
+
+
+ Go Back
+
-
+
-
- //for cloud apps
- subAdmins: [],
- webAppURL: "ranchimalltimes-webappserver.duckdns.org",
- application: "TestApp",
- vectorClock: {},
- appObjects: {},
- generalData: {},
- generalVC: {}
-
-
- }
-
-
-
+
-
+ },
-
+
+
+ });
+ },
+ };
+
-
+
-
- searchData: function (obsName, patternEval, dbName = this.defaultDB) {
- return new Promise((resolve, reject) => {
- this.openDB(dbName).then(db => {
- var obs = db.transaction(obsName, "readonly").objectStore(obsName);
- var filteredResult = {}
- let curReq = obs.openCursor();
- curReq.onsuccess = (evt) => {
- var cursor = evt.target.result;
- if (cursor) {
- if (patternEval(cursor.primaryKey, cursor.value))
- filteredResult[cursor.primaryKey] = cursor.value;
- cursor.continue();
- } else
- resolve(filteredResult);
- }
- curReq.onerror = (evt) => reject(
- `Search unsuccessful [${evt.target.error.name}] ${evt.target.error.message}`
- );
- db.close();
- }).catch(error => reject(error));
- });
- }
- }
-
-
-
- //update the diff and send it to cloud
- updateObjectData: function (objectName, options = {}) {
- return new Promise((resolve, reject) => {
- var message = {
- division: options.division || floGlobals.division,
- object: objectName,
- vectorClock: floGlobals.vectorClock[objectName],
- diff: findDifference(JSON.parse(this.util.lastCommit[objectName]), floGlobals
- .appObjects[objectName])
- }
- this.sendApplicationData(message, `${objectName}@Update`, options).then(result => {
- this.util.lastCommit[objectName] = JSON.stringify(floGlobals.appObjects[
- objectName])
- resolve(result)
- }).catch(error => reject(error))
- })
- }
- }
-
-
-
+ reactor.addEventListener("startUpErrorLog", (log) => console.error(log));
+
-
+ .catch((error) => reject(error));
+ });
+ },
+ };
+
-
-
-
\ No newline at end of file
+
+