Commit graph

674 commits

Author SHA1 Message Date
Manav Rathi 0603f8ffb9
Extract 2024-04-25 12:15:09 +05:30
Manav Rathi 79d26173a4
Inline 2024-04-25 12:07:14 +05:30
Manav Rathi f5ef478a90
Propogate last modified time
It should've also been possible to use the regular Last-Modified HTTP header,
however that'd have caused a potential loss of precsion if I correctly
understand the string format that we'll need to use.

Refs:
- https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString
- https://nodejs.org/api/fs.html#class-fsstats
2024-04-25 11:46:04 +05:30
Manav Rathi e8e53b2ca5
Prepare for inlining 2024-04-25 11:15:42 +05:30
Manav Rathi 420f52f78f
Live photos too 2024-04-25 10:31:30 +05:30
Manav Rathi 476d8de72a
Wrap 2024-04-25 10:16:16 +05:30
Manav Rathi 5324d805c6
Rejig type 2024-04-25 09:56:25 +05:30
Manav Rathi 2e7b12ad29
Agenda and rearrange 2024-04-25 09:21:18 +05:30
Manav Rathi 7f3d9690c0
exactType => extension 2024-04-24 22:02:46 +05:30
Manav Rathi e03a0a09d4
lowercase extension 2024-04-24 21:28:30 +05:30
Manav Rathi 34d44f599d
Cleanup 2024-04-24 21:12:56 +05:30
Manav Rathi 852fc7830f
Document 2024-04-24 21:05:09 +05:30
Manav Rathi 5c07751c8c
Rename 2024-04-24 20:59:30 +05:30
Manav Rathi 1106393045
Inline 2024-04-24 20:54:56 +05:30
Manav Rathi d05ca58f57
Move to correct package 2024-04-24 20:46:36 +05:30
Manav Rathi af79db90d0
Doesn't work for us yet
Current version throws
    Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
    Webpack supports "data:" and "file:" URIs by default.
    You may need an additional plugin to handle "node:" URIs.

See: https://github.com/sindresorhus/file-type/issues/502

There are ways around by using polyfills, e.g.
- https://stackoverflow.com/questions/76500464/issues-while-using-gradio-client-in-next-js/76522223#76522223
- https://github.com/vercel/next.js/discussions/33982

but since no functional changes in the detection that impact us have been made,
stay back at the old version for now.
2024-04-24 18:44:09 +05:30
Manav Rathi 38e18f29bd
Update file-type dependency and move it to its correct package.json
Refs:
- https://github.com/sindresorhus/file-type/releases/tag/v17.0.0

Went through the release notes since v16 to check that none of the MIME types we
care about have changed.
2024-04-24 18:27:30 +05:30
Manav Rathi f3c798148c
type-detect 2024-04-24 18:06:52 +05:30
Manav Rathi 319fe0fb71
Rename 2024-04-24 16:21:58 +05:30
Manav Rathi 2a8417af1c
Rename 2024-04-24 16:18:36 +05:30
Manav Rathi 81c729a405
Inline 2024-04-24 16:18:01 +05:30
Manav Rathi 6f6ade1901
Inline 2024-04-24 16:14:10 +05:30
Manav Rathi 2b82c61853
Inline 2024-04-24 16:08:57 +05:30
Manav Rathi e217635a1b
Remove linkage 2024-04-24 16:07:28 +05:30
Manav Rathi 105157c164
Shout less 2024-04-24 15:55:55 +05:30
Neeraj Gupta a5dfc97035 [web][cast] disable cast stop 2024-04-24 15:41:18 +05:30
Manav Rathi e5545e9c80
Make tsc happy to allow builds to complete 2024-04-24 15:16:46 +05:30
Manav Rathi e0975130b6
More context from Discord 2024-04-24 15:10:15 +05:30
Manav Rathi 80802d44e3
Better log 2024-04-24 14:55:41 +05:30
Manav Rathi f32a396b36
Fix video thumbnailing (the .jpeg extension is required) 2024-04-24 14:37:14 +05:30
Manav Rathi 5f146aa597
Fix 2024-04-24 13:45:56 +05:30
Manav Rathi 7dba4c0af4
Fix 2024-04-24 13:41:35 +05:30
Manav Rathi a08df9a839
Clarification after asking in Discord 2024-04-24 13:36:10 +05:30
Manav Rathi 9de8a3d40a
Fixes 2024-04-24 13:19:37 +05:30
Manav Rathi e919dfd09d
Scope 2024-04-24 13:08:54 +05:30
Manav Rathi c486919547
Reuse 2024-04-24 13:06:11 +05:30
Manav Rathi 0566d2ee93
Spruce 2024-04-24 13:01:53 +05:30
Manav Rathi 51a1c77720
Get to a mergeable state 2024-04-24 12:50:55 +05:30
Manav Rathi d96f710d6d
Prune 2024-04-24 12:35:27 +05:30
Manav Rathi 239688b7d8
Remove potentially dangerous wip forks 2024-04-24 12:27:33 +05:30
Manav Rathi 06dbf5fb06
Phasal types 2024-04-24 12:21:52 +05:30
Manav Rathi 58b1c4b489
Doodle 2024-04-24 11:49:58 +05:30
Manav Rathi cb0b549027
Rename 2024-04-24 11:42:35 +05:30
Manav Rathi 00c0780de1
Reorder 2024-04-24 11:40:35 +05:30
Manav Rathi feb59b00d2
Move 2024-04-24 11:36:34 +05:30
Manav Rathi e490f194e7
Line 2024-04-24 11:31:16 +05:30
Manav Rathi 58d2670171
Prune 2024-04-24 11:29:54 +05:30
Manav Rathi 3b0433c4ab
Reorder 2024-04-24 11:17:41 +05:30
Manav Rathi bded3c6706
Prune 2024-04-24 11:14:34 +05:30
Manav Rathi 5b928883a6
Tinker 2024-04-24 11:03:49 +05:30
Manav Rathi 27185c333c
Prune 2024-04-24 10:58:04 +05:30
Manav Rathi 88c2a52edf
Spruce 2024-04-24 10:39:47 +05:30
Manav Rathi 2bee444078
Tinker 2024-04-24 10:33:05 +05:30
Manav Rathi 9103dadc6f
Tinker 2024-04-24 10:13:03 +05:30
Manav Rathi 48bace50df
Extract 2024-04-24 10:04:29 +05:30
Manav Rathi 56713325ed
Spruce 2024-04-24 09:42:18 +05:30
Manav Rathi 0d0397124f
Hoist state 2024-04-24 09:22:51 +05:30
Manav Rathi 0da46f3298
Shuffle 2024-04-23 21:07:40 +05:30
Manav Rathi 5befc53d8c
Streamline 2024-04-23 20:54:57 +05:30
Manav Rathi e1a3475faa
Shorten chunk 2024-04-23 20:50:15 +05:30
Manav Rathi 86a102c47d
Streamlined 2024-04-23 20:39:16 +05:30
Manav Rathi c401b9a938
Log error 2024-04-23 20:33:06 +05:30
Manav Rathi 3c9ef294b0
Trim 2024-04-23 20:21:04 +05:30
Manav Rathi 2eef50a849
More 2024-04-23 20:20:14 +05:30
Manav Rathi 7940ef53b5
Route 2024-04-23 20:15:35 +05:30
Manav Rathi c948b29729
Inline 2024-04-23 20:10:19 +05:30
Manav Rathi 6b55f3b2f1
Reduce use of uiservice 2024-04-23 19:50:49 +05:30
Manav Rathi 0ca4b06872
Trim logging 2024-04-23 19:46:21 +05:30
Manav Rathi e81d3a0c3c
Remove tracer 2024-04-23 18:56:15 +05:30
Manav Rathi f96adddf54
Prune 2024-04-23 18:54:34 +05:30
Manav Rathi 190dc586a9
Prune 2024-04-23 18:47:48 +05:30
Manav Rathi 00c9d78ec9
Inline 2024-04-23 18:37:47 +05:30
Manav Rathi 2e222d9409
Remove derived state 2024-04-23 16:15:57 +05:30
Manav Rathi c5ab1811fb
Inline and skip 2024-04-23 16:08:19 +05:30
Manav Rathi 5e5d66c2a2
Inline 2024-04-23 16:04:19 +05:30
Manav Rathi c7e0986b12
Inline and reorder 2024-04-23 16:01:22 +05:30
Manav Rathi 14427b6011
Remove unused 2024-04-23 15:57:09 +05:30
Manav Rathi b80f567e74
Rearrange 2024-04-23 15:52:20 +05:30
Manav Rathi 3a93a7a956
Prune 2024-04-23 15:48:52 +05:30
Manav Rathi 91afe68111
Cluster 2024-04-23 15:43:59 +05:30
Manav Rathi be2d8c45d0
ReadLivePhoto 2024-04-23 15:26:56 +05:30
Manav Rathi 7f9563ab9a
Possible approach 2024-04-23 15:03:29 +05:30
Manav Rathi 308d8179b0
Rework 2024-04-23 14:52:16 +05:30
Manav Rathi 6ff41db939
Try another factoring 2024-04-23 14:16:41 +05:30
Manav Rathi 6ca3eb55af
Try another factoring 2024-04-23 13:49:09 +05:30
Manav Rathi abbfbf695f
Split earlier 2024-04-23 13:13:25 +05:30
Manav Rathi 66c64d0c58
Let the caller decide 2024-04-23 13:07:27 +05:30
Manav Rathi a286b11adb
Checkpoint 2024-04-23 12:55:27 +05:30
Manav Rathi e6e235490a
Content-Length 2024-04-23 12:37:42 +05:30
Manav Rathi cb0d25030d
API 1 2024-04-23 12:10:46 +05:30
Manav Rathi 76be5e37d5
cp 2024-04-23 11:33:34 +05:30
Manav Rathi 1f5fbcae76
Checkpoint 2024-04-23 11:20:22 +05:30
Manav Rathi 4a12774a3c
Impl 1 2024-04-23 11:07:10 +05:30
Manav Rathi cd22400136
Agenda 2024-04-23 10:42:07 +05:30
Manav Rathi 1f0c80cabc
Refactor 1 2024-04-23 10:21:39 +05:30
Manav Rathi 7a0abf2268
Prepare a split 2024-04-23 09:52:13 +05:30
Manav Rathi 3ab14d5949
Remove unnecessary flexibility 2024-04-22 17:20:21 +05:30
Manav Rathi 05cd0bcd2c
input filename is not needed
tested with sips
2024-04-22 16:49:06 +05:30
Manav Rathi 4461775283
Desktop side 2024-04-22 16:32:04 +05:30
Manav Rathi 4750caf156
Blob 2024-04-22 16:12:03 +05:30