Sasha Sorokin
042c32ea3b
[Glitch] Replace repetitive blurhash code with component ( #14267 )
...
Port 61c07c3731
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-10 16:59:53 +02:00
Thibaut Girka
5054462759
Merge branch 'master' into glitch-soc/merge-upstream
2020-07-10 16:51:51 +02:00
ThibG
a2abe35e0f
Audio player visualization improvements ( #14281 )
...
* Fix audio player ticks position
* Split visualizer code into own file to comply with license
* Change top-left corner of visualizer always showing peaks, clean up code
2020-07-10 13:57:05 +02:00
Eugen Rochko
a78b87d800
Add attribution notice to the audio player component ( #14280 )
...
The code for rendering a frequency graph around a circle has been adopted (with modifications) from a CodePen by Alex Permyakov
2020-07-10 12:25:44 +02:00
Thibaut Girka
d42a23fdbe
Fix clicking the audio player also opening toots in detailed view
2020-07-10 10:28:05 +02:00
Sasha Sorokin
3ef94c0044
Improve safety of Blurhash component ( #14278 )
...
There was a missed empty hash check. As well as rendering is now wrapped
in try/catch block, so app won't crash if any Blurhash component fails
to render its contents as it's not that critical.
2020-07-09 22:32:36 +02:00
ThibG
6fda3cbbeb
Freeze scroll position when a dropdown menu is open in the TL ( #14271 )
...
* Freeze scroll position when a dropdown menu is open in the TL
* Apply this to direct TL as well
* Fix case when mouse leaves the menu
2020-07-09 15:09:19 +02:00
Sasha Sorokin
61c07c3731
Replace repetitive blurhash code with component ( #14267 )
...
This commit replaces all unnecessarily repeated code for decoding and
embedding blurhash canvases with separate component - <Blurhash>.
Under the hood Blurhash component will use effect dependent on its
props. This gives a few benefits: it will only be re-rendered whenever
the hash or width/height/dummy props update, and will not render if
canvas won't get to the final DOM, because then effect won't fire,
which prevents weird bugs like #14257 .
2020-07-09 13:01:30 +02:00
Eugen Rochko
5b7a93b02c
Fix videos on public pages not using custom thumbnails ( #14273 )
2020-07-09 12:53:16 +02:00
Thibaut Girka
0fe5deae89
Change styling of account note editing buttons
...
Co-Authored-By: Mélanie Chauvel (ariasuni) <perso@hack-libre.org>
2020-07-09 12:19:43 +02:00
mayaeh
fbbec3fc0b
remove unused word. ( #14250 )
...
ran `yarn manage:translations en`
2020-07-08 23:53:56 +02:00
ThibG
11446be6d1
[Glitch] Fix new accent color not refreshing when changing thumbnail for audio uploads
...
Port 0d2135a461
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-08 15:26:28 +02:00
ThibG
b27eecdbfc
[Glitch] Fix WebUI crash on sensitive preview card with no preview thumbnail
...
Port d308a863fb
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-08 15:26:02 +02:00
ThibG
a513997367
[Glitch] Fix WebUI crash on sensitive preview card with no preview thumbnail
...
Port 2581715491
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-08 15:25:31 +02:00
Thibaut Girka
de938023ab
Merge branch 'master' into glitch-soc/merge-upstream
2020-07-08 15:23:41 +02:00
ThibG
0d2135a461
Fix new accent color not refreshing when changing thumbnail for audio uploads ( #14264 )
2020-07-08 14:54:47 +02:00
ThibG
d308a863fb
Fix WebUI crash on sensitive preview card with no preview thumbnail ( #14261 )
...
Follow-up on #14260 which only fixed half the call sites
2020-07-08 12:58:17 +02:00
ThibG
2581715491
Fix WebUI crash on sensitive preview card with no preview thumbnail ( #14260 )
...
Fixes #14257
2020-07-08 09:22:23 +02:00
ThibG
4acb7efb4b
Merge pull request #1372 from ThibG/glitch-soc/fixes/local-only-public-option
...
Add option to show local-only toots in public timeline
2020-07-07 19:58:12 +02:00
Thibaut Girka
64b6c20676
Change styling and layout of account notes UI
2020-07-07 19:25:42 +02:00
Thibaut Girka
a9b13804e2
Change account note placeholder name since the design has diverged upstream
2020-07-07 19:25:42 +02:00
Thibaut Girka
170b38c3f4
Fix being unable to add account notes
2020-07-07 19:25:42 +02:00
Sasha Sorokin
a3ac322ded
[Glitch] Replace shortNumberFormat with <ShortNumber>
...
Port cb2adaaf9d
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-07 19:25:06 +02:00
Eugen Rochko
6c7ac1b48f
[Glitch] Add ability to choose media thumbnail in web UI
...
Port 06fc6a9cd4
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-07 15:58:49 +02:00
ThibG
8b17d47e12
[Glitch] Fix hashtag column options styling
...
Port a783bdf4ad
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-07 15:58:49 +02:00
Thibaut Girka
e9ad99bc93
Merge branch 'master' into glitch-soc/merge-upstream
...
Conflicts:
- `package.json`:
Not really a conflict, just some glitch-soc-specific dependency
too close to an upstream-updated one.
2020-07-07 15:58:45 +02:00
Eugen Rochko
6e25574ce5
Fix media attachments enumeration ( #14254 )
...
* Fix media attachment enumeration
* Switch media_attachments id to snowflake ids
Co-authored-by: Thibaut Girka <thib@sitedethib.com>
2020-07-07 15:26:51 +02:00
Eugen Rochko
844870273f
Fix other sessions not being logged out on password change ( #14252 )
...
While OAuth tokens were immediately revoked, accessing the home
controller immediately generated new OAuth tokens and "revived"
the session due to a combination of using remember_me tokens and
overwriting the `authenticate_user!` method
2020-07-07 15:26:31 +02:00
Sasha Sorokin
1c903c7ad6
Fix account note border radius ( #14251 )
2020-07-07 13:46:21 +02:00
Eugen Rochko
06fc6a9cd4
Add ability to choose media thumbnail in web UI ( #14244 )
2020-07-07 12:14:19 +02:00
Eugen Rochko
ed04697510
Change User-Agent of link preview fetching service to include "Bot" ( #14248 )
...
This forces Twitter to render OpenGraph tags in the response
2020-07-07 10:55:18 +02:00
ThibG
a783bdf4ad
Fix hashtag column options styling ( #14247 )
...
* Enable nonces for stylesheets
* Pass nonce to react-select
2020-07-07 01:33:38 +02:00
Eugen Rochko
c3187411c2
Change design of account notes in web UI ( #14208 )
...
* Change design of account notes in web UI
* Fix `for` -> `htmlFor`
2020-07-07 01:24:03 +02:00
Thibaut Girka
13db302f6e
Fix vanilla flavour too
2020-07-06 21:13:04 +02:00
Thibaut Girka
d973e11061
Add UI option to show local-only toots in public timeline
2020-07-06 21:12:06 +02:00
Sasha Sorokin
cb2adaaf9d
Replace shortNumberFormat with <ShortNumber> ( #14061 )
...
This commit introduces new utility component - ShortNumber. It should
work almost the same way as original shortNumberFormat function,
though it also localizes units and accepts one more prop - renderer.
Renderer is a function that takes rendered short formatted number
and also ready-to-pluralize number to format display result accordingly.
Ready-to-pluralize number allows to correctly select plural for
compactly notated numbers, respecting thousands and other units.
Issue #12451 accurately describes the issue with using raw numbers
when replacing counter with short version. In short, it doesn't work
with languages such as Russian, that require different plurals,
according to the unit number was compacted to.
All previous usages of shortNumberFormat were replaced with new
function, and as it became unused, it was removed to avoid misleading.
2020-07-06 14:27:32 +02:00
mayaeh
c4f47f59cf
Fix restored words from "toot" to "status" ( #14242 )
2020-07-06 12:17:33 +02:00
Eugen Rochko
69cddc3909
[Glitch] Add color extraction for audio thumbnails
...
Port 99f3a55540
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-05 20:18:51 +02:00
Eugen Rochko
ad73e05f46
[Glitch] Fix audio modals not using blurhash and poster
...
Port 162adf61f2
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-05 20:18:51 +02:00
Thibaut Girka
2d8be0a6e1
Merge branch 'master' into glitch-soc/merge-upstream
...
Conflicts:
- `.env.production.sample`:
Upstream changed it completely.
Changed ours to merge upstream's new structure, but
keeping most of the information.
2020-07-05 19:35:56 +02:00
Eugen Rochko
99f3a55540
Add color extraction for audio thumbnails ( #14209 )
2020-07-05 18:28:25 +02:00
mayaeh
6e399b9df9
Fix-up #13749 ( #14204 )
2020-07-03 13:26:35 +02:00
Eugen Rochko
9b3677d509
[Glitch] Add customizable thumbnails for audio and video attachments
...
Port 64aac30733
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-02 17:31:09 +02:00
Eugen Rochko
8999eea707
[Glitch] Fix various issues around OpenGraph representation of media
...
Port audio player changes from 662a49dc3f
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-02 17:31:09 +02:00
Eugen Rochko
06309129be
[Glitch] Fix audio/video/images/cards not reacting to window resizes in web UI
...
Port bb9ca8a587
to glitch-soc
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-02 17:31:09 +02:00
Eugen Rochko
1c58420831
[Glitch] Change volume control and download buttons in web UI
...
Port 419ad6248b
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-02 17:31:09 +02:00
ThibG
1ad79d11f3
[Glitch] Fix audio player not working when media files are hosted on a different domain
...
Port aaf91abffa
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-02 17:31:09 +02:00
Eugen Rochko
ad978ab1d4
[Glitch] Change design of audio players in web UI
...
Port 75a2b8f815
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-02 17:31:09 +02:00
Eugen Rochko
162adf61f2
Fix audio modals not using blurhash and poster ( #14199 )
2020-07-02 16:27:35 +02:00
Takeshi Umeda
1c8eb9bcf7
[Glitch] Fix the conditions for incomplete remote content
...
Port 7548a474a5
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2020-07-02 13:58:50 +02:00