Manav Rathi
500bac0b32
Prune happens on the node side now
2024-04-19 09:26:28 +05:30
Manav Rathi
46ac8968e8
Localize global state
2024-04-19 09:12:45 +05:30
Manav Rathi
b49cb9dec2
Update add/rm
2024-04-18 21:32:15 +05:30
laurenspriem
31aa46ead2
[desktop] Better blur detection service
2024-04-18 20:41:28 +05:30
Manav Rathi
4455bb9595
API on electron side
2024-04-18 18:31:38 +05:30
Manav Rathi
275b763648
Work towards it
2024-04-18 16:18:01 +05:30
Manav Rathi
8a728abffe
Envision the API
2024-04-18 15:31:22 +05:30
Manav Rathi
c90cd258ec
Deduce
2024-04-18 15:05:39 +05:30
Manav Rathi
9d4a76a642
Compose
2024-04-18 14:46:13 +05:30
Manav Rathi
9e35469bdc
Emulate basename and dirname
2024-04-18 14:42:52 +05:30
Manav Rathi
4fd9ecba56
Abstraction
2024-04-18 14:13:55 +05:30
Manav Rathi
ca29c81394
Don't need much
2024-04-18 13:59:00 +05:30
Manav Rathi
9c336a38c0
path mainp
2024-04-18 13:47:46 +05:30
Manav Rathi
532824b3d5
Spruce types
2024-04-18 12:53:47 +05:30
Manav Rathi
04f32d64f1
Unclass
2024-04-18 12:00:01 +05:30
Manav Rathi
4d80dc3af9
Interface for pending uploads
2024-04-18 11:51:14 +05:30
Manav Rathi
7bf5c0ad5c
Continue refactoring
2024-04-17 21:51:17 +05:30
Manav Rathi
cdc45e9fcc
Remove old types
2024-04-17 20:56:58 +05:30
Manav Rathi
acec41f526
More renaming - wip
2024-04-17 20:56:00 +05:30
Manav Rathi
ca5b98b8d2
Enum to type - wip
2024-04-17 20:32:21 +05:30
Manav Rathi
739c541f5d
Terminology
2024-04-17 19:44:39 +05:30
Manav Rathi
f21ccd4935
Rearrange
2024-04-17 19:38:07 +05:30
Manav Rathi
170ea0c997
Cleanup
2024-04-17 19:21:40 +05:30
Manav Rathi
a22423d039
WIP 2
2024-04-17 17:00:51 +05:30
Manav Rathi
52c35108ca
WIP 1
2024-04-17 15:51:51 +05:30
Manav Rathi
ee89506923
Unlegacy isDir
2024-04-17 14:27:48 +05:30
Manav Rathi
00c400f682
Reword
2024-04-17 14:19:11 +05:30
Manav Rathi
4971099da9
Merge
2024-04-17 13:41:10 +05:30
Manav Rathi
75e07353be
Thank you tsc
2024-04-17 12:38:52 +05:30
Manav Rathi
184ba91a2d
Refactor
2024-04-17 12:34:00 +05:30
Manav Rathi
652be207be
Update another place
2024-04-17 12:11:08 +05:30
Manav Rathi
fb1d2c800a
Dedup
2024-04-17 12:07:15 +05:30
Manav Rathi
871cb417d6
Replace
2024-04-17 12:03:45 +05:30
Manav Rathi
2d5ab044ee
Docs
2024-04-17 11:55:07 +05:30
Manav Rathi
637d830f19
Replace encodelivephoto
2024-04-17 11:51:35 +05:30
Manav Rathi
3172104578
Start using @/media's version
2024-04-17 10:08:08 +05:30
Manav Rathi
d80358552f
Trim spaces for more forgiving copy paste
2024-04-16 21:02:57 +05:30
Manav Rathi
9a6f3133b1
Reduce API
2024-04-16 16:17:27 +05:30
Manav Rathi
afec29d6e7
Inline and spruce
2024-04-16 15:54:28 +05:30
Manav Rathi
8fbff7e3a3
Inline
2024-04-16 15:33:47 +05:30
Manav Rathi
96ea996401
Inline
2024-04-16 15:29:56 +05:30
Manav Rathi
cf889b24af
Inline
2024-04-16 15:28:23 +05:30
Manav Rathi
cd4b2a6810
Inline
2024-04-16 15:26:35 +05:30
Manav Rathi
415fa79271
[desktop] Make export work with the new IPC ( #1461 )
...
There is one piece of the puzzle still missing - the files are being
sent wholesale instead of being streamed - and this might cause memory
issues. I haven't benchmarked yet, leaving this until we get some
response from the upstream issue
https://github.com/electron/electron/issues/41872 (hopefully it's just
some thing I missed).
But otherwise, ran export on a trivial library and it worked fine, so
everything is at least hooked up properly now.
2024-04-16 15:12:34 +05:30
Manav Rathi
2403c19f70
Add a temporary fallback
2024-04-16 14:50:25 +05:30
Manav Rathi
450e494a5e
Throwing darts
2024-04-16 11:34:34 +05:30
Manav Rathi
81d1563c3d
Also reproducible on latest beta
2024-04-16 10:17:51 +05:30
Manav Rathi
1e202a76c4
Works if we don't stream
2024-04-16 09:39:43 +05:30
Manav Rathi
d7b0beb949
[web] Clear search bar state when value is falsey
...
Updates https://github.com/ente-io/ente/pull/1453 so that we also clear the
existing state by calling the setFoo methods even when value is falsey.
2024-04-16 09:03:35 +05:30
Manav Rathi
2577cfe2f1
Replace cast with @ts-expect-error
2024-04-15 21:43:38 +05:30
Manav Rathi
020ed59d40
[web] Fix dev mode error on search input ( #1453 )
...
## Description
Ran into error after clearing search bar of queries by hitting
backspace.
> The error is shown below
> Thank you to the team for considering
## Tests
**Error**
![Screenshot 2024-04-15
184234](https://github.com/ente-io/ente/assets/82031202/f5f9845c-9420-4746-998b-2c67136d69cd )
**Fix**
Fixed by wrapping the line-causing error around by an `if` block.
2024-04-15 20:50:06 +05:30
daviddeepan
09c07e58e6
search-input runtime-error fix
2024-04-15 19:54:33 +05:30
Manav Rathi
83d2644bf4
Fix double slashing
2024-04-15 19:43:30 +05:30
Manav Rathi
67aacf8391
Replace everywhere
2024-04-15 19:40:50 +05:30
Manav Rathi
c99c4ac839
Use new method
2024-04-15 19:35:19 +05:30
Manav Rathi
6b331612b6
writeStream
2024-04-15 18:39:08 +05:30
Manav Rathi
a74d904989
Use a test stream
...
Example taken from https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests
2024-04-15 16:00:25 +05:30
Manav Rathi
2a425b0f9b
Add duplex parameter to a streaming request
...
Attempt to solve the following error in the browser's console when trying to
make the request:
[error] download and save failed: TypeError: Failed to construct 'Request':
The `duplex` member must be specified for a request with a streaming body
2024-04-15 14:22:00 +05:30
Manav Rathi
89b832d21f
Baby's first steps
2024-04-15 12:47:55 +05:30
Manav Rathi
3ea4879cf0
Remove text qualifier
...
The type already enforces that. And it reads better and the call sites this way.
2024-04-15 12:20:41 +05:30
Manav Rathi
73ef03a5d9
Move read/write whole files into fs
2024-04-15 12:17:33 +05:30
Manav Rathi
896cf0f785
Disable full file caches for now
...
This is only needed for ML indexing, let us revisit this once the ML flow is
done instead of adding a premature and possibly disk-space heavy optimization.
2024-04-15 11:50:23 +05:30
Manav Rathi
bcfd144ce9
[web] Use the public link origin provided by the server
...
When implementing https://github.com/ente-io/ente/pull/1443 it was found that
the Photos web app wasnt' using the sharedCollectionUrl prefix that is returned
by the server. Instead, it was using NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT as the
baseHost, while mobile client completely rely on the server for returning the
correct hostUrl.
**Tested by**
Running against the modified server, and verifying that changes to
apps.public-albums were being used.
2024-04-15 09:57:01 +05:30
Manav Rathi
d0ac3ea9ca
Remove newly dead code
2024-04-14 20:00:59 +05:30
Manav Rathi
a5f9fdd10d
Restructure selection
2024-04-14 19:59:13 +05:30
Manav Rathi
881a963fde
Inline
2024-04-14 19:46:26 +05:30
Manav Rathi
f9560ec533
Inline
2024-04-14 19:43:31 +05:30
Manav Rathi
22616bb77d
Remove top level error suppressors
2024-04-14 19:42:30 +05:30
Manav Rathi
4d19c46d7c
Replace exception handling for control flow
2024-04-14 19:39:35 +05:30
Manav Rathi
cc323905d5
Another
2024-04-14 19:33:49 +05:30
Manav Rathi
fca4b2aca6
Use also for the image
2024-04-14 19:29:22 +05:30
Manav Rathi
c4ac5e39a2
Refactor
2024-04-14 19:25:01 +05:30
Manav Rathi
22f221d481
Extract
2024-04-14 18:36:36 +05:30
Manav Rathi
eb64a00ed2
Remove unnecessary checks
...
It is simpler for us to parallel the rm command than our bespoke variant.
2024-04-14 18:22:46 +05:30
Manav Rathi
59b9e3e586
Move into fs
2024-04-14 18:12:19 +05:30
Manav Rathi
adb37f38e4
Shorten
2024-04-14 10:31:45 +05:30
Manav Rathi
14922b65f8
Inline
2024-04-14 10:28:27 +05:30
Manav Rathi
7438c3301e
Move mkdirIfNeeded into fs
2024-04-14 10:25:28 +05:30
Manav Rathi
0e8678715a
Remove layer
2024-04-14 10:03:16 +05:30
Manav Rathi
3824ebe91a
Remove exportService indirection
2024-04-14 09:57:58 +05:30
Manav Rathi
ea34eebfc9
Remove implicit electron dependency
2024-04-14 09:53:18 +05:30
Manav Rathi
eeb1952585
Use
2024-04-14 09:30:51 +05:30
Manav Rathi
72dd47fa7b
Audit rename
2024-04-14 09:27:52 +05:30
Manav Rathi
38db03c3a0
Start giving it more power
2024-04-13 21:50:56 +05:30
Manav Rathi
e268b9204e
Inline
2024-04-13 21:46:34 +05:30
Manav Rathi
acd50bb172
Inline
2024-04-13 21:39:36 +05:30
Manav Rathi
28d559bd84
Hoist
2024-04-13 21:35:58 +05:30
Manav Rathi
e87c7ed108
Inline
2024-04-13 21:34:37 +05:30
Manav Rathi
67a81f8d86
Dedup
2024-04-13 21:31:36 +05:30
Manav Rathi
30f147ec5b
Update jsdoc
2024-04-13 21:26:00 +05:30
Manav Rathi
6829d0bf15
Remove unused
2024-04-13 21:24:52 +05:30
Manav Rathi
d03b265eb4
Captialize
...
We've been capitalizing the name at places where we can. This name is only used
when creating new exports, and shouldn't effect existing export, so it is safe
to change.
2024-04-13 21:21:48 +05:30
Manav Rathi
297ca09535
Refactor and extract
2024-04-13 21:20:20 +05:30
Manav Rathi
82bbb1c6dd
Cleanup and document
2024-04-13 21:06:47 +05:30
Manav Rathi
4fbfbf0aa0
Cleanup
2024-04-13 20:53:35 +05:30
Manav Rathi
56d04066ea
sfn
2024-04-13 20:38:29 +05:30
Manav Rathi
7838f7484d
Make explicit
2024-04-13 20:29:17 +05:30
Manav Rathi
ce642e12c1
Remove stale disables
2024-04-13 18:50:12 +05:30
Manav Rathi
4f764dc77c
Consolidate constants
2024-04-13 18:27:40 +05:30
Manav Rathi
63a2ca7606
Fix lint
2024-04-13 18:24:57 +05:30