From 2eb2a1bf6134adfdf0bd54e1c9df8d35e3b262c4 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 11 Jan 2022 23:30:12 +0530 Subject: [PATCH] Fixes and performance improvements - fixed issue causing articles with '.htm' extension being not displayed - improved performance for fetching articles from GitHub --- index.html | 19823 +++++++++++++++++++++++++-------------------------- 1 file changed, 9847 insertions(+), 9976 deletions(-) diff --git a/index.html b/index.html index 0892048..14bd3e8 100644 --- a/index.html +++ b/index.html @@ -1,169 +1,133 @@ - - - - RanchiMall Times - - - - + + + + + RanchiMall Times + + + + - - + +

Welcome to Ranchimall Times


Did you like the Article?
Please rate below

-
- - - - +
+ + + +
- SUBMIT + SUBMIT
- - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
-
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
- -
-

Sign In

- -

Don't have a private key yet?
Try Guest login

-
+
+ +
+

Sign In

+ +

Don't have a private key yet?
Try Guest login

+
- Login - Guest -
+ "> + Login + Guest
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+
+ + - -
+ d="M 50.027344 18.191406 A 31 31 0 0 0 19.029297 49.191406 A 31 31 0 0 0 50.029297 80.191406 A 31 31 0 0 0 67.878906 74.535156 L 67.154297 73.458984 A 29.700001 29.700001 0 0 1 50.029297 78.892578 A 29.700001 29.700001 0 0 1 20.330078 49.191406 A 29.700001 29.700001 0 0 1 50.029297 19.492188 A 29.700001 29.700001 0 0 1 79.730469 49.191406 A 29.700001 29.700001 0 0 1 77.251953 61.068359 L 78.425781 61.626953 A 31 31 0 0 0 81.029297 49.191406 A 31 31 0 0 0 50.029297 18.191406 A 31 31 0 0 1 50.027344 18.191406 z " /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
- -
+
-
-

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: {}, + }; + - + + - - - //Check if the given Address is valid or not - validateAddr: function (inpAddr) { - try { - var addr = new Bitcoin.Address(inpAddr); - return true; - } catch { - return false; - } - }, - - //Split the str using shamir's Secret and Returns the shares - createShamirsSecretShares: function (str, total_shares, threshold_limit) { - try { - if (str.length > 0) { - var strHex = shamirSecretShare.str2hex(str); - var shares = shamirSecretShare.share( - strHex, - total_shares, - threshold_limit - ); - return shares; - } - return false; - } catch { - return false; - } - }, - - //Verifies the shares and str - verifyShamirsSecret: function (sharesArray, str) { - return str && this.retrieveShamirSecret(sharesArray) === str; - }, - - //Returns the retrived secret by combining the shamirs shares - retrieveShamirSecret: function (sharesArray) { - try { - if (sharesArray.length > 0) { - var comb = shamirSecretShare.combine( - sharesArray.slice(0, sharesArray.length) - ); - comb = shamirSecretShare.hex2str(comb); - return comb; - } - return false; - } catch { - return false; - } - }, - }; - - - + + - - - - - + + + + + + - - - + + + }, + + requestGeneralData: function (type, vectorClock = "0") { + if (typeof vectorClock !== "string") vectorClock.toString(); + return new Promise((resolve, reject) => { + this.util + .requestData([ + floGlobals.application, + "generalData", + type, + vectorClock, + ]) + .then((result) => { + if (result[0]) resolve(result[1]); + else reject(result[1]); + }) + .catch((error) => reject(error)); + }); + }, + + requestObjectData: function (keyPath) { + return new Promise((resolve, reject) => { + this.util + .requestData([floGlobals.application, "appObjects"].concat(keyPath)) + .then((result) => { + if (result[0]) resolve(result[1]); + else reject(result[1]); + }) + .catch((error) => reject(error)); + }); + }, + + requestSubAdminList: function () { + return new Promise((resolve, reject) => { + this.util + .requestData([floGlobals.application, "subAdmins"]) + .then((result) => { + if (result[0]) resolve(result[1]); + else reject(result[1]); + }) + .catch((error) => reject(error)); + }); + }, + }; + - - - - - + \ No newline at end of file