Commit graph

1732 commits

Author SHA1 Message Date
Sorin Davidoi 823a7abebf fix(workers/blurhash): Don't use OffscreenCanvas () 2019-08-18 05:14:11 -07:00
Nolan Lawson 03dff1c595
fix: remove firefox UA sniff for img.decode ()
fixes 
2019-08-17 15:35:43 -07:00
Nolan Lawson f25c93526c
fix: rename "hide all media by default" () 2019-08-17 15:35:38 -07:00
Nolan Lawson be3b5eb9d9
fix: reduce number of blurhash performance measures () 2019-08-17 15:35:31 -07:00
Nolan Lawson 2c2ea6325c
chore(package): update now to v16 () 2019-08-17 14:36:21 -07:00
Nolan Lawson f8180e813f
fix: move blurhash worker operations to before status rendering ()
* fix: move blurhash worker operations to before status rendering

* slight refactor

* avoid sending encoded data back and forth

* move cache outside worker
2019-08-17 14:36:13 -07:00
Nolan Lawson daa1978945
fix: tweak position of sensitive media button in blurhash mode () 2019-08-17 14:36:07 -07:00
Nolan Lawson aca1067568
fix: tweak colors for blurhash sensitive media button/text () 2019-08-17 14:33:57 -07:00
Sorin Davidoi 77bb784efd feat(media): Blurhash ()
* chore(npm): Install blurhash

* feat(media): Show blurhash

* fix(media/blurhash): Better sensitive video handling

* feat(media): Preference for using blurhash

* chore(utils/blurhash): Add performance marks

* fix(utils/blurhash): Performance marks

* fix(utils/blurhash): Use correct dimension

* refactor(utils/blurhash): Use constant for number of pixels

* refactor(media): Simplify logic for displaying blurhash

* chore(tests/spec): Attempt to adjust sensitivity tests for blurhash

* chore(tests/spec): Update sensitivity tests for blurhash

* chore(tests/spec): Check for sensitive

* fix(media/blurhash): Handle videos

* fix: Video handling

* fix: Videos

* minor refactoring, fix Svelte warning

* fix: Large inline images and videos

* feat(settings): Rename blurhash setting

* refactor: Use toBlob, block media rendering until blurhash ready

* refactor: Move computations to Web Worker

* fix(workers/blurhash): More error handling

* feat(workers/blurhash): Use quick-lru for caching

* fix: Don't create Context2D needlessly

* fix(workers/blurhash): Increase cache size to 100

* fix(workers/blurhash): Don't resolve promise twice

* fix(utils/decode-image): Ignore data URLs

Throws exception which prevents the image from loading.
2019-08-17 10:54:45 -07:00
Nolan Lawson d52049cca5 1.11.8 2019-08-11 11:27:14 -07:00
Nolan Lawson ea58242b85
fix: fix malformed URLs in statuses ()
fixes 
2019-08-11 11:09:51 -07:00
Nolan Lawson c5e2eeee2d
perf: fix potential memory leak in IntersectionObserver () 2019-08-11 11:09:43 -07:00
Sorin Davidoi 66b247875f fix(service-worker): Open notifications if no status ()
* fix(service-worker): Open notifications if no status

If the notifications couldn't be fetched fallback to displaying all notifications (aligned with how the Mastodon Web UI [handles it](https://github.com/tootsuite/mastodon/blob/master/app/javascript/mastodon/service_worker/web_push_notifications.js#L118)).

Might fix https://github.com/nolanlawson/pinafore/issues/1365.

* fix(service-worker): Use self
2019-08-07 20:38:38 -07:00
Nolan Lawson b2d7fad435
perf: only update draggable x/y state at end of drag ()
* perf: only update draggable x/y state at end of drag

This is more intelligent and more performant than using requestIdleCallback willy-nilly. We can just update the store when the user is actually done dragging the button.

* remove console.log

* consistent syntax
2019-08-07 20:38:01 -07:00
Nolan Lawson a5f68aa45c
fix: make focal point button a bit larger ()
* fix: make focal point button a bit larger

* make it a tad smaller
2019-08-07 09:11:52 -07:00
Nolan Lawson 87bab8662c
perf: use requestPostAnimationFrame to reduce layout thrashing () 2019-08-07 09:11:34 -07:00
Nolan Lawson 98e02cf650
perf: avoid measureText() where possible () 2019-08-07 09:11:15 -07:00
Nolan Lawson 774210f776 1.11.7 2019-08-04 21:31:57 -07:00
Nolan Lawson 530fad2079
chore: update yarn () 2019-08-04 21:31:30 -07:00
Nolan Lawson d58ab52a09
fix: improve focal points draggable style/perf ()
* fix: improve focal points draggable style/perf

* remove unnecessary global

* fix all the things

* fix comment
2019-08-04 13:31:51 -07:00
Nolan Lawson 00945a3608
chore: update standard to v13 () 2019-08-03 13:49:37 -07:00
Nolan Lawson b034b60145
chore: update webpack to 4.39.1 () 2019-08-03 12:02:18 -07:00
Nolan Lawson 000d725240
perf: do preconnect instead of prefetch for instance () 2019-08-03 12:02:06 -07:00
Nolan Lawson c1b8a99dbe
perf: put apple touch icon in service worker cache () 2019-08-01 18:12:22 -07:00
Nolan Lawson ad49831f97 1.11.6 2019-07-30 18:33:42 -07:00
Nolan Lawson 59bdd0bb77
fix: large streaming gaps by refetching ()
fixes 
2019-07-28 19:38:34 -07:00
Nolan Lawson cc4f6a4db6 1.11.5 2019-07-24 20:01:27 -07:00
Nolan Lawson 467eb85209
fix: simplify window.matchMedia ()
There is really no reason to call window.matchMedia instead of just matchMedia.
2019-07-23 20:33:40 -07:00
Nolan Lawson 6c58052684
fix: remove unnecessary function cache ()
This is just a bit of code cleanup; I think this cache logic is excessive
2019-07-23 20:33:31 -07:00
Nolan Lawson fbcac6d3e4
fix: fix Firefox img.decode bug ()
* fix: fix Firefox img.decode bug

Fixes 

* fix error
2019-07-23 20:33:22 -07:00
Nolan Lawson 1a53ad3fe4
fix: fix bugs in streaming gap () 2019-07-22 07:43:36 -07:00
Nolan Lawson 734d1d7bbd
fix: fix useless nav-indicator-key attribute () 2019-07-21 19:31:19 -07:00
Nolan Lawson 7628eeed66
fix: fix grayscale wellness setting in dark mode () 2019-07-21 18:21:35 -07:00
Nolan Lawson 4d098d6b46
fix: fix streaming gap () 2019-07-21 15:31:26 -07:00
Nolan Lawson 6fafe19454
fix: fix html style of glitch-soc markdown content () 2019-07-21 15:31:17 -07:00
Louise de Beaufort 53f0fdf1a8 fix: Fix the style of blockquotes, ul and li in toots ()
* Fix the style of blockquotes, ul and li in toots

* fixup based on review comments

fixes 
2019-07-21 15:31:05 -07:00
Nolan Lawson cf52b9efc2 1.11.4 2019-07-20 08:17:12 -07:00
Nolan Lawson 2d8b61e589
fix: only apply custom scrollbars to root scroller () 2019-07-19 20:08:33 -07:00
Nolan Lawson fa57608056
fix: improve style of report dialog () 2019-07-19 20:08:26 -07:00
Nolan Lawson 95a68e1fe2
fix: delete-and-redraft preserves polls ()
* fix: delete-and-redraft preserves polls

fixes 

* fix test
2019-07-19 20:08:17 -07:00
Louise de Beaufort e5df77b2a8 fix: Use unformatted status content in deleteAndRedraft ()
* Use unformatted status content in deleteAndRedraft

* deleteStatus always returns an object even when the deletion fails

* throw error

fixes 
2019-07-19 08:09:52 -07:00
Nolan Lawson a6235ded8c
fix: fix autosizing of delete/redraft ()
fixes 
2019-07-17 21:34:53 -07:00
Nolan Lawson a16bc30f21
fix: tweak spinner animation ()
I think it looks better if it looks like the dots are growing or
shrinking rather than the whole thing spinning.
2019-07-17 21:34:45 -07:00
Nolan Lawson 015fe0080c
fix: limit search results from 40 to 5 ()
40 is too much, also this aligns us with the Mastodon frontend UI.
2019-07-17 21:34:37 -07:00
Nolan Lawson a72dec0a98
chore: update webpack to 4.36.0, update sub-deps ()
* chore: update webpack to 4.36.0

* chore: update yarn sub-dependencies
2019-07-17 18:56:31 -07:00
Nolan Lawson db2712b8d7 1.11.3 2019-07-08 20:51:49 -07:00
Nolan Lawson 48f7c64c6c
test: re-enable skipped tests, use quarantine mode () 2019-07-08 20:51:30 -07:00
Nolan Lawson 0e2479559b
fix: correctly parse hostname for instance block () 2019-07-08 20:51:17 -07:00
Nolan Lawson 6b40b2efbf
fix: add instance blocks ()
* fix: add instance blocks

* block domains, not just instances
2019-07-08 19:26:44 -07:00
Nolan Lawson ade28cca5d
fix: remove useless noop methods () 2019-07-08 19:26:37 -07:00