Commit Graph

29257 Commits

Author SHA1 Message Date
Manav Rathi
00a293df02 [docs] Add sidebar link to missing thumbs troubleshooting page 2024-06-18 13:07:06 +05:30
Manav Rathi
8ebdab291c [docs] Mention Firefox's privacy.resistFingerprinting issue (#2190) 2024-06-18 13:05:28 +05:30
Manav Rathi
148ee3f2c4 lf 2024-06-18 13:03:04 +05:30
Manav Rathi
4428996541 Fix 2024-06-18 13:02:28 +05:30
Manav Rathi
fdd2bffc07 [docs] Mention Firefox's privacy.resistFingerprinting issue 2024-06-18 13:00:52 +05:30
Manav Rathi
5506652179 [web-ish] yarn 1.22.21 => 1.22.22 (#2188) 2024-06-18 11:00:01 +05:30
Manav Rathi
d1c9033866 [web-ish] yarn 1.22.21 => 1.22.22 2024-06-18 10:56:37 +05:30
Manav Rathi
795767b2cb [worker] Log on all non-200 responses from upstream +1 (#2187)
- Allow albums.ente.io/sh
- Log on all non-200 responses from upstream
- Use an easier to grep label
2024-06-18 10:08:16 +05:30
Manav Rathi
544a1df21b Log on all non-200 responses from upstream 2024-06-18 09:58:36 +05:30
Manav Rathi
1dffe49069 Apparently shared albums code also uses the upload URL
Need to understand more why this is happening, but it is.
2024-06-18 09:55:44 +05:30
Manav Rathi
64dedb7edd thumb 2024-06-18 09:50:20 +05:30
Manav Rathi
7566702569 Allow albums.ente.io/sh 2024-06-18 09:38:45 +05:30
Manav Rathi
d006f74cd4 add human readable upload result to log file output (#2183)
## Description

Make the logfile more user friendly by adding a readable upload result
string instead of just a number.

Before the logfile showed only a not human understandable number for the
upload result:
`"Uploaded xyz.jpg with result 3"` 

This PR adds the key from the enum UPLOAD_RESULT to make it easy for a
human to understand the result:
`"Uploaded xyz.jpg with result 3 (BLOCKED)"`
2024-06-18 09:32:15 +05:30
Manav Rathi
27191d777a [web] Faster and noUncheckedIndexedAccess compliant uint8array merging (#2186)
The script I used for testing - 10-100x faster, and the faster the
longer the arrays. Note that speed was not the primary motivator for
this change, I just wanted to enable `noUncheckedIndexedAccess`

```js
//zs = [...Array(10).keys()].map(() => Uint8Array.from(Array(100000).keys()));                                                    
zs = [...Array(100).keys()].map(() => Uint8Array.from(Array(1000).keys()));

const m0 = (as) => new Uint8Array(as.reduce((acc, x) => acc.concat(...x), []));

const mergeUint8Arrays = (as) => {
    const len = as.reduce((len, xs) => len + xs.length, 0);
    const result = new Uint8Array(len);
    as.reduce((n, xs) => (result.set(xs, n), n + xs.length), 0);
    return result;
};

s = performance.now();
a = m0(zs);
e = performance.now();
console.log(e - s, "ms", a.length, "m0");
//console.log(a);                                                                                                                 

s = performance.now();
b = mergeUint8Arrays(zs);
e = performance.now();
console.log(e - s, "ms", b.length, "merge");
//console.log(b);                                                                                                                 

console.log(JSON.stringify(a) === JSON.stringify(b))
```
2024-06-18 09:28:25 +05:30
Manav Rathi
c68a16a9a9 Enable 2024-06-18 09:25:35 +05:30
Manav Rathi
ed1e6df967 Faster and noUncheckedIndexedAccess compliant 2024-06-18 09:19:43 +05:30
Joachim Weinbrenner
93f9848d02 add human readable upload result to log 2024-06-17 21:17:15 +02:00
Manav Rathi
aa0325d72c Faster method that doesn't trip up noUncheckedIndexedAccess 2024-06-17 20:29:28 +05:30
Manav Rathi
4510c14af2 Add a merge function 2024-06-17 19:58:46 +05:30
Manav Rathi
dc709e7649 [workers] Ignore case when comparing allowed headers (#2179) 2024-06-17 18:37:54 +05:30
Manav Rathi
b7fdf6c66b Log on errors 2024-06-17 18:35:59 +05:30
Manav Rathi
9f5115cc08 [workers] Ignore case when comparing allowed headers 2024-06-17 18:31:45 +05:30
Manav Rathi
a9bace7781 [desktop] Continue iterating of the pre-release process (#2177)
Ref:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
2024-06-17 16:47:56 +05:30
Manav Rathi
014fbfe0eb lf 2024-06-17 16:42:36 +05:30
Manav Rathi
38cdfcf0a4 [desktop] Continue iterating of the pre-release process 2024-06-17 16:40:35 +05:30
Manav Rathi
3f9107c497 [server] Stop making 32 bit ARM images (#2175)
The code doesn't get tested or run and is likely not safe for 32 bits

> 941.0 pkg/utils/billing/billing.go:117:13: cannot use
ente.FreePlanStorage
(untyped int constant 5368709120) as int value in struct literal
(overflows)
>
>
https://github.com/ente-io/ente/actions/runs/9546167833/job/26308448952
2024-06-17 16:28:17 +05:30
Manav Rathi
8870738330 [server] Stop making 32 bit ARM images
The code doesn't get tested or run and is likely not safe for 32 bits

> 941.0 pkg/utils/billing/billing.go:117:13: cannot use ente.FreePlanStorage
  (untyped int constant 5368709120) as int value in struct literal (overflows)
>
> https://github.com/ente-io/ente/actions/runs/9546167833/job/26308448952
2024-06-17 16:26:55 +05:30
Manav Rathi
38cae5c3d9 [docs] Passkeys: mention blog post (#2173) 2024-06-17 16:10:07 +05:30
Manav Rathi
e133e6272a [docs] Passkeys: mention blog post 2024-06-17 16:09:13 +05:30
Manav Rathi
c486b8f2c1 [desktop] Next RC (#2172) 2024-06-17 14:25:03 +05:30
Manav Rathi
f6cbbbead6 [docs] Mark passkeys as released (#2171) 2024-06-17 14:24:41 +05:30
Manav Rathi
3ecef5e751 [desktop] Next RC 2024-06-17 14:23:38 +05:30
Manav Rathi
ef64ce065b [docs] Mark passkeys as released 2024-06-17 14:09:56 +05:30
Manav Rathi
99fdbd8d40 photosd-v1.7.1 (#2170) photosd-v1.7.1 2024-06-17 13:57:28 +05:30
Manav Rathi
ac4a68d64e photosd-v1.7.1 2024-06-17 13:55:31 +05:30
Manav Rathi
dae5b29ef1 [docs] Add a border to help differentiate the image from the subsequent text (#2169)
Nb: black works fine in dark mode too
2024-06-17 12:24:14 +05:30
Manav Rathi
4451b489e4 Add a border to help differentiate the image from the subsequent text
black works fine in dark mode too
2024-06-17 12:22:47 +05:30
Manav Rathi
b19281ea2b [web] Update cast to use the tsconfig we want (#2168) 2024-06-17 12:08:41 +05:30
Manav Rathi
8e923fe443 All 2024-06-17 11:46:34 +05:30
Manav Rathi
fe47186ace tsc 2024-06-17 11:45:28 +05:30
Manav Rathi
326704a605 tsc 2024-06-17 11:38:13 +05:30
Manav Rathi
d560ed9a33 Reduce state 2024-06-17 11:35:19 +05:30
Manav Rathi
0a8f51832a tsc 2024-06-17 11:34:16 +05:30
Neeraj Gupta
d2112b984d Added coindcx icon (#2148)
## Description
Added coindcx icon
uploaded coindcx svg and updated json file.
2024-06-17 11:24:48 +05:30
Neeraj Gupta
50aad0c5d1 [Auth] Passkey fix for linux (#2154)
## Description

- Updated url to enteauth://passkey
- Support mimetype in appimage so redirection is done properly

## Tests
2024-06-17 11:24:09 +05:30
Manav Rathi
e6e721f0ba [workers] Import upload worker (#2164) 2024-06-17 09:12:15 +05:30
Manav Rathi
80b34f1aef Reduce spurious logs for headers our clients send 2024-06-17 09:03:27 +05:30
Manav Rathi
d5a8586152 Import functionality
Rewritten but referencing the code imported from dashboard
2024-06-17 03:40:20 +05:30
Manav Rathi
bfcd84c940 Whitelist the necessary one 2024-06-16 20:56:28 +05:30
Manav Rathi
a4bc5fa0df OPTIONS 2024-06-16 20:49:44 +05:30