From 799722ca13d2680467d2446e33ee5e0cb5071b38 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Fri, 24 Jun 2022 10:12:56 +0300 Subject: [PATCH 1/4] Update filebrowser.js --- filebrowser.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/filebrowser.js b/filebrowser.js index 8bc148e734..abe2978cd0 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -2566,6 +2566,20 @@ function toggleSidebar(open) { } +function deleteModFileInHTML(sha) { + + const fileEl = fileWrapper.querySelector('.file.modified[sha="'+ sha +'"]'); + + if (fileEl) { + + deleteModFile(sha); + fileEl.classList.remove('modified'); + + } + +} + + // when scrolled editor, save new scroll position let editorScrollTimeout; From 43eff8b23683175d843187aa26ede184897ad796 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 30 Jun 2022 12:23:36 +0300 Subject: [PATCH 2/4] Update gitauth.js --- git/gitauth.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/git/gitauth.js b/git/gitauth.js index 35c2fe50ad..55e28c520a 100644 --- a/git/gitauth.js +++ b/git/gitauth.js @@ -114,6 +114,21 @@ window.onload = async () => { // get git token from Github await getGithubToken(gitCode); + + // clear modified repos + modifiedRepos = {}; + updateModReposLS(); + + // if navigating in repo + if (treeLoc[1] !== '') { + + // get repo obj from git + // and save to modified repos + fetchRepoAndSaveToModRepos(treeLoc); + + } + + if (messageEl.textContent === 'Logging in...') { hideMessage(); } @@ -194,6 +209,21 @@ window.onload = async () => { // get git token from Github await getGithubToken(gitCode); + + // clear modified repos + modifiedRepos = {}; + updateModReposLS(); + + // if navigating in repo + if (treeLoc[1] !== '') { + + // get repo obj from git + // and save to modified repos + fetchRepoAndSaveToModRepos(treeLoc); + + } + + hideMessage(); } From 52c7b5e583261b7b7c0288f0ec20ac750a0a6576 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sat, 2 Jul 2022 21:01:13 +0300 Subject: [PATCH 3/4] Update gitauth.js --- git/gitauth.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/git/gitauth.js b/git/gitauth.js index 55e28c520a..c67fbe08c1 100644 --- a/git/gitauth.js +++ b/git/gitauth.js @@ -114,21 +114,10 @@ window.onload = async () => { // get git token from Github await getGithubToken(gitCode); - // clear modified repos modifiedRepos = {}; updateModReposLS(); - // if navigating in repo - if (treeLoc[1] !== '') { - - // get repo obj from git - // and save to modified repos - fetchRepoAndSaveToModRepos(treeLoc); - - } - - if (messageEl.textContent === 'Logging in...') { hideMessage(); } @@ -209,20 +198,9 @@ window.onload = async () => { // get git token from Github await getGithubToken(gitCode); - // clear modified repos modifiedRepos = {}; updateModReposLS(); - - // if navigating in repo - if (treeLoc[1] !== '') { - - // get repo obj from git - // and save to modified repos - fetchRepoAndSaveToModRepos(treeLoc); - - } - hideMessage(); From 0235952cf24bb5af4f627e9ad2420bbaf432c081 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sat, 2 Jul 2022 21:02:04 +0300 Subject: [PATCH 4/4] Update client-channel.js --- worker/client-channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/client-channel.js b/worker/client-channel.js index 2e8b0b09b9..3fc1bf6861 100644 --- a/worker/client-channel.js +++ b/worker/client-channel.js @@ -4,7 +4,7 @@ // update worker name when updating worker -const WORKER_NAME = 'codeit-worker-v550'; +const WORKER_NAME = 'codeit-worker-v551'; // internal paths