Nolan Lawson
26a036259e
chore: update standard ( #1466 )
2019-09-07 20:27:47 -07:00
Nolan Lawson
ebd10a43d2
perf: fetch lists from database on page load ( #1450 )
...
* perf: fetch lists from database on page load
follow-up to #1448 , I would like for there not to be a flash on the /community page where the lists suddenly load in, but I would still like to avoid the network request if possible. So when the page first loads, we can load the lists from the database and only fetch them from the network if not in the cache.
* add comment
2019-08-29 18:41:36 -07:00
Nolan Lawson
56f266cb93
perf: terminate tesseract worker after a delay ( #1449 )
...
fixes #1447
2019-08-29 08:51:41 -07:00
Nolan Lawson
c8738f17b0
fix: add progress bar for OCR ( #1444 )
2019-08-27 23:23:35 -07:00
Nolan Lawson
e2c137b2ef
fix: prefer local file URLs for OCR ( #1436 )
2019-08-25 21:48:59 -07:00
Nolan Lawson
ca9a32d303
feat: add OCR for image descriptions using tesseract.js ( #1433 )
...
* feat: add OCR for image descriptions using tesseract.js
* tweak style of alt editor
* remove unnecessary files
2019-08-25 18:33:44 -07:00
Nolan Lawson
8c6a701d6f
fix: ensure "disable blurhash" setting is honored ( #1422 )
...
* fix: ensure "disable blurhash" setting is honored
fixes #1421
* remove play button for audio/video
2019-08-22 09:09:21 -07:00
Nolan Lawson
4232da5e33
fix: fix lint
2019-08-19 20:23:58 -07:00
Nolan Lawson
c98b96aa44
fix: move worker-loader to webpack config ( #1405 )
...
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 ( #1403 )
...
* perf: call revokeObjectURL() on stale blurhash blob URLs
fixes #1402
* add a test
* add comment
2019-08-18 15:15:13 -07:00
Nolan Lawson
03dff1c595
fix: remove firefox UA sniff for img.decode ( #1393 )
...
fixes #1388
2019-08-17 15:35:43 -07:00
Nolan Lawson
f8180e813f
fix: move blurhash worker operations to before status rendering ( #1391 )
...
* 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
Sorin Davidoi
77bb784efd
feat(media): Blurhash ( #1381 )
...
* 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
ea58242b85
fix: fix malformed URLs in statuses ( #1385 )
...
fixes #1384
2019-08-11 11:09:51 -07:00
Nolan Lawson
b2d7fad435
perf: only update draggable x/y state at end of drag ( #1379 )
...
* 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
87bab8662c
perf: use requestPostAnimationFrame to reduce layout thrashing ( #1376 )
2019-08-07 09:11:34 -07:00
Nolan Lawson
d58ab52a09
fix: improve focal points draggable style/perf ( #1371 )
...
* 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 ( #1370 )
2019-08-03 13:49:37 -07:00
Nolan Lawson
467eb85209
fix: simplify window.matchMedia ( #1359 )
...
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 ( #1358 )
...
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 ( #1357 )
...
* fix: fix Firefox img.decode bug
Fixes #1344
* fix error
2019-07-23 20:33:22 -07:00
Nolan Lawson
7628eeed66
fix: fix grayscale wellness setting in dark mode ( #1351 )
2019-07-21 18:21:35 -07:00
Nolan Lawson
4d098d6b46
fix: fix streaming gap ( #1349 )
2019-07-21 15:31:26 -07:00
Nolan Lawson
6fafe19454
fix: fix html style of glitch-soc markdown content ( #1350 )
2019-07-21 15:31:17 -07:00
Nolan Lawson
68343a7a09
fix: use pure CSS for focus effect ( #1323 )
...
* fix: use pure CSS for focus effect
fixes #1322
* apply elsewhere too
* fix comment
2019-07-08 09:42:45 -07:00
Nolan Lawson
8615c6e4fd
fix: add warnings when click delegates return non-booleans ( #1319 )
2019-07-07 18:26:06 -07:00
Nolan Lawson
7fd6cdc22c
fix: fix event propagation for click delegates ( #1317 )
...
fixes #1316
2019-07-07 17:32:50 -07:00
Nolan Lawson
b26ec958a5
fix: fix return focus on keyboard-clicking media ( #1306 )
...
fixes #1305
2019-07-07 12:09:29 -07:00
Nolan Lawson
19566bda2e
fix: use focusin/focusout instead of custom events ( #1308 )
2019-07-07 11:43:35 -07:00
Nolan Lawson
85b75900c1
feat: add ability to set focal points for media ( #1303 )
...
* feat: add ability to set focal points for media
fixes #739
* fix tests
* actually fix tests
* really really fix tests
* really really really fix tests pinkie swear
2019-07-07 00:14:19 -07:00
Nolan Lawson
58a8772edc
perf: lazy-load the ComposeBox ( #1262 )
2019-06-01 17:01:50 -07:00
Nolan Lawson
74230cfe8e
fix: fix service worker for real ( #1258 )
...
fixes #1243
2019-06-01 13:07:38 -07:00
Nolan Lawson
a35f5ee2d9
feat: implement wellness settings ( #1256 )
...
* implement wellness settings
fixes #1192
Adds
- grayscale mode (as well as separate grayscale/dark grayscale
themes)
- disable follower/boost/fav counts (follower counts capped at 10)
- disable unread notification count (red dot)
* fix lint
* fix crawler
2019-06-01 13:07:31 -07:00
Nolan Lawson
27864fc47f
fix: Revert "fix: no need for double reload of SW in Chrome ( #1251 )" ( #1257 )
...
This reverts commit fa2eb8fe52
.
2019-06-01 12:17:12 -07:00
Nolan Lawson
fa2eb8fe52
fix: no need for double reload of SW in Chrome ( #1251 )
...
fixes #1243
2019-05-28 08:18:11 -07:00
Nolan Lawson
692e8b57c3
fix: separate "inline theme" from "default theme" ( #1216 )
2019-05-25 08:19:11 -07:00
Nolan Lawson
70da9a92a6
fix: close/open websocket on freeze/resume events ( #1195 )
...
* fix: close/open websocket on freeze/resume events
attempt to address #14
* fix unit tests
2019-05-08 19:58:32 -07:00
Nolan Lawson
0887196db4
feat: add snackbar alert with refresh button ( #1193 )
...
* feat: add snackbar alert with refresh button
fixes #77
* fixup
* change refresh to reload
2019-05-08 07:52:12 -07:00
Nolan Lawson
de220e7262
fix: throttle XHRs from autosuggest ( #1190 )
...
* fix: throttle XHRs from autosuggest
* throttle and abort properly
* add comment
* fix xhr bug
2019-05-06 20:29:43 -07:00
Nolan Lawson
8d0db2c97c
fix: make autosuggestion accessible ( #1183 )
...
* fix: make autosuggestion accessible
fixes #129
* remove tabindexes, fix aria-hidden
2019-05-05 22:08:54 -07:00
Nolan Lawson
23bdc6c87e
feat: implement notification filters (all vs mentions) ( #1177 )
...
fixes #1176
2019-05-04 17:58:44 -07:00
Nolan Lawson
f758e12b24
fix: replace indexWhere with findIndex ( #1125 )
2019-03-31 09:21:57 -07:00
Nolan Lawson
47255e818c
fix: fix aria-labels for pleroma ( #1113 )
2019-03-22 15:55:28 -07:00
Nolan Lawson
c896836ce8
fix: fix spaces in status aria-labels ( #1111 )
...
fixes #1108
2019-03-21 14:38:37 -07:00
Nolan Lawson
f0af8178af
feat: implement "." keyboard shortcut ( #1105 )
...
fixes #1052
2019-03-18 09:09:24 -07:00
Nolan Lawson
c0918ccdc3
fix: fix pleroma snowflake IDs for real ( #1084 )
...
fixes #1082
2019-03-05 20:25:10 -08:00
Will Pearson
8665a18ac0
fix: Fix reversed base62 encoding ( #1083 )
2019-03-05 20:03:55 -08:00
Nolan Lawson
93a3e85994
fix: use correct sorting for snowflake IDs ( #1074 )
...
* fix: use correct sorting for snowflake IDs
fixes #1071
* refactor
2019-03-03 17:21:22 -08:00
Nolan Lawson
7e5f58b969
refactor: use timeline item summaries instead of ids ( #1072 )
...
As described in https://github.com/nolanlawson/pinafore/issues/369#issuecomment-467211908 this is the first step toward fixing #369
2019-03-03 13:24:55 -08:00
Nolan Lawson
b14f818e81
perf: build url regex in advance ( #1069 )
...
* perf: build url regex in advance
* update comment
* better regex stringification
2019-03-02 22:02:59 -08:00