Repository navigation
Commit 8391116
authored
feat(ui): run the dashboard console as a web repl (#1341)
The dashboard console carried commands over an HTTP request and read
the log from an event stream, and a browser signed in with the session
cookie never got the socket at all. Every command, the log, the
completion and the confirmation now run over the one version 1
websocket. A cookie session sends a hello without a token and the
browser attaches the session cookie. The input is disabled while the
socket is down, a refusal shows the sign-in state, and the data of a
result is drawn as a table. The legacy endpoints stay on the server.
The unused event stream package is removed.
Signed-off-by: TheMeinerLP <github@themeinerlp.dev>1 parent 88ee03d commit 8391116
8 files changed
Lines changed: 379 additions & 325 deletions
File tree
- reposilite-frontend
- fake-api
- src
- components/console
- store/console
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
910 | 915 | | |
911 | 916 | | |
912 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
913 | 934 | | |
914 | 935 | | |
915 | 936 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
0 commit comments