Commit Graph

331 Commits (5e1ded97b5980b1603f10d3349f8fc695118f21b)

Author SHA1 Message Date
Thibaut Girka 9b0b130299 Use the `Icon` component instead of directly using `i` tag 2019-09-09 19:00:20 +02:00
Thibaut Girka 6b45aa450b Use upstream's Icon component
Rework the codebase to avoid unnecessary differences with upstream
2019-09-09 19:00:20 +02:00
Thibaut Girka 080bdf6949 Move “export” before decorators
As this is what upstream does.

See also https://github.com/tc39/proposal-decorators/issues/69
2019-09-09 18:36:43 +02:00
Eugen Rochko f0806c8de1 [Glitch] Fix wrong sum of usage in hashtag component in web UI
Port b5651654f7 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-05 14:12:18 +02:00
Eugen Rochko 2e2795a887 [Glitch] Fix wrong pluralization in hashtag component in web UI
Port 17df40e74e to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-05 14:11:52 +02:00
Eugen Rochko e7c79b11e5 [Glitch] Change hashtag component in web UI to show numbers for 2 last days
Port 8d61ef6dda to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-05 14:02:54 +02:00
Eugen Rochko 8f54a3efe0 [Glitch] Fix uncached media in web UI not being clickable
Port acf168f1a2 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-05 14:02:04 +02:00
Eugen Rochko 8ecdf54a75 [Glitch] Add "not available" label on unknown media attachments
Port 59d873e1e5 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-05 13:06:41 +02:00
ThibG 7d388731dc [Glitch] Restore hashtag suggestions from local tag history
Port d94a4763f6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-02 10:57:44 +02:00
Eugen Rochko f0c559250c [Glitch] Fix emoji autosuggestions
Port 32d2260a8c to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-02 10:57:44 +02:00
Eugen Rochko cc3ca37cda [Glitch] Add autosuggestions for hashtags
Port 450b8a70a5 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-09-02 10:57:44 +02:00
Thibaut Girka 2743b33722 Fix imports importing modules from vanilla flavour instead of glitch 2019-08-31 18:23:24 +02:00
Eugen Rochko 2cdbfb39e8 [Glitch] Add profile directory to web UI
Port 79922ae20f to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-31 18:23:23 +02:00
Thibaut Girka c544962ee9 Fix clicking on the new audioplayer opening the toot in detailed view 2019-08-29 17:32:22 +02:00
Eugen Rochko 478fa5f839 [Glitch] Fix more visual issues with the audio player
Port eaa759ffd4 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-29 17:32:22 +02:00
Eugen Rochko 024b9a24e0 [Glitch] Add audio player
Port f13761d84b to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-29 17:32:22 +02:00
Thibaut Girka 5de49ea272 Add option to rewrite mentions to mentioned user's username or acct
Fixes #666
2019-08-29 11:59:29 +02:00
Thibaut Girka 558aa2bcfd [Glitch] Fix hidden statuses losing focus
Port d8153b99b3 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-19 21:56:25 +02:00
Eugen Rochko 284233f309 [Glitch] Fix "cancel follow request" button having unreadable text in web UI
Port aed7dca53b to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-12 16:49:12 +02:00
Eugen Rochko 37294ee595 [Glitch] Fix hashtag links always being lowercase
Port 277acb8772 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-07 15:35:44 +02:00
ThibG ceed029a36 [Glitch] Improve focus handling with dropdown menus
Port b169874828 to glitch-soc
2019-08-07 15:11:59 +02:00
Thibaut Girka 558628eb6d Implement keyboard navigation in glitch-soc composer 2019-08-06 16:36:18 +02:00
ThibG c9a755c8a0 [Glitch] Port changes to IconButton
Port changes to IconButton from 13811f4d7b to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-06 15:09:30 +02:00
ThibG 5df5ab88f5 [Glitch] Improve dropdown menu keyboard navigation
Port 61f7ff6522 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-06 15:09:30 +02:00
ThibG 2ff69c95ce [Glitch] Trap tab in modals
Port 0da8fdc438 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-06 15:09:30 +02:00
Thibaut Girka bd0a478252 Fix up try/catch block in invalid URL handling 2019-08-06 13:09:49 +02:00
Thibaut Girka e6272f1af0 Remove href attribute of invalid links instead of crashing 2019-08-06 12:32:06 +02:00
ThibG 56734351d3 [Glitch] Change icon button styles to make hover/focus states more obvious
Port ebc78b6f2b to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-08-05 14:20:21 +02:00
Thibaut Girka 50553e097d Remove link rewriting option as it is easily bypassable 2019-08-04 22:25:56 +02:00
Thibaut Girka aad48a1d5b Perform case-insensitive comparison for international domain names
Note: this uses `toLowerCase()` instead of doing proper case folding
2019-08-04 22:25:56 +02:00
Thibaut Girka ac64cdae72 Perform case-insensitive comparison of non-International domain names 2019-08-04 22:25:56 +02:00
Thibaut Girka 69c03e0ef4 Ensure link rewriting setting changes are immediately applied 2019-08-04 22:25:56 +02:00
Thibaut Girka 9e2e7f6628 Handle Mastodon-generated links for targets starting with “www.” properly 2019-08-04 22:25:56 +02:00
Thibaut Girka 2f4cb78803 Add options to highlight misleading links in statuses
Fixes #1162
2019-08-04 22:25:56 +02:00
ThibG 1c3117f682 [Glitch] Change contrast of status links that are not mentions nor hashtags
Port 6701b9329d to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-07-28 16:47:36 +02:00
Thibaut Girka df7b27753c Fix links in status media having their title rewritten 2019-07-24 21:46:09 +02:00
Thibaut Girka bf93e0c7c0 Handle animated emoji on mouse hover in CWs and poll options 2019-07-23 16:24:21 +02:00
ThibG b01e5e372f [Glitch] Play animated custom emoji on hover
Port 99b3dd5b00 to glitch-soc
2019-07-23 16:24:21 +02:00
Thibaut Girka 09a68ce895 Refactor DisplayName component to make it closer to upstream 2019-07-23 10:51:12 +02:00
Thibaut Girka 4daf8b17e3 Fix filtering behaviors 2019-07-19 19:21:20 +02:00
Thibaut Girka 1e3372feb9 Fix *another* typo and crash in StatusIcons 2019-07-18 09:54:59 +02:00
Thibaut Girka 0530c8d3b8 Fix typo and crash in StatusIcons 2019-07-18 09:42:22 +02:00
Thibaut Girka 5eca68102a Shorten status icon tooltip text 2019-07-17 21:35:34 +02:00
Thibaut Girka 0b139b1df4 Add status icon for local-only toots 2019-07-17 21:35:34 +02:00
Thibaut Girka 85654916b7 Add tooltips to status icons 2019-07-17 21:35:34 +02:00
Eugen Rochko f1de5093fb [Glitch] Add option to disable real-time updates in web UI
Port c56e6fd7a1 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-07-16 16:51:08 +02:00
Thibaut Girka 9339b4634e Minor refactoring 2019-07-15 00:48:28 +02:00
Thibaut Girka 59b8573907 Move the “Show why” button inline 2019-07-15 00:48:28 +02:00
Thibaut Girka fde918bf92 Implement feature to add filtered phrases to content warnings 2019-07-15 00:48:28 +02:00
Thibaut Girka 6476b7dabe Add options to configure filtering behavior 2019-07-15 00:48:28 +02:00
Thibaut Girka 67d1b0c997 Add a way to know why a status has been filtered, and show it anyway 2019-07-15 00:48:28 +02:00
Thibaut Girka 1181f84c79 Minor cleanup and maybe minor performance improvements 2019-07-01 19:31:21 +02:00
Thibaut Girka bcbc9ed7f6 Use strict equality rather than Immutable.is as the compared props are values 2019-07-01 19:31:10 +02:00
Thibaut Girka e4ffc42c8c Assume children of visible IntersectionObserverArticle always change
This fixes multiple issues, while adding few computations
2019-07-01 19:31:10 +02:00
Thibaut Girka b9ae9c7205 Revert to using upstream's optimisations
This *does* break things, as `shouldComponentUpdate` assume the
children to never change!
2019-07-01 19:31:10 +02:00
Thibaut Girka 081790f04b Fix error boundary DOM 2019-07-01 19:30:59 +02:00
Thibaut Girka edad7f2a6c Fix some React warnings 2019-07-01 19:30:59 +02:00
ThibG dd97db20d0 [Glitch] Add option to disable blurhash previews
Port 4b3d91dc2c to glitch-soc
2019-06-26 23:19:26 +02:00
Thibaut Girka b99f77bd31 Use a different icon for audio attachments 2019-06-24 16:16:16 +02:00
Eugen Rochko a0abbbe8cd [Glitch] Add media description as title to links of unknown media attachments
Port front-end changes from a266d7f1a2 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-24 16:00:42 +02:00
Eugen Rochko b02325e820 [Glitch] Add audio uploads
Port front-end changes from d7e2f554fb to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-24 16:00:42 +02:00
Eugen Rochko 3a70752ab5 [Glitch] Fix some React warnings
Port 5c1a46bdcf to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Takeshi Umeda 2a1e7f779b [Glitch] Improvement variable height in single column layout
Port 96ac52dabd to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Eugen Rochko 9cdb0fd8c5 [Glitch] Improvements to the single column layout
Port 6d4af23a69 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Eugen Rochko 04edd3fbdb [Glitch] Add responsive panels to the single-column layout
Port a1bceb2cb6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Eugen Rochko aa9377f77a [Glitch] Add single-column mode
Port f9ca3d62b6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Thibaut Girka 765b25f1cf Minor cleanup 2019-06-10 16:24:09 +02:00
Thibaut Girka 7dd32100c3 Add DM conversations mode similar to upstream 2019-06-10 16:23:42 +02:00
Jeong Arm a473a7912b [Glitch] Scroll to compose form when focus
Port 91ae2d1275 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-07 17:39:46 +02:00
Thibaut Girka 1501b142d2 Fix expanding status from menu modal in glitch-soc
Fixes #1085
2019-06-02 14:11:32 +02:00
slice fb0489022c Fix incorrect PropType in Glitch AutosuggestInput 2019-05-30 09:04:00 +02:00
Thibaut Girka c1619a5c24 [Glitch] Add keyboard shortcut to hide/show media
Port 7ee189fa60 and 9e238804ea to glitch-soc
2019-05-27 19:43:15 +02:00
Eugen Rochko 8050f86d04 [Glitch] Make the "mark media as sensitive" button more obvious in web UI
Port cc39785d45 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-04 20:41:21 +02:00
Eugen Rochko 3b9ff1fa34 [Glitch] Change account gallery in web UI
Port db73f8e585 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-04 18:54:57 +02:00
Eugen Rochko 87a7a9a4df [Glitch] Add blurhash
Port front-end changes from a6d2fe7165 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-04 18:07:44 +02:00
Thibaut Girka 02bd678944 Add keyboard shortcut to collapse/uncollapse toots 2019-04-28 20:23:04 +02:00
Thibaut Girka 7ed89e9178 Add hotkey for bookmarking a toot 2019-04-28 20:23:04 +02:00
Thibaut Girka b40841b488 Hide suggestions by default
They will be enabled if the input has focus
2019-04-26 22:38:03 +02:00
Thibaut Girka 4155a1556a Add emoji suggestion to poll options 2019-04-26 22:38:03 +02:00
Thibaut Girka b35b38f4ea Add suggestions in CW field 2019-04-26 22:38:03 +02:00
Thibaut Girka ce2da44c2c Rename status__text to status__content__text for consistency with upstream 2019-04-24 22:40:17 +02:00
Thibaut Girka fea727c61a Do not switch to italic for status media buttons 2019-04-22 23:07:14 +02:00
Thibaut Girka 08faf16d66 ComposerTextarea → AutosuggestTextarea 2019-04-22 20:15:47 +02:00
Eugen Rochko 7acc035cbe [Glitch] Show suggested follows on search screen in mobile layout
Port 541fda5fc8 to glitch-soc
2019-04-22 20:15:47 +02:00
Thibaut Girka 619d55358f Shift+click on column Back button to return to last pinable column 2019-04-17 18:40:40 +02:00
Thibaut Girka a4db307b6a When selecting a toot via keyboard, ensure it is scrolled into view 2019-04-17 10:07:33 +02:00
Thibaut Girka ae88690fa6 Fix opening/closing gifv sometimes making the timeline scroll 2019-04-16 22:20:23 +02:00
ThibG 3964cc964d Merge pull request #981 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
2019-04-04 15:13:18 +02:00
ThibG 729b3841c3 [Glitch] Update poll remaining time just like with status timestamps
Port 6e024f0d7a to glitch-soc
2019-04-04 14:58:11 +02:00
Thibaut Girka b83e693c40 Do not handle clicks in detailed status content 2019-04-03 19:58:18 +02:00
ThibG 5ca976c776 [Glitch] Add a “Block & Report” button to the block confirmation dialog
Port 36a6089a22 to glitch-soc
2019-03-26 17:44:00 +01:00
Eugen Rochko f6767a00d4 [Glitch] Add `lang` attribute to statuses in web UI
Port JS changes from 0e730974cd to glitch-soc
2019-03-26 16:09:59 +01:00
ThibG 5c8d15326f [Glitch] Add support for custom emojis in poll options
Fixes #956

Port 2a211ff18c to glitch-soc
2019-03-20 17:34:32 +01:00
ThibG 0381a07606 [Glitch] Add UI for enabling/disabling poll notifications 2019-03-13 22:21:52 +01:00
Thibaut Girka 043978a20e Remove leftover console.log 2019-03-11 14:39:45 +01:00
ThibG 91045bef61 Merge pull request #953 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
2019-03-11 13:23:54 +01:00
Thibaut Girka 3a7fb657f3 [Glitch] Add support for poll ending notifications
Port front-end parts of 11ce444b8b to glitch-soc
2019-03-11 13:08:21 +01:00
ash lea 00bc35891b add local setting to auto reveal media behind cw 2019-03-11 12:14:45 +01:00
Eugen Rochko b9a799c343 [Glitch] Fix NaN in Poll component
Port 19cccea89a to glitch-soc
2019-03-08 01:01:19 +01:00
ThibG 6b4eb1ac96 [Glitch] Disable the underlying button element when an ItemButton is disabled
Port 365f875f57 to glitch-soc
2019-03-06 22:40:17 +01:00