Commit graph

11 commits

Author SHA1 Message Date
oxalica
ff7fd9e4b2 feat(webapi): include cid in ServerEvent::Msg 2024-10-08 21:20:20 -04:00
oxalica
367f6d2a4b feat(webapi): impl room member listing 2024-10-01 06:50:53 -04:00
oxalica
bc6e6c2056 refactor(webapi,types)!: make challenge type extensive
We may allow more challenge types other than PoW in the future, eg.
captcha. So make the relevent types more generic.

Now the challenge is returned in JSON response as a individual top-level
field `register_challenge` instead of in HTTP headers.
2024-10-01 05:26:00 -04:00
oxalica
364e517b7d frontend: improve layout and registration 2024-09-30 19:34:22 -04:00
oxalica
5afe6af11a feat(frontend): actually do register challenge 2024-09-19 06:42:36 -04:00
oxalica
0c28c00c3d refactor(webapi)!: put all API under path /_blah 2024-09-19 05:12:42 -04:00
oxalica
ab756f78ab fix(frontend): fix parsing and validation of msgs 2024-09-19 05:11:48 -04:00
oxalica
a9ca9b976c feat(frontend): impl register and fix 2024-09-17 21:44:36 -04:00
oxalica
73eb441a26 refactor(*): use term msg to replace item
- `Msg` or `msg` is now the canonical term for the substructure in a
  room. It includes a `chat` subtype and (in the future) other
  administration subtypes like member joining or leaving.

- `Message` or `message` can used in human oriented context like docs
  and comments, but only when it is unambiguous.

- `message` is not chosen in code because it's hard to type (at least
  for me!), and have ambiguous meaning of:
  - "Human readable text" in context of `ApiError`'s field.
  - "A unit of data transfer, datagram" in context of WebSocket Message.

- `item` is not chosen because it is overly generic.
2024-09-13 03:32:11 -04:00
oxalica
74c6fa6f6a refactor(webapi): hoist RoomMetadata to blah_types and rename last_chat to last_item 2024-09-10 09:19:15 -04:00
oxalica
7160e5adbd refactor: reorganize docs and aux files 2024-09-10 03:59:31 -04:00