Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

support running in browsers (with emscripten) #28

Draft
wants to merge 72 commits into
base: dev
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
d4bb1a7
fixup: README: fixup emsdk link style
Apr 12, 2024
aa95adb
CI: rename NodeJS build artifacts
Apr 12, 2024
bcd1a39
CI: emscripten: upgrade mymindstorm/setup-emsdk to v14
Apr 13, 2024
90f73b6
web: start working on a frontend wrapper for Wasm build
Apr 12, 2024
4493bc6
web-shims: add hint texts for argument input box
Apr 13, 2024
73159dc
web-shims: use pico.css theme
Apr 13, 2024
eb0e848
web-shims: fix monospace font
Apr 13, 2024
cc3de9f
web-shims: rename script
Apr 13, 2024
2ba793d
web-shims: fix mobile browsers
Apr 13, 2024
f2b1905
web-shims: fix old browsers
Apr 14, 2024
b165a86
web-shims: tweak default status text for unsupported browsers
Apr 14, 2024
3758710
web-shims: clean up
Apr 14, 2024
30f1077
web-shims: add a missing comment
Apr 14, 2024
15556c1
fixup: web-shims: abort runtime when failed to load wasm
Apr 14, 2024
da949eb
web-shims: support quoted arguments
Apr 14, 2024
205f813
web-shims: set initial CWD
Apr 14, 2024
018720f
web-shims: make ENTER key fire program on desktop
Apr 14, 2024
f696bbf
web-shims: remove "Run" button
Apr 14, 2024
d3b57b4
web-shims: 'Status: Ready' -> 'Status: Idle'
Apr 14, 2024
adcd4d1
web-shims: display correct argv[0]
Apr 14, 2024
32fb1d6
web-shims: add a little delay before auto-scrolling console output
Apr 14, 2024
51f6156
web-shims: add drop down menu for switching between screens
Apr 14, 2024
e744924
web-shims: update hint texts for input boxes
Apr 14, 2024
f099f5e
web-shims: add a little delay before showing exit code
Apr 15, 2024
4e7f372
web-shims: implement env vars setting
Apr 15, 2024
a2aaea4
CI: emscripten: downgrade emsdk to 3.1.34
Apr 15, 2024
c05f532
emscripten: stop shipping dead code in builds
Apr 15, 2024
9c963e5
fixup: web-shims: enable system environ for NodeJS builds
Apr 15, 2024
ad51e97
fixup: README: correct emscripten CMake toolchain path
Apr 15, 2024
371e1b1
web-shims: hide page before reloading tab
Apr 15, 2024
e1cf56d
web-shims: add a clear button to environ screen
Apr 15, 2024
b592496
web-shims: rename "Command" screen to "TTY"
Apr 15, 2024
a2a9aab
web-shims: add filesystem screen
Apr 15, 2024
05b253b
web-shims: reformat code
Apr 15, 2024
d40971b
README: WebAssembly -> Web
Apr 15, 2024
246e8eb
README: add emscripten doc link
Apr 15, 2024
8ca6723
CI: add workflow for Cloudflare Pages
Apr 15, 2024
45ba005
web-shims: add link preview
Apr 16, 2024
29080a0
web-shims: fix spaces after label
Apr 16, 2024
3b69609
web-shims: add CWD display
Apr 17, 2024
81eb1c6
web-shims: use a lighter way to switch between screens
Apr 17, 2024
1fa3e49
web-shims: tweak button sizes
Apr 17, 2024
605aeed
web-shims: wrap long lines in HTML code
Apr 17, 2024
2b9f1ff
web-shims: fix autocomplete
Apr 17, 2024
007bc5a
web-shims: add table to show directory entries
Apr 17, 2024
8567cab
web-shims: impl directory entry listing
Apr 17, 2024
3348fa4
web-shims: display CWD path in monospace
Apr 17, 2024
6eadcc5
web-shims: add mkdir and upload button
Apr 17, 2024
8eb41af
web-shims: disable button while magiskboot is running
Apr 17, 2024
57d50af
web-shims: catch FS error
Apr 17, 2024
265fea3
web-shims: simplify list appending
Apr 17, 2024
7144a5e
web-shims: impl file selection
Apr 17, 2024
4e04f25
web-shims: add a delete button
Apr 17, 2024
a17b7e2
web-shims: fix trim
Apr 17, 2024
464ad83
web-shims: use lstat() instead of stat()
Apr 17, 2024
2fb6723
web-shims: vfs screen: add a friendly hint
Apr 17, 2024
853dd9a
web-shims: disable button when no selection
Apr 17, 2024
1409489
web-shims: impl directory navigating
Apr 17, 2024
2a60784
web-shims: impl file exporting
Apr 17, 2024
2464332
web-shims: prevent default click event on table
Apr 17, 2024
662bac1
web-shims: fix confusing variable names
Apr 17, 2024
a2c2c1b
web-shims: add a rename button
Apr 17, 2024
0d34da0
web-shims: add a copy button
Apr 17, 2024
d6dd4da
web-shims: lint
Apr 17, 2024
f644cda
web-shims: fix errno detection in release build
Apr 17, 2024
66c1d81
HACK: web-shims: allow UI to update on console output
Apr 18, 2024
5b28c1e
web-shims: use JS library instead of CMake configure_file()
Apr 18, 2024
108a695
web-shims: scroll environ edit to bottom on startup
Apr 18, 2024
98f1d0a
web-shims: make Asyncify optional
Apr 18, 2024
6f1b23d
web-shims: allow UI update when doing write() on console IO
Apr 18, 2024
70dfa34
fixup: CI: disable -Oz for Web build again
Apr 18, 2024
3871851
web-shims: reduce unnecessary console io sleep
Apr 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
web-shims: update hint texts for input boxes
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
  • Loading branch information
Ookiineko committed Apr 15, 2024
commit e7449244d735915499544a4eb927276ca4b248f2
4 changes: 2 additions & 2 deletions src/web-shims/shell.in.html
Original file line number Diff line number Diff line change
@@ -48,12 +48,12 @@
<label id="status_label">Note:
<span id="status_show">May stuck when lack support for WebAssembly</span>
</label>
<input id="cmdline_edit" placeholder="Argument…" autocomplete="off" readonly/>
<input id="cmdline_edit" placeholder="foo &quot;bar&quot; 'baz' &quot;foo bar&quot; 'foo bar' …" autocomplete="off" readonly/>
<textarea id="conout" readonly autocomplete="off"></textarea>
</div>
<div id="scr_env" style="display: none">
<button id="apply_env_btn">Save &amp; Restart</button>
<textarea id="env_edit" autocomplete="off" placeholder="NAME1&#10;NAME2=&#10;NAME3=value3&#10;…"></textarea>
<textarea id="env_edit" autocomplete="off" placeholder="FOO&#10;FOO=&#10;FOO=bar&#10;BAZ=foo bar&#10;…"></textarea>
</div>
{{{ SCRIPT }}}
</body>