Compare commits
3 Commits
e669c4cbce
...
5933c50748
| Author | SHA1 | Date | |
|---|---|---|---|
| 5933c50748 | |||
| ef761881ff | |||
| 7037339cc4 |
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user