Commit graph

24664 commits

Author SHA1 Message Date
Prateek Sunal 86a334a769 fix: windows versioning 2024-03-25 21:58:47 +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 3b29f8ec2c
[web/desktop] Support windows environment on command (#1198)
## 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.

#1191 

## 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
LI-NA 8e4ca0bc79 [desktop] Add shx and change the build command
To make the build script work on Windows, added the `shx` package in dev dependency and changed the `rm` and `ln` commands to `shx rm` and `shx ln`.
2024-03-25 20:11:44 +09:00
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 37dce2bdb5
[photos-desktop] Fix preload script (#1196)
The preload script is now self contained, and the app when launched
tries to open the renderer correctly. It goes on to fail because of an
infinite navigation loop, but that's a different issue.

Beyond the navigation loop, there is more pending work to do - not all
the ipcMain/ipcRenderer communication would currently be working since
the objects being passed around (like "File") are not copyable. Still,
this PR is a checkpoint for the preload structure.
2024-03-25 15:49:55 +05:30
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
Prateek Sunal 1859bfd9da fix: remove next electron server 2024-03-25 12:47:57 +05:30
Prateek Sunal 893421de6e fix: divider theme in material 3 2024-03-25 12:45:44 +05:30
Prateek Sunal 549e1a2753 fix: delete unused files 2024-03-25 12:45:30 +05:30
Manav Rathi e8acbd8c9f
Convert the other conversion functions 2024-03-25 12:45:21 +05:30
Prateek Sunal b185a37435 fix: onboarding page spacing 2024-03-25 12:38:51 +05:30
Manav Rathi 2522da2b5e
Handle runFFMPEGCmd in preload 2024-03-25 12:32:57 +05:30
Prateek Sunal bd5c56349a Merge remote-tracking branch 'origin/main' into beta 2024-03-25 12:26:31 +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
Ashil ed4886a6a5
[mobile][photos] Fix performance benchmarking config (#1195)
## Description

- Fix broken integration test used for benchmarking gallery scroll
performance.
- Automate email and password entry.
- Write script to run perf test.
2024-03-25 10:30:13 +05:30
Vishnu Mohandas bdd6663461
[auth] custom icons (#1194)
Edited the custom-icons.json for the added SVG files.
2024-03-25 10:17:11 +05:30
ludespeedny a403cd88e2
custom icons for DCS, WYZE 2024-03-24 12:20:28 -04:00
ludespeedny d11ee7acb4
Update custom-icons.json
update custom-icons.json for DCS and WYZE icons.
2024-03-24 12:18:33 -04:00
Prateek Sunal 47370bdeaf fix: focus of password entry box 2024-03-23 22:37:25 +05:30
Vishnu Mohandas f3bdfa84ef
[docs] Collapse the Migration guide for Auth 2024-03-23 21:06:35 +05:30
Manav Rathi 4bf99c8bea
[photos-desktop] Fix preload.ts - Part x/x (#1190)
Continuation of https://github.com/ente-io/ente/pull/1189
2024-03-23 20:44:41 +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
Prateek Sunal af22c48a99 fix: remove unwanted debug print 2024-03-23 20:01:56 +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
Prateek Sunal 19c2e50ef2 feat: add system tray for desktop 2024-03-23 19:18:30 +05:30
Manav Rathi b1d0909675
EXtract common queueProcessor 2024-03-23 18:49:22 +05:30
Prateek Sunal 5aec3bc7fd chore: new files 2024-03-23 18:48:57 +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
Prateek Sunal 1f091e33df feat: add listener to windows resize 2024-03-23 18:44:21 +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
Prateek Sunal 9e6e91fe7e Merge remote-tracking branch 'origin/main' into beta 2024-03-23 18:26:11 +05:30
Prateek Sunal 35ebf37849 fix: open action pane on right click 2024-03-23 18:25:52 +05:30
Manav Rathi 120edbbc65
[photos-desktop] Fix preload.ts - Part x/x (#1189)
- Refactor towards making preload.ts self contained (see comments at the
top of the file why)
- More PRs in this series will come
- Build is still broken
2024-03-23 16:17:23 +05:30
Manav Rathi 7a3209ebf6
Fix preload.ts - Part x/x 2024-03-23 16:13:16 +05:30
Manav Rathi efa49bd2b0
[web] New translations (#1187)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-03-23 16:11:29 +05:30
Crowdin Bot e953c1c16b New Crowdin translations by GitHub Action 2024-03-23 10:40:49 +00:00
Manav Rathi f7d2b735f9
[crowdin] Invalidate existing translations when source strings change (#1188)
Don't upload existing translation when syncing with Crowdin. This way,
we let the existing translations be invalidated when we change the
source string (this was not happening previously since we also upload
the (older) translations when
we upload the changed source strings).

**Tested by**

Doing this on a different test branch, changing a source string,
manually running the workflow against that branch, and verifying that
the strings are getting reset in the PR that Crowdin' action opens.
2024-03-23 15:28:29 +05:30
Manav Rathi bbeac2bdf0
[crowdin] Invalidate existing translations when source strings change
Don't upload existing translation when syncing with Crowdin. This way, we let
the existing translations be invalidated when we change the source string (this
was not happening previously since we also upload the (older) translations when
we upload the changed source strings).
2024-03-23 15:26:34 +05:30