From 648c2150e9d695775993e72f76642cea91f2de8c Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Thu, 7 May 2020 10:12:56 +0530 Subject: [PATCH 1/6] Renaming main file to index.html --- blockchainCloud_client.html => index.html | 20564 ++++++++++---------- 1 file changed, 10282 insertions(+), 10282 deletions(-) rename blockchainCloud_client.html => index.html (97%) diff --git a/blockchainCloud_client.html b/index.html similarity index 97% rename from blockchainCloud_client.html rename to index.html index 93d1d0c..fedd828 100644 --- a/blockchainCloud_client.html +++ b/index.html @@ -1,10283 +1,10283 @@ - - - - - Content Collaboration - - - - - - - - - - - - -
-
- - -
-
- - -
- - -
- - - - - - - -

- -
- -
-
-
- - - - - - - - - - - - - - - - + + + + + Content Collaboration + + + + + + + + + + + + +
+
+ + +
+
+ + +
+ + +
+ + + + + + + +

+ +
+ +
+
+
+ + + + + + + + + + + + + + + + \ No newline at end of file From 94a868e4d5e4547e4a2d2f2c6b4f19571401b34d Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Sat, 6 Jun 2020 16:46:59 +0530 Subject: [PATCH 2/6] Update index.html --- index.html | 10542 +++++++++++++++++++++++++++------------------------ 1 file changed, 5610 insertions(+), 4932 deletions(-) diff --git a/index.html b/index.html index fedd828..610146a 100644 --- a/index.html +++ b/index.html @@ -1,792 +1,848 @@ - - + - Content Collaboration + Content Collaboration - - - - - - -
-
- - -
-
- - -
- - -
- - - - - - - -

- -
- -
-
-
- - + }); + + if(obj.constructor.toString().indexOf("Array") != -1) {obj = obj.filter(function (el) { + return el != null; + });} + + return obj; + } + + /*obj is original object or array, diff is the output of findDifference */ + window.mergeDifference = (obj,diff) => { + if(Object.keys(diff.updated).length !== 0) + obj = mergeRecursive(obj,diff.updated) + if(Object.keys(diff.deleted).length !== 0){ + obj = mergeRecursive(obj,diff.deleted) + obj = cleanse(obj) + } + if(Object.keys(diff.added).length !== 0) + obj = mergeRecursive(obj,diff.added) + return obj + } +})(); + - - + - + - + - + - + + + }).catch(error => console.error(error)) + } + - - \ No newline at end of file + From 09c819e773aaeacd1f99e7bd12c2c6ea17b7feb0 Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Sat, 6 Jun 2020 16:51:56 +0530 Subject: [PATCH 3/6] Update index.html --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 610146a..0349dcf 100644 --- a/index.html +++ b/index.html @@ -284,6 +284,7 @@ background: var(--primary-color); padding: 0.5rem; margin: 0; + cursor:pointer; } .gallery-name { From 5d33181ca37634a9fc2f388ec1beb4456ffc4f3e Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Sat, 6 Jun 2020 16:56:08 +0530 Subject: [PATCH 4/6] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 0349dcf..27c9c4a 100644 --- a/index.html +++ b/index.html @@ -118,7 +118,7 @@ outline: none; } - input:not([type="checkbox"]) { + input:not([type="checkbox"]), select { -ms-flex-item-align: start; align-self: flex-start; display: -webkit-box; From b1d7ef2a0a0a0ad8e2bbc1acdc8b4b267df080b1 Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Fri, 12 Jun 2020 14:19:50 +0530 Subject: [PATCH 5/6] Feature to add new sections to existing Article --- index.html | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 27c9c4a..ec100c6 100644 --- a/index.html +++ b/index.html @@ -9976,7 +9976,6 @@ Bitcoin.Util = { diff: findDifference(JSON.parse(this.util.lastCommit[objectName]), floGlobals .appObjects[objectName]) } - debugger; this.sendApplicationData(message, `${objectName}@Update`, options).then(result => { this.util.lastCommit[objectName] = JSON.stringify(floGlobals.appObjects[ objectName]) @@ -10722,8 +10721,50 @@ Bitcoin.Util = { await this.retrieveLatestContent(); }, + addSections: async function (sections) { + showMessage(`Adding sections...`); + + let number_of_sections, section_names = []; + + if(Array.isArray(sections)){ + number_of_sections = sections.length; + section_names = sections + } else if(typeof sections == 'number'){ + number_of_sections = sections + for(let k=0; k current.y) ? prev : current }); - debugger; let oldArticle = article.data[section]["section_iters"][`iteration${iterNumber}`]; let iterNum = Number(iterNumber) + 1; From 2686ed62e1da0d7e229d3559e08354012ead3afe Mon Sep 17 00:00:00 2001 From: Sai Raj <39055732+sairajzero@users.noreply.github.com> Date: Fri, 12 Jun 2020 14:36:43 +0530 Subject: [PATCH 6/6] Adding sectionPlotUI --- index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/index.html b/index.html index ec100c6..a7a79ba 100644 --- a/index.html +++ b/index.html @@ -1087,6 +1087,26 @@ let myCustomLogin = function () { document.querySelectorAll('.admin-options').forEach((option) => { option.classList.remove('hide-completely'); }) + + let sectionPlotUI = ``; + + document.getElementById('sectionplotdiv').innerHTML = sectionPlotUI; + const section_plot_btn = document.getElementById('section_plot_btn'); + section_plot_btn.onclick = function () { + let section_plot_value = document.getElementById('section_plot_txt').value; + console.log(section_plot_value); + // plot func here + hidePopup('section_plot_modal') + } } }