| Age | Commit message (Collapse) | Author |
|
The robots.txt in _wui/doc/ is for awwan.org, while in _wui/ is for
tour.awwan.org.
This remove the unneeded robots.txt from _tour/ directory that we
previously assume for tour.
|
|
This is to prevent the 404 error when the page is viewed from
https://kilabit.info/project/awwan/ which cause "/dl/..." relative to
domain kilabit.info instead of awwan.org.
|
|
The default ciigo style provides consistent style with kilabit.info
and have support for light and dark themes.
|
|
|
|
While at it, replace link on GNU make in the install document because
the website for www.gnu.org seems unstable at the moment.
|
|
The "$noparse" option allow copying file without reading and parsing
the input file.
|
|
The wui submodule has been renamed to "pakakeh.ts".
|
|
|
|
The idea is to minimize noise in the logs that does not related to
page access and minimize binary size.
|
|
Previously, the "env-set" take the file argument as the last argument
and optional.
This changes move the file argument to the first argument so the bash
completion can detect and print the completion for list of keys.
While at it, fix handling key with quoted in EnvSet and EnvGet.
Closes: https://todo.sr.ht/~shulhan/awwan/10
|
|
This changes the order of arguments of env-get command to pass the
directory first before the key.
The reason is to simplify auto-completion later from the command line.
|
|
The Stop button call "DELETE /awwan/api/execute?id=" with id is the
previous execution ID.
Implements: https://todo.sr.ht/~shulhan/awwan/9
|
|
Now that the _tour is ready we can deploy it to tour.awwan.org.
The website is updated to include link to tour domain.
Implements: https://todo.sr.ht/~shulhan/awwan/4
|
|
This is for CHANGELOG so the subject of changes highlighted make it
different with the changes description.
|
|
In case we have a script that manage local host and remote server,
calling "play" on "#local" lines only always open the connection to remote
server.
To minimize opening unused connections, let the "#local" command works
on both commands. Its up to user which part of lines that they want
to execute on remote or local.
|
|
Changes,
* Reduce the left padding on the editor so space and padding not
to similar
* Set the caret color to red in editor
* Prevent "Enter" without pressing Control trigger the Save
|
|
The links in the index should be relative, so we can test and
deploy it anywhere.
Also the README contains link to website which is redundant
if rendered on website itself.
|
|
Previously, we use a quick "pop-up" to display notification for each
information or error from WUI.
Sometimes this is annoying, it overlap the buttons, make it hard to
Save and Encrypt at the same time.
In this changes we move the nofication message to be displayed in
the output, same with output of execution.
|
|
Previously, if the command output is "line1\n\nline2\n", the web output
it as
line1
line2
it should be
line1
line2
This fix the empty line not displayed in wui output.
|
|
This allow user to see the output of previous command without opening
the log file.
|
|
This is allow user to resize vfs width in one window and when new window
is opened the vfs width is restored with the same size.
Implements: https://todo.sr.ht/~shulhan/awwan/6
|
|
Once the execution completed, both buttons will be enabled again.
While at it, add an icon to show the execution status.
|
|
This is to make command between the CLI and WUI consistent.
|
|
In "/awwan/api/execute/tail" SSE endpoint, in order for client to be able
to reconnect and start streaming from the last know output, we need to
send the ID for each message that we send.
The ID is the index of Output in slice.
If client does not send Last-Event-ID, we send all Output from beginning,
otherwise, we send only message start from index in Last-Event-ID.
|
|
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>
|
|
Previously, the Execute endpoint wait for command execution to finish.
In case the command takes longer than proxy or server write timeout, it
will return with an timeout error to client.
In this changes, we generate an execution ID for each request and return
it immediately.
The next commit will implement HTTP endpoint to fetch the latest status
and/or output by execution ID.
References: https://todo.sr.ht/~shulhan/awwan/5
|
|
The contabostorage have an issues with cache.
The file that we upload today, when downloaded by user may not the latest
one.
This changes require update on share module to use the latest
[memfs.MemFS#Merge] method.
|
|
Changes,
* fix paste that always end with newline
* fix editor content that got wrapped due to width
* update layout without using float
* replace execCommand with Selection
|
|
Last weeked, I spent one day to fix the resizer to works with flex
layout, and its hard and not optimal.
|
|
Changes,
* Add fixed height on output wrapper
* Add space between Encrypt and Decrypt button
* Add padding in Execute actions component
* Change the wording of "Execute" to "Execute line"
|
|
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.
|
|
|
|
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.
|
|
The latest share module, in lib/crypto, handle loading SSH private key
with passphrase interactively using a program defined in SSH_ASKPASS.
This allow "awwan serve" that run without stdin, for example under
systemd service, works seamlessly by setting environment variable
SSH_ASKPASS to /usr/lib/ssh/x11-ssh-askpass.
Implements: https://todo.sr.ht/~shulhan/awwan/3
Signed-off-by: Shulhan <ms@kilabit.info>
|
|
|
|
While at it, refactoring the layout using flex.
|
|
The "file" argument is optional, its define path to environment file.
If its empty it will be set to "awwan.env" in the current directory.
|
|
This is to allow viewing log from editor.
|
|
The env-get command get the value from environment files.
Syntax,
----
<key> [dir]
----
The "key" argument define the key where value is stored in environment
using "section:sub:name" format.
The "dir" argument is optional, its define the directory where environment
files will be loaded, recursively, from BaseDir to dir.
If its empty default to the current directory.
|
|
The env-set command set the value of environment file. Syntax,
<file> <key> <value>
The "file" argument define path to environment file.
The "key" argument define the key to be set using "section:sub:name"
format.
The "value" argument define the value key.
For example, to set the value for "name" under section "host" to
"myhost" in file "awwan.env" run
$ awwan env-set awwan.env host::name myhost
To set the value for key "pass" under section "user" subsection "database"
to value "s3cret" in file "awwan.env" run
$ awwan env-set awwan.env user:database:pass s3cret
|
|
In case awwan run with "serve" and we modify the ".ssh/config", the
changes does not detected by awwan because we only read ".ssh/config"
once we Awwan instance created.
This changes fix this issue by always loading SSH config everytime
the Play method executed so the user CLI and WUI has the same experiences.
|
|
Previously, only file with type json, message, octet-stream, script,
text, or xml that can be opened by editor.
In this changes we allow all files as long as the size is less than 100KB.
|
|
In case the directory name is too long, the name can span multi line,
break automatically by browser and overlap with previous crumbs.
|
|
In the right side of Save button we now have a button Decrypt that
allow user to Decrypt file with ".vault" extension only.
This require the workspace has been setup with private key
(.ssh/awwan.key) and pass file (.ssh/awwan.pass).
|
|
Using CTRL+s sometimes cause pressing s only trigger the save, due to
fast typing (or keyboard error?).
|
|
|
|
Most file with this type is binary, we allow it to see if its file
has content or not.
|
|
This changes allow user browse the crumb in path and item in the list
using tab key.
While at it, fix the layout to make VFS and editor aligned.
|
|
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).
|
|
|