feat: add MxjsClient for lightweight Matrix client functionality

- Implemented core methods for user authentication (register, login, logout).
- Added room management features (createRoom, joinRoom, leaveRoom, inviteUser).
- Included message handling capabilities (sendMessage, editMessage, redactEvent).
- Introduced user moderation actions (kickUser, banUser, unbanUser).
- Implemented profile management (getProfile, setDisplayName, setAvatarUrl).
- Added support for media uploads and fetching messages from room timelines.
- Included event handling with emit and on methods for custom event listeners.
- Sanitization of HTML content and mention handling in messages.
This commit is contained in:
2026-03-15 12:27:23 +11:00
parent 6d7ee1db71
commit df10268a83
7 changed files with 2785 additions and 584 deletions

1243
website/mxjs-lite.js Normal file

File diff suppressed because it is too large Load Diff