aboutsummaryrefslogtreecommitdiff
path: root/_example
AgeCommit message (Collapse)Author
2023-12-22all: support cancellation when running command using SSH clientShulhan
This changes require us to replace golang.org/x/crypto with our fork, since the [ssh.Session.Run] with context is not available yet in upstream. Implements: https://todo.sr.ht/~shulhan/awwan/9
2023-12-22_wui: implement button to stop executionShulhan
The Stop button call "DELETE /awwan/api/execute?id=" with id is the previous execution ID. Implements: https://todo.sr.ht/~shulhan/awwan/9
2023-12-01all: implement HTTP API to fetch execution output by IDShulhan
The new API is "GET /awwan/api/execute/tail" that implement Server-sent events, not a normal GET request. Its accept the query parameter "id" with value is the execution ID from "/awwan/api/execute". Once called with valid ID, it will streaming the command output to client. By using this new API, the WUI can receive the output of command immediately without waiting for all commands to be completed. Implements: https://todo.sr.ht/~shulhan/awwan/5 Signed-off-by: Shulhan <ms@kilabit.info>
2023-11-19_wui: wrap path if its overflow instead of using scrollShulhan
If we dive into many sub directories, the path in VFS may have horizontal scroll in it. To minimize scroll, make the crumbs wrapped to bottom.
2023-11-19_wui: fix editor content grow outside browser widthShulhan
When file opened and the content length is greater than browser length, the editor width also growth based on the content. This changes fix this issue by using flex-basis (similar to setting width) and "overflow:auto" on the class awwan-content.
2023-11-15_wui: implement EncryptShulhan
In the right side of Save button we now have a button Encrypt that allow user to Encrypt openend file. This require the workspace has been setup with private key (.ssh/awwan.key) and pass file (.ssh/awwan.pass).
2021-12-09all: make the local statement executed with "/bin/sh -c ..."Shulhan
By using "sh -c", the statement can contains environment variable, piping, and other shell commands that cannot be supported if executed directly using native os.Exec.
2021-08-22all: implement serve commandShulhan
The serve comman will run a HTTP server that provide web-user interface to edit and execute script. Currently, the web-user interface provide the following features, * Browsing the workspace * Running the script on local or remote