Commit graph

24710 commits

Author SHA1 Message Date
Jishnuraj9
0e04a0df04
add images for continuous sync 2024-03-27 11:43:58 +05:30
Vishnu Mohandas
0fc3773812
feat: rounded icons for auth desktop ()
## Description

## Tests
2024-03-26 23:19:43 +05:30
Prateek Sunal
2cda8da3c5 fix: remove unused submodules 2024-03-26 23:13:54 +05:30
Prateek Sunal
652f6a92f5 feat: rounded icons for desktop 2024-03-26 23:12:38 +05:30
Manav Rathi
a78e2892cd
[photos-desktop] Update to latest Electron ()
- And update to latest everything else too
- Fix the duplication in preload
- ... and many more cleanup changes (see commit titles for details)

Should not have major functional impact, and whatever IPC actions got
broken by the switch to context-isolation will still not be working.
This is just an intermediate step, and more PRs will continue fixing the
IPC APIs.
2024-03-26 21:54:18 +05:30
Manav Rathi
48a726885f
Fix typo in comment 2024-03-26 21:45:21 +05:30
Manav Rathi
88e8e1a18d
Remove hacky splash window with a background color
...hacky because it was using a timer instead of the "ready-to-show" event
(which wasn't getting fired for some reason). It is recommended that we set a
background color anyway.
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
b0ca3a1a9f
Preload won't have logging 2024-03-26 21:45:21 +05:30
Manav Rathi
c055cd9b4a
Remove the tscw 2024-03-26 21:45:21 +05:30
Manav Rathi
9e987f62f6
Fix paths of splash etc 2024-03-26 21:45:21 +05:30
Manav Rathi
cb33b6df10
Refactor the init process 2024-03-26 21:45:20 +05:30
Manav Rathi
c3dfa46514
Major version update of Electron
And other surrounding packages.
2024-03-26 21:42:48 +05:30
Manav Rathi
24176d8c40
Document a few more dependencies 2024-03-26 21:42:48 +05:30
Manav Rathi
6e737cdf9a
Mention package.json in the shx description 2024-03-26 21:42:48 +05:30
Manav Rathi
8f978a3d3d
Manually update the version info in package.json 2024-03-26 21:42:48 +05:30
Manav Rathi
fe94a4cd77
yarn-upgrade interactive 2024-03-26 21:42:48 +05:30
Manav Rathi
140b65b69d
Use default import instead of star import
Refs:
https://stackoverflow.com/questions/31386631/difference-between-import-x-and-import-as-x-in-node-js-es6-babel
2024-03-26 21:42:48 +05:30
Manav Rathi
db930feaf3
Stop source map generation
This isn't doing anything for us currently, and I suspect is also the source of
this error when trying to run a binary built using `yarn build:quick`

> DevTools failed to load source map: Could not load content for next://app/preload.js.map:
  Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Note that the renderer process already has source maps.
2024-03-26 21:42:48 +05:30
Manav Rathi
2038b036c5
Remove baseUrl that didn't work
From what I've understood, there isn't a way for us to use the baseUrl for
absolute imports without also using a bundler. The baseUrl works for the
tsconfig, but not for the generated JS.

Since this setting was anyways not working, remove it. Tested by doing `yarn
dev`, `yarn build` and also doing a quick perusal in VSCode to see that it is
not reporting any errors.

Refs:

- https://stackoverflow.com/questions/50679031/why-are-these-tsconfig-paths-not-working
- https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/2737
- https://stackoverflow.com/questions/40407342/resolving-paths-in-typescript-outdir
- https://stackoverflow.com/questions/51683827/using-paths-in-typescript-in-a-nodejs-project
2024-03-26 21:42:48 +05:30
Vishnu Mohandas
2cadc0f0fc
Update otp.md 2024-03-26 20:45:46 +05:30
Vishnu Mohandas
1c891f80f9
[docs] Improve export docs () 2024-03-26 16:40:11 +05:30
Manav Rathi
613e32b00e
[docs] Improve export docs 2024-03-26 16:38:49 +05:30
Vishnu Mohandas
c72878b00e
[auth] New translations ()
New translations from
[Crowdin](https://crowdin.com/project/ente-authenticator-app)
2024-03-26 11:47:40 +05:30
Manav Rathi
e7db1ceb01
[web] New translations ()
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-03-26 09:58:33 +05:30
Manav Rathi
512226b727
[docs] Add FAQ items around self hosting () 2024-03-26 09:58:00 +05:30
Manav Rathi
7fbb37a851
Add FAQ items around self hosting 2024-03-26 09:57:08 +05:30
Crowdin Bot
af568bcb21 New Crowdin translations by GitHub Action 2024-03-26 02:02:59 +00:00
Crowdin Bot
e3d3943539 New Crowdin translations by GitHub Action 2024-03-26 01:36:29 +00:00
Vishnu Mohandas
a56d906160
[auth] v2.0.46 () 2024-03-26 00:03:36 +05:30
vishnukvmd
1fb6f4ded2 v2.0.46 2024-03-26 00:03:10 +05:30
Prateek Sunal
31fdd9dc65
[FIX] Libffi error for appimage ()
Auth desktop linux build fix + Playstore aab shouldn't be created if
nightly or beta
2024-03-25 23:47:34 +05:30
Prateek Sunal
ee34291a54 fix: disable aab build if nightly or beta 2024-03-25 23:42:31 +05:30
Prateek Sunal
eeca6aac74 fix: libffi error for now 2024-03-25 23:41:12 +05:30
Vishnu Mohandas
f75fc7a265
[auth] v2.0.45 () 2024-03-25 23:20:15 +05:30
vishnukvmd
bba00c51e8 v2.0.45 2024-03-25 23:19:41 +05:30
Vishnu Mohandas
371ec01e6e
[auth] fix error on windows and linux ()
[auth] fix error on windows and linux
2024-03-25 23:18:59 +05:30
Prateek Sunal
bc7309665d fix: linux error 2024-03-25 23:17:21 +05:30
Prateek Sunal
61f1610c8d fix: error on windows 2024-03-25 23:14:51 +05:30
Vishnu Mohandas
62276d49d2
[auth] Desktop Release Candidate ()
## Description

This suffices all the changes that were gone through the auth app to
enable Desktop release.
2024-03-25 22:15:18 +05:30
Prateek Sunal
e7f26ba250 fix: setup for app_links and window_manager 2024-03-25 22:02:58 +05:30
Prateek Sunal
86a334a769 fix: windows versioning 2024-03-25 21:58:47 +05:30
Vishnu Mohandas
a6cb9023bf
Update ente.io/faq => help.ente.io where possible ()
On desktop, now there Help menu will have an "Ente Help" option instead
of "FAQ".

<img width="222" alt="Screenshot 2024-03-25 at 19 35 33"
src="https://github.com/ente-io/ente/assets/24503581/f061419d-7587-4438-b055-927a9cc8f42f">

The only place remaining after this is the sidebar on mobile
(`support_section_widget.dart`), but I wasn't sure of what string to use
(and how to add it to the localized strings for mobile) so I've left it
unchanged.
2024-03-25 19:55:54 +05:30
Manav Rathi
a4ecc2c344
Update ente.io/faq => help.ente.io where possible
On desktop, now there Help menu will have an "Ente Help" option instead of "FAQ"
(Unrelated: I noticed that user facing strings in the desktop app are not
localized).

The only place remaining after this is the sidebar on mobile
(`support_section_widget.dart`), but I wasn't sure of what string to use (and
how to add it to the localized strings for mobile) so I've left it unchanged.
2024-03-25 19:26:10 +05:30
Manav Rathi
147d79c64f
[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 19:11:07 +05:30
Prateek Sunal
704abf1265 Merge remote-tracking branch 'origin/main' into beta 2024-03-25 18:41:14 +05:30
Prateek Sunal
9f32a8aa83 fix: remove unused submodules 2024-03-25 18:35:08 +05:30
Manav Rathi
4b7155dd13
Match the condition in one more place 2024-03-25 17:44:27 +05:30
Manav Rathi
3b29f8ec2c
[web/desktop] Support windows environment on command ()
## Description

This is my first time in ente! I modified two commands to allow the
build scripts for web and desktop to work in a Windows environment.

- Before running the command to get the git SHA in `next.config.js`, I
checked the platform of the current OS and changed it so that we could
run a command that would work on Windows.
- `NUL` is same as `/dev/null` in Windows, and `cd .` is always return
nothing with 0 status code.
- Added a new package called
[`shx`](https://[github.com/shelljs/shx](https://github.com/shelljs/shx))
to the development dependencies to support `rm` and `ln`, which are
commands not supported by Windows when running the Desktop build
command.

 

## Tests

I've tested the web build and desktop build in a Windows environment. I
don't have a Mac, so I'd love for someone to test it on a Mac and let me
know the results.
2024-03-25 17:12:23 +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