Skip to content

links on the pencil icons in file list and basic html page for editing - #15

Closed
FoamyGuy wants to merge 11 commits into
tannewt:cp_webserverfrom
FoamyGuy:cp_webserver_foamyguy
Closed

FoamyGuy wants to merge 11 commits into
tannewt:cp_webserverfrom
FoamyGuy:cp_webserver_foamyguy

Conversation

@FoamyGuy

Copy link
Copy Markdown

This change adds href attributes to the anchor tag on the pencil icon to link them to /edit/#filename

It also implements the /edit/ endpoint with a very basic html page that allows editing and saving files which reads the selected file from the hash portion of the URL.

I was able to successfully edit code.py and other files on a Feather ESP32S2 TFT device using this build. I had to eject the USB storage on the PC before saving the files or else the webserver returns 409 error responses (which is intended if I understand correctly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants