Commit Graph

23 Commits (3f8a698039376e58a81c4a1118123fbd0c85eb0f)

Author SHA1 Message Date
Paul eec46c7761 Clean up code. 2021-07-29 20:11:50 +01:00
Paul 2a420cfb3b Remove useServer and useServers. 2021-07-29 19:01:40 +01:00
Paul 4990ac2350 Remove useChannels.
Add servers to MobX.
2021-07-29 18:49:49 +01:00
Paul 8a5c6fc4d5 Remove useChannel 2021-07-29 18:41:01 +01:00
Paul 551dc7562e Remove remaining references to useUser(s).
Add Channel object.
2021-07-29 16:55:07 +01:00
Paul 67f041a4f5 Work towards removing useUsers. 2021-07-29 15:11:21 +01:00
Paul bb4321ba22 Add MobX store, create observable User. 2021-07-29 12:41:28 +01:00
Paul 93619cebd7 Temporary member nickname / role colour solution. 2021-07-25 17:52:57 +01:00
Paul 51e83c27e2 Use loading="lazy" in more places.
i18n invites page.
Polish the bans page.
2021-07-24 17:01:50 +01:00
Paul 03b0018d31 Experimental hooks. 2021-07-14 14:42:22 +01:00
Paul b3386ade33 Format and automatically fix linted code. 2021-07-10 15:57:29 +01:00
Paul 14809f1989 Use tabWidth 4 without actual tabs. 2021-07-05 11:25:20 +01:00
Paul a9ce64c9fe Run prettier on all files. 2021-07-05 11:23:23 +01:00
bree b341f5d166 remove most uses of `as any` in typescript
- replaced many uses of `as any` with another more specific cast `as T`
- filled in missing typed for items that needed to be typed
  - new runtime code was added where necessary to satisfy the new types with comments
- added missing theme variable "sidebar-active" to the Theme variables
- forms using `react-hook-form` are now typechecked
- changed some instances of `target` into `currentTarget` while removing `as any` assertions
2021-07-04 07:09:39 -04:00
Paul 5034a405c5 Handle updates of members for permissions. 2021-06-30 20:06:42 +01:00
Paul 2d9d3c489c Fix: Remove padding on user profile.
Modals: Allow all modals to be closed by ESC (permitting).
Fix: Handle closing DMs properly. Stop propagation too.
2021-06-24 16:57:12 +01:00
Paul 8f62625506 Settings: Link notification sounds to playSound.
Fix: Restore hooks.ts patch, additionally use numbers.
2021-06-24 14:26:18 +01:00
Paul 352c0e880c Context Menus: Add "mark as unread" back.
Servers: Fix various issues relating to voice channels.
2021-06-24 13:07:55 +01:00
Paul 9e460c5b3d Refactor + add message box. 2021-06-20 20:30:42 +01:00
Paul a1d3b3503b Reduce re-renders of sidebars. 2021-06-19 23:12:27 +01:00
Paul 9706dd75f3 Port modal / popover context. 2021-06-19 18:46:05 +01:00
Paul 5b77ed439f Port navigation. 2021-06-19 15:29:04 +01:00
Paul ec97dbebd0 Hide client behind context.
Use idb for saving data.
Allow logins.
2021-06-18 22:47:25 +01:00