From 33da9f103dcc2ff939563ec6a10e069ee400cb64 Mon Sep 17 00:00:00 2001 From: filipeotero <89042471+filipeotero@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:24:31 -0300 Subject: [PATCH 1/5] Send XML content and display flex for the bar --- src/Dynamic.css | 4 +++- src/Dynamic.js | 1 + src/Static.js | 10 ++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Dynamic.css b/src/Dynamic.css index aa67f60..16b195f 100644 --- a/src/Dynamic.css +++ b/src/Dynamic.css @@ -8,9 +8,11 @@ .progress-bar-indicator { height: 100%; + max-width: 100%; + margin: 0; border-radius: 25px; -webkit-mask:linear-gradient(#fff 0 0); - mask:linear-gradient(#fff 0 0); + mask:linear-gradient(#fff 0 0) !important; } .progress-bar-indicator::before { content:""; diff --git a/src/Dynamic.js b/src/Dynamic.js index 731ab80..15a94cd 100644 --- a/src/Dynamic.js +++ b/src/Dynamic.js @@ -46,6 +46,7 @@ class Dynamic extends React.Component { loadDescription: loadDescription, loadingTime: loadingTime }) + document.getElementsByClassName('progress-bar-indicator')[0].style.display = 'flex' } } diff --git a/src/Static.js b/src/Static.js index 34b5475..d81ac34 100644 --- a/src/Static.js +++ b/src/Static.js @@ -85,9 +85,15 @@ class Static extends React.Component { readFile(event) { let file = event.target.files[0]; if (file) { - if (chrome.webview !== undefined) { - chrome.webview.hostObjects.scriptObject.ImportSettings(file); + var fr = new FileReader(); + fr.onload = function () { + console.log(fr.result) + if (chrome.webview !== undefined) { + chrome.webview.hostObjects.scriptObject.ImportSettings(fr.result); + } } + + fr.readAsText(file); } } From 1ddb129780b80419d7b14fe1c2eb7e9bfb153154 Mon Sep 17 00:00:00 2001 From: filipeotero <89042471+filipeotero@users.noreply.github.com> Date: Thu, 13 Oct 2022 10:41:59 -0300 Subject: [PATCH 2/5] remove console.log --- src/Static.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Static.js b/src/Static.js index d81ac34..013b261 100644 --- a/src/Static.js +++ b/src/Static.js @@ -87,7 +87,6 @@ class Static extends React.Component { if (file) { var fr = new FileReader(); fr.onload = function () { - console.log(fr.result) if (chrome.webview !== undefined) { chrome.webview.hostObjects.scriptObject.ImportSettings(fr.result); } From d362baa4785d469c802f8247aa0da05f581bf1f8 Mon Sep 17 00:00:00 2001 From: filipeotero <89042471+filipeotero@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:45:54 -0300 Subject: [PATCH 3/5] adding mainJs as a keyword to be replaced at Dynamo --- public/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/public/index.html b/public/index.html index c3cb8de..a15cf5b 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,7 @@ +