Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions client/src/Utils/analytics.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const BlocklyCanvasPanel = ({ day, isSandbox, setDay }) => {
day={day}
setDay={setDay}
isSandbox={isSandbox}
isMentorActivity={!day.selectedToolbox}
isMentorActivity={!day.selectedToolbox && !isSandbox}
/>
);
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ export default function StudentCanvas({ day }) {
};

const pushEvent = (type, blockId = '') => {
let bloackType = '';
let blockType = '';
if (blockId !== '') {
bloackType = window.Blockly.mainWorkspace.getBlockById(blockId)?.type;
let type = window.Blockly.mainWorkspace.getBlockById(blockId)?.type;
type ? blockType = type : blockType = '';
}

let xml = window.Blockly.Xml.workspaceToDom(workspaceRef.current);
Expand All @@ -93,7 +94,7 @@ export default function StudentCanvas({ day }) {
xml: xml_text,
action: type,
blockId: blockId,
blockType: bloackType,
blockType: blockType,
timestamp: Date.now(),
clicks: clicks.current,
});
Expand Down
3 changes: 0 additions & 3 deletions client/src/components/DayPanels/Utils/consoleHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const readUntilClose = async (
.pipeThrough(new window.TransformStream(new LineBreakTransformer()))
.getReader();

console.log('reader opened');
let string = '';

plotData = [];
Expand All @@ -70,7 +69,6 @@ const readUntilClose = async (
reader.releaseLock();
break;
}
console.log(value);
if (type === 'notNewLine') {
string += value;
document.getElementById('console-content').innerHTML = string;
Expand Down Expand Up @@ -100,7 +98,6 @@ export const writeToPort = async (data) => {
writer = port.writable.getWriter();
data += '\n';
await writer.write(textEncoder.encode(data));
console.log(textEncoder.encode(data));
writer.releaseLock();
};

Expand Down
123 changes: 0 additions & 123 deletions client/src/components/DayPanels/consoleHelpers.js

This file was deleted.

Loading