Skip to content

Commit c1e390a

Browse files
Merge branch 'develop' of https://github.com/live-codes/livecodes into i18n/develop
2 parents 517bcc3 + 5a1ab1a commit c1e390a

4 files changed

Lines changed: 49 additions & 70 deletions

File tree

package-lock.json

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
"i18next": "23.15.1",
8282
"i18next-http-backend": "2.6.1",
8383
"js-base64": "3.7.5",
84-
"luna-console": "1.3.3",
85-
"luna-data-grid": "0.4.3",
86-
"luna-dom-viewer": "1.2.4",
87-
"luna-object-viewer": "0.2.4",
84+
"luna-console": "1.3.6",
85+
"luna-data-grid": "1.4.1",
86+
"luna-dom-viewer": "1.8.2",
87+
"luna-object-viewer": "0.3.2",
8888
"lz-string": "1.4.4",
8989
"monaco-editor": "0.48.0",
9090
"patch-package": "7.0.2",

src/livecodes/styles/app.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,14 +1137,6 @@ a.tools-pane-title {
11371137
overflow: hidden;
11381138
}
11391139

1140-
.luna-console-input pre.luna-console-code {
1141-
visibility: hidden;
1142-
1143-
&.visible {
1144-
visibility: visible;
1145-
}
1146-
}
1147-
11481140
.luna-console-log-item .luna-console-icon-container .luna-console-icon {
11491141
color: #03a9f4;
11501142
}

src/livecodes/toolspane/console.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,6 @@ export const createConsole = (
184184

185185
if (editor) return consoleEditor;
186186

187-
// workaround to remove 'luna-console-' added to variable names called by console input
188-
const observer = new MutationObserver(() => {
189-
const newLogs = consoleElement.querySelectorAll(
190-
'.luna-console-input pre.luna-console-code:not(.visible)',
191-
);
192-
if (newLogs.length === 0) return;
193-
newLogs.forEach((log) => {
194-
const pattern = /(luna-console-)(?!keyword|string|operator|number|json|hidden)/g;
195-
log.innerHTML = log.innerHTML.replace(pattern, '');
196-
log.classList.add('visible');
197-
});
198-
});
199-
observer.observe(consoleElement, { subtree: true, childList: true, attributes: true });
200187
preventFocus(container);
201188

202189
const gutterSelector = consoleEditor.monaco ? '.glyph-margin' : '.cm-gutters';

0 commit comments

Comments
 (0)