Commit graph

157 commits

Author SHA1 Message Date
2943b91034 Typescript, convert some components to functional
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-11 21:58:48 +02:00
Alex Gleason
96ccc66641
Convert DropdownMenu to typescript 2022-04-02 13:03:12 -05:00
Alex Gleason
1a1464f5ba
Poll: convert to React.FC, remove PollContainer 2022-03-26 22:24:52 -05:00
Alex Gleason
0cdf898b37
Convert Polls to TSX 2022-03-26 18:11:26 -05:00
Justin
97af1ece28 Resolve missing CSS variables in the theme 2022-03-24 11:48:03 -04:00
Alex Gleason
793b0f9128
Start adding dark mode 2022-03-23 19:18:37 -05:00
Alex Gleason
fff580f053
Normalize Tailwind colors from SoapboxConfig 2022-03-23 15:31:19 -05:00
Alex Gleason
12617bf7de
Merge remote-tracking branch 'origin/next' into next-colors 2022-03-23 13:05:53 -05:00
Alex Gleason
03a5ef6d41
Fix (most) PropType errors 2022-03-23 12:14:42 -05:00
Alex Gleason
a42ea0961a
Generate Tailwind colors from brandColor/accentColor 2022-03-22 12:37:57 -05:00
Alex Gleason
0938612678
Use colors from soapbox.json at runtime 2022-03-21 18:43:31 -05:00
Alex Gleason
5cd894ab02
Truth Social 2022-03-21 13:14:26 -05:00
Alex Gleason
a801a8a7c8
soapbox/store/configureStore --> soapbox/store, add custom Hooks 2022-03-14 18:04:49 -05:00
Alex Gleason
d600a74410
Revert "PollContainer: don't pass me as a prop"
This reverts commit dc2d3b1b09.
2022-03-10 19:36:58 -06:00
Alex Gleason
dc2d3b1b09
PollContainer: don't pass me as a prop 2022-03-10 16:30:42 -06:00
Alex Gleason
7a3c014ac7
Don't use accent color in Halloween mode 2022-02-27 19:43:31 -06:00
06d33de47f Single user mode
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-25 16:35:48 +01:00
5b3f7c1cdc Let accent color be configurable
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-24 18:28:52 +01:00
a041a4452b Rename modal -> modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-02 16:36:20 +01:00
e0f0370579 Merge remote-tracking branch 'soapbox/develop' into modals-stack
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-02 14:30:38 +01:00
marcin mikołajczak
8fed920bb7 Merge branch 'develop' into 'snackbar-action-link'
# Conflicts:
#   app/soapbox/features/edit_profile/index.js
2022-02-01 08:27:38 +00:00
Alex Gleason
0d000bf4e0
Set instance version default, just in case... 2022-01-31 11:23:39 -06:00
Alex Gleason
7e7ca52cca
Delay rendering until instance has loaded or failed (for feature detection) 2022-01-31 10:58:44 -06:00
807b3c7e5b Use stack for modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-30 18:53:47 +01:00
bf7cd98c03 Add 'View' action link to some notifications
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-27 16:00:05 +01:00
Alex Gleason
0964fc1f4d
Add "demo" mode for taking screenshots 2022-01-26 19:37:32 -06:00
67006fdc34 Fix normal reblogging
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-24 16:31:55 +01:00
15d4910db5 wip quote post composing
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23 18:44:17 +01:00
Alex Gleason
6323c7d70e
eslint: enforce gaps between groups with import/order 2022-01-10 16:25:06 -06:00
Alex Gleason
966ca91e1a
eslint: alphabetize imports with import/order 2022-01-10 16:17:52 -06:00
Alex Gleason
2a0e2001d6
eslint: enforce import/order 2022-01-10 16:01:24 -06:00
154eab8273 Ask for confirmation before canceling scheduled post
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-08 13:13:19 +01:00
marcin mikołajczak
df47c0c789 Merge branch 'mentions-modal' into 'develop'
Turn some pages into modals

See merge request soapbox-pub/soapbox-fe!958
2022-01-06 17:43:46 +00:00
marcin mikołajczak
831a3418f9 Merge branch 'just-messing-around' into 'develop'
Add headers to confirmation modals

See merge request soapbox-pub/soapbox-fe!942
2022-01-06 17:09:08 +00:00
2d3784eb88 Minor changes, port 'Generalize “press back to close modal” to any modal and to public pages' from Mastodon
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-06 17:45:10 +01:00
06e3b95a29 change label
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-06 16:51:34 +01:00
1541b97e1a Actually fix reblogs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-03 23:30:29 +01:00
11107c6df9 Merge remote-tracking branch 'origin/develop' into just-messing-around
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-03 18:52:22 +01:00
49d61f84e1 fix reblogs with confirmation modal enabled
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-03 17:27:31 +01:00
marcin mikołajczak
9c6f805499 Remote interactions modal 2022-01-02 20:43:53 +00:00
809b875ae3 Add headlines to confirmation modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-12-30 18:50:02 +01:00
Alex Gleason
7259ed58fb
Offline: persist Soapbox config (eg frontend_configurations or soapbox.json) 2021-11-15 16:56:33 -06:00
Alex Gleason
cb98c16011
Poll: fix crash when voting 2021-11-05 23:29:35 -05:00
Alex Gleason
8634db39a5 Merge branch 'polls-unauthorized-modal' into 'develop'
Check if unauthorized when toggling poll options

See merge request soapbox-pub/soapbox-fe!828
2021-11-03 18:15:57 +00:00
Alex Gleason
860f8c3b93
Developers: become a developer through the console 2021-11-02 11:47:26 -05:00
92ee89936e Show unauthorized modal when toggling poll options
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-10-27 22:51:17 +02:00
f2b91a2231 Fix polls for unauthenticated users
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-10-24 14:03:42 +02:00
Alex Gleason
3c5384f318
localforage: add localforage, remember a fetched instance 2021-10-20 13:18:55 -05:00
Alex Gleason
f70791004b
Chats: add account search 2021-10-14 12:23:51 -05:00
Alex Gleason
da79e5a876
Add conditional Chat/DM buttons throughout the interface 2021-10-13 13:55:02 -05:00
Alex Gleason
f6b1bca574
Helmet: wrap withRouter, probably fix page title getting stuck 2021-10-12 16:28:47 -05:00
Alex Gleason
4b92dbc93d
Create separate MaterialStatus component for statuses with gaps (in timelines) 2021-10-06 14:42:24 -05:00
Alex Gleason
fcf7b1ffed
Fix inability to delete a status 2021-09-28 17:29:14 -05:00
Alex Gleason
80d75d5a80
Fix status overflow issue *and* scroll bar 2021-09-26 18:48:43 -05:00
Alex Gleason
b0e37c773e
Load panels async 2021-09-18 17:48:13 -05:00
Alex Gleason
ea26e86a94
Rename FE_BASE_PATH to FE_SUBDIRECTORY 2021-09-05 13:21:39 -05:00
Alex Gleason
a9b757f6a5
Merge remote-tracking branch 'origin/develop' into fe-basename 2021-09-03 11:44:02 -05:00
Alex Gleason
9a164ca8fa
Authenticated fetch: postpone fetching the instance 2021-09-03 07:42:27 -05:00
Alex Gleason
2b1ceb6d08
Build config: subdirectory support 2021-09-02 16:52:53 -05:00
Eugen Rochko
a8501fb44d Fix scroll position resetting when opening media modals in web UI 2021-08-28 15:23:12 +02:00
Thibaut Girka
64665df236 Improve dropdown menu keyboard navigation
* Allow selecting menu items with the space bar in status dropdown menus

* Fix modals opened by keyboard navigation being immediately closed

* Fix menu items triggering modal actions

* Add Tab trapping inside dropdown menu

* Give focus back to last focused element when status dropdown menu closes
2021-08-28 15:22:43 +02:00
Alex Gleason
0b4b3479ea
Standalone: support running Soapbox FE on a subdomain 2021-08-22 14:34:58 -05:00
Shevek
5abd81695a fix lint 2021-08-14 22:59:33 -04:00
Shevek
d6f9b6547a use brand color as browser theme color 2021-08-14 22:49:09 -04:00
Alex Gleason
5548644bd6
eslint: no-extra-semi 2021-08-03 14:22:51 -05:00
Alex Gleason
a310197a5a
eslint: prefer-const, no-loop-func, no-const-assign, no-var 2021-08-03 12:36:11 -05:00
193b326d15 a11y: Option to always underline links in posts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-07-28 16:03:59 +02:00
Alex Gleason
d9202baa58
Simplify greentext code 2021-07-01 20:41:03 -05:00
Alex Gleason
bbeecddc37
Greentext support 2021-06-30 21:39:27 -05:00
2df8b927ea Allow translating more strings
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2021-06-27 00:04:27 +02:00
Alex Gleason
ffa8fda6d5
Improve error boundary styles, provide way to clear browser data 2021-04-22 13:57:47 -05:00
Alex Gleason
aa7e62e8c0
Initialize auth refactor 2021-03-29 19:51:48 -05:00
Alex Gleason
c7c0c41ce6
Use our own INIT_STORE action instead of relying on Redux's internal actions 2021-03-25 22:37:10 -05:00
Alex Gleason
760bac1377
Add styled console warning 2021-03-24 13:37:41 -05:00
Sean King
39b50e8fe1
Add moderator button for marking posts sensitive or not sensitive 2021-01-18 19:59:07 -07:00
Alex Gleason
c80797ccf8
Admin: delete status directly from menu 2021-01-18 15:57:20 -06:00
Alex Gleason
926335b268
Add "deactivate" and "delete" user modals to every status and account profile 2021-01-18 15:27:35 -06:00
Alex Gleason
e4344c9561
Let allowedEmoji be customizable by the admin, fixes #538 2020-12-24 18:17:53 -06:00
Alex Gleason
ce1e04c224
Obliterate hydrateStore() 2020-09-27 19:49:55 -05:00
Alex Gleason
14e10382f2
Halloween mode 2020-09-25 15:39:54 -05:00
Alex Gleason
22abaafd7a
Restore hydrateStore() call, fixes #346 2020-08-24 22:53:01 -05:00
Alex Gleason
57340496bc
Preload: dispatch preload action 2020-08-24 15:23:05 -05:00
Alex Gleason
ec42888fff
Add getSoapboxConfig() like getSettings() 2020-08-23 16:04:01 -05:00
Alex Gleason
2c010768e9 Merge branch 'profile-hover-cards' into 'develop'
Profile hover cards

See merge request soapbox-pub/soapbox-fe!114
2020-08-03 02:27:14 +00:00
marykatefain
ee97e94779 Bookmark posts 2020-07-29 21:08:36 +00:00
Mary Kate
f6ebe5cbd7 profile card basic functionality, needs some UI improvements 2020-07-28 20:02:11 -05:00
Sean King
01d042f80d
Update of work on audio player 2020-07-02 16:31:43 -05:00
Alex Gleason
52e0d1f475
Support injecting custom CSS, fixes #145 2020-06-07 17:30:47 -05:00
Alex Gleason
082d3f1121
Allow only valid locales 2020-06-04 21:50:11 -05:00
Alex Gleason
956fa99ee1
Import locale messages dynamically 2020-06-04 21:22:58 -05:00
Alex Gleason
36f5b6cea8
Delete unused container components 2020-06-04 19:40:01 -05:00
Alex Gleason
6e1db9a013
Basic locale support 2020-06-04 18:34:28 -05:00
Alex Gleason
3e2b282cb8
Postpone setting the brand color until soapbox.json succeeds or fails
Fixes color flickering during load
2020-06-03 14:47:49 -05:00
Alex Gleason
e8fcd9bf18
Actually set default brandColor in SoapboxMount 2020-06-03 14:20:45 -05:00
Alex Gleason
d21db82247
Remove theming cruft 2020-06-02 15:48:27 -05:00
Alex Gleason
eb9517873d
Extrapolate meta colors in css instead of JS 2020-06-02 15:28:15 -05:00
Alex Gleason
c4a2a86618
Theme mode set in Preferences 2020-06-02 12:16:26 -05:00
Alex Gleason
d4a88c0243
Remove unused import 2020-06-01 08:31:42 -05:00
Alex Gleason
3fc5d7a83c
Get theme from soapbox.json 2020-06-01 00:49:43 -05:00
Alex Gleason
4ddcb9bcd0
Lighten --primary-text-color-faint, fix wtf-panel shadow 2020-05-31 23:08:55 -05:00