Commit graph

218 commits

Author SHA1 Message Date
Paul
c21453b281 100 error milestone.
Remove hooks completely. :)
2021-07-30 21:20:42 +01:00
Paul
3184269ba4 Start migration to revolt.js@5.0.0.
200 error milestone
2021-07-30 20:24:53 +01:00
Paul
b0681dfc99 Load member sidebar into MobX state. 2021-07-29 21:01:03 +01:00
Paul
d5cd45196e Clean up code. 2021-07-29 20:11:50 +01:00
Paul
768c80b051 Remove useServer and useServers. 2021-07-29 19:01:40 +01:00
Paul
bde9a2e8f7 Remove useChannels.
Add servers to MobX.
2021-07-29 18:49:49 +01:00
Paul
411fac2527 Remove useChannel 2021-07-29 18:41:01 +01:00
Paul
0571c065bd Remove remaining references to useUser(s).
Add Channel object.
2021-07-29 16:55:07 +01:00
Paul
f8611ddea5 Finish migrating user state over to MobX. 2021-07-29 15:51:19 +01:00
Paul
4dffaad6c1 Work towards removing useUsers. 2021-07-29 15:11:21 +01:00
Paul
cf3930b094 Add MobX store, create observable User. 2021-07-29 12:41:28 +01:00
Paul
98f9672801 Show nickname / role colour in typing indicator.
Try to fix voice context.
2021-07-27 11:45:45 +01:00
Paul
a8c3482815 Temporary member nickname / role colour solution. 2021-07-25 17:52:57 +01:00
Paul
6d5fb0a8a3 Rename occurrences of monoscape to monospace. 2021-07-25 14:26:45 +01:00
Paul
f2a69daf03 Fix onboarding. 2021-07-25 13:55:45 +01:00
Paul
dbaf246c27 Use loading="lazy" in more places.
i18n invites page.
Polish the bans page.
2021-07-24 17:01:50 +01:00
Paul
ca975aae7b Lazy load embed contents.
Use server config for image proxy.
2021-07-24 11:22:08 +01:00
Paul
f5e70afb35 Experimental hooks. 2021-07-14 14:42:22 +01:00
Paul
7374591458 Add editing role name / colour.
Animate avatars on message hover.
Switch to 24-hour time format by default.
2021-07-14 13:25:40 +01:00
Paul
7586b365fe Format and automatically fix linted code. 2021-07-10 15:57:29 +01:00
Paul
ef5944b065 Add more internal CSS variables. 2021-07-10 15:42:13 +01:00
Paul
e09fd006a8 Fix: Sever list was not center aligned. 2021-07-10 12:29:32 +01:00
nizune
76f43a4b98 Added hamburger and member sidebar icons 2021-07-08 18:39:03 +02:00
nizune
766be90296 Small fixes 2021-07-08 01:14:23 +02:00
Paul
98ea3e7af7 Modals: Add close animation. 2021-07-07 22:02:18 +01:00
Paul
c28110ffe5 No, I totally did not commit this to prod. 2021-07-06 23:11:36 +01:00
Paul
9bbbf5ffc8 Show tooltip for long statuses. 2021-07-06 22:58:45 +01:00
Paul
d5fae8b9f0 Fix: dayjs locales won't fully load if the locale isn't selected first. 2021-07-06 22:49:14 +01:00
Paul
67d3fb35a4 Format code. 2021-07-06 19:29:27 +01:00
Paul
1fcf4df1ed Fix: System messages would break replies.
Fix: Show correct time format on left side of messages.
2021-07-06 19:29:09 +01:00
Paul
e8a111e6bc Rotate file upload icon instead of switching icon. 2021-07-06 11:52:07 +01:00
Paul
98e0edd331 Re-write types for modal actions. 2021-07-06 11:34:36 +01:00
Paul
56b509a16a Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-07-06 08:57:02 +01:00
Paul
57ef8408a6 Fix: Certain languages not loading due to bad map. 2021-07-06 08:56:30 +01:00
bree
d829deba98
Fix: Image embeds were unable to be opened into the image view
- Image embeds actions now use a better styling that's the same as the other action stylings
2021-07-06 03:56:04 -04:00
bree
002d565b3f
Improve ImageViewer styles 2021-07-06 03:03:05 -04:00
nizune
e5b233e14e Fix: changed outlines to box-shadow 2021-07-05 21:06:08 +02:00
Paul
b5a11d5c8f Use tabWidth 4 without actual tabs. 2021-07-05 11:25:20 +01:00
Paul
7bd33d8d34 Run prettier on all files. 2021-07-05 11:23:23 +01:00
insert
c4b9950514 Merge branch 'master' into 'cleanup'
# Conflicts:
#   src/components/common/LocaleSelector.tsx
2021-07-05 10:17:57 +00:00
Paul
7067627027 Fix: Add default for font combo box.
Don't pass dispatcher in, just provide it globally.
Fix: Allow clicking through to profile from server sidebar.
2021-07-05 10:59:48 +01:00
bree
c194fff7fd
Resolve remaining review notes 2021-07-04 21:22:33 -04:00
bree
8ece647857
Replace usage of <></> with null for project and style consistency 2021-07-04 21:13:53 -04:00
bree
e03449b75c
Fix merge conflict missed from before 2021-07-04 21:11:23 -04:00
bree
3c2a85a3e4
Merge branch 'master' into cleanup 2021-07-04 21:06:30 -04:00
Paul
c43aab7c7c Switch crcong's Vite fork to fix dynamic css imports. 2021-07-04 20:46:30 +01:00
nizune
8d8b13ec12 Fixed descriptions on checkbox components 2021-07-04 20:15:38 +02:00
Paul
1c80d5675f Feature: Font selector and ligature toggle. 2021-07-04 17:56:18 +01:00
Paul
1768264272 Add collapsible section component.
Can now collapse server categories.
Client remembers collapse state, incl. advanced appearance settings.
2021-07-04 15:53:06 +01:00
Paul
098e28113b Fix: Handle defaults before transforming languages.
Remove Hardcore Mode.
2021-07-04 13:02:32 +01:00
Paul
8e0e226ec6 Fix: Defaults / dayjs will not always be present. 2021-07-04 12:46:33 +01:00
bree
a4051330a3
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
f81f7768f8 New design for server roles editor. 2021-07-03 22:17:53 +01:00
Paul
f25b488863 Fix page height on mobile.
Fix keyboard focus on mobile.
2021-07-03 15:23:29 +01:00
Paul
a4ac87f24d Add helmet for theme-color in settings.
Update colours in main app.
2021-07-03 14:27:57 +01:00
Paul
0f5c531694 Fix modals with horizontal form components.
Fix invite / friends menu having sidebars.
2021-07-02 20:57:48 +01:00
Paul
b0332c882b Fix profile links from user profiles. 2021-07-02 19:01:28 +01:00
Paul
73c61cd7f8 Add i18n to incoming requests.
Add icon stacking mask.
2021-07-02 18:56:00 +01:00
Paul
d8e23aea12 Add pending requests menu. 2021-07-02 18:00:17 +01:00
Paul
a569f41d1c Add dayjs language defaults.
Add remove / block user confirmation.
2021-07-02 14:50:24 +01:00
Paul
7982489ab6 Link to profiles from message / member sidebar. 2021-07-02 13:35:50 +01:00
Paul
3eef61fe11 Fix Friend button styling and actions.
Can now call from friends list.
2021-07-02 11:13:14 +01:00
Paul
82b8a9b28e Filter theme keys. 2021-07-01 21:24:20 +01:00
Paul
471b4b0847 Finish up new sidebar active.
Add rounded corners to sidebar.
2021-07-01 13:42:53 +01:00
Paul
f6daa54411 Handle updates of members for permissions. 2021-06-30 20:06:42 +01:00
Paul
b31183e0f8 Fix: Placeholder would overflow sidebar. 2021-06-29 22:21:26 +01:00
nizune
4102b69ca4 Update: Changed icon pack to Boxicons 2021-06-27 12:17:59 +02:00
Paul
9968792116 Fix notifications playing in servers. 2021-06-26 11:23:28 +01:00
Paul
8a16724892 Fix: "Modify Account" did not have access to client 2021-06-26 10:34:48 +01:00
Paul
994ef65200 Notifications: Block muted channels from push notifs. 2021-06-25 12:37:59 +01:00
Paul
21859e4c55 Feature: Basic notification options implementation 2021-06-24 23:59:46 +01:00
Paul
51ac1f599c Fix: Notification settings not affecting playSound 2021-06-24 22:06:30 +01:00
Paul
e03c2f88af Fix: Load Theme early for onboarding. 2021-06-24 21:07:07 +01:00
Paul
8b91b4a632 Fix: Onboarding would not appear due to content pushing it out of the way. 2021-06-24 20:53:12 +01:00
Paul
557ed030d4 Remove prompt again. 2021-06-24 20:40:22 +01:00
Paul
d2904f57ab Fix: Editor would not open "delete_message".
Fix: Clear status if empty string given.
2021-06-24 17:09:34 +01:00
Paul
acadd8ab17 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
363789c825 Fix: Icons collapsing in flex.
Feature: Remember what channel was opened last.
Channels: ESC to focus message box / cancel editing.
2021-06-24 16:22:45 +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
eef3e11e62 Load mediasoup client and add voice UI. 2021-06-24 10:54:32 +01:00
Paul
64682d453f Fix (edited) string on messages.
Fix build issues.
Remove mediasoup from vendor bundle.
2021-06-23 22:56:44 +01:00
Paul
11c524d6a9 Add vortex / voice client. 2021-06-23 14:52:33 +01:00
Paul
babb53c794 Add VoiceChannel support. 2021-06-23 13:52:16 +01:00
Paul
29bb93f399 Remove twemoji dependency.
Support re-connecting after going / starting offline.
2021-06-22 19:34:52 +01:00
Paul
b1a4604653 Send ack PUTs for unreads. 2021-06-22 18:01:03 +01:00
Paul
3c8c9a672f Add support for multiple attachment upload. 2021-06-22 17:45:34 +01:00
Paul
99572066c8 Show alternative languages in own list. 2021-06-22 16:37:06 +01:00
Paul
22b21c030f Add animations to loaders. 2021-06-22 16:29:47 +01:00
Paul
e98a962071 Make sure to focus window for desktop notifs.
Prevent empty pastes of files.
Log push errors.
2021-06-22 15:43:06 +01:00
Paul
8a0d90e292 Add push notification handling code into sw 2021-06-22 14:37:38 +01:00
Paul
f724cfdf4f Add auto complete back. 2021-06-22 13:28:03 +01:00
Paul
56dda66c1c Add file pasting and drag-n-drop. 2021-06-22 12:08:39 +01:00
Paul
454ee7fd6e Add server creation button.
Add profile links / app links back.
Add quoting / mentioning back.
2021-06-22 11:56:37 +01:00
Paul
602cca1047 Implement new auto-size text area.
Add bars + header + sidebar to channels.
2021-06-21 21:11:53 +01:00
Paul
0115ace3fa Port sync, queue management and notifs. 2021-06-21 13:28:26 +01:00
Paul
9e460c5b3d Refactor + add message box. 2021-06-20 20:30:42 +01:00
Paul
0461c7e0dd Fix: Remove unneeded argument. 2021-06-20 17:36:20 +01:00
Paul
d0b9cf9090 Work on channels, render content of messages. 2021-06-20 17:31:53 +01:00
Paul
89f8ab2694 Use relative imports for dayjs. 2021-06-20 12:55:23 +01:00
Paul
2acb3aeb14 Re-organise assets to be closer to their respective uses. 2021-06-20 11:05:12 +01:00
Paul
06b4e9bc87 If IDB is not present, allow app to load as normal 2021-06-20 10:17:34 +01:00
Paul
a1d3b3503b Reduce re-renders of sidebars. 2021-06-19 23:12:27 +01:00
Paul
014512440f Fix types. 2021-06-19 22:39:30 +01:00
Paul
31d8950ea1 Port settings. 2021-06-19 22:37:12 +01:00
Paul
0a0c00fe58 Port friends menu over. 2021-06-19 20:00:30 +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
5aa8f30e14 Port and re-write icon code. 2021-06-19 12:34:53 +01:00
Paul
ec97dbebd0 Hide client behind context.
Use idb for saving data.
Allow logins.
2021-06-18 22:47:25 +01:00
Paul
68a35751b3 Port Login UI 2021-06-18 20:21:54 +01:00
Paul
aa81ebb298 Add client context. 2021-06-18 20:07:26 +01:00
Paul
e7d1ada13d Import assets and add PWA. 2021-06-18 19:25:33 +01:00
Paul
27eeb3acd2 Add Redux and reducers.
Load i18n files and add dayjs.
2021-06-18 17:57:08 +01:00
Paul
0cba2b362d Add prettier. 2021-06-18 15:57:08 +01:00
Paul
34a4bccbbe Add eslint. 2021-06-18 15:46:30 +01:00
Paul
8bb6cd456b Move UI into its own page. 2021-06-18 15:35:35 +01:00
Paul
58821476e6 Add i18n, use default imports for UI. 2021-06-18 15:18:10 +01:00