Commit graph

323 commits

Author SHA1 Message Date
Alex Gleason
cb14b34309
Add NSpec and SoapboxSigner 2024-02-11 12:40:14 -06:00
124421a541 Remove more unused code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-11 15:45:18 +01:00
8e3c6e8310 Update lexical, remove unused code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-11 13:06:30 +01:00
Alex Gleason
d576b8ed47
Switch to isomorphic-dompurify 2024-02-08 15:01:20 -06:00
Alex Gleason
c0325498c8
Merge remote-tracking branch 'origin/main' into dompurify 2024-02-08 14:57:35 -06:00
5e801b899d Use media query to detect touchscreens
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-07 17:33:22 +01:00
Alex Gleason
54a57269e4
Add LightningAddress component 2024-02-06 13:14:20 -06:00
Alex Gleason
4aa6fdb4dd
Add DOMPurify 2024-01-17 12:21:19 -06:00
b2faa1406b Fix some typos
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-01-11 14:53:06 +01:00
Alex Gleason
8009299df6
LatestAccountsPanel: don't hide unsorted admin accounts, removes legacy Pleroma hack 2024-01-05 15:36:44 -06:00
231a68fb63 Merge remote-tracking branch 'origin/main' into instance-v2
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-01-05 00:41:06 +01:00
Rizal Sambayu
9a2e3c1dc4 add javanese language 2023-12-29 20:10:04 +00:00
Alex Gleason
8108ac2a67
yarn lint:js --fix 2023-12-20 21:17:33 -06:00
Alex Gleason
e426f72130
ComposeForm: disable submit when there is no editorRef 2023-11-27 15:01:13 -06:00
Alex Gleason
54dff2131f
ComposeForm: do autoFocus on mobile 2023-11-27 14:57:16 -06:00
Alex Gleason
fd19fa9e5b
FocusPlugin: refactor the useEffect for sanity 2023-11-27 14:56:42 -06:00
Alex Gleason
889c2658ba
ComposeForm: refactor canSubmit so it works correctly in more scenarios 2023-11-27 14:32:41 -06:00
Alex Gleason
016198c301
Sign NIP-46 events with proof-of-work 2023-11-20 17:52:37 -06:00
Alex Gleason
1a32dc178b
WrappedRoute: allow navigating between pages to reset the ErrorBoundary 2023-11-14 15:17:33 -06:00
Alex Gleason
54aa09c6b1
Developers: fix /error/network route 2023-11-14 14:47:04 -06:00
Alex Gleason
cdb89ae8fd
Bring back NetworkError column 2023-11-14 14:41:35 -06:00
Alex Gleason
c7f9a9eb56
ComposeForm: get text from the editorRef instead of component state
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1563
2023-11-14 11:08:32 -06:00
0db0aeb440 Fix federation modal
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-11-01 23:30:32 +01:00
1d3424e648 Display emoji reactions on glitch-soc and Iceshrimp
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-29 23:00:48 +01:00
1b31a0558e Fix registration status
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-28 16:20:54 +02:00
7c752f088c instance v1 to v2 convesion
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-27 23:48:54 +02:00
59115c8dc5 Remove instance normalizer
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-27 17:48:21 +02:00
68f66075f2 Hide hashtag follow toggle when unauthenticated
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-27 17:27:49 +02:00
Alex Gleason
86e0245de3
Remove unneeded AxiosError usages 2023-10-23 17:24:09 -05:00
Alex Gleason
b25408a79f Merge branch 'account-local' into 'main'
Add 'local' to account schema

See merge request soapbox-pub/soapbox!2835
2023-10-21 23:49:06 +00:00
Alex Gleason
365cd70c9b
IntentionalError: throw an actual error instance 2023-10-21 18:27:55 -05:00
b1daf3ef13 Remove type assertion when not needed
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-22 00:20:41 +02:00
ba5e018e3c Add 'local' to account schema
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-10-22 00:14:23 +02:00
Alex Gleason
37f9bafd13
AccountGallery: fix crash when account isn't loaded yet 2023-10-21 12:38:21 -05:00
Alex Gleason
19ab202737
Update code to new react-query API 2023-10-17 15:19:05 -05:00
Alex Gleason
eed328552f Merge branch 'latn' into 'main'
Force use of latn numberingSystem throughout the UI

Closes #1580

See merge request soapbox-pub/soapbox!2821
2023-10-15 18:31:51 +00:00
Alex Gleason
20a63d2915
Force use of latn numberingSystem throughout the UI
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1580
2023-10-15 13:11:37 -05:00
tassoman
fba42b531b adding tailwind snap effect to scrolled autosuggested items 2023-10-15 02:16:27 +02:00
Alex Gleason
e0c11fbfd1
Rework MentionNode to take a whole Mention entity 2023-10-13 22:14:55 -05:00
Alex Gleason
a37fa8bb85
Mention: allow it to link to the profile. disabled for MentionNode 2023-10-13 22:07:43 -05:00
Alex Gleason
dde8322c7d
MentionNode: move Mention into a separate component 2023-10-13 21:09:52 -05:00
Alex Gleason
622692fe4d
MentionNode: truncate Nostr usernames 2023-10-13 17:37:11 -05:00
Alex Gleason
f6d60c243a
MentionNode: add Tooltip 2023-10-13 17:29:52 -05:00
Alex Gleason
5aacfe299a
MentionNode: show the username, not the full acct 2023-10-13 17:22:45 -05:00
Alex Gleason
964ba8c758
Make MentionNode a DecoratorNode instead of a TextNode 2023-10-13 17:19:55 -05:00
Alex Gleason
dfe8f84ae1 Merge branch 'compose-clear' into 'main'
Compose clear

See merge request soapbox-pub/soapbox!2809
2023-10-13 20:29:28 +00:00
Alex Gleason
8f55b6d5c2
Split SubmitPlugin out of StatePlugin 2023-10-13 15:16:39 -05:00
Tassoman
2876252ac0 adding case insensitive match during status composition 2023-10-13 17:20:00 +00:00
Alex Gleason
181df09039
submitCompose: accept an options object 2023-10-13 11:47:24 -05:00
Alex Gleason
d71bb8a673
ComposeForm: pass onSubmit through UploadForm to ComposeUpload 2023-10-13 11:16:43 -05:00
Alex Gleason
95ec398268
LogoText: fix text getting cut-off vertically 2023-10-12 16:46:06 -05:00
Alex Gleason
301ba68842
SiteBanner: support RTL 2023-10-12 16:22:47 -05:00
Alex Gleason
645aa494f5
UI: wrap SidebarMenu with Suspense
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1562
2023-10-12 00:29:02 -05:00
Alex Gleason
d0170dc449 Merge branch 'upgrade-react-intl' into 'main'
Upgrade react-intl, remove translationRunner, fix `yarn i18n`

Closes #1553

See merge request soapbox-pub/soapbox!2799
2023-10-11 20:27:32 +00:00
Alex Gleason
f6251a221a
Run yarn i18n, copy some messages from en.json back into source files 2023-10-11 15:15:50 -05:00
Alex Gleason
b5f92b10f9
i18n: resolve duplicate message identifiers in code 2023-10-11 14:57:53 -05:00
Alex Gleason
5bd1eab607
AccountNotePanel: use our native Textarea component 2023-10-11 13:48:39 -05:00
Alex Gleason
ad329c33fa
Remove AutosuggestTextarea 2023-10-11 13:38:58 -05:00
Alex Gleason
39786aa5f2
Chat search: ensure acct is LTR 2023-10-11 13:23:39 -05:00
Alex Gleason
e0f43986a7
Chats: flip arrow icons in RTL 2023-10-10 20:19:10 -05:00
Alex Gleason
ae63d37d78
rtl.ts -> utils/rtl.ts 2023-10-10 20:02:22 -05:00
Alex Gleason
f583e7eeb5
Card --> PreviewCard 2023-10-10 19:03:03 -05:00
Alex Gleason
971bcb41e4 Merge branch 'userpanel-rtl' into 'main'
UserPanel: fix RTL support for @

See merge request soapbox-pub/soapbox!2791
2023-10-10 22:49:01 +00:00
Alex Gleason
4a56995385
UserPanel: fix RTL support for @ 2023-10-10 17:48:21 -05:00
Alex Gleason
679c0feb54
ChatPane: clean up, switch to the other side in RTL 2023-10-10 17:12:10 -05:00
Alex Gleason
1b2d6f1516
Wrap EmojiPicker with a Suspense boundary 2023-10-10 11:07:15 -05:00
Alex Gleason
596ea21976
Chunk ScheduleForm differently, fix screen blinking when compose is focused 2023-10-09 22:29:57 -05:00
Alex Gleason
e1982804b6
ComposeForm: wrap ComposeEditor with Suspense 2023-10-09 22:19:27 -05:00
Alex Gleason
34131cdfcc
Convert all tests to ESM 2023-10-08 22:31:36 -05:00
Alex Gleason
78884a4248
UI: wrap StatusHoverCard with Suspense boundary 2023-10-07 22:57:43 -05:00
Alex Gleason
85f6c0293e
Fix ProfileHoverCard page crash
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1550
2023-10-07 21:28:19 -05:00
Alex Gleason
c2098c3361
Fix lodash imports to get rid of unnecessary extra chunk 2023-10-07 18:53:23 -05:00
Alex Gleason
643d362103
ComposeEventModal: fix ComposeForm ref 2023-10-07 17:18:03 -05:00
Alex Gleason
b02c39da2d
Delete Bundle component, use Suspense and React.lazy 2023-10-07 17:14:45 -05:00
Alex Gleason
1b213452b7
Fix Bundle type errors, remove bundle error components, remove group slug support 2023-10-07 16:00:42 -05:00
Alex Gleason
0f10922c3d
ProfilePage: fix types of async components 2023-10-07 15:43:34 -05:00
Alex Gleason
3a221e8c86
Bundle: just wrap it with React.Suspense 2023-10-07 15:37:54 -05:00
Alex Gleason
6b173f44be
AsyncComponents: use React.lazy 2023-10-07 15:04:37 -05:00
Tassoman
5ed8c78c88 added vertical scroll feature to the autosuggest component 2023-10-07 13:26:14 +00:00
Alex Gleason
e07fa23e0d
Let Sentry DSN be configurable in SoapboxConfig 2023-10-05 16:48:20 -05:00
Alex Gleason
f02255ff6a Merge branch 'nostr-machina' into 'main'
Implement Nostr Machina

See merge request soapbox-pub/soapbox!2775
2023-10-04 23:33:33 +00:00
Alex Gleason
ebed7cee0b Merge branch 'conversation-verbose' into 'main'
Poor's man verbose conversations

See merge request soapbox-pub/soapbox!2768
2023-10-04 23:32:27 +00:00
Alex Gleason
28731f6087
Nostr: enable Nostr login 2023-10-04 18:03:26 -05:00
Alex Gleason
84ca2a269d
nostr: add Nostr sign module 2023-10-04 17:07:02 -05:00
Alex Gleason
3f640e9797
Untuck tests out of __tests__ directories, colocate with program files 2023-10-02 14:27:40 -05:00
Alex Gleason
645ce60a5f
eslint: use semicolon TypeScript delimeter 2023-10-02 13:54:02 -05:00
Alex Gleason
74c231b59b
Stop re-rendering the ScrollTopButton so much 2023-10-02 12:22:09 -05:00
Alex Gleason
9cb677363d
Notifications: render ScrollTopButton in a Portal 2023-10-02 11:14:36 -05:00
Alex Gleason
ff55272d59
Timeline: put ScrollTopButton into a Portal 2023-10-02 10:56:45 -05:00
tassoman
e8eefda486 updated: reply-indicator overflows verbose communications, during reply 2023-09-28 08:03:40 +02:00
tassoman
12118e1435 autosuggest css should be relative, not fixed 2023-09-27 14:40:11 +02:00
Alex Gleason
2d7ce9b684
lexical: pass compose text from the reducer on mount
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1531
2023-09-25 22:47:55 -05:00
Alex Gleason
eb875673fd
ComposeForm: insert emoji from picker into lexical
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1529
2023-09-25 16:31:01 -05:00
Alex Gleason
cdda5363f6
actions: useEmoji --> chooseEmoji 2023-09-25 16:20:47 -05:00
Alex Gleason
0b0a548f8c
EmojiPickerDropdown: minor refactoring 2023-09-25 16:19:08 -05:00
Alex Gleason
cefe9adc05
EmojiNode: fix getTextContent, remove unused exportDOM 2023-09-25 16:12:51 -05:00
Alex Gleason
f3783f1a50
AutosuggestPlugin: don't autosuggest hashtags for now
https://gitlab.com/soapbox-pub/soapbox/-/issues/1527
2023-09-25 16:09:53 -05:00
Alex Gleason
4b5602a086
lexical: render native emojis as Twemoji 2023-09-25 16:02:13 -05:00
Alex Gleason
2a9cb08d08
lexical: restore EmojiNode, fix Android backspace! 2023-09-25 15:46:29 -05:00
Alex Gleason
aea2653b19
AutosuggestPlugin: remove extraneous ? 2023-09-25 15:18:46 -05:00
Alex Gleason
ab22422aa7
MentionNode: use 'segmented' to fix Android problems 2023-09-25 15:12:43 -05:00
Alex Gleason
e88b952a6f
lexical: remove MentionPlugin, only insert mention when selected from autosuggest 2023-09-25 14:49:00 -05:00
Alex Gleason
71bb8cc73e
lexical: fix license path in lexical files 2023-09-25 13:32:12 -05:00
Alex Gleason
f628cd73b0
MentionPlugin: use a simpler regex, fix double-@ mentions
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1530
2023-09-25 13:30:52 -05:00
Alex Gleason
5449ea3326
MentionPlugin: simplify regex and getMatch 2023-09-25 12:25:40 -05:00
Alex Gleason
7ff9d2ed3b
MentionPlugin: do a little refactoring 2023-09-25 12:16:29 -05:00
Alex Gleason
60f0e6ff6a
Disable EmojiNode for now :( 2023-09-24 14:48:38 -05:00
Alex Gleason
4298722da9
EmojiNode: clone with key 2023-09-24 14:46:19 -05:00
Alex Gleason
8bbf454af4
LandingTimeline: display About page instead of the feed if the feed is restricted by the API 2023-09-24 12:58:58 -05:00
Alex Gleason
8500e7bb9a
Hide unauth features if they're restricted by the backend 2023-09-24 12:51:00 -05:00
Alex Gleason
aabaaee8b8 Merge branch 'instance-zod' into 'main'
Convert instance to use zod

See merge request soapbox-pub/soapbox!2751
2023-09-24 15:23:33 +00:00
Alex Gleason
550cd38c3c Delete mention-node.tsx 2023-09-24 03:31:22 +00:00
Alex Gleason
17bcd68d73
Fix remote timeline pages 2023-09-23 20:56:37 -05:00
Alex Gleason
3b630ed8fb
Convert instance to use zod 2023-09-23 20:49:33 -05:00
animegrafmays
4179c587bc fix account migration route 2023-09-23 21:43:29 -04:00
Alex Gleason
939c1bfbb8
lexical: fix custom emojis (add a text representation of them) 2023-09-23 17:27:39 -05:00
Alex Gleason
bad17c52d8
Merge branch 'main' of gitlab.com:soapbox-pub/soapbox into lexical-rm-nodes 2023-09-23 16:27:36 -05:00
Alex Gleason
e712d7bb52
lexical: remove unused nodes 2023-09-23 16:26:46 -05:00
Alex Gleason
d1c2cdecb5 Merge branch 'lexical-ctrl-enter' into 'main'
lexical: fix ctrl+Enter

See merge request soapbox-pub/soapbox!2747
2023-09-23 21:21:45 +00:00
Alex Gleason
bc3662afc7
lexical: fix ctrl+Enter 2023-09-23 16:20:09 -05:00
Alex Gleason
175d61807d Merge branch 'unauth-improvements' into 'main'
Unauth improvements

See merge request soapbox-pub/soapbox!2743
2023-09-23 21:13:28 +00:00
Alex Gleason
6c318a02ef Merge branch 'lexical' into 'main'
Lexical text editor

See merge request soapbox-pub/soapbox!2177
2023-09-23 21:00:32 +00:00
Alex Gleason
20d1880290
LandingTimeline: remove unnecessary onlyMedia 2023-09-23 15:54:37 -05:00
Alex Gleason
dcab2deda1
RegistrationPage: display "registrations closed" message in place of signup form when registrations are closed 2023-09-23 15:48:44 -05:00
Alex Gleason
46b63571e7
lexical: fix modal close confirmation 2023-09-23 15:33:43 -05:00
Alex Gleason
4f65c96da4
lexical: fix placeholder z-index 2023-09-23 15:23:11 -05:00
Alex Gleason
a67b5f8a25
lexical: add RefPlugin to set the ref 2023-09-23 15:10:05 -05:00
Alex Gleason
d92c150d9d
lexical: set the actual editor as the ref, clear the form on submit 2023-09-23 15:01:16 -05:00
Alex Gleason
448d320f4e
lexical: pass the actual EditorState as the ref, count with onChange callback 2023-09-23 14:54:47 -05:00
Alex Gleason
89b1574c77
Make Lexical the only editor 2023-09-23 14:32:02 -05:00
Alex Gleason
206927fd4b
AutosuggestPlugin: clear suggestions after selecting a suggestion 2023-09-23 14:26:43 -05:00
Alex Gleason
aa4992e716
AutosuggestPlugin: update when suggestions updates 2023-09-23 14:22:27 -05:00
Alex Gleason
8f49446a15
AutosuggestPlugin: pageYOffset --> scrollY 2023-09-23 14:05:48 -05:00
Alex Gleason
b14a6586b4
AutosuggestPlugin: treat Tab the same as Enter 2023-09-23 14:02:05 -05:00
Alex Gleason
b8e8be714a
Fix standalone redirect
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1524
2023-09-22 17:33:33 -05:00
Alex Gleason
373fe3a77e
lexical: remove markdown support 2023-09-22 17:22:46 -05:00
Alex Gleason
e619ffffdd
lexical: fix minor spacing/size issues 2023-09-22 15:38:27 -05:00
Alex Gleason
ac591e029e
Merge remote-tracking branch 'origin/main' into lexical 2023-09-22 13:36:04 -05:00
Alex Gleason
5e204437df
Remove Truth Social PolicyModal 2023-09-22 11:46:58 -05:00
Alex Gleason
f01d088d06
Remove Truth Social feed carousel 2023-09-22 11:40:11 -05:00
Alex Gleason
48695b9a8a
Merge remote-tracking branch 'origin/main' into lexical 2023-09-21 14:38:57 -05:00
Alex Gleason
2e35c426d4
Fix search being a public route 2023-09-21 13:51:09 -05:00
Alex Gleason
f0cc9ed4d4
Fix EmptyPage being an actual empty page 2023-09-21 13:50:31 -05:00
Alex Gleason
ecc0897ee6
Delete PublicLayout and legacy LandingPage 2023-09-21 13:45:58 -05:00
Alex Gleason
2f3350267c
LandingTimeline: remove sonar animation 2023-09-21 13:43:52 -05:00
Alex Gleason
c697f9a92c
LandingTimeline: remove page title 2023-09-21 13:12:31 -05:00
Alex Gleason
def95d2b5c
Add a LandingTimeline, put the site name and description on it 2023-09-21 12:02:02 -05:00
Alex Gleason
77d18e9cd3
Merge remote-tracking branch 'origin/main' into lexical 2023-09-20 19:13:16 -05:00
Alex Gleason
76884f26b1
Add vite-plugin-checker, fix types 2023-09-20 18:50:17 -05:00
fac42ab2c9 Merge remote-tracking branch 'soapbox/main' into lexical
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-09-20 23:49:55 +02:00
Alex Gleason
a59b9d563d Merge branch 'rm-rumble-embeds' into 'main'
Remove support for Rumble video embeds

See merge request soapbox-pub/soapbox!2716
2023-09-20 20:51:28 +00:00
Alex Gleason
7137edad37
Delete AuthLayout 2023-09-20 14:41:34 -05:00
Alex Gleason
0664484ba9
Move External Login form into the UI 2023-09-20 14:40:52 -05:00
Alex Gleason
bdb5f4a2cf
Thread: fix position of ThreadLoginCta 2023-09-20 14:32:20 -05:00
Alex Gleason
df2c2288fb
Move invite signup into the UI 2023-09-20 14:26:08 -05:00
Alex Gleason
977d908db0
Move Edit Password into the UI 2023-09-20 14:19:03 -05:00
Alex Gleason
68bdcd30de
Move Reset Password into the UI 2023-09-20 14:17:09 -05:00
Alex Gleason
59a32b1a0f
Refactor a bunch of components to use BigCard 2023-09-20 14:10:54 -05:00
Alex Gleason
ffae3f89df
Move Login page to UI 2023-09-20 13:57:33 -05:00
Alex Gleason
f5d17fd55d
Fix regex crash 2023-09-20 13:38:06 -05:00
Alex Gleason
396dc3eb4b Merge branch 'signup-ui' into 'main'
Move signup page into the UI

See merge request soapbox-pub/soapbox!2723
2023-09-20 18:13:14 +00:00
Alex Gleason
e9caa6f69e
Move signup page into the UI 2023-09-20 12:59:55 -05:00
Alex Gleason
84b114a16b Merge branch 'regex-warnings' into 'main'
Remove useless escape characters from regexes

See merge request soapbox-pub/soapbox!2721
2023-09-20 17:24:04 +00:00
Alex Gleason
079469f665
Remove useless escape characters from regexes 2023-09-20 12:10:49 -05:00
Alex Gleason
e9b245b7d4
Remove 'use strict' expressions 2023-09-20 11:55:04 -05:00
Alex Gleason
25f7771c93
About: add Navlinks to about pages footer 2023-09-20 11:21:08 -05:00
Alex Gleason
804761fd09
Move About pages to within the UI 2023-09-19 17:29:24 -05:00
Alex Gleason
1e71923f6d
Remove support for Rumble video embeds 2023-09-19 13:10:57 -05:00
Alex Gleason
757d8ba545
Remove Truth Social Ads 2023-09-19 11:17:12 -05:00
Alex Gleason
bea2020287
Remove Truth Social registration 2023-09-18 21:07:32 -05:00
Alex Gleason
c67fc393d5
Fix eslint import errors 2023-09-18 18:01:22 -05:00
Alex Gleason
dd97a46a03
Update code to deal with new paths under src 2023-09-18 16:37:15 -05:00
Alex Gleason
f9679d270b
Merge src/soapbox with top-level src directory 2023-09-18 16:08:54 -05:00