HaddingtonDynamics / Dexter

GNU General Public License v3.0
363 stars 84 forks source link

Web #88

Closed JamesNewton closed 4 years ago

JamesNewton commented 4 years ago

Adds the ability to edit files on the robot via web browser. Changes the web server to support serving all files under /srv/samba/share (vs just the files under /srv/samba/share/www previously) and adds functions for saving modified versions of those files back (while checking and retaining permissions) and for uploading or creating new files. The editor is based on https://github.com/ajaxorg/ace-builds and supports syntax highlighting for javascript (and it knows .dde is javascript), C / C++, bash (e.g. RunDexRun) and a few other files we might have on Dexter as well as standard text files. The idea is stolen from https://github.com/me-no-dev/ESPAsyncWebServer/blob/master/src/edit.htm and modified to better fit the Dexter environment. e.g. to support changing folders, longer lists of files, etc... than you might find on the ESP-8266 uC.

Nothing in this pull should cause /any/ problems with the robots essential functions.

Closes: https://github.com/HaddingtonDynamics/Dexter/issues/85