Commit graph

26222 commits

Author SHA1 Message Date
Neeraj Gupta
32b5e8210e
[web][cast] Remove debug logs and castDebugger (#1533)
## Description

## Tests
2024-04-25 15:03:19 +05:30
Neeraj Gupta
a243db032c [web][cast] Remove help qrcode 2024-04-25 15:00:25 +05:30
Neeraj Gupta
3f62357016 [web][cast] Remove debug logs and castDebugger 2024-04-25 14:59:02 +05:30
Manav Rathi
7086130129
Finalize uploader 2024-04-25 14:54:16 +05:30
Neeraj Gupta
94d0378e18 [server] Clean up old cast sessions 2024-04-25 14:43:25 +05:30
Manav Rathi
72b1df0b75
Rearrange 2024-04-25 14:41:48 +05:30
Manav Rathi
3ac81df561
Vids 2024-04-25 14:38:08 +05:30
Manav Rathi
c8542211b4
Images 2024-04-25 14:21:06 +05:30
Manav Rathi
eb4d83749f
Hash 2024-04-25 14:08:03 +05:30
Neeraj Gupta
4694bf6b7e [server] Ratelimit add device code API for cast 2024-04-25 14:07:10 +05:30
Neeraj Gupta
8038583d5a [server] Restrict casting to same IP 2024-04-25 14:03:25 +05:30
Manav Rathi
0a09a915e9
Thread lastModifiedMs 2024-04-25 13:55:34 +05:30
Manav Rathi
6aa096d3d3
More 2024-04-25 13:46:10 +05:30
Manav Rathi
3c90a3438b
Streamline 2024-04-25 13:21:38 +05:30
Neeraj Gupta
badd9263f4 [server] Add ip column 2024-04-25 13:14:37 +05:30
Neeraj Gupta
ef0873082a Fixed typo 2024-04-25 13:02:54 +05:30
Manav Rathi
c76d12f4a7
Document based on current understanding 2024-04-25 12:52:42 +05:30
Manav Rathi
c13812c31a
Move to library 2024-04-25 12:46:21 +05:30
Neeraj Gupta
f777bdba1b [mob][photos] Extract strings 2024-04-25 12:44:46 +05:30
Manav Rathi
891ba97e0a
Rearrange 2024-04-25 12:30:49 +05:30
Manav Rathi
0675b04f84
Inline 2024-04-25 12:21:29 +05:30
Manav Rathi
0603f8ffb9
Extract 2024-04-25 12:15:09 +05:30
Manav Rathi
79d26173a4
Inline 2024-04-25 12:07:14 +05:30
Neeraj Gupta
36dbda895c [mob][photos] Send pair req after getting receiver status 2024-04-25 11:50:49 +05:30
Neeraj Gupta
e903fbf9bc [mob][photos] Continue showing pair dialog in case of error 2024-04-25 11:50:02 +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
c684b5fd69
[web] Upload refactoring - Part x/x (#1531) 2024-04-24 18:51:43 +05:30
Manav Rathi
1447d4976f
lint-fix and beautifuller 2024-04-24 18:48:44 +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