example-spa-elm-app/README.md

31 lines
1.1 KiB
Markdown
Raw Normal View History

2024-12-29 02:09:53 +00:00
# About
A tool that lets you remotely try new exotic hardware such as Tenstorrent Wormhole or SiFive P550 Dev board from the comfort of your browser.
2024-12-29 02:09:53 +00:00
2025-01-03 13:29:56 +00:00
# Building
2024-12-29 02:09:53 +00:00
```bash
2025-01-03 13:29:56 +00:00
nix-shell -p elmPackages.elm cargo uglify-js
make serve RELEASE=1 # can also do DEBUG=1 instead
2024-12-29 02:09:53 +00:00
```
Now open `http://127.0.0.1:8080` in your browser.
2024-12-29 02:09:53 +00:00
# TODO
- [ ] Binding to `0.0.0.0` should not be default behavior.
- [ ] Rename `term.rs` to `terminal.rs` unless there is a good reason not to.
- [ ] Move to `actix-ws`
- [ ] Use [`spawn_local`][discord_chat] instead of `addr.do_send`
- [ ] Re-factor if and else branches of `term::msg_handler`
- [ ] Stopping the websocket should terminate terminal. The ergonomic way
to do this is to have each widget provision its own stop handler.
- [ ] Reduce warnings, especially from unused imports.
- [ ] Implement logic for `CloseTerm` UpMsg for terminal
- [ ] Implement terminal
- [ ] Start by simply adding new term page
- [ ] Close websocket after 15s of no response(from frontend) to websocket pings
- [ ] Implement dark mode
[discord_chat]: https://discord.com/channels/771444961383153695/771447545154371646/1327308910654259291