From 299831a973eb45aa11f850114d291672face9a17 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:13:28 +0200 Subject: [PATCH 01/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 9ffb3f16db..a0a60d6c59 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1055,7 +1055,7 @@ async function renderLiveViewHTML(file) { if (!workerClientId) await workerInstallPromise; - liveView.innerHTML = ''; + liveView.innerHTML = ''; liveFile = file; From 07e7c765d8e29b6f26a5a864f2432b4ba7f921cc Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:19:02 +0200 Subject: [PATCH 02/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index a0a60d6c59..9ea440c6d3 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1055,7 +1055,7 @@ async function renderLiveViewHTML(file) { if (!workerClientId) await workerInstallPromise; - liveView.innerHTML = ''; + liveView.innerHTML = ''; liveFile = file; From 9f389d64c4bdc4edd9507a73a74ea4ae093c81d9 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:22:44 +0200 Subject: [PATCH 03/56] Update live-view.js --- live-view/live-view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 9ea440c6d3..3ad4a4c824 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1028,9 +1028,8 @@ async function renderLiveViewHTML(file) { liveView.innerHTML = `
-
Upgrade iOS to run this file
- Here's how + Here's how
`; From 3f3cd892b0d52286323c9d249a1c837251f65b67 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:23:49 +0200 Subject: [PATCH 04/56] Update live-view.js --- live-view/live-view.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 3ad4a4c824..d24c7188e5 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1014,11 +1014,8 @@ async function handleLiveViewRequest(requestPath) { async function renderLiveViewHTML(file) { // if iOS version is lower than minimum - - const isSafariWithMac = (navigator.userAgent.toLowerCase().includes('safari') - && !navigator.userAgent.toLowerCase().includes('chrome')); - - if (isSafariWithMac) { + + if (isSafari) { const safariVersion = Number(navigator.userAgent.split('Version/')[1].split(' Safari')[0]); From 7a3ca3dd6dcb73993dea186790abaec754c2d4ba Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:24:26 +0200 Subject: [PATCH 05/56] Update full.css --- full.css | 1 + 1 file changed, 1 insertion(+) diff --git a/full.css b/full.css index c077cf05fc..516849468c 100644 --- a/full.css +++ b/full.css @@ -467,6 +467,7 @@ body.notransition .live-view.file-open { width: 100%; height: 100%; background: #fff; + border: 0; max-width: unset; } From 594b659700cbcb90ba70e1b5e3e2db78f10d8795 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:25:03 +0200 Subject: [PATCH 06/56] Update codeit-autolinker.js --- lib/plugins/codeit-autolinker.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/plugins/codeit-autolinker.js b/lib/plugins/codeit-autolinker.js index 4dd7b88e2f..98097c3411 100644 --- a/lib/plugins/codeit-autolinker.js +++ b/lib/plugins/codeit-autolinker.js @@ -69,14 +69,19 @@ var isMac = navigator.platform.indexOf('Mac') > -1; - env.attributes.href = href.replaceAll('\'','').replaceAll('"','').replaceAll('`',''); - env.attributes.onclick = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { event.preventDefault(); window.open(this.href, "_blank") }'; + env.attributes.href = href; /* .replaceAll('\'','').replaceAll('"','').replaceAll('`',''); */ + + // show pointer when pressed ctrl/cmd + shift + env.attributes.onkeydown = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { this.style.cursor = "pointer"; }'; + env.attributes.onkeyup = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { this.style.cursor = ""; }'; + + env.attributes.onclick = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { event.preventDefault(); window.open(this.href, "_blank") }'; env.attributes.title = isMac ? '⌘ + ⇧ + click to open link' : 'Ctrl + Shift + click to open link'; - // Silently catch any error thrown by decodeURIComponent (#1186) + // silently catch any error thrown by decodeURIComponent try { env.content = decodeURIComponent(env.content); - } catch (e) { /* noop */ } + } catch (e) {} } } }); From 8419a366b0f550e8cb8c1bccf1d5f871e4a09c8a Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:25:34 +0200 Subject: [PATCH 07/56] Update codeit-autocomplete.js --- lib/plugins/codeit-autocomplete.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugins/codeit-autocomplete.js b/lib/plugins/codeit-autocomplete.js index 3a63208e95..1b98814eb4 100644 --- a/lib/plugins/codeit-autocomplete.js +++ b/lib/plugins/codeit-autocomplete.js @@ -231,6 +231,7 @@ acp.lang.css.init = () => { CSSProps.push('overflow'); CSSProps.push('transition'); CSSProps.push('animation'); + CSSProps.push('inset'); CSSProps.push('-webkit-user-select'); acp.lang.css.props = CSSProps; From 7707cb0f09c23b765bb1e421b0adb2e804a311ad Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:26:19 +0200 Subject: [PATCH 08/56] Update codeit-autocomplete.js --- lib/plugins/codeit-autocomplete.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/plugins/codeit-autocomplete.js b/lib/plugins/codeit-autocomplete.js index 1b98814eb4..d955ce3fac 100644 --- a/lib/plugins/codeit-autocomplete.js +++ b/lib/plugins/codeit-autocomplete.js @@ -593,6 +593,10 @@ acp.utils.shouldAutocomplete = () => { if (input !== document.activeElement) return false; const cursor = input.dropper.cursor(); + + // if cursor dosen't exist, return + if (!cursor) return false; + const cursorCollapsed = cursor.collapsed; // if cursor not collapsed, return From 4a9d2b6462d630a3120bfabde70a008ceae30e9f Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:41:24 +0200 Subject: [PATCH 09/56] Update live-view.js --- live-view/live-view.js | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index d24c7188e5..d292c4691c 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1051,7 +1051,36 @@ async function renderLiveViewHTML(file) { if (!workerClientId) await workerInstallPromise; - liveView.innerHTML = ''; + liveView.innerHTML = ` + + + + ` + + ) + + + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowpaymentrequest="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; liveFile = file; From 6f67448c5ac1e5122d49aab81a56c2b2e8118002 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:48:16 +0200 Subject: [PATCH 10/56] Update utils.js --- utils.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/utils.js b/utils.js index be73e41d7a..4847e921a6 100644 --- a/utils.js +++ b/utils.js @@ -109,7 +109,7 @@ function stopLoading() { let messageTimeout; -function showMessage(message, duration) { +let showMessage = (message, duration) => { // if message includes an icon if (message.icon) { @@ -158,7 +158,7 @@ function showMessage(message, duration) { } -function hideMessage() { +let hideMessage = () => { messageEl.classList.remove('visible'); } @@ -166,7 +166,7 @@ function hideMessage() { // show dialog -function showDialog(confirmHandler, titleText, confirmText, showOneButton = false) { +let showDialog = (confirmHandler, titleText, confirmText, showOneButton = false) => { return new Promise(resolve => { @@ -227,7 +227,7 @@ function showDialog(confirmHandler, titleText, confirmText, showOneButton = fals } -function hideDialog() { +let hideDialog = () => { // hide dialog dialogWrapper.classList.remove('visible'); @@ -325,7 +325,7 @@ window.addEventListener('offline', () => { isOffline = true }); let isPersistStorage = false; -async function checkPersistStorage() { +let checkPersistStorage = async () => { if (navigator.storage && navigator.storage.persist) { @@ -345,6 +345,14 @@ async function checkPersistStorage() { checkPersistStorage(); +// escape HTML +let escapeHTML = (str) => { + const p = document.createElement('p'); + p.appendChild(document.createTextNode(str)); + return p.innerHTML; +} + + // base64 encode/decode let encodeUnicode = (str) => { From c132774db5a6c5d65f28cfceb866b9e1cd5a2014 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:48:27 +0200 Subject: [PATCH 11/56] Update utils.js --- utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils.js b/utils.js index 4847e921a6..bbebb4bec2 100644 --- a/utils.js +++ b/utils.js @@ -347,9 +347,12 @@ checkPersistStorage(); // escape HTML let escapeHTML = (str) => { + const p = document.createElement('p'); p.appendChild(document.createTextNode(str)); + return p.innerHTML; + } From f2950f540dc688ce21f8b10a90d9dd8046659997 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:51:05 +0200 Subject: [PATCH 12/56] Update utils.js --- utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.js b/utils.js index bbebb4bec2..3560c8ccef 100644 --- a/utils.js +++ b/utils.js @@ -345,7 +345,7 @@ let checkPersistStorage = async () => { checkPersistStorage(); -// escape HTML +// escape HTML (dosen't escape quotes '") let escapeHTML = (str) => { const p = document.createElement('p'); From ae129040c48b834b7be86fafe3aa824869af624f Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:51:45 +0200 Subject: [PATCH 13/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index d292c4691c..5901872251 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1078,7 +1078,7 @@ async function renderLiveViewHTML(file) { ` - ) + ).replaceAll('"', '\"') + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowpaymentrequest="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; From 8a07b7a4ac5b13a57f57cdfff436ff715f4ebbf7 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:54:26 +0200 Subject: [PATCH 14/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 5901872251..4edd7bb4cc 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1078,7 +1078,7 @@ async function renderLiveViewHTML(file) { ` - ).replaceAll('"', '\"') + ).replaceAll('"', '\\"') + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowpaymentrequest="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; From 06f91a6feb8d1970497ad0dd0fd63566d25598d0 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:56:00 +0200 Subject: [PATCH 15/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 4edd7bb4cc..9c98856738 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1072,7 +1072,7 @@ async function renderLiveViewHTML(file) { - + From 48bf526a662c97c604c7833354056e749d2f50f3 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:57:29 +0200 Subject: [PATCH 16/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 9c98856738..78836b2b08 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1078,7 +1078,7 @@ async function renderLiveViewHTML(file) { ` - ).replaceAll('"', '\\"') + ) + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowpaymentrequest="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; From 4cf4c8da5df1543f28dc8a3685e5fa698ca41780 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:58:35 +0200 Subject: [PATCH 17/56] Update utils.js --- utils.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils.js b/utils.js index 3560c8ccef..e11fd10118 100644 --- a/utils.js +++ b/utils.js @@ -345,13 +345,16 @@ let checkPersistStorage = async () => { checkPersistStorage(); -// escape HTML (dosen't escape quotes '") +// escape HTML let escapeHTML = (str) => { const p = document.createElement('p'); p.appendChild(document.createTextNode(str)); - return p.innerHTML; + let resp = p.innerHTML; + resp = resp.replaceAll(/"/g, """).replaceAll(/'/g, "'"); + + return resp; } From ae43f81ec208c082ec59ba4e4d5512853ce3b41d Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:02:16 +0200 Subject: [PATCH 18/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 78836b2b08..6c1f64e1a4 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1080,7 +1080,7 @@ async function renderLiveViewHTML(file) { ) - + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowpaymentrequest="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; + + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; liveFile = file; From 7fc54e140ef902dba21a777923eede25038ea189 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:02:58 +0200 Subject: [PATCH 19/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 6c1f64e1a4..e587e73ae6 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1080,7 +1080,7 @@ async function renderLiveViewHTML(file) { ) - + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; + + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts allow-same-origin">`; liveFile = file; From 16943ef7195a2e8f50316929c792e88e875d0194 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:03:57 +0200 Subject: [PATCH 20/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index e587e73ae6..b390a59f83 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1072,7 +1072,7 @@ async function renderLiveViewHTML(file) { - + From 50d29d3dd5255b276db6d9f3061db339ad4ca9a9 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:04:41 +0200 Subject: [PATCH 21/56] Update live-view.js --- live-view/live-view.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index b390a59f83..9e56914009 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1088,12 +1088,6 @@ async function renderLiveViewHTML(file) { const liveFrame = liveView.querySelector('.live-frame'); - liveFrame.contentWindow.addEventListener('DOMContentLoaded', () => { - - liveFrame.contentWindow.history.replaceState({}, 'Live view', livePath); - - }); - liveFrame.contentWindow.addEventListener('load', () => { liveView.classList.add('loaded'); From e458d6fa7ed9b3f9581d279e4b82eda5d96c1a01 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:05:28 +0200 Subject: [PATCH 22/56] Update live-view.js --- live-view/live-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 9e56914009..1cb66333d0 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1072,7 +1072,7 @@ async function renderLiveViewHTML(file) { - + @@ -1080,7 +1080,7 @@ async function renderLiveViewHTML(file) { ) - + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts allow-same-origin">`; + + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts">`; liveFile = file; From 16844df27170ca72f71a30c525fb180b99b3b1e5 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:06:34 +0200 Subject: [PATCH 23/56] Create live-buffer.html --- live-view/live-buffer.html | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 live-view/live-buffer.html diff --git a/live-view/live-buffer.html b/live-view/live-buffer.html new file mode 100644 index 0000000000..5482abcee1 --- /dev/null +++ b/live-view/live-buffer.html @@ -0,0 +1,2 @@ + + \ No newline at end of file From 0e7f7e798a982a14713d730c7d2d097c8e284d1c Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:09:24 +0200 Subject: [PATCH 24/56] Update live-buffer.html --- live-view/live-buffer.html | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/live-view/live-buffer.html b/live-view/live-buffer.html index 5482abcee1..fe4e4a8e50 100644 --- a/live-view/live-buffer.html +++ b/live-view/live-buffer.html @@ -1,2 +1,27 @@ - - \ No newline at end of file + + + + + + + + + + + + From 231f4a8bd4ba31fb39ce060a3b4645c1833ee1cd Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:10:19 +0200 Subject: [PATCH 25/56] Update live-view.js --- live-view/live-view.js | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 1cb66333d0..2d7aa02be8 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1051,34 +1051,7 @@ async function renderLiveViewHTML(file) { if (!workerClientId) await workerInstallPromise; - liveView.innerHTML = ` - - - - ` - - ) + liveView.innerHTML = ``; From 201f7e8fc0aae099f4398aae322fd7bc41117588 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:11:36 +0200 Subject: [PATCH 26/56] Update live-view.js --- live-view/live-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 2d7aa02be8..79d8be4a8a 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1053,7 +1053,7 @@ async function renderLiveViewHTML(file) { liveView.innerHTML = ``; + + `" name="Live view" title="Live view" class="live-frame" allow="accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share; fullscreen; payment" allowfullscreen="true" allowtransparency="true" loading="eager" sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-presentation allow-scripts allow-same-origin">`; liveFile = file; From 054eb609e77ea86640aaf4b85d3d67fbb453dc71 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:13:30 +0200 Subject: [PATCH 27/56] Update live-buffer.html --- live-view/live-buffer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-view/live-buffer.html b/live-view/live-buffer.html index fe4e4a8e50..96ed8ee9e7 100644 --- a/live-view/live-buffer.html +++ b/live-view/live-buffer.html @@ -14,7 +14,7 @@ - + - - - - From ffdeeda466f9c7a829d85ad9cce2badb06b8fdcb Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 08:44:02 +0200 Subject: [PATCH 34/56] Update live-view.js --- live-view/live-view.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index e5dd67c26b..93ba31b513 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -1051,9 +1051,7 @@ async function renderLiveViewHTML(file) { if (!workerClientId) await workerInstallPromise; - liveView.innerHTML = ``; + liveView.innerHTML = ``; liveFile = file; From 7772d091b0ad59b66f238b5fa9d28f2e9f01a3c7 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 08:52:00 +0200 Subject: [PATCH 35/56] Update filebrowser.js --- filebrowser.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/filebrowser.js b/filebrowser.js index fbdee570d3..99045fd83c 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -3010,8 +3010,11 @@ function onEditorScroll() { } + function updateScrollbarArrow() { + console.log('[Scrollbar arrows] Updated'); + // if codeit is horizontally scrollable if (cd.scrollWidth > cd.clientWidth) { @@ -3027,6 +3030,10 @@ function updateScrollbarArrow() { } +// when codeit resizes, update +new ResizeObserver(updateScrollbarArrow).observe(cd); + + // check for meta key (Ctrl/Command) function isKeyEventMeta(event) { return event.metaKey || event.ctrlKey; From 87a458521e0e2aba5e7f540549b290bf10615061 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 08:54:21 +0200 Subject: [PATCH 36/56] Update filebrowser.js --- filebrowser.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/filebrowser.js b/filebrowser.js index 99045fd83c..f9ccdfb8b7 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -1438,7 +1438,6 @@ async function loadFileInHTML(fileEl, fileSha) { } else { liveToggle.classList.add('file-open'); - updateScrollbarArrow(); onNextFrame(() => { liveView.classList.remove('notransition'); @@ -1583,7 +1582,6 @@ function loadBinaryFileHTML(file, toggled) { if (!isMobile) { liveToggle.classList.add('file-open'); - updateScrollbarArrow(); } @@ -3224,8 +3222,6 @@ function setupEditor() { cd.on('scroll', onEditorScroll); cd.on('caretmove', saveSelectedFileCaretPos); - if (!isMobile) cd.on('type', updateScrollbarArrow); - // update on screen resize const landscape = window.matchMedia('(orientation: landscape)'); @@ -3447,7 +3443,6 @@ function updateLineNumbersHTML() { if (!isMobile) { - updateScrollbarArrow(); updateLiveViewArrow(); } From d615d7bad385d301853c174ecb4eba2226dcc753 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 08:55:16 +0200 Subject: [PATCH 37/56] Update live-view.js --- live-view/live-view.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index 93ba31b513..6b576d667a 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -355,14 +355,6 @@ async function setupLiveView() { // update line numbers updateLineNumbersHTML(); - // if on desktop - if (!isMobile) { - - // update scrollbar arrow - updateScrollbarArrow(); - - } - } } From 96c0e24a2d0e6086750d6894d342a95bee7a2326 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 08:58:43 +0200 Subject: [PATCH 38/56] Update filebrowser.js --- filebrowser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filebrowser.js b/filebrowser.js index f9ccdfb8b7..9edc66f563 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -1438,6 +1438,7 @@ async function loadFileInHTML(fileEl, fileSha) { } else { liveToggle.classList.add('file-open'); + updateScrollbarArrow(); onNextFrame(() => { liveView.classList.remove('notransition'); @@ -1582,6 +1583,7 @@ function loadBinaryFileHTML(file, toggled) { if (!isMobile) { liveToggle.classList.add('file-open'); + updateScrollbarArrow(); } From c2b75bc356309f05dbb05b58c6f372b863a98291 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 09:06:00 +0200 Subject: [PATCH 39/56] Update filebrowser.js --- filebrowser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filebrowser.js b/filebrowser.js index 9edc66f563..5e0da75eda 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -1422,6 +1422,8 @@ async function loadFileInHTML(fileEl, fileSha) { resp = { content: fileSizeText }; + cd.textContent = fileSizeText; + // if on mobile device if (isMobile) { From 4cdc1165965d373902928cc2c116b1612257a023 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 09:08:22 +0200 Subject: [PATCH 40/56] Update filebrowser.js --- filebrowser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filebrowser.js b/filebrowser.js index 5e0da75eda..468be6ccc6 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -1422,7 +1422,7 @@ async function loadFileInHTML(fileEl, fileSha) { resp = { content: fileSizeText }; - cd.textContent = fileSizeText; + cd.textContent = ''; // if on mobile device if (isMobile) { From 2981e845d8b12e8acb661f4920e44aaa662728f9 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 09:09:35 +0200 Subject: [PATCH 41/56] Update filebrowser.js --- filebrowser.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/filebrowser.js b/filebrowser.js index 468be6ccc6..2429e618e9 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -1440,7 +1440,6 @@ async function loadFileInHTML(fileEl, fileSha) { } else { liveToggle.classList.add('file-open'); - updateScrollbarArrow(); onNextFrame(() => { liveView.classList.remove('notransition'); @@ -1585,7 +1584,6 @@ function loadBinaryFileHTML(file, toggled) { if (!isMobile) { liveToggle.classList.add('file-open'); - updateScrollbarArrow(); } From 12bfd1c2ef55c92e7d3611026b0ab5c2c05964a7 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Mon, 19 Dec 2022 09:10:37 +0200 Subject: [PATCH 42/56] Update filebrowser.js --- filebrowser.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/filebrowser.js b/filebrowser.js index 2429e618e9..b425d3caf6 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -3013,8 +3013,6 @@ function onEditorScroll() { function updateScrollbarArrow() { - console.log('[Scrollbar arrows] Updated'); - // if codeit is horizontally scrollable if (cd.scrollWidth > cd.clientWidth) { From 5490396dbcfe1830635f0f795073a280058886b6 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Wed, 21 Dec 2022 20:17:31 +0200 Subject: [PATCH 43/56] Update filebrowser.js --- filebrowser.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/filebrowser.js b/filebrowser.js index b425d3caf6..b95a204dee 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -1945,6 +1945,18 @@ sidebarTitle.addEventListener('click', (e) => { sidebar.classList.add('learn'); + + // if adding a repository + + const focusedRepo = fileWrapper.querySelector('.repo.focused'); + + if (focusedRepo) { + + // remove it + focusedRepo.remove(); + + } + /* // if there are no modified files // and no pending promises From d17fce16662f22145c86117ad191dc43783692ea Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 11:25:54 +0200 Subject: [PATCH 44/56] Update codeit-autolinker.js --- lib/plugins/codeit-autolinker.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/plugins/codeit-autolinker.js b/lib/plugins/codeit-autolinker.js index 98097c3411..e81cc00096 100644 --- a/lib/plugins/codeit-autolinker.js +++ b/lib/plugins/codeit-autolinker.js @@ -69,13 +69,9 @@ var isMac = navigator.platform.indexOf('Mac') > -1; - env.attributes.href = href; /* .replaceAll('\'','').replaceAll('"','').replaceAll('`',''); */ - - // show pointer when pressed ctrl/cmd + shift - env.attributes.onkeydown = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { this.style.cursor = "pointer"; }'; - env.attributes.onkeyup = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { this.style.cursor = ""; }'; + env.attributes.href = href.replaceAll('\'','').replaceAll('"','').replaceAll('`',''); - env.attributes.onclick = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { event.preventDefault(); window.open(this.href, "_blank") }'; + env.attributes.onclick = 'if ((event.ctrlKey || event.metaKey) && event.shiftKey) { event.preventDefault(); window.open(this.href, "_blank") }'; env.attributes.title = isMac ? '⌘ + ⇧ + click to open link' : 'Ctrl + Shift + click to open link'; // silently catch any error thrown by decodeURIComponent From 30a5d31f6fb4e74a9a51ee5e204258ab45dc78ca Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 11:59:24 +0200 Subject: [PATCH 45/56] Update full.css --- full.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/full.css b/full.css index 516849468c..ddd9d2903b 100644 --- a/full.css +++ b/full.css @@ -1792,7 +1792,8 @@ body:not(.mobile) .live-view-menu { align-items: center; justify-content: center; pointer-events: none; - transform: scale(0.94); + transform: scale(1.08); + transform: scale(1.075); transform-origin: center; transition: 0s .18s; } @@ -1815,7 +1816,7 @@ body.mobile .dialog-background { border-radius: 11.5px; line-height: 1.5; opacity: 0; - padding: 2px; + padding: 9px; transition: 0s .18s, .18s var(--bounce-function) opacity; min-width: 170px; } @@ -1869,7 +1870,7 @@ body:not(.mobile) .dialog .button:not(:active):hover { .dialog-background { position: fixed; inset: 0; - background: rgba(0,0,0,0.85); + background: hsl(227deg 11% 16% / 40%); width: calc(var(--sidebar-width) - 1px); opacity: 0; transition: .18s var(--bounce-function); From ee88f96b41ec542162abace46886ce6247f510f5 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:03:29 +0200 Subject: [PATCH 46/56] Update full.css --- full.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/full.css b/full.css index ddd9d2903b..17b2696b3a 100644 --- a/full.css +++ b/full.css @@ -1811,8 +1811,7 @@ body.mobile .dialog-background { .dialog { background: var(--deep-midnight-blue); color: #dcddde; - box-shadow: 0 2px 10px 0 rgb(0 0 0 / 20%); - border: 1px solid rgb(32 34 37 / 60%); + box-shadow: 0 8px 16px rgb(0 0 0 / 24%); border-radius: 11.5px; line-height: 1.5; opacity: 0; From f5dcc244ac58b6d0d77b0dc698dfbab82eaed9d0 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:06:58 +0200 Subject: [PATCH 47/56] Update full.css --- full.css | 1 + 1 file changed, 1 insertion(+) diff --git a/full.css b/full.css index 17b2696b3a..e7195a0739 100644 --- a/full.css +++ b/full.css @@ -1818,6 +1818,7 @@ body.mobile .dialog-background { padding: 9px; transition: 0s .18s, .18s var(--bounce-function) opacity; min-width: 170px; + overflow: hidden; } .dialog-wrapper.visible .dialog { From a6391f892c30f137eb283096ae7151f118ca43d4 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:22:56 +0200 Subject: [PATCH 48/56] Update filebrowser.js --- filebrowser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filebrowser.js b/filebrowser.js index b95a204dee..437bbdfcf6 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -3387,7 +3387,7 @@ function setupEditor() { if (shownMessages.beautifySelect < 2) { // show beautify select message - showMessage('Try selecting some text.', 3500); + showMessage('Try selecting some text first.', 4100); // bump counter shownMessages.beautifySelect++; From aab0c3a720e402556c911bd7cc6f3d800b9cec25 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:26:24 +0200 Subject: [PATCH 49/56] Update full.css --- full.css | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/full.css b/full.css index e7195a0739..f4ca887c68 100644 --- a/full.css +++ b/full.css @@ -1834,10 +1834,27 @@ body.mobile .dialog-background { } .dialog .button-wrapper { + position: relative; display: flex; margin-top: 7px; } +body.mobile .dialog .button-wrapper { + margin: -7px; + margin-top: 8px; +} + +body.mobile .dialog .button-wrapper::before { + content: ''; + position: absolute; + top: -1px; + left: 0; + right: 0; + height: 1px; + background: rgb(32 34 37 / 60%); + pointer-events: none; +} + .dialog .button { padding: 8px 14px; border-radius: 5.75px; @@ -1854,6 +1871,17 @@ body.mobile .dialog-background { display: none; } +body.mobile .dialog .cancel::after { + content: ''; + position: absolute; + top: 0; + bottom: 0; + right: -0.5px; + width: 1px; + background: rgb(32 34 37 / 60%); + pointer-events: none; +} + .dialog .confirm { color: var(--rosemary-lighter); font-weight: 500; From 77b1de3c18d2a25423c80b289c597ec6921bc0f8 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:29:35 +0200 Subject: [PATCH 50/56] Update full.css --- full.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/full.css b/full.css index f4ca887c68..c91b6b0958 100644 --- a/full.css +++ b/full.css @@ -1882,6 +1882,10 @@ body.mobile .dialog .cancel::after { pointer-events: none; } +body.mobile .dialog-wrapper.one-button .dialog .cancel::after { + display: none; +} + .dialog .confirm { color: var(--rosemary-lighter); font-weight: 500; From d12994dc0023f6013ecc556ef035e8a9858d287b Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:31:15 +0200 Subject: [PATCH 51/56] Update full.css --- full.css | 1 + 1 file changed, 1 insertion(+) diff --git a/full.css b/full.css index c91b6b0958..0017359930 100644 --- a/full.css +++ b/full.css @@ -1860,6 +1860,7 @@ body.mobile .dialog .button-wrapper::before { border-radius: 5.75px; display: flex; justify-content: center; + position: relative; flex: 1; } From bced7690c45ca568faaa10dac9dc90ed509df518 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:33:41 +0200 Subject: [PATCH 52/56] Update full.css --- full.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/full.css b/full.css index 0017359930..04c6a91827 100644 --- a/full.css +++ b/full.css @@ -1864,6 +1864,10 @@ body.mobile .dialog .button-wrapper::before { flex: 1; } +body.mobile .dialog .button { + border-radius: 0; +} + .dialog .cancel { color: hsl(228deg 16% 37%); } From 3b457912163c21061f1a85a5caacdb6900c1c3a8 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:34:02 +0200 Subject: [PATCH 53/56] Update codeit-autocomplete.js --- lib/plugins/codeit-autocomplete.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugins/codeit-autocomplete.js b/lib/plugins/codeit-autocomplete.js index d955ce3fac..ffc9c540b3 100644 --- a/lib/plugins/codeit-autocomplete.js +++ b/lib/plugins/codeit-autocomplete.js @@ -232,6 +232,7 @@ acp.lang.css.init = () => { CSSProps.push('transition'); CSSProps.push('animation'); CSSProps.push('inset'); + CSSProps.push('border-radius'); CSSProps.push('-webkit-user-select'); acp.lang.css.props = CSSProps; From c233bf72cee6930fedfdbba63166bf5106910c5a Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:41:28 +0200 Subject: [PATCH 54/56] Update full.css --- full.css | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/full.css b/full.css index 04c6a91827..7ed94834a7 100644 --- a/full.css +++ b/full.css @@ -1852,9 +1852,15 @@ body.mobile .dialog .button-wrapper::before { right: 0; height: 1px; background: rgb(32 34 37 / 60%); + transition: inherit; pointer-events: none; } +body.mobile .dialog-wrapper.hidden .button-wrapper::before { + left: -2px; + right: -2px; +} + .dialog .button { padding: 8px 14px; border-radius: 5.75px; @@ -1872,7 +1878,7 @@ body.mobile .dialog .button { color: hsl(228deg 16% 37%); } -.dialog-wrapper.one-button .dialog .cancel { +.dialog-wrapper.one-button .button.cancel { display: none; } @@ -1884,10 +1890,15 @@ body.mobile .dialog .cancel::after { right: -0.5px; width: 1px; background: rgb(32 34 37 / 60%); + transition: inherit; pointer-events: none; } -body.mobile .dialog-wrapper.one-button .dialog .cancel::after { +body.mobile .dialog-wrapper.hidden .button.cancel::after { + bottom: -2px; +} + +body.mobile .dialog-wrapper.one-button .button.cancel::after { display: none; } From 9ef9292ac5527dbb264f4803d5b86b37ac880456 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:43:56 +0200 Subject: [PATCH 55/56] Update full.css --- full.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/full.css b/full.css index 7ed94834a7..a3471d39d7 100644 --- a/full.css +++ b/full.css @@ -1856,7 +1856,7 @@ body.mobile .dialog .button-wrapper::before { pointer-events: none; } -body.mobile .dialog-wrapper.hidden .button-wrapper::before { +body.mobile .dialog-wrapper:not(.visible) .button-wrapper::before { left: -2px; right: -2px; } @@ -1894,7 +1894,7 @@ body.mobile .dialog .cancel::after { pointer-events: none; } -body.mobile .dialog-wrapper.hidden .button.cancel::after { +body.mobile .dialog-wrapper:not(.visible) .button.cancel::after { bottom: -2px; } From 8154a22ff4e08875125152841b7fc57482af74dd Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:45:19 +0200 Subject: [PATCH 56/56] 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 08be03c326..62dac5de74 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-v615'; +const WORKER_NAME = 'codeit-worker-v616'; // internal paths