Commit Graph

414 Commits (96017c5f331868abc2db337fa8fed5cfec32326d)

Author SHA1 Message Date
Paul c64906051d fix: hide new messages bar on click 2021-12-24 14:49:21 +00:00
Paul fee56d8f54 chore: clean up contrasting colours code 2021-12-24 14:13:10 +00:00
Paul e380534d2a Merge branch 'mobx' 2021-12-24 11:45:49 +00:00
Paul cc0e45526c feat(mobx): refactor and remove (react-)redux 2021-12-23 21:43:11 +00:00
trashtemp d2d7083542 fix(home,settings): updated homepage, settings
* new home screen
* cleaned up settings
2021-12-23 17:29:35 +00:00
Paul 73d99e4518 feat(home): add snow 2021-12-23 13:16:43 +00:00
Paul Makles 6e4c4f3ae2
fix(ui): fixes for mobile UI, settings and sessions pages (#451)
Co-authored-by: trashtemp <96388163+trashtemp@users.noreply.github.com>
2021-12-20 20:48:37 +00:00
Paul Makles 120e6a35d8 feat(mobx): migrate audio settings 2021-12-16 22:05:31 +00:00
Paul c7df0088fc feat(mobx): rewrite appearance menu 2021-12-15 18:23:05 +00:00
Paul Makles bd4369cf29 feat(mobx): start implementing theme store 2021-12-13 17:27:06 +00:00
Paul faca4ac32b feat(mobx): add message queue store 2021-12-12 15:33:47 +00:00
Paul a8491267a4 feat(mobx): add layout (paths + sections) 2021-12-11 14:34:12 +00:00
Paul 87a9841885 feat(mobx): implement locale options 2021-12-11 11:56:33 +00:00
Paul Makles 5a41c25e3c feat(mobx): add drafts and state context 2021-12-10 12:53:41 +00:00
Paul 67834309b1 fix: use masquerade everywhere applicable
fixes #400
2021-11-14 19:53:50 +00:00
Paul fb1de01edd fix: remove removed messages from reply bar
fixes #71
fixes #143
2021-11-14 19:30:41 +00:00
Paul b938f6620b fix: prevent reply overflow
fixes #399
2021-11-14 18:46:46 +00:00
Paul 8664cda744 feat: add moderation badge 2021-11-13 23:11:40 +00:00
Paul f467349083 feat: add new badges 2021-11-13 22:55:41 +00:00
Paul d82573b5fc feat(messaging): render masqueraded messages 2021-11-04 20:55:26 +00:00
Ed L 893cd6b4cc
feat(i18n): translate home buttons and server tooltips (#361) 2021-10-31 22:42:40 +00:00
bree 1800aace43
feat: require at least two characters to autocomplete emoji (#298) 2021-10-31 22:36:38 +00:00
3nt3 b09ccd90ba
fix: add context menu to individual attachments if > 1 attached (#348) 2021-10-31 21:25:33 +00:00
Paul bb5509f660 feat(categories): autosave category changes 2021-10-30 18:20:12 +01:00
Paul Makles a04c68f5e8
Merge pull request #267 from brecert/fix-196 2021-10-09 23:44:36 +01:00
Paul 920f78b650 Virtualise server settings user lists. Closes #300 2021-09-25 14:43:28 +01:00
Paul 81379d6ec4 Explicitly deny bad URLs.
Fixes #252.
Handle embed untrusted links better.
2021-09-25 10:54:32 +01:00
Paul Makles e9a88bc31c
Merge pull request #278 from TaiAurori/master 2021-09-24 13:59:57 +01:00
TaiAurori 21122583aa singular form of "members" when only one member 2021-09-21 14:41:57 -04:00
TaiAurori f7f101f7b2 move imports 2021-09-21 14:13:41 -04:00
TaiAurori 3d5c7ab9ce invite embed tweaks 2021-09-21 14:02:38 -04:00
brecert 51092db01b
Change `UserHover` to use global identity instead of server
- fixes #196
2021-09-19 03:42:01 -04:00
brecert 5b16977b0e
Fix enter key sending message while still composing 2021-09-17 17:20:22 -04:00
Paul 75ee61525f Bump revolt.js to include rate limiter.
Handle new server flags.
Show server ping in developer tab.
2021-09-14 17:18:44 +01:00
brecert 806e3108cb
Improve reply mention styling
- [#220] reply mention now uses translations
- reply mention styling improved
  - `@` fits better
  - `min-width: 6ch` is used to remove shifting between `on` and `off` lengths, mostly for the english `on/off` but could be modified to work with any language in the future.
2021-09-11 11:53:50 -04:00
Paul Makles 633933fb48
Merge pull request #203 from goaaats/fix/youtube_timestamp
Append youtube timestamp to embed url if provided by january
2021-09-09 22:53:36 +01:00
Paul Makles efbbb6f1aa
Merge pull request #199 from brecert/mentions-methods 2021-09-09 22:00:03 +01:00
Paul Makles 6930e0eb40
Merge pull request #180 from Snazzah/invite-count 2021-09-09 21:04:43 +01:00
Paul Makles f925479121
Merge pull request #206 from goaaats/fix/default_channel 2021-09-09 20:53:15 +01:00
brecert 999fc5b639
Fix major image bugs for chrome 93+
- fixed major bugs for chrome 93+ at the cost of minor issues that may appear (unsure, did not find any in testing)
- position scaled image to the left for firefox (firefox aspect-ratio still does not scale correctly)
- added `--width` and `--height` to the `Grid` for theme creators who may want to use such information easily
2021-09-08 07:01:11 -04:00
goat a32a7d409f
remove unused import 2021-09-07 21:42:32 +02:00
goat 64f1cc5e4a
fix: append youtube timestamp to embed url if provided by january 2021-09-07 17:36:33 +02:00
brecert 2966e77917
Add `shift+click` to mention a user in the textarea 2021-09-07 08:14:22 -04:00
Snazzah 2b84850891 Format member count in invites 2021-09-03 18:34:16 +00:00
Paul 2ccc0b7b5e Change invite rendering logic.
Handle link warnings on embeds.
Remove "EDIT!!" 🙏🙏🙏
2021-09-03 13:04:37 +01:00
Paul Makles 571b30243c
Merge pull request #169 from TaiAurori/master 2021-09-03 11:29:46 +01:00
Paul 9adad4a4ab Fix issues introduced by #162.
Switch to more consistent naming scheme.
2021-09-03 11:21:51 +01:00
Paul Makles 3aa90ab570
Merge branch 'master' into contextual_border_radius_variables 2021-09-03 11:01:19 +01:00
Paul c302eade17 Update source links from GitLab to GitHub. 2021-09-03 10:30:27 +01:00
Paul a387d3c6ae Use variables for scrollbar width.
Update language definitions.
2021-09-03 10:17:42 +01:00
TaiAurori 2f950aab53
add visible joining indicator 2021-08-31 21:37:42 +00:00
TaiAurori a10e5100d3
add proper placeholder for invalid invite 2021-08-31 21:22:19 +00:00
TaiAurori f9bb332605
reindent 2021-08-31 20:45:01 +00:00
TaiAurori 0b0d1186eb
invite embeds 2: electric boogaloo 2021-08-31 20:30:02 +00:00
TaiAurori 2e9a76519e Merge branch 'master' of https://github.com/TaiAurori/revite 2021-08-30 18:24:35 -04:00
TaiAurori 3d1ee73032 invite embeds preview 2021-08-30 18:21:49 -04:00
LambdAurora 1d42f0a60a
Introduce new border radius variables for stable theming. 2021-08-30 23:39:02 +02: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 dfae11c204
Update UserIcon.tsx 2021-08-23 22:28:49 +10:00
Zomatree 5a716fb1d6 color -> colour 2021-08-23 12:45:12 +01:00
Ryan Alexander ccda5e8609 Add deafen button 2021-08-22 12:22:44 +10:00
Paul db43c02e01 Changes for #88
Fix tooltip foreground.
Change light mode foreground colours.
Update ::selection styles.
2021-08-19 14:50:00 +01:00
Paul 2341408557 Fix unresolved import for system user ID. 2021-08-18 11:31:25 +01:00
Paul Makles fe24b28bee
Merge pull request #104 from ryanalexander/patch-5 2021-08-18 00:59:13 +01:00
Ryan Alexander 993b85843b
Update ServerHeader.tsx 2021-08-18 09:58:49 +10:00
Paul Makles 468350b36c
Merge pull request #98 from fatalerrorcoded/master 2021-08-18 00:58:45 +01:00
Paul b8c345f493 Add max length to message box. 2021-08-18 00:55:36 +01:00
Ryan Alexander 3d31a6c8f9
Update ServerHeader.tsx 2021-08-18 09:06:57 +10:00
Ryan Alexander cefeebb4d2
Added verified server badge for any servers created by insert 2021-08-18 08:54:55 +10:00
Martin Löffler 5ab1773f01
Moved reply mention disable into internal event handler 2021-08-17 20:52:16 +02:00
Martin Löffler 29ed48fa70
Disable mention behavior on self-replies 2021-08-17 17:29:25 +02:00
Martin Löffler b01a3c5554
Hide reply mention button from current user 2021-08-17 17:20:53 +02:00
Paul 1f2e58b10e Include @ symbol when reply is a mention. 2021-08-16 18:08:44 +01:00
Paul b4f16f0d00 Handle role hoisting / ranking.
Closes #76 and closes #75.
2021-08-16 17:02:24 +01:00
Paul 72e9cda844 Attempt to fix attachments not showing up on Samsung Internet. 2021-08-16 15:16:54 +01:00
Paul 8ba5c13cfc Fix Revolt on WebKit browsers. 2021-08-15 22:58:16 +01:00
Paul Makles a17487606f
Merge pull request #70 from MichailiK/feature/message/image-loading-background 2021-08-15 18:04:24 +01:00
Michaili K 88c9775e23
Create separate ImageFile component for image attachments 2021-08-15 18:53:42 +02:00
Paul 8a104855a1 Add settings button to server list sidebar.
Move more border radiuses to variables.
2021-08-15 15:21:23 +01:00
Paul Makles ff9545ba2f
Merge pull request #66 from janderedev/pr-6 2021-08-15 14:52:12 +01:00
Michaili K 1b4d1e73df
Add (basic implementation of) background for loading images 2021-08-15 12:59:00 +02:00
Paul 4abf98adcb Bump revolt.js to fix objects not being properly updated.
Also don't re-fetch members on each message.
Add cursor: pointer to attachment images upon request.
Use client message cache for replies.
2021-08-15 09:58:22 +01:00
Paul f59d0efbcb Remember whether reply was a mention or not.
Fix input modals refreshing page.
2021-08-14 21:37:43 +01:00
janderedev dfed9515d1
fix regex, add * and empty text matchers 2021-08-12 23:17:52 +02:00
janderedev 82d3dd3c7b
Scroll to bottom after sed editing message 2021-08-12 22:54:54 +02:00
janderedev 60947b71ed
Merge branch 'master' of https://github.com/revoltchat/revite into pr-6 2021-08-12 22:29:41 +02:00
janderedev 884402e62a
sed replacement in message box. 2021-08-12 22:21:37 +02:00
Paul 4ac3165bdc Remove logs. 2021-08-12 19:51:23 +01:00
Paul 8137409dae Fix search scroll.
Add bot badge.
2021-08-12 12:16:24 +01:00
brecert 6f99af6527
fix image overflow on older browsers 2021-08-10 05:48:26 -04:00
Paul 7a80c0edb5 Add search back. 2021-08-09 17:34:25 +01:00
Paul f19e334d56 Handlers for UserShort.
View user's profile picture.
Close #25, adds logic to hamburger.
2021-08-09 15:51:22 +01:00
Paul a3e2ed3b94 Revert typing indicator changes. 2021-08-08 18:46:27 +01:00
Paul add94d59ff Temporarily remove TextReact. 2021-08-08 18:40:25 +01:00
Paul 8e24d1490c Virtualised sidebar test. 2021-08-08 16:17:16 +01:00
Paul 17f68088d1 Show server identity in message replies and typing indicator.
Revert reply connector temporarily.
2021-08-08 10:16:48 +01:00
Paul 4f1ba8942f Add server avatars. Closes #52
Add identity edit menu. Closes #51
2021-08-07 22:42:15 +01:00
Paul 1f903cd56b Manage state per channel. Closes #2 2021-08-07 20:43:08 +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 bb6ac68c8e Clean up system message code. Fixes #3 2021-08-07 10:32:18 +01:00
Infi 34e8d54512 Add system message icons. Closes #10 2021-08-07 00:34:57 +02:00
Paul Makles ae7101a673
Merge pull request #18 from brecert/image-embed-scaling
Improve image embed scaling.
2021-08-06 17:42:32 +01:00
brecert 144a63a5c8
Improve image embed scaling.
- fixes #15
2021-08-06 12:39:23 -04:00
janderedev cae3b68c7f
ESC now removes the last attachment. Fixes #16 2021-08-06 18:07:11 +02:00
janderedev 1e25821816
Esc now removes the last reply, fixes #7 2021-08-06 15:40:32 +02:00
Paul 55e00bf93f Make the linter happy. 2021-08-05 14:47:00 +01:00
nizune 5930415c05 Fixed RTL issue with replies 2021-08-05 12:01:31 +02:00
nizune 123dc6bbfc New look to replies 2021-08-05 11:54:32 +02:00
nizune 7a8b12e15c Fixed sent attachments code 2021-08-04 19:59:29 +02: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
nizune c93f0245f1 Fixed message replies + refined account settings 2021-08-04 14:48:33 +02:00
nizune 1504f307fc Changed Reply bar structure 2021-08-04 14:01:24 +02:00
nizune 907e11bd5e Small fixes to account settings 2021-08-04 11:51:53 +02:00
nizune f5e2779983 Added detection for multiple attachments.
Co-authored-by: infi <insrt-git@geist.ga>
2021-08-03 22:42:06 +02:00
Paul e1ffefe2ba Hover animation for home button.
Fix svg alignment in foreign objects.
2021-08-03 15:37:19 +01:00
nizune 03f572f365 More settings fixes + clamped long usernames 2021-08-02 17:25:39 +02:00
Paul 44b5725793 Disallow text selection in messages on mobile. 2021-08-02 13:06:18 +01:00
Paul 60d09ce747 Don't show tooltip / hover when no update. 2021-08-01 17:56:38 +01:00
Paul 796dc467b8 Move update indicator to titlebar on desktop. 2021-08-01 17:52:44 +01:00
Paul 8872ed56b1 Fix blocked users appearing in typing indicator.
Make typing indicator time out.
2021-07-31 17:58:26 +01:00
Paul 9bb9d1fa1e Add nicknames + role colours back. 2021-07-31 16:59:37 +01:00
Paul 909985b47d Fix message links redirecting to home page. 2021-07-31 15:11:58 +01:00
Paul 5eed9ecc5e Fix message links from replies. 2021-07-31 13:50:29 +01:00
Paul 6b6279ffee Move typing indicator into revolt.js 2021-07-31 13:48:26 +01:00
Paul 29cc221a34 Fix elements not observing permissions. 2021-07-31 12:09:18 +01:00
Paul 719e5b4dd8 Add queued messages back.
Fix various code issues.
i18n invite menu.
2021-07-31 10:31:16 +01:00
Paul bdd93e8840 Fix duplicate member entries. 2021-07-30 23:43:26 +01:00
Paul 4c9554c5e9 Zero error milestone. 2021-07-30 22:40:49 +01:00
Paul 3184269ba4 Start migration to revolt.js@5.0.0.
200 error milestone
2021-07-30 20:24:53 +01:00
Paul 564c1d8494 Completely remove all references to Username. 2021-07-29 21:47:45 +01:00
Paul 0397700b88 Try reverting change to typing indicator. 2021-07-29 21:43:04 +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 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 25fa375ce0 Fix typing indicator. 2021-07-28 14:04:27 +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 6cf18b1b9b Fix message reply overflow.
Add opera icon to sessions.
2021-07-25 14:18:48 +01:00
Paul 8c6947f7d4 Add category editor to servers. 2021-07-24 19:39:41 +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 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 93ee98717d Fix: Session icon alignment.
Fix: i18n blocked messages / users.
2021-07-10 18:06:21 +01:00
Paul 7586b365fe Format and automatically fix linted code. 2021-07-10 15:57:29 +01:00
Paul 392cb23541 Add spoilers back. 2021-07-10 15:55:21 +01:00
Paul ef5944b065 Add more internal CSS variables. 2021-07-10 15:42:13 +01:00
Paul 9846262e8b Fix attachment scaling. 2021-07-10 15:21:35 +01:00
Paul 92fed40e40 Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-07-10 12:29:33 +01:00
nizune 9ff0ce789a Added line clamp to embed descriptions 2021-07-10 12:28:18 +02:00
Paul 6a2dd50236 Fix: Don't lose focus on send.
Sidebar: Show home button on mobile.
2021-07-10 11:21:05 +01:00
nizune 586b153eb8 Small changes to userhover 2021-07-10 00:09:49 +02:00
nizune 70cba134e3 Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-07-09 23:44:26 +02:00
nizune 68d58ed081 Fixed edited tag 2021-07-09 23:44:15 +02:00
Paul 54185b5839 Server Sidebar: Add home icon hover.
Home Sidebar: Remove top bar.
2021-07-09 22:15:36 +01:00
nizune a2211d9fd7 Fix: Removed CSS file for Server Overview 2021-07-09 23:08:00 +02:00
nizune 4eb0461977 Updated replies 2021-07-09 21:56:09 +02:00
nizune 2141711d9e Fixed username in replies 2021-07-09 21:46:35 +02:00
bree c1dc2b9a1d
Fix: image attachments not having minimum width 2021-07-09 11:09:55 -04: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 3075fc8e32 Add links to message replies and load older messages. 2021-07-09 10:10:36 +01:00
Paul 7a5ace2def Highlight messages we jump to. 2021-07-09 09:58:38 +01:00
bree 362e7452fe
Fix: attatchment sizing on chrome when unloaded 2021-07-08 18:17:59 -04:00
Paul ee9aab07a9 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
nizune 2f60013935 Fix: Set font-family: inherit on auto-complete 2021-07-08 19:17:54 +02:00
bree eb7b915edb
Fix: max-width for other attachment types 2021-07-08 10:32:05 -04:00
bree 59a5d2e752
small fix for attachment width 2021-07-08 10:26:46 -04:00
bree f0397f8af8
remove content jumping when loading image and video attachments 2021-07-08 10:22:42 -04:00
nizune e487f8c571 Small fixes 2021-07-08 15:16:23 +02:00
Paul 197ba53c60 Fix: Spoilers would not toggle.
Hook events into Markdown render using ref.
2021-07-07 12:45:55 +01:00
Paul 9bbbf5ffc8 Show tooltip for long statuses. 2021-07-06 22:58:45 +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
nizune b62eeb35e7 Fix: Small fixes to Sessions tab 2021-07-06 17:42:32 +02: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
nizune aebcf2875a Fixed sessions entries to work with RTL 2021-07-06 15:33:26 +02:00
nizune e99cff9fe6 Update: Fixed Jump to bottom bar on mobile 2021-07-06 15:03:48 +02:00
nizune 9e1a15eb3f Fix: Messagebox is now fully working 2021-07-06 13:16:29 +02:00
Paul ea65825454 Fix: Avoid going through react-redux to update draft. 2021-07-06 11:07:42 +01:00
Paul b69ba4ca28 Fix: Textarea AutoSize did not resize correctly with long lines. 2021-07-06 11:04:51 +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
Paul c11d10a265 Revert change. 2021-07-05 21:28:38 +01:00
Paul b8a4ada30c Fix: Padding on message box.
Allow 20 max rows on message area.
2021-07-05 21:07:04 +01: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 02bbf78dcd
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 8ece647857
Replace usage of `<></>` with `null` for project and style consistency 2021-07-04 21:13:53 -04:00
bree e070f26bda
Update revolt.js to fix types 2021-07-04 21:09:24 -04:00
bree 3c2a85a3e4
Merge branch 'master' into cleanup 2021-07-04 21:06:30 -04:00
insert fbad5aef92 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 1c80d5675f Feature: Font selector and ligature toggle. 2021-07-04 17:56:18 +01:00
nizune 652736c300 Fix: Fixed detail element in friends list 2021-07-04 17:49:44 +02:00