Commit Graph

391 Commits (2bb33d3ff4acb8d05e54ee9e3d7faa5d8abfd33d)

Author SHA1 Message Date
Paul 1271c29117 Show friend requests on top-right avatar. 2021-07-25 12:50:34 +01:00
Paul 6b573bba98 Fix scrollbar on server list. 2021-07-25 10:56:22 +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 21de7ab67f Add search sorting. 2021-07-21 18:27:05 +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 0afd123ef5 Fix: Prevent context menu on images in settings.
Revert mobile change.
Messages: Add channel id matching.
2021-07-10 17:35:18 +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
Paul be3e4ba184 Fix: Sever list was not center aligned. 2021-07-10 12:29:32 +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 c993ece109 Small changes to userhover 2021-07-10 00:09:49 +02:00
nizune f30e5d3c8a Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-07-09 23:44:26 +02:00
nizune 2b9bbef6cb Fixed edited tag 2021-07-09 23:44:15 +02:00
Paul 2258815dd9 Server Sidebar: Add home icon hover.
Home Sidebar: Remove top bar.
2021-07-09 22:15:36 +01: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 2720c8db8f Experiment: New search function. 2021-07-09 14:34:36 +01:00
nizune e985c4a273 Refined bottom navigation bar on mobile 2021-07-09 13:35:24 +02: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
nizune ed544009ee Fix: Support for DateDivider for RTL 2021-07-08 21:01:21 +02:00
nizune 3325756707 Fix: Set font-family: inherit on auto-complete 2021-07-08 19:17:54 +02:00
nizune b316e41077 Added hamburger and member sidebar icons 2021-07-08 18:39:03 +02: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 e197f56a5f Merge remote-tracking branch 'upstream/master' 2021-07-08 10:23:47 -04:00
bree 6f3de75c35 remove content jumping when loading image and video attachments 2021-07-08 10:22:42 -04:00
nizune d34dc0d387 Update: started work on new advanced settings 2021-07-08 16:02:52 +02:00
Paul f1b94e722a Update certain logos and re-do mask. 2021-07-08 14:19:54 +01:00
nizune f3c7dd109e Small fixes 2021-07-08 15:16:23 +02:00
Paul a46d58f8f9 Merge session icons together. 2021-07-08 14:07:25 +01:00
nizune 36d40d6a7c Update: Fixed color swatch on mobile 2021-07-08 15:03:41 +02:00
Paul 335a990ae0 Fix: Overlay moving with page.
Fix: Colour picker appearing in wrong position.
2021-07-08 13:54:18 +01:00
nizune 92ca89d991 Fix: Working on scrollable color swatch 2021-07-08 13:30:14 +02:00
Paul bd07b461ac Modals: Add close animation. 2021-07-07 22:02:18 +01:00
Paul 2c4a74bdde Update react-overlapping-panels.
Fix: bottom navigation appearing in wrong place.
Fix: Redirect to server from invite if already joined.
Fix: Use monoscape font for code textareas.
2021-07-07 13:08:39 +01:00
Paul f9b5d768d3 Fix: Spoilers would not toggle.
Hook events into Markdown render using ref.
2021-07-07 12:45:55 +01:00
nizune 93d0ea475d Temp. fix for members list sections 2021-07-07 13:37:14 +02:00
nizune d17e0da444 Fix: sessions menu overflow 2021-07-07 10:46:23 +02:00
Paul 0cc6faab21 Show tooltip for long statuses. 2021-07-06 22:58:45 +01:00
Paul 5ce6a679ab Add collapsible sections to member sidebars. 2021-07-06 22:52:50 +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 238b6950a8 Update all packages.
Update vite fork to latest. (fixes voice)
2021-07-06 16:07:04 +01: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 9890e201f5 Update: Account management under settings +strings 2021-07-06 14:24:24 +02:00
nizune 4832e824a5 Fix: Messagebox is now fully working 2021-07-06 13:16:29 +02:00
Paul 583e2c510a Rotate file upload icon instead of switching icon. 2021-07-06 11:52:07 +01:00
Paul 9390ffd00b Re-write types for modal actions. 2021-07-06 11:34:36 +01: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
nizune 62c4371586 Fix: Solid icons in server settings 2021-07-06 00:06:03 +02:00
nizune 2e270dadc1 Update: New button design 2021-07-05 23:49:57 +02:00
nizune e9cb87cfab Fix: Small gap fixes 2021-07-05 22:50:55 +02: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 62330ddc61 Fix: Add bottom navigation padding to settings.
Fix: New members joining don't show.
2021-07-05 17:55:08 +01:00
nizune 0b08dbeaad Fix: Small mobile fixes, paddings 2021-07-05 16:24:25 +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 3f151f6f77 Resolve remaining review notes 2021-07-04 21:22:33 -04:00
bree 576984d5bd Replace usage of `<></>` with `null` for project and style consistency 2021-07-04 21:13:53 -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
nizune f8a39fc24f Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-07-04 20:16:42 +02:00
nizune e6f46e7455 Fixed descriptions on checkbox components 2021-07-04 20:15:38 +02: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
nizune d5c3f9e0ab Fix: Fixed detail element in friends list 2021-07-04 17:49:44 +02:00
Paul 08c338ea1c 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
nizune a83d41cbcc Fix: Small changes to profile context menu 2021-07-04 12:47:06 +01:00
Paul a49d40e71d Move details styling into its own component. 2021-07-04 12:47:06 +01:00
nizune 9da3a4262d Fix: Small header fixes 2021-07-04 12:47:06 +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
Paul d8930d5e94 Add auto-complete to profile editor. 2021-07-03 23:35:27 +01:00
Paul 7d28689b64 Remove gradient on server banners. 2021-07-03 22:35:49 +01:00
Paul d0818bb165 New design for server roles editor. 2021-07-03 22:17:53 +01:00
Paul 91b74c39be Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-07-03 21:27:23 +01:00
nizune c254179801 Fix: Some header adjustments 2021-07-03 16:40:56 +02:00
Paul c5e96aee43 Fix page height on mobile.
Fix keyboard focus on mobile.
2021-07-03 15:23:29 +01:00
Paul af2e8f685c Fix: Bottom navigation would not let you escape friends. 2021-07-03 15:00:17 +01:00
nizune 9a04c34e91 Update: Larger touch targets for mobile 2021-07-03 12:18:10 +02:00
nizune 124284319d Update: Added solid icons where needed 2021-07-03 10:46:35 +02: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
Paul a9763de707 Fix i18n for server settings.
Start work on roles.
Add temporary age gate.
2021-07-02 22:08:03 +01:00
Paul c7bbbcdb8b Fix modals with horizontal form components.
Fix invite / friends menu having sidebars.
2021-07-02 20:57:48 +01:00
Paul 2ccb13f874 Add i18n to incoming requests.
Add icon stacking mask.
2021-07-02 18:56:00 +01:00
Paul e252c2ff2e Add SVG masks to server / user icons. 2021-07-02 16:24:36 +01: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
nizune 526aa72c0f Update: Continued work on Friends tab + fixes 2021-07-02 13:56:38 +02:00
Paul 05ab27b990 Fix Friend button styling and actions.
Can now call from friends list.
2021-07-02 11:13:14 +01:00
nizune c8425d86c8 Fix: small fixes for mobile 2021-07-02 11:39:07 +02:00
Paul 6abdb511b1 All class name to be set on category / overline. 2021-07-02 09:41:37 +01:00
nizune a9d0f74f41 Update: Work on new Friends tab + minor fixes 2021-07-02 10:38:43 +02:00
Paul 4afdd15813 Fix avatar direction. 2021-07-01 21:23:54 +01:00
Paul 2c1421fd97 Use UserIcon in server list header.
Re-design status context menu.
2021-07-01 19:37:36 +01:00
nizune 0b1486ecda Fix: changed icons to solid on sidebar for temp 2021-07-01 19:27:38 +02:00
nizune c2c6f910fb Fix: small fixes for members sidebar 2021-07-01 18:54:11 +02:00
Paul d34efc1e69 Add permissions / roles settings. 2021-07-01 17:36:34 +01:00
Paul 6082b2191b Finish up new sidebar active.
Add rounded corners to sidebar.
2021-07-01 13:42:53 +01:00
Paul 745977367d Fix: Placeholder would overflow sidebar. 2021-06-29 22:21:26 +01:00
nizune 76601c8bb1 Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-06-28 11:36:46 +02:00
nizune 66b25ecb58 Fix: Small changes to tooltip 2021-06-28 11:36:37 +02:00
Paul 8d346c188c Set update indicator default state properly. 2021-06-28 10:29:56 +01:00
nizune 443260e447 Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite 2021-06-28 11:27:45 +02:00
nizune 71672101e4 Fix: Small fixes for RTL items 2021-06-28 11:27:24 +02:00
Paul d52d4b35ee Independent tooltip for missing permissions. 2021-06-28 10:25:51 +01:00
Paul bb5336f191 Add PWA update indicator. 2021-06-28 10:17:38 +01:00
nizune 843ae5a082 Small fixes 2021-06-28 11:12:19 +02:00
nizune ef62740f58 Fix: More fixes for the message box and settings 2021-06-28 10:32:55 +02:00
nizune 9248ba01a2 Fix: Small update to categories and icons 2021-06-28 09:55:05 +02:00
Paul 539ed402ee Attempted implementation of new sidebar style. 2021-06-27 22:35:36 +01:00
Paul 99643c5461 Migrate to @tippyjs/react from react-tippy.
Fix strokes on home sidebar.
Add tooltips on servers.
Fix reply SVG direction.
2021-06-27 21:54:31 +01:00
nizune 38be8f8fcc Update: Changed icon pack to Boxicons 2021-06-27 12:17:59 +02:00
Paul f459772c20 Render server categories. 2021-06-27 00:14:58 +01:00
Paul b6cb3cfd6e Handle permissions in message box. 2021-06-26 22:16:43 +01:00
Paul 90713b3c5d Support replying to files, show icon in reply. 2021-06-26 09:45:07 +01:00
Paul 94ee5d8f96 Fix: Make settings not jump around.
Fix: Auto-complete font size.
2021-06-24 17:29:01 +01:00
Paul 9724181d28 Fix: Set global emoji pack.
Fix: Use conditional links for bottom navigation.
Fix: Margin error on queued messages.
2021-06-24 17:06:16 +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 b724b9aec2 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 2d761d1e97 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
insert 7e3668b393 Merge branch 'file-preview-cleanup' into 'master'
Restructure `FilePreview` to be less "hacky"

See merge request revolt/revite!1
2021-06-24 13:51:41 +00: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 55ef70211a Fix internal navigation from Markdown links. 2021-06-23 23:42:13 +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
bree 898288e815 Restructure `FilePreview` to be less "hacky" 2021-06-23 13:46:31 -04: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 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 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 feaec3f8d9 Add channel auto-complete. 2021-06-22 13:35:43 +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 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 a3213fe644 Add feedback option for Revite. 2021-06-21 21:53:08 +01:00
Paul c597fc81f8 Add open route / invite route.
Modularise server header.
2021-06-21 21:35:21 +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 3c6e3b9fbf Add bottom navigation and locale selector. 2021-06-21 13:44:43 +01:00
Paul 0115ace3fa Port sync, queue management and notifs. 2021-06-21 13:28:26 +01:00
Paul 3555e9a7bf Use null assertions instead of casting. 2021-06-21 09:02:38 +01:00
Paul d1bff98635 Port attachments and embeds. 2021-06-20 22:09:18 +01:00
Paul a24bcf9f86 Fix mobile height.
Add send button.
2021-06-20 20:36:52 +01:00
Paul 9e460c5b3d Refactor + add message box. 2021-06-20 20:30:42 +01:00
Paul d0b9cf9090 Work on channels, render content of messages. 2021-06-20 17:31:53 +01:00
Paul 2acb3aeb14 Re-organise assets to be closer to their respective uses. 2021-06-20 11:05:12 +01:00
Paul a1d3b3503b Reduce re-renders of sidebars. 2021-06-19 23:12:27 +01:00
Paul 31d8950ea1 Port settings. 2021-06-19 22:37:12 +01:00
Paul b4bc2262ae Port context menus. 2021-06-19 20:24:11 +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 0cba2b362d Add prettier. 2021-06-18 15:57:08 +01:00
Paul 34a4bccbbe Add eslint. 2021-06-18 15:46:30 +01:00
Paul 58821476e6 Add i18n, use default imports for UI. 2021-06-18 15:18:10 +01:00
Paul 9ac2316ed0 Port over more UI elements. 2021-06-18 14:20:57 +01:00
Paul 7eee2cd7c6 Initial commit 2021-06-18 12:05:01 +01:00