265 Send logs, put temp code in local storage and let panels handle scrolling #266
Reference in New Issue
Block a user
Delete Branch "kurt/265"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
resolves #265
@@ -53,1 +50,4 @@result,tempFile,}),}Instead of sending down a binary type that's an image, I'm just using json with base64 image in the json, otherwise I can't really send down the log text
@@ -9,3 +9,3 @@{state.consoleMessages?.map(({ type, message }, index) => (<div<preclassName={'font-mono ' + (type === 'error' ? 'text-red-500' : '')}div doesn't respect now lines it seems, making logs hard to read.
@@ -70,3 +70,3 @@console.log(`stdout: ${stdout}`)resolve(`stdout: ${stdout}`)resolve(stdout)})"stdout:" was in the logs and was very silly.
I figured renders was a good time to "save" the code. I could do this in the reducer, but I don't like having side-effects in the reducer, plus didn't want it to save code when resizing a panel, which also triggers a render, I've also added this to the render button.
I'm not sure what will happen to this local storage long term when the ability to save openscad projects is there, but its likely to stick around, because loosing work sucks.
Related to getting the ide container to take up the remaining space after the header has taken up it's chunk.
Don't know if this date on the logs is a good idea or not 🤷
@@ -128,3 +127,3 @@window.URL.createObjectURL(state.objectData?.data)'data:image/png;base64,' + state.objectData?.data)setIsDragging(false)The base64 image can just about be thrown directly into
src, makes this a little simpler.