Commit Graph

186 Commits (8bbe8d46aefc0deb9d4a65c2fdcd7257e25f7a4d)

Author SHA1 Message Date
brecert 3191a61d5b fix image overflow on older browsers 2021-08-10 05:48:26 -04:00
Paul b6230abbd7 Add search back. 2021-08-09 17:34:25 +01:00
Paul 47be4fcd50 Revert typing indicator changes. 2021-08-08 18:46:27 +01:00
Paul 783ad363c9 Temporarily remove TextReact. 2021-08-08 18:40:25 +01:00
Paul 6cb1b0df26 Virtualised sidebar test. 2021-08-08 16:17:16 +01:00
Paul 031dc64173 Show server identity in message replies and typing indicator.
Revert reply connector temporarily.
2021-08-08 10:16:48 +01:00
Paul c65073d148 Add server avatars. Closes #52
Add identity edit menu. Closes #51
2021-08-07 22:42:15 +01:00
Paul 0d415b4d5b Manage state per channel. Closes #2 2021-08-07 20:43:08 +01:00
Paul e312bf840b Clean up system message code. Fixes #3 2021-08-07 10:32:18 +01:00
Infi fb6237e9e9 Add system message icons. Closes #10 2021-08-07 00:34:57 +02:00
Paul Makles 587aa5aeba Merge pull request #18 from brecert/image-embed-scaling
Improve image embed scaling.
2021-08-06 17:42:32 +01:00
brecert f2897ed615 Improve image embed scaling.
- fixes #15
2021-08-06 12:39:23 -04:00
janderedev feab53f182 ESC now removes the last attachment. Fixes #16 2021-08-06 18:07:11 +02:00
janderedev 1ffd3f991e Esc now removes the last reply, fixes #7 2021-08-06 15:40:32 +02:00
Paul 872b710bc4 Make the linter happy. 2021-08-05 14:47:00 +01:00
nizune 1be8bdfa9b Fixed RTL issue with replies 2021-08-05 12:01:31 +02:00
nizune 8271551c33 New look to replies 2021-08-05 11:54:32 +02:00
nizune 3b65501a12 Fixed sent attachments code 2021-08-04 19:59:29 +02:00
Paul c997261e20 Add i18n to replies.
Add Fluent design category button.
Update Account page with new design.
2021-08-04 16:03:38 +01:00
Paul 540b568a06 Start work on fluent categories.
Fix Locale loading when syncing invalid lang.
2021-08-04 14:31:55 +01:00
nizune fd0bc03c78 Fixed message replies + refined account settings 2021-08-04 14:48:33 +02:00
nizune 204fe3dfed Changed Reply bar structure 2021-08-04 14:01:24 +02:00
nizune adc6f7db4f Added detection for multiple attachments.
Co-authored-by: infi <insrt-git@geist.ga>
2021-08-03 22:42:06 +02:00
nizune 936d196beb More settings fixes + clamped long usernames 2021-08-02 17:25:39 +02:00
Paul ea4c9abeaf Disallow text selection in messages on mobile. 2021-08-02 13:06:18 +01:00
Paul f20f1d8b41 Fix blocked users appearing in typing indicator.
Make typing indicator time out.
2021-07-31 17:58:26 +01:00
Paul 67feb34f58 Fix message links redirecting to home page. 2021-07-31 15:11:58 +01:00
Paul 0a23cfced8 Fix message links from replies. 2021-07-31 13:50:29 +01:00
Paul 54900008a6 Move typing indicator into revolt.js 2021-07-31 13:48:26 +01:00
Paul 329ce392fc Fix elements not observing permissions. 2021-07-31 12:09:18 +01:00
Paul 6750812916 Add queued messages back.
Fix various code issues.
i18n invite menu.
2021-07-31 10:31:16 +01:00
Paul 33decef7de Zero error milestone. 2021-07-30 22:40:49 +01:00
Paul 3f8a698039 Start migration to revolt.js@5.0.0.
200 error milestone
2021-07-30 20:24:53 +01:00
Paul 06aaeab256 Completely remove all references to Username. 2021-07-29 21:47:45 +01:00
Paul 6123133356 Try reverting change to typing indicator. 2021-07-29 21:43:04 +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 86c981d692 Finish migrating user state over to MobX. 2021-07-29 15:51:19 +01:00
Paul 2e7a046f72 Fix typing indicator. 2021-07-28 14:04:27 +01:00
Paul 3543a90cbf Show nickname / role colour in typing indicator.
Try to fix voice context.
2021-07-27 11:45:45 +01:00
Paul 5dac9c4244 Rename occurrences of monoscape to monospace. 2021-07-25 14:26:45 +01:00
Paul 70e9de448d Fix message reply overflow.
Add opera icon to sessions.
2021-07-25 14:18:48 +01:00
Paul dd4edea933 Add category editor to servers. 2021-07-24 19:39:41 +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 384152666f Lazy load embed contents.
Use server config for image proxy.
2021-07-24 11:22:08 +01:00
Paul 5629999fb2 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 b085f715af Fix: Session icon alignment.
Fix: i18n blocked messages / users.
2021-07-10 18:06:21 +01:00
Paul b3386ade33 Format and automatically fix linted code. 2021-07-10 15:57:29 +01:00
Paul 1a59bb1abd Add spoilers back. 2021-07-10 15:55:21 +01:00
Paul 0e43dadbe9 Add more internal CSS variables. 2021-07-10 15:42:13 +01:00
Paul e717cb415e Fix attachment scaling. 2021-07-10 15:21:35 +01:00
Paul ae97a1ecd1 Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-07-10 12:29:33 +01:00
nizune 92681eb354 Added line clamp to embed descriptions 2021-07-10 12:28:18 +02:00
Paul e15dd408ec Fix: Don't lose focus on send.
Sidebar: Show home button on mobile.
2021-07-10 11:21:05 +01:00
nizune 2b9bbef6cb Fixed edited tag 2021-07-09 23:44:15 +02:00
nizune e026be30ea Fix: Removed CSS file for Server Overview 2021-07-09 23:08:00 +02:00
nizune b0bbc85be5 Updated replies 2021-07-09 21:56:09 +02:00
nizune 08ec5e5da5 Fixed username in replies 2021-07-09 21:46:35 +02:00
bree 79d8e7905d Fix: image attachments not having minimum width 2021-07-09 11:09:55 -04:00
Paul 72baac442e Fix: Prevent clicking on links in reply / channel header.
Jump to existing message if exists.
2021-07-09 10:15:32 +01:00
Paul be87739473 Add links to message replies and load older messages. 2021-07-09 10:10:36 +01:00
Paul 8c72497ad2 Highlight messages we jump to. 2021-07-09 09:58:38 +01:00
bree e2b182e521 Fix: attatchment sizing on chrome when unloaded 2021-07-08 18:17:59 -04:00
Paul 2729ef859a Remember age gate prompt confirmation.
Translate age gate.
Add additional limitations on KaTeX.
Prevent any message overflow.
2021-07-08 20:16:50 +01:00
bree a4fee369c8 Fix: max-width for other attachment types 2021-07-08 10:32:05 -04:00
bree c286649f88 small fix for attachment width 2021-07-08 10:26:46 -04:00
bree 6f3de75c35 remove content jumping when loading image and video attachments 2021-07-08 10:22:42 -04:00
nizune f3c7dd109e Small fixes 2021-07-08 15:16:23 +02:00
Paul f9b5d768d3 Fix: Spoilers would not toggle.
Hook events into Markdown render using ref.
2021-07-07 12:45:55 +01:00
Paul fb0ae130e9 Format code. 2021-07-06 19:29:27 +01:00
Paul fd23fdb206 Fix: System messages would break replies.
Fix: Show correct time format on left side of messages.
2021-07-06 19:29:09 +01:00
nizune 8d0969d47e Fix: Small fixes to Sessions tab 2021-07-06 17:42:32 +02:00
Paul 8012b680a5 Fix: Use minHeight.
Temporary change: Prevent TextFile from loading large content.
Fixes #1: File preview failing with JSON files.
Add a way to open text files in new tab.
2021-07-06 14:58:54 +01:00
nizune 193b039fd0 Fixed sessions entries to work with RTL 2021-07-06 15:33:26 +02:00
nizune d28fda2ed5 Update: Fixed Jump to bottom bar on mobile 2021-07-06 15:03:48 +02:00
nizune 4832e824a5 Fix: Messagebox is now fully working 2021-07-06 13:16:29 +02:00
Paul cf2b81c22d Fix: Avoid going through react-redux to update draft. 2021-07-06 11:07:42 +01:00
Paul 335b46090f Fix: Textarea AutoSize did not resize correctly with long lines. 2021-07-06 11:04:51 +01:00
bree e03fc1e052 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
Paul b823c2ac32 Revert change. 2021-07-05 21:28:38 +01:00
Paul b258d80edc Fix: Padding on message box.
Allow 20 max rows on message area.
2021-07-05 21:07:04 +01:00
nizune d636168908 Fix: changed outlines to box-shadow 2021-07-05 21:06:08 +02: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
insert f69e04d4e9 Merge branch 'master' into 'cleanup'
# Conflicts:
#   src/components/common/LocaleSelector.tsx
2021-07-05 10:17:57 +00:00
Paul e0dd6df552 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 ebdf64b623 Fix: attachment scaling and better image scaling
- attachment scaling now works for all forms of attachments
- switched to grid based action bar
- added onLoad class so image proportions are "trimmed" once the image has loaded to avoid moving the view around before loading
  - this may be possible to remove at some point
2021-07-05 04:32:05 -04:00
bree 1cc6514c9a Update revolt.js to fix types 2021-07-04 21:09:24 -04:00
bree e5d46cc34a Merge branch 'master' into cleanup 2021-07-04 21:06:30 -04:00
insert 41c6a95a6a Merge branch 'images' into 'master'
replace js image scaling with css for message attatchments

See merge request revolt/revite!3
2021-07-04 17:53:55 +00:00
Paul 720bc263a5 Feature: Font selector and ligature toggle. 2021-07-04 17:56:18 +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
bree 1a3281cba3 Fix: Chrome support for css image scaling 2021-07-04 00:48:24 -04:00
Paul e9f303828f Add auto-complete to message editor. 2021-07-03 23:42:05 +01:00
bree fdc2cdc4c8 image attachments now have their width and height properly set 2021-07-03 01:47:46 -04:00
bree 630611112f replace js image scaling with css for message attachments 2021-07-02 22:40:53 -04:00
bree d4765b7db4 fix long width image previews to fit into view 2021-07-02 22:37:45 -04:00
nizune 8f047788c4 Fix: Message copy brackets and icon changes 2021-07-02 16:51:06 +02:00
Paul b55c291624 Link to profiles from message / member sidebar. 2021-07-02 13:35:50 +01:00
Paul 4afdd15813 Fix avatar direction. 2021-07-01 21:23:54 +01:00