Commit graph

309 commits

Author SHA1 Message Date
Paul
89c0026fa2 Fix mark read logic, should fix #307.
Add bot delete confirmation, closes #302.
2021-10-10 16:28:56 +01:00
Paul
14e749b65b Mark link as trusted when opening, fixes #331. 2021-10-10 16:11:43 +01:00
Paul Makles
148c0edcbf
Merge pull request #268 from brecert/fix-198 2021-10-09 23:45:52 +01:00
f3rr31
e996e0b25d
Spelling error fix for Magyar at line #104
Changed Magyar to magyar at line #104. Magyar is magyar (small caps) in Hungarian; same as with Estonian (eesti) and Finnish (suomi).
2021-10-10 00:02:17 +02:00
Paul
81379d6ec4 Explicitly deny bad URLs.
Fixes #252.
Handle embed untrusted links better.
2021-09-25 10:54:32 +01:00
Paul Makles
66289911ba
Merge pull request #294 from RigidStudios/fixroles 2021-09-24 15:39:04 +01:00
Paul Makles
44b02fecb0
Merge pull request #260 from brecert/profile-fix 2021-09-24 15:34:45 +01:00
Andrew Qu
25bc0c1ea3 fixed name 2021-09-23 22:35:17 -07:00
RigidStudios
7af2bce00e Revert "don't change onboarding on this pr"
This reverts commit 416cc0a991.
2021-09-23 23:11:33 +04:00
RigidStudios
416cc0a991 don't change onboarding on this pr 2021-09-23 00:00:38 +04:00
RigidStudios
75704773af Add linebreak before logo 2021-09-22 18:04:45 +04:00
Paul
ce0749d9e8 Prevent double sending of requests. 2021-09-19 13:47:25 +01:00
brecert
ecb0bff4f3
Set appropriate autocomplete attributes for password reset
- make autocomplete set to `current-password` and `new-password` for password resets
- fixes #198
2021-09-19 04:11:54 -04:00
brecert
945e072327
Fixes background not updating on profile
- fixes #110
2021-09-17 19:44:19 -04:00
brecert
63479737a8
Fix trying to in undefined for themes 2021-09-17 17:30:14 -04:00
Paul
51f23f5aa0 Include noreferrer on embed links / window.open. 2021-09-17 09:37:07 +01:00
Paul Makles
fc03336ea3
Merge pull request #225 from brecert/theme_shop
Fix theme shop themes not applying as a base
2021-09-14 20:39:28 +01:00
Paul
52875ab197 Fix change email / password. 2021-09-13 16:41:47 +01:00
Paul Makles
60c3a5ba11
Merge pull request #223 from brecert/identity-fix
Improve server identity avatar preview
2021-09-11 23:53:17 +01:00
Paul Makles
d09de028b3
Merge pull request #222 from brecert/actions-demo 2021-09-11 23:51:28 +01:00
brecert
537f9b1596
Fix theme shop themes not applying as a base
- [#217] fixed theme shop themes not applying as a base
- added `themes` state path to store themes locally at
2021-09-11 15:40:14 -04:00
Paul
5b422b89e3 Migrate to rAuth v1. 2021-09-11 17:36:23 +01:00
brecert
33d79beae6
Improve server identity avatar preview
- server identity avatar preview now displays your current avatar, but desaturated and grayscale when no avatar is set

resolves #218
2021-09-11 11:38:58 -04:00
brecert
9bd31c4c7e
Use base url for building actions 2021-09-10 18:03:06 -04:00
Paul Makles
99116981ab
Merge pull request #188 from brecert/theme_shop 2021-09-09 21:58:13 +01:00
Paul Makles
2b3ff50b33
Merge pull request #178 from Snazzah/patch-1 2021-09-09 21:04:58 +01:00
Paul Makles
da7a27f325
Merge pull request #179 from Snazzah/server-identity-revamp 2021-09-09 21:03:43 +01:00
AirTMZ
d6b3456129
Update Locale.tsx 2021-09-06 16:10:11 +01:00
brecert
414dcd51c0
Add base theme shop implementation and pane
- added theme shop settings pane
- added `generateVariables` for themes
- added `preview.svg` for previewing themes until a proper solution is made
2021-09-06 06:02:30 -04:00
Paul
bd3678f515 Add Enchantment Table. 2021-09-04 15:50:58 +01:00
Snazzah
b0407490a8 Add translate strings to server identity 2021-09-03 17:45:10 +00:00
Snazzah
11f8d081ba Revamp Server Identity Popover 2021-09-03 17:32:50 +00:00
Snazzah
14c191be60
Fix translation string in Create Bot popover 2021-09-03 10:37:49 -05:00
Paul
2ccc0b7b5e Change invite rendering logic.
Handle link warnings on embeds.
Remove "EDIT!!" 🙏🙏🙏
2021-09-03 13:04:37 +01:00
Paul Makles
966daa6c78
Merge pull request #158 from Snazzah/trusted-links 2021-09-03 11:18:16 +01:00
Paul Makles
8ad1130a00
Merge pull request #159 from Snazzah/bots-look-cool 2021-09-03 11:04:53 +01:00
Paul
bde8b58095 Fix pointer style for badges. 2021-09-03 10:46:52 +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
Snazzah
222d328985 add translation 2021-08-31 16:00:35 +00:00
Snazzah
d298f877e5 finish translations 2021-08-31 15:55:18 +00:00
Snazzah
e92877158c update create bot form 2021-08-31 04:33:47 +00:00
Snazzah
28dbd49957 Move creating bots to a popover 2021-08-31 04:00:45 +00:00
Snazzah
86027f7b3d Initial bot page stylings 2021-08-30 16:18:42 +00:00
Paul
4e3e57a7c9 Fix issues introduced in new Typescript version. 2021-08-30 16:45:23 +01:00
Paul
b364fe50f6 Make Typescript happy, testing CI build.
Adjust language names.
2021-08-30 16:08:22 +01:00
Snazzah
d8465b1aae Add trusted link handling in renderer/prompt 2021-08-30 14:08:13 +00:00
Paul
2a2f711eb5 Fix Korean language name. 2021-08-30 15:01:15 +01:00
Paul
0ca99ddceb Fix ghost notifications on closed DMs.
Fix link warning not closing on open.
2021-08-30 13:26:19 +01:00
Paul
44fdee1214 Add new languages: et, fil, ga, ja, ko, lb, ms, nb_NO, sk, sl, ta, vi. 2021-08-30 13:13:15 +01:00
Ryan Alexander
fe04951bcf Make continue button use accent colour 2021-08-29 10:00:23 +10:00
Ryan Alexander
3d0e95d25d Add external link warning 2021-08-29 09:56:20 +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
ae22c344a1
Merge pull request #87 from ryanalexander/context-categories 2021-08-18 00:58:06 +01:00
Ryan Alexander
dccc0f4eb7
Update Prompt.tsx 2021-08-18 06:28:18 +10:00
Ryan Alexander
49d54ee05a Added create category context menu when right clicking in channel list 2021-08-17 06:31:25 +10:00
Paul
d13b5e812d Add leet speak to languages menu. 2021-08-16 18:16:49 +01:00
Ryan Alexander
792bc99eac
Merge branch 'revoltchat:master' into patch-2 2021-08-16 00:26:18 +10:00
Paul
8a104855a1 Add settings button to server list sidebar.
Move more border radiuses to variables.
2021-08-15 15:21:23 +01:00
Ryan Alexander
6938deb568
Update UserProfile.tsx
Clicking badges that can redirect to a relevant page will do so.

Clicking Supporter will direct to donate page
Clicking Translator will direct to weblate
2021-08-16 00:09:16 +10:00
Paul Makles
c0c0c267f4
Merge pull request #67 from ashishcas/fixing-border-radius 2021-08-15 14:50:43 +01:00
Paul
c2485f2a78 Add Thai and Bulgarian. 2021-08-15 14:16:36 +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
ashishcas
aedc158654 feat:: updating border radius 2021-08-14 21:44:02 +05:30
Paul Makles
4d9c324326
Merge pull request #60 from janderedev/pr-5 2021-08-12 21:39:23 +01:00
Paul
4ac3165bdc Remove logs. 2021-08-12 19:51:23 +01:00
janderedev
ac04bd2b44
Filter mutual servers properly 2021-08-12 18:29:01 +02:00
Paul
c5a36b09d9 Remove ability to add bot as a friend. 2021-08-12 17:11:34 +01:00
janderedev
3d707a64da
Merge branch 'master' of https://github.com/revoltchat/revite into pr-5 2021-08-12 17:52:38 +02:00
Paul
237a0024df Temporary bot menu. 2021-08-12 15:29:19 +01:00
Paul
c27f596d40 Show user flags and the bot owner. 2021-08-12 14:40:13 +01:00
janderedev
1c3d76d45f
Added mutual servers tab on user profile 2021-08-12 12:32:56 +02: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
d5b0d8d9cf Display all server roles separately. 2021-08-08 21:50:29 +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
4ec1ff5c59 Re-write voice context. Working towards #21 2021-08-07 16:15:55 +01:00
Paul
0fe154c651 Fix voice and abnormal CPU usage. 2021-08-07 14:13:05 +01:00
Paul
d841b9e3cd Fix profiles not loading. 2021-08-05 23:25:49 +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
184663a3ac Categorise constructed languages. 2021-08-04 12:31:51 +01:00
Paul
90c46155e4 Add hide email button.
Add device name for Revolt Desktop.
Add Italian and Toki Pona.
2021-08-04 11:40:58 +01:00
Paul
76478f67be Fix notifications not opening server. 2021-07-31 17:00:50 +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
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
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
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