Commit graph

24580 commits

Author SHA1 Message Date
Manav Rathi 517ee0914c
[web] Update the "source" translation (#1186)
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:03:15 +05:30
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
Vishnu Mohandas d673537110
Fix cases (#1185)
## Description
The intent was to lower the case for "Files" and "Each" (that were in
caps), since the file was open, also ended up flipping the case for
"ente".

## Tests
Have verified the places "files" and "each" were being printed. As for
"Ente", the change should not cause any side effects.
2024-03-23 14:54:20 +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 2de4e51c7b
[photos-desktop] Disable node integration - Part x/x (#1181)
Continuing in the series of refactorings, working towards disabling node
integration in the photos desktop app.
2024-03-22 21:06:01 +05:30
Manav Rathi d297465ea6
Dedup 2024-03-22 20:48:57 +05:30
Manav Rathi 0fdb2fb357
Fix type errors in fs.ts 2024-03-22 20:01:02 +05:30
Manav Rathi 6c8f4185f7
Fix error in clipService 2024-03-22 19:56:36 +05:30
Manav Rathi 31ad9a3eb3
Document that the main process is not restarted 2024-03-22 19:55:57 +05:30
Manav Rathi 0a7991bc0e
Remove unused code 2024-03-22 19:52:08 +05:30
Manav Rathi 302b9a46b5
[photo-desktop] Rely heavier on local Electron cache (#1178)
Remove the special disk only cache we had when running under Electron,
and instead rely on the "disk-cache-size" flag to get the embedded
Chromium in our app to cache more generously.

This change is being done to reduce the surface area of the APIs we need
to migrate to in a post no-node-integration world.
2024-03-22 17:54:30 +05:30
Manav Rathi 68fe6f45c4
Validate that getPath is not throwing 2024-03-22 17:54:02 +05:30
Manav Rathi 03bad54bce
Remove from the web side 2024-03-22 17:41:32 +05:30
Manav Rathi 3dbf82552d
Use the web native cache only - desktop side changes 2024-03-22 17:28:05 +05:30
Manav Rathi 22e57669fb
[photos-desktop] Disable node integration - Part x/x (#1176)
This continues the refactoring to disable node integration in our
rendered process. The code is still in a WIP state, and more PRs in this
series will come.
2024-03-22 16:06:16 +05:30
Manav Rathi 193c8d8899
Fix an error in the order of the arguments for imagemagick (#1175)
## Description

When importing a folder, I am getting this error on each image:
```
  cmd: "'/tmp/.mount_ente-xHvuBzN/resources/image-magick' -auto-orient -define 'jpeg:size=1440x1440' 'IMG_9694.heic' -thumbnail '720x720>' -unsharp '0x.5' -quality 70 '/tmp/ente/E6YH91g3T3-thumb.jpeg'",
  stdout: '',
  stderr: "magick: no images found for operation `-auto-orient' at CLI arg 1 @ error/operation.c/CLIOption/5432.\n"
```

## Tests

This is UNTESTED because I don't have a build env ready, however it
seems like this error is coming out because we pass the input file after
specifying some modifier flag that applies to it, and we should put the
input before.
2024-03-22 16:03:10 +05:30
Manav Rathi f083f0633d
Remove electron-reload
It reloads the BrowserWindow, but that already has HMR since we're connecting to
a Next dev server on localhost.

What we want is the main process to reload if the files for the main process are
changed. All options I've found so far just restart the main app on changes to
the main process code. I'm not sure that'll be useful, so not adding them right
now (and in any case, this is not a regression, it just wasn't working with
electron-reload either). For future reference if I need to revisit this, these
are the things I scouted:

- https://www.electronforge.io/config/plugins/webpack
- https://github.com/sindresorhus/electron-reloader
- https://electron-vite.org/guide/hot-reloading.html
2024-03-22 15:55:25 +05:30
Manav Rathi f2c288bdab
Remove promise-fs
Unnecessary, and unmaintained (since now node offers it natively)
2024-03-22 15:54:18 +05:30
Mathieu Velten 87de9e2afa Fix an error in the order of the arguments for imagemagick 2024-03-22 11:21:36 +01:00
Manav Rathi 1830a1b931
Let fs.readFile throw on non-existent files 2024-03-22 15:39:05 +05:30
Manav Rathi b6b4ee7e3a
recursive: true is mkdir -p 2024-03-22 15:31:45 +05:30
Manav Rathi c41bb571f6
Convert more promise-fs 2024-03-22 15:23:41 +05:30
Manav Rathi 94ac21950d
Convert to Electron's native fetch 2024-03-22 15:21:27 +05:30
Manav Rathi 8c40b950c7
Remove old and no longer necessary desktop cutoff version flag
It's been more than an 1.5 years since this was needed, everyone should've
updated by now.
2024-03-22 15:17:59 +05:30
Manav Rathi 8391e7edfc
Start migrating from promise-fs 2024-03-22 15:13:37 +05:30
Manav Rathi d98c3686c5
Inline 2024-03-22 11:33:24 +05:30
Manav Rathi 025ef4e1d9
Shorten 2024-03-22 11:26:04 +05:30
Manav Rathi 18deac3a41
Document 2024-03-22 11:21:05 +05:30
Manav Rathi b1f45c8602
Move export functions to preload 2024-03-22 09:49:11 +05:30
Manav Rathi 388904a46a
[web] New translations (#1173)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-03-22 09:30:36 +05:30
Crowdin Bot c9e008895c New Crowdin translations by GitHub Action 2024-03-22 01:36:33 +00:00
Manav Rathi 4c33030f28
[photos-desktop] Document a bit as I find my way around disabling nodeIntegration (#1170)
* Also includes an unrelated change to update the support email.
* See corresponding commit messages for more details about why specific
bits of code were removed.
2024-03-21 12:19:24 +05:30
Manav Rathi 1157919496
Update the support email 2024-03-21 12:14:23 +05:30
Manav Rathi 3c4619e5e4
Add a notice 2024-03-21 12:13:39 +05:30
Manav Rathi e58ef51d12
[docs] Update sharing-logs.md (#1169)
Removing unnecessary formatting
2024-03-21 12:03:50 +05:30
Jishnuraj9 e4b0cca777
[docs] Update sharing-logs.md
Removing unecessary formatting
2024-03-21 12:01:39 +05:30
Vishnu Mohandas 11e30cf79a
Update quick-link.md 2024-03-21 11:53:27 +05:30
Vishnu Mohandas 21526722df
Update and rename public-links.md to public-link.md 2024-03-21 11:43:43 +05:30
Manav Rathi 4ea43e619b
More docs 2024-03-21 10:54:32 +05:30
Manav Rathi cd1d22cdfb
Shorten 2024-03-21 10:45:48 +05:30
Manav Rathi cc623e5010
Remove unnecessary steps
I'm not sure how it is happening, but both ffmpeg-static and onnx get to their
correct path without this configuration. the paths it gets to is also slightly
different, so it seems that this snippet does not have any effect (at best):

    ente.app/Contents/Resources/app.asar.unpacked/node_modules
2024-03-21 10:43:33 +05:30
Manav Rathi bb865a7b15
Add documentation about ffmpeg
https://alexandercleasby.dev/blog/use-ffmpeg-electron
2024-03-21 10:16:21 +05:30
Manav Rathi 1361ca0c8e
[docs] import FAQs and other docs from website (#1167)
- Documentation only change.
- Verified visually, and that `yarn build` runs.
2024-03-20 22:16:47 +05:30
Manav Rathi a4b8571642
Fixes and tweaks 2024-03-20 21:54:55 +05:30
Manav Rathi 2a5d9cd47f
yarn pretty 2024-03-20 21:26:50 +05:30
Manav Rathi 93e187d9e7
Import the remaining FAQs 2024-03-20 21:24:49 +05:30
Manav Rathi 1acbe806ae
Import feature pages from website 2024-03-20 20:30:59 +05:30
Manav Rathi b1ab27e42c
Rearrange 2024-03-20 19:55:17 +05:30
Manav Rathi 5710dec46b
Fix index 2024-03-20 19:51:24 +05:30