Commit graph

24702 commits

Author SHA1 Message Date
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
Prateek Sunal 784b003ceb fix: also bundle libffi in appimage 2024-03-21 18:59:26 +05:30
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
Manav Rathi 3a2c7ce5f9
Import migration guides from website
Needed tweaking to handle Gatsby => Vitepress
2024-03-20 17:31:04 +05:30
Manav Rathi 46d7803da0
[meta] Fix the docs deployment workflow (#1161)
Fix what I accidentally broke in
https://github.com/ente-io/ente/pull/1149
2024-03-20 16:49:33 +05:30
Manav Rathi 19c2f07a19
[meta] Fix the docs deployment workflow
Fix what I accidentally broke in https://github.com/ente-io/ente/pull/1149
2024-03-20 16:46:18 +05:30
github-actions[bot] 43ebd7147d
[auth] New translations (#1141) 2024-03-20 16:19:39 +05:30
Manav Rathi 812e02d4d7
Update sharing-logs.md (#1160)
Documentation change
2024-03-20 15:54:03 +05:30
Prateek Sunal dd0678d3d0 fix: handle all types of line breaks 2024-03-20 14:18:42 +05:30
Vishnu Mohandas 8101fe1495
Patch few Stripe related issues (#1156) 2024-03-20 14:07:26 +05:30
vishnukvmd ec258e8b2a Extract the payments redirect URL into an environment variable 2024-03-20 14:06:53 +05:30
vishnukvmd b769c428eb Hide the dialog on page load 2024-03-20 14:05:23 +05:30
vishnukvmd 61d5f3189b Update cancellation status on receiving webhook from Stripe 2024-03-20 14:05:09 +05:30
Manav Rathi 7b1b6bf88f
Document a better, more explicit, reference 2024-03-20 13:47:38 +05:30