Commit graph

2307 commits

Author SHA1 Message Date
Nolan Lawson 59d26f1a09
feat: add length gauge for media alt text editor ()
* feat: add length gauge for media alt text editor

* fix test
2019-08-24 21:23:43 -07:00
Nolan Lawson 7f9195c2af
feat: combine alt/focal point into single "media edit" dialog ()
* feat: combine alt/focal point into single "media edit" dialog

* resize text automatically
2019-08-24 19:28:12 -07:00
Nolan Lawson 7b32c71c93
fix: reset websocket on online/offline/active events ()
* fix: reset websocket on online/offline/active events

* minor fixup

* add comments
2019-08-24 13:33:57 -07:00
Nolan Lawson 88ab0b929c
fix: improve style of "large inline" media () 2019-08-24 10:43:50 -07:00
Nolan Lawson b7c97118e2
chore: update travis to ubuntu bionic ()
* chore: update travis to ubuntu xenial/bionic

* fix apt packages

* try again

* fixup

* fixup

* fixup

* fixup

* fixup

* simplify to test

* fixup

* fixup

* add stuff back

* add chrome

* fix config

* fixup

* fix build script
2019-08-23 20:46:21 -07:00
Sorin Davidoi da668c5330 fix(components/media): Handle autoplay with blurhash ()
Closes https://github.com/nolanlawson/pinafore/issues/1424.
2019-08-23 07:13:25 -07:00
Nolan Lawson 7188454790
perf: use more efficient CSS selectors for inline media () 2019-08-22 09:10:02 -07:00
Nolan Lawson 8c6a701d6f
fix: ensure "disable blurhash" setting is honored ()
* fix: ensure "disable blurhash" setting is honored

fixes 

* remove play button for audio/video
2019-08-22 09:09:21 -07:00
Nolan Lawson dd625b80a0
fix: remove unused nCols computation () 2019-08-21 23:26:16 -07:00
sgenoud ada6b9f699 fix: Fix the blurhash alignment and general style ()
* Fix the blurhash alignment issue

* Fix the video blurhash style
2019-08-21 22:31:14 -07:00
Nolan Lawson 43cb92bd61
test: add test for measureText () 2019-08-20 09:20:39 -07:00
Nolan Lawson 29ae7f4988
chore(package): update yarn.lock () 2019-08-20 08:13:34 -07:00
Nolan Lawson f80ca32478
perf: be more consistent about compose input scheduling () 2019-08-20 08:08:15 -07:00
Nolan Lawson cccbfd70da
perf: improve input responsiveness in compose input ()
* perf: improve input responsiveness in compose input

* remove some unused code from autosize.js

* remove some more unused code
2019-08-19 21:37:11 -07:00
Nolan Lawson 4232da5e33 fix: fix lint 2019-08-19 20:23:58 -07:00
greenkeeper[bot] 8caa0c08c3 chore(package): update standard to version 14.0.0 2019-08-19 20:23:58 -07:00
Nolan Lawson 5c9416b7fa
fix: fix blurhash for reblogged images ()
fixes 
2019-08-19 20:23:05 -07:00
Sorin Davidoi acb134e518 fix(components/media): Handling of grouped videos ()
* fix(components/media): Handling of grouped videos

Fixes 

* fix(status/media): Wrap in a div
2019-08-19 19:01:35 -07:00
Nolan Lawson a895abe2c9
chore: update deps () 2019-08-19 07:49:00 -07:00
Nolan Lawson 1002f8af92
chore: update test deps () 2019-08-18 23:13:40 -07:00
Nolan Lawson 27c6b3018f
chore: update some webpack deps () 2019-08-18 23:13:34 -07:00
Nolan Lawson c98b96aa44
fix: move worker-loader to webpack config ()
This avoids ESLint complaining about the `worker-loader!` declaration
2019-08-18 15:15:20 -07:00
Nolan Lawson 009a511c80
perf: call revokeObjectURL() on stale blurhash blob URLs ()
* perf: call revokeObjectURL() on stale blurhash blob URLs

fixes 

* add a test

* add comment
2019-08-18 15:15:13 -07:00
Sorin Davidoi c127d0a6bc feat(settings): Increase clickable area () 2019-08-18 12:29:36 -07:00
Sorin Davidoi 94cf7df954 fix(components/media): Autoplay and blurhash ()
Fixes https://github.com/nolanlawson/pinafore/issues/1399.
2019-08-18 10:29:03 -07:00
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