Commit Graph

130 Commits

Author SHA1 Message Date
Manav Rathi
48a726885f Fix typo in comment 2024-03-26 21:45:21 +05:30
Manav Rathi
ac97d65c12 Remove one copy of duplication from IPC types 2024-03-26 21:45:21 +05:30
Manav Rathi
24176d8c40 Document a few more dependencies 2024-03-26 21:42:48 +05:30
Crowdin Bot
e3d3943539 New Crowdin translations by GitHub Action 2024-03-26 01:36:29 +00:00
Manav Rathi
147d79c64f [web][photos] Fix infinite loop on half-logins (#1197)
Fix an infinite loop of navigation under the following conditions: key
is valid
but token is not present.

Fix is to match the condition used in both gallery

    if (!key || !token) {

and the root page.

They seemed to have diverged in commit
c3304571a9.

Was able to reproduce this when launching the desktop app such that the
key was
picked up (possibly from a prior installation) from the secure keychain,
but the
token was not found. I feel this is also a fix for a similar navigation
loop
recently reported by QA but unreproducible so far.
2024-03-25 19:11:07 +05:30
Manav Rathi
4b7155dd13 Match the condition in one more place 2024-03-25 17:44:27 +05:30
Manav Rathi
eecb8b70f4 [web][photos] Fix infinite loop on half-logins
Fix an infinite loop of navigation under the following conditions: key is valid
but token is not present.

Fix is to match the condition used in both gallery

    if (!key || !token) {

and the root page.

They seemed to have diverged in commit c3304571a9.

Was able to reproduce this when launching the desktop app such that the key was
picked up (possibly from a prior installation) from the secure keychain, but the
token was not found. I feel this is also a fix for a similar navigation loop
recently reported by QA but unreproducible so far.
2024-03-25 16:48:08 +05:30
LI-NA
b98da635b6 [web] Change the command to fetch the git SHA
To make the git command work on Windows, changed it to use different commands depending on the platform of the OS.
2024-03-25 20:10:38 +09:00
Manav Rathi
f8a36852a6 Prepare for test 2024-03-25 15:39:29 +05:30
Manav Rathi
892bf852a5 Convert remaining upload functions 2024-03-25 15:29:39 +05:30
Manav Rathi
f53b1361e8 Move file related functions 2024-03-25 15:09:51 +05:30
Manav Rathi
4261624da5 Handle rest of watch related functions 2024-03-25 14:03:20 +05:30
Manav Rathi
186e76c62b Move add/remove watch functions to preload 2024-03-25 13:49:48 +05:30
Manav Rathi
96ea53face preload / watch - part 1
The change event was not being used (since
dca542e781), so also remove that dead code.
2024-03-25 13:31:28 +05:30
Manav Rathi
67468c6ff9 Move the selection dialogs 2024-03-25 13:02:06 +05:30
Manav Rathi
e8acbd8c9f Convert the other conversion functions 2024-03-25 12:45:21 +05:30
Manav Rathi
2522da2b5e Handle runFFMPEGCmd in preload 2024-03-25 12:32:57 +05:30
Manav Rathi
dd7e87274a Handle set/getEncryptionKey in preload 2024-03-25 12:19:19 +05:30
Manav Rathi
106ba270fe Handle ML related functions in updated preload 2024-03-25 12:09:11 +05:30
Manav Rathi
d3093809d6 Inline more into preload 2024-03-23 20:25:56 +05:30
Manav Rathi
81ba5379c9 Move checkExistsAndCreateDir out of preload 2024-03-23 20:06:27 +05:30
Manav Rathi
f21dc84840 Switch to async fs.exists
We cannot expose the sync version over the context bridge - the node:fs module
is not available to the preload script under context isolation.
2024-03-23 19:59:47 +05:30
Manav Rathi
b1d0909675 EXtract common queueProcessor 2024-03-23 18:49:22 +05:30
Manav Rathi
7704b902c4 Extract shared function 2024-03-23 18:46:20 +05:30
Manav Rathi
bdb2a22863 Extract shared function 2024-03-23 18:44:30 +05:30
Manav Rathi
47a7042d55 Remove dead code from cast 2024-03-23 18:38:31 +05:30
Manav Rathi
a5c3aff54b Expose an fs.exists over the context bridge 2024-03-23 18:28:22 +05:30
Manav Rathi
7a3209ebf6 Fix preload.ts - Part x/x 2024-03-23 16:13:16 +05:30
Crowdin Bot
e953c1c16b New Crowdin translations by GitHub Action 2024-03-23 10:40:49 +00:00
Manav Rathi
53c53cebbc [web] Update the "source" translation
https://github.com/ente-io/ente/pull/1185 updated the file but in the accounts
app. That's not the file that's used as the source - this PR updates the one we
use as the source for Crowdin.
2024-03-23 15:01:44 +05:30
vishnukvmd
0fd4b2936d ente -> Ente 2024-03-23 12:22:16 +05:30
vishnukvmd
a96cb58f87 Fix case for strings 2024-03-23 12:20:15 +05:30
Manav Rathi
d297465ea6 Dedup 2024-03-22 20:48:57 +05:30
Manav Rathi
0a7991bc0e Remove unused code 2024-03-22 19:52:08 +05:30
Manav Rathi
03bad54bce Remove from the web side 2024-03-22 17:41:32 +05:30
Manav Rathi
8391e7edfc Start migrating from promise-fs 2024-03-22 15:13:37 +05:30
Crowdin Bot
c9e008895c New Crowdin translations by GitHub Action 2024-03-22 01:36:33 +00:00
Manav Rathi
1157919496 Update the support email 2024-03-21 12:14:23 +05:30
Manav Rathi
3a6c7b2dcd Remove unused sendNotification IPC 2024-03-19 19:18:05 +05:30
Manav Rathi
e00b8fd2f1 Remove unused IPC for getPlatform 2024-03-19 19:18:05 +05:30
Manav Rathi
eeaa5165ab Remove custom cache directory
From discussions, it seems that it was pre-emptively added but not specifically
requested by a customer. We can bring this back later if needed, or at least
offer better options to clean it, but for now I'm pruning the IPC surface to
reduce the amount of work needed for handling contextIsolation and sandboxing.
2024-03-19 19:18:04 +05:30
Manav Rathi
e4684b22df Move out the electron-builder config to separate file 2024-03-19 19:17:01 +05:30
Manav Rathi
d80fad6cf1 Remove unused vscode extension support
This doesn't belong in the repo even if were used
https://github.com/standard/vscode-standard
2024-03-19 19:17:01 +05:30
Manav Rathi
b7b33eba4a Switch to contextBridge - Part 1 2024-03-19 19:17:01 +05:30
Manav Rathi
fc3aea7694 [web] Update yarn.lock 2024-03-19 11:24:42 +05:30
Crowdin Bot
9e44f5cc20 New Crowdin translations by GitHub Action 2024-03-19 01:37:04 +00:00
Manav Rathi
4ff378cd06 [web] Update translations for the non-photos apps 2024-03-18 20:01:37 +05:30
Crowdin Bot
6bbd296c25 New Crowdin translations by GitHub Action 2024-03-18 03:38:20 +00:00
Manav Rathi
9012a96a58 [web] Add passkeys related translations
Obtained these strings from 33faadf83e/apps/accounts/public/locales/en/translation.json (L632)

I didn't have a way of exhaustively ensuring that all strings are covered, but
I've tried to manually verify.

Once this is merged and translation files synced with Crowdin, I'll do another
PR to update the `local/**/translation.json` files within apps/accounts.
2024-03-17 11:55:57 +05:30
Manav Rathi
f85f220c1d Web Passkey Recovery (#1047)
## Description

* Adds passkey recovery feature parity from #1013

## Tests
2024-03-17 11:44:13 +05:30