Commit Graph

32 Commits

Author SHA1 Message Date
modeco80
cfed6dbfa3 oops 2024-03-12 02:14:12 -04:00
modeco80
2661a1a142 Remove "new Promise" hoisting in most cases in main.ts
Not actually needed (and in most cases, the inner lambda was `async` colored anyways, so why not just async color the function itself?)
2024-03-12 01:44:04 -04:00
modeco80
125e6a769d reformat typescript code with prettier
Mostly just for nicity. I did manually clean up a few things, but other than that, this basically was just importing configs from cvm3/crusttest, adding prettier as a dev dependency, and just ctrl-shift-I on every typescript file part of the codebase
2024-03-12 01:28:23 -04:00
modeco80
6dc3ba20af Remove most "as" casting
Since the places where this was being done actually typecheck now (thanks mostly to the nanoevent interfaces), we no longer need wonky "as U" casts anymore!
2024-03-12 01:18:39 -04:00
modeco80
4561eb1f63 Use nanoevents typing where possible
(this also fixes the use of a generic function type, where Nanoevents explciitly provides a cleaner type alias)
2024-03-12 00:10:24 -04:00
modeco80
3b4891c0a7 ok thank you javascript for not being a half baked language at all 2024-03-11 23:47:49 -04:00
modeco80
4dd5c42d55 Make CollabVMClient#send use typescript magic to allow passing any type
This allows passing any type (though practically, this is only ever going to include numbers) into it. This removes the need to constantly .toString() (though booleans are still kind of awful, but I guess we could factor that out somehow)
2024-03-11 23:40:43 -04:00
modeco80
72f321f689 Make admin opcodes a enum
just for typesafety. we're on typescript after all
2024-03-11 23:28:37 -04:00
modeco80
b59ebe2466 implement mouse wheel handling and clean up mouse handling in general 2024-03-11 21:24:40 -04:00
Elijah R
f981a661da reset username color on vm close - resolves #19 2024-02-26 13:56:17 -05:00
Elijah R
20d268df21 re-add ctrl+alt+del button by popular request 2024-02-26 13:46:11 -05:00
Elijah R
468bfe1748 add localstorage usernames 2024-02-04 13:02:45 -05:00
Elijah R
63902f6cdb fix logging in as mod 2024-02-04 13:02:45 -05:00
Elijah R
b4d8bbcf28 color the username span on login 2024-02-04 13:02:45 -05:00
Elijah R
d1c8c5ae9a implement xss, properly hide things on vm close 2024-02-04 13:02:45 -05:00
Elijah R
bb803f57a8 add welcome modal 2024-02-04 13:02:45 -05:00
Elijah R
a802027333 add chat sound 2024-02-04 13:02:45 -05:00
Elijah R
917109442e Implement admin login and features 2024-02-04 13:02:45 -05:00
Elijah R
d7d377fe53 implement vote-to-reset, screenshotting, and fix system messages 2024-02-04 13:02:45 -05:00
Elijah R
f5e30a60b1 fix sorting 2024-02-04 13:02:45 -05:00
MDMCK10
bb08e50003 Merge branch 'feature/osk' of https://github.com/MDMCK10/collab-vm-1.2-webapp into MDMCK10-feature/osk 2024-02-04 13:02:45 -05:00
MDMCK10
795bf7bd01 fix merge conflict 2024-02-04 13:02:45 -05:00
Elijah R
b4559a3841 add turns and control 2024-02-04 13:02:45 -05:00
Elijah R
288edf6b3a add users online count to list 2024-02-04 13:02:45 -05:00
Elijah R
7ef0f20189 add current user styling 2024-02-04 13:02:45 -05:00
Elijah R
a81eb5917b clear turn on close 2024-02-04 13:02:45 -05:00
Elijah R
e905593896 finish turn css 2024-02-04 13:02:45 -05:00
Elijah R
05416caba0 switch to using an actual array instead of hacky htmlcollection enumeration shit (god i do the weirdest things while sleep deprived) 2024-02-04 13:02:45 -05:00
Elijah R
76ef47c5b2 chat and rename, half-working turn status. re-add crusty guac keyboard shit 2024-02-04 13:02:45 -05:00
Elijah R
33d16f4c2f Implement opening the VM, as well as viewing the screen, chat, and userlist. It's pretty much fully functional as a view-only client, next up is interaction 2024-02-04 13:02:45 -05:00
Elijah R
225f91f7a4 Basic VM list support. 2024-02-04 13:02:45 -05:00
Elijah R
f244ae412f Set up the source tree for the typescript rewrite. Nothing really here just yet, just filler 2024-02-04 13:02:45 -05:00