nand2tetris / web-ide

A web-based IDE for https://nand2tetris.org
https://nand2tetris.github.io/web-ide
Other
38 stars 11 forks source link

LocalStorage + FileSystemAccess file systems #296

Closed DavidSouther closed 1 month ago

DavidSouther commented 1 month ago

This introduces a "Chained" FileSystemAdapter that allows using a FileSystemAccessFileSystemAdapter and a LocalStorageAdapter together. For reads, it will attempt to read from the FileSystemAccess, and use LocalStorage if it isn't found. For writes, it writes to both. To get this, you need to affirmatively choose a folder, you do this via the "Use Local FileSystem" settings option. (This needs to be selected every page load at this point.)

DavidSouther commented 1 month ago
image image image image
AndyPro720 commented 1 month ago

As of now, there's no way to upload from local fs on the published IDE right?

DavidSouther commented 1 month ago

As of now, there's no way to upload from local fs on the published IDE right?

Correct, and this PR is our first attempt at resolving that.

AndyPro720 commented 1 month ago

On a side note, is there any way to scale up/zoom the java VM emulator screen like on the IDE for ease of dev?

DavidSouther commented 1 month ago

Yes, the x0, x1, and x2 buttons on the top-right of the screen:

image image
AndyPro720 commented 1 month ago

@DavidSouther I was asking for a similar ease of use function/workaround on the Java VM emulator. It's real handy on the IDE but I'm currently dev on local fs.

DavidSouther commented 1 month ago

Ah, sorry, I got your question backwards. No, at this time, that is a feature that we've been able to add to the web version, and I don't anticipate we will be doing any updates to the Java version.