Commit graph

159 commits

Author SHA1 Message Date
Paul
af3eb754f7 feat(messaging): hide new message bar on esc or sent message 2021-12-24 17:20:05 +00:00
Paul
cc0e45526c feat(mobx): refactor and remove (react-)redux 2021-12-23 21:43:11 +00:00
Paul
faca4ac32b feat(mobx): add message queue store 2021-12-12 15:33:47 +00:00
Paul
413bf6949b feat(mobx): server notification options + data store 2021-12-11 23:34:46 +00:00
Paul
f8b8d96d3d feat(mobx): migrate auth and config 2021-12-11 21:04:12 +00:00
Paul
bc799931a8 feat(mobx): add persistence 2021-12-11 16:24:23 +00:00
3nt3
b09ccd90ba
fix: add context menu to individual attachments if > 1 attached (#348) 2021-10-31 21:25:33 +00:00
Paul Makles
92597ab1cd
Merge pull request #360 from revoltchat/rework/categories-kanban 2021-10-31 16:38:10 +00:00
Paul
f97925073a feat(rbd): transform rbd types to Preact from React 2021-10-31 16:04:37 +00:00
Paul
bb5509f660 feat(categories): autosave category changes 2021-10-30 18:20:12 +01:00
Paul Makles
ae2efcd9c6
Merge pull request #266 from brecert/fix-265 2021-10-30 15:55:34 +00:00
Paul
195a9bda35 Fix(voice): Voice UI would not react to actions.
Feat(voice): Allow accessing user profile from voice UI.

Fixes #89. Fixes #91.
2021-10-20 22:39:26 +01:00
Paul
81379d6ec4 Explicitly deny bad URLs.
Fixes #252.
Handle embed untrusted links better.
2021-09-25 10:54:32 +01:00
brecert
abe2e2db40
Fix send message related context menu options when unable to send messages
- fixes `reply` and `quote message` from appearing in the context menus for messages when unable to send messages.
- fixes #265
2021-09-19 00:47:01 -04:00
Paul
d5430a7920 Use server configuration for voso websocket. 2021-09-16 10:27:33 +01:00
Paul
4b8ad44aa9 Fix unreads and mark as read. 2021-09-14 21:09:42 +01:00
Paul
048267b419 Remove stray console.log and update translations.
Update themes endpoint and filter unmatched commits.
2021-09-09 22:39:17 +01:00
brecert
f35ebeab67
Add shift+click to channel links 2021-09-07 09:26:12 -04:00
brecert
dd9b486dab
Add shift+click to link to a channel in the textarea 2021-09-07 08:34:40 -04:00
Paul
2ccc0b7b5e Change invite rendering logic.
Handle link warnings on embeds.
Remove "EDIT!!" 🙏🙏🙏
2021-09-03 13:04:37 +01:00
Paul
a1cb72046c Fix and prettier incoming changes from PR #119.
Cherry pick PR #130: don't show add friend button on banned / deleted accounts.
Also account for this in context menu.
2021-09-03 10:43:48 +01:00
Paul
d368820aeb Add CTRL + ENTER to force send message.
Fix: cursor jumping to the end of message area.
Fix: inconsistent message send button on mobile.
2021-08-30 18:01:32 +01:00
Paul
4e3e57a7c9 Fix issues introduced in new Typescript version. 2021-08-30 16:45:23 +01:00
Paul Makles
6e1545412b
Merge pull request #131 from ryanalexander/new-voice-interface 2021-08-23 13:31:07 +01:00
Ryan Alexander
a6846192de Add audio tab and ability to change audio input device 2021-08-23 11:57:46 +01:00
Ryan Alexander
ccda5e8609 Add deafen button 2021-08-22 12:22:44 +10:00
Paul Makles
468350b36c
Merge pull request #98 from fatalerrorcoded/master 2021-08-18 00:58:45 +01:00
Paul Makles
ae22c344a1
Merge pull request #87 from ryanalexander/context-categories 2021-08-18 00:58:06 +01:00
Martin Löffler
5ab1773f01
Moved reply mention disable into internal event handler 2021-08-17 20:52:16 +02:00
Ryan Alexander
49d54ee05a Added create category context menu when right clicking in channel list 2021-08-17 06:31:25 +10:00
Paul
745b03452b Fix chat not scrolling to bottom when messages update. 2021-08-16 18:59:40 +01:00
Ryan Alexander
30448ce5a0
Update ContextMenus.tsx
Add Create Invite button to server context menu
2021-08-16 08:00:53 +10:00
Paul
c5a36b09d9 Remove ability to add bot as a friend. 2021-08-12 17:11:34 +01:00
Paul
7a80c0edb5 Add search back. 2021-08-09 17:34:25 +01:00
Paul
c8b5753211 Anchor scroll to bottom when switching channels. 2021-08-08 23:01:47 +01:00
Paul
ef1eb74486 Don't show server mark as read on channels. 2021-08-07 23:04:44 +01:00
Paul
4f1ba8942f Add server avatars. Closes #52
Add identity edit menu. Closes #51
2021-08-07 22:42:15 +01:00
Paul
7c7f813118 Scroll to last position when re-opening a chat. 2021-08-07 20:53:17 +01:00
Paul
1f903cd56b Manage state per channel. Closes #2 2021-08-07 20:43:08 +01:00
Paul
7d76a657fa Fix new state updates. 2021-08-07 16:55:14 +01:00
Paul
4ec1ff5c59 Re-write voice context. Working towards #21 2021-08-07 16:15:55 +01:00
Paul
0ea80b5717 Fixes #9 and closes #8. This adds a way to mark servers as read.
Servers are also marked as read when joining them.
You can now also mark DMs as read.
2021-08-07 12:30:19 +01:00
Paul
2f06112921 Add a way to copy message links.
Remove focus from auto complete after click, fixes #12.
2021-08-07 10:52:22 +01:00
Paul
55e00bf93f Make the linter happy. 2021-08-05 14:47:00 +01:00
Paul
fe75f5a6ca Add i18n to replies.
Add Fluent design category button.
Update Account page with new design.
2021-08-04 16:03:38 +01:00
Paul
8cc92e0c42 Start work on fluent categories.
Fix Locale loading when syncing invalid lang.
2021-08-04 14:31:55 +01:00
Paul
463aa79356 Remove strict on KaTeX, change error. 2021-07-31 11:04:31 +01:00
Paul
719e5b4dd8 Add queued messages back.
Fix various code issues.
i18n invite menu.
2021-07-31 10:31:16 +01:00
Paul
58d9744fad Update to revolt.js 5.0.0-alpha.10
Fix member sidebar not showing on mobile.
2021-07-31 09:34:55 +01:00
Paul
c21453b281 100 error milestone.
Remove hooks completely. :)
2021-07-30 21:20:42 +01:00
Paul
768c80b051 Remove useServer and useServers. 2021-07-29 19:01:40 +01:00
Paul
411fac2527 Remove useChannel 2021-07-29 18:41:01 +01:00
Paul
4dffaad6c1 Work towards removing useUsers. 2021-07-29 15:11:21 +01:00
Paul
7586b365fe Format and automatically fix linted code. 2021-07-10 15:57:29 +01:00
Paul
54185b5839 Server Sidebar: Add home icon hover.
Home Sidebar: Remove top bar.
2021-07-09 22:15:36 +01:00
Paul
b806902bc4 Fix: Prevent clicking on links in reply / channel header.
Jump to existing message if exists.
2021-07-09 10:15:32 +01:00
Paul
c54fe0f1bf Feature: Add message links. 2021-07-08 22:47:56 +01:00
nizune
ccb7499c2a Fix: Support for DateDivider for RTL 2021-07-08 21:01:21 +02:00
Paul
69193e9a46 Add logic to "log out of all others".
Consider tablet as desktop device.
2021-07-08 14:29:21 +01: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
8cfbe1ca3f Fluff: Jump to bottom when editing last message in chat. (up arrow) 2021-07-06 23:03:29 +01:00
Paul
cf7dd6f99b Add collapsible sections to member sidebars. 2021-07-06 22:52:50 +01:00
Paul
069a1a11ad Do cursed magic to try to fix voice. 2021-07-06 22:23:04 +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
9f85eda402 Update all packages.
Update vite fork to latest. (fixes voice)
2021-07-06 16:07:04 +01:00
Paul
7b9766cb0b 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
Paul
b69ba4ca28 Fix: Textarea AutoSize did not resize correctly with long lines. 2021-07-06 11:04:51 +01:00
Paul
57ef8408a6 Fix: Certain languages not loading due to bad map. 2021-07-06 08:56:30 +01: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
3c2a85a3e4
Merge branch 'master' into cleanup 2021-07-04 21:06:30 -04: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
12b04a9832 Move details styling into its own component. 2021-07-04 09:52:34 +01:00
Paul
f25b488863 Fix page height on mobile.
Fix keyboard focus on mobile.
2021-07-03 15:23:29 +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
f5b3b15188 Use UserIcon in server list header.
Re-design status context menu.
2021-07-01 19:37:36 +01:00
Paul
84da056f09 Add PWA update indicator. 2021-06-28 10:17:38 +01:00
nizune
4102b69ca4 Update: Changed icon pack to Boxicons 2021-06-27 12:17:59 +02:00
Paul
41470e2cd5 Support replying to files, show icon in reply. 2021-06-26 09:45:07 +01:00
Paul
21859e4c55 Feature: Basic notification options implementation 2021-06-24 23:59:46 +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
3393795817 Fix: Emojis showing through spoilers.
Fix: Copy ID copies wrong ID.
Messaging: Add context menu to avatar / username.
2021-06-24 16:43:37 +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
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
50bd6addb4 Add message reply UI. 2021-06-23 18:26:41 +01:00
Paul
0ce77951cb Optimise re-renders when scrolling / updating messages. 2021-06-23 16:14:46 +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
b1a4604653 Send ack PUTs for unreads. 2021-06-22 18:01:03 +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
8fe1ce3450 Show errors / queue on message.
Focus editor / box properly.
2021-06-22 10:59:06 +01:00
Paul
5db0854b42 Add global event pipeline.
Add message editor back.
2021-06-22 10:28:13 +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
d965b20ee2 TextAreaAutoSize test 2021-06-21 14:20:29 +01:00
Paul
9e460c5b3d Refactor + add message box. 2021-06-20 20:30:42 +01:00