Compare commits

...

3 Commits

Author SHA1 Message Date
5933c50748 readme 2025-10-01 15:28:19 -07:00
ef761881ff fix stream 2025-10-01 15:28:16 -07:00
7037339cc4 try to fix rbeoot 2025-10-01 15:28:12 -07:00
3 changed files with 7 additions and 5 deletions

View File

@ -80,10 +80,12 @@ https://wakamaifondue.com/
- [x] public tunnel lives through reboots - [x] public tunnel lives through reboots
- [ ] tunnel to the terminal - [ ] tunnel to the terminal
- [ ] remember your "mode" - [ ] remember your "mode"
- [ ] `nose` CLI
- [ ] status bar on terminal UX
- [ ] "project"-based rehaul
- [x] self updating NOSE server - [x] self updating NOSE server
- [x] `pub/` static hosting in webapps - [x] `pub/` static hosting in webapps
- [x] upload files to projects - [x] upload files to projects
- [ ] "project"-based rehaul
- [ ] game/bin/www cartridges - [ ] game/bin/www cartridges
- [-] pico8-style games - [-] pico8-style games
- [x] init/update/draw - [x] init/update/draw

View File

@ -51,7 +51,7 @@ echo ">> Starting (or restarting) $SERVICE_NAME"
sudo systemctl restart "$SERVICE_NAME" sudo systemctl restart "$SERVICE_NAME"
echo ">> Giving NOSE reboot access" echo ">> Giving NOSE reboot access"
echo "nose ALL=(ALL) NOPASSWD: /sbin/reboot" | sudo tee /etc/sudoers.d/nose-reboot echo "nose ALL=(ALL) NOPASSWD: /sbin/reboot, /usr/sbin/reboot" | sudo tee /etc/sudoers.d/nose-reboot
sudo chmod 440 /etc/sudoers.d/nose-reboot sudo chmod 440 /etc/sudoers.d/nose-reboot
echo ">> Enabling kiosk mode" echo ">> Enabling kiosk mode"

View File

@ -21,13 +21,13 @@ export async function stream(initOrFn: StreamParamFn | string | any, fn?: Stream
} }
const append = async (output: string | any) => { const append = async (output: string | any) => {
const [status, data] = processExecOutput(output) const { status, output: data } = processExecOutput(output)
if (status === "error") error = true if (status === "error") error = true
send({ type: "stream:append", data }) send({ type: "stream:append", data })
} }
const replace = async (output: string | any) => { const replace = async (output: string | any) => {
const [status, data] = processExecOutput(output) const { status, output: data } = processExecOutput(output)
if (status === "error") error = true if (status === "error") error = true
send({ type: "stream:replace", data }) send({ type: "stream:replace", data })
} }
@ -38,7 +38,7 @@ export async function stream(initOrFn: StreamParamFn | string | any, fn?: Stream
if (typeof initOrFn === "function") { if (typeof initOrFn === "function") {
func = initOrFn func = initOrFn
} else { } else {
init = processExecOutput(initOrFn)[1] init = processExecOutput(initOrFn).output
func = fn func = fn
} }