Commit graph

24505 commits

Author SHA1 Message Date
Manav Rathi 3a6c7b2dcd
Remove unused sendNotification IPC 2024-03-19 19:18:05 +05:30
Manav Rathi 502469e97f
Move some non-duplicated FS related functions to preload 2024-03-19 19:18:05 +05:30
Manav Rathi c98762b448
Inline ML related functions 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 a8de049519
Update concurrently's major version
No breaking changes that impact us - https://github.com/open-cli-tools/concurrently/releases
2024-03-19 19:17:01 +05:30
Manav Rathi e9fa525fe9
Remove unused electron-download
It was used for downloading symbols
2024-03-19 19:17:01 +05:30
Manav Rathi bff58f7b78
Update eslint settings to match main project 2024-03-19 19:17:01 +05:30
Manav Rathi a0f95b6080
Settle on a tsconfig for now
Electron also comes with its own type definitions, and from a (possibly dated)
blog post announcing this I got that we should not be overriding it with
@types/node: https://www.electronjs.org/pt/blog/typescript
2024-03-19 19:17:01 +05:30
Manav Rathi c19370ec51
Outline an ideal tsconfig.json 2024-03-19 19:17:01 +05:30
Manav Rathi 341f0fa559
Upgrade TypeScript 2024-03-19 19:17:01 +05:30
Manav Rathi e64d44639d
Document the conceputal way forward
Alternatives considered:

- https://github.com/alex8088/electron-toolkit
- https://electron-vite.org/
- https://github.com/cawa-93/vite-electron-builder/
2024-03-19 19:17:01 +05:30
Manav Rathi 04b9966425
Quicker quick
Ref: https://webpack.electron.build/building
2024-03-19 19:17:01 +05:30
Manav Rathi 0e861d5c48
Add some notes
The helpful snippet about the purpose of install-app-deps taken from
https://webpack.electron.build/dependency-management
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 1266648562
Merge docs 2024-03-19 19:17:01 +05:30
Manav Rathi eb4f9402db
Enable prose-wrap 2024-03-19 19:17:01 +05:30
Manav Rathi 983beb89dc
Enable prose-wrap 2024-03-19 19:17:01 +05:30
Manav Rathi f29d9e1583
Re-enable contextIsolation and sandboxing
Things will break, but let's try to fix them. In the current state, this is
preventing us from running `yarn dev` without reverting back to Electron 21.
2024-03-19 19:17:01 +05:30
Manav Rathi d83f9d0210
Still need submodules
Until web needs them
2024-03-19 19:17:01 +05:30
Manav Rathi 65d25690e5
[workers] Add the cast-albums worker (#1151) 2024-03-19 15:35:11 +05:30
Manav Rathi 7c383023e4
[workers] Add the cast-albums worker 2024-03-19 15:33:09 +05:30
Manav Rathi 5092b74503
[workers] Add github-discord-notifier (#1150)
Start migrating workers to the monorepo. This PR brings in
github-discord-notifier.
2024-03-19 14:26:34 +05:30
Manav Rathi ed547d5f2c
Add empty vars section 2024-03-19 13:55:31 +05:30
Manav Rathi 1e50570936
wrangler publish is deprecated 2024-03-19 13:51:13 +05:30
Manav Rathi 2419b079af
Add the github-discord-notifier code 2024-03-19 13:50:39 +05:30
Manav Rathi cfd298a052
[workers] Start migrating workers to the monorepo 2024-03-19 13:14:25 +05:30
Manav Rathi f0547d0a10
[meta] Omit unnecessary reruns of workflows when deploying (#1149)
When we merge main into a deploy/* branch (e.g.
https://github.com/ente-io/ente/pull/1147), all changes get pulled in
not just the one related to that deployment, and this causes almost all
of the path based workflows to run again unnecessarily. Exclude the
various "deploy/**" branches to stop these unnecessary workflows from
being triggered.
2024-03-19 13:10:21 +05:30
Manav Rathi fa3f249a7a
[meta] Omit unnecessary reruns of workflows when deploying
When we merge main into a deploy/* branch
(e.g. https://github.com/ente-io/ente/pull/1147), all changes get pulled in not
just the one related to that deployment, and this causes almost all of the path
based workflows to run again unnecessarily. Exclude the various "deploy/**"
branches to stop these unnecessary workflows from being triggered.
2024-03-19 12:59:04 +05:30
Neeraj Gupta 449284a6a1
[server] API to fetch ML embeddings for given fileIDs (#1144)
## Description
- Also started storing the embedding size and version in the table. This
will come handy while comparing overall size when different compression
and serialization formats are used..
- Also, it can be used to smartly auto-download the embeddings or inform
the user about approximate size when they decide to enable indexing or
search on a particular client.

## Tests

 Verified that embedding fetch and store is working fine.
 Verified that embeddings/diff API is working fine.
2024-03-19 12:23:24 +05:30
Neeraj Gupta 685e1b82c9 [server] Fix query for diff API 2024-03-19 12:09:39 +05:30
Manav Rathi e7de4da64e
[web] Update yarn.lock (#1145)
This seems to have been overwritten in a recent PR, perhaps because of a
different yarn version being used.
2024-03-19 11:43:02 +05:30
Neeraj Gupta 2b3494e61c [server] Return embedding version in API response 2024-03-19 11:25:00 +05:30
Manav Rathi fc3aea7694
[web] Update yarn.lock 2024-03-19 11:24:42 +05:30
Neeraj Gupta e8756a8cf7 [server] Remove unused code 2024-03-19 11:06:36 +05:30
Neeraj Gupta 3df49beb07 [server] Remove unused model name 2024-03-19 11:04:25 +05:30
Neeraj Gupta 05b0f1649f [server] store embedding objSize & version 2024-03-19 11:02:22 +05:30
Neeraj Gupta 7634b2c153 [server] DB migration scripts for emedding table changes 2024-03-19 10:56:25 +05:30
Manav Rathi 14ad67e86c
[server] Fix the dependency on nginx (#1143)
Noticed during the recent deployment.
2024-03-19 10:35:42 +05:30
Manav Rathi 2f9a49e1ca
[web] New translations (#1139)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-03-19 10:33:18 +05:30
Manav Rathi 303b12c709
Fix the dependency on nginx 2024-03-19 09:31:51 +05:30
Crowdin Bot 9e44f5cc20 New Crowdin translations by GitHub Action 2024-03-19 01:37:04 +00:00
Neeraj Gupta f0236acf8f [server] Minor bug fixes in embedding/files API 2024-03-19 06:15:55 +05:30
Manav Rathi 100fa04de7
[infra] Status service (#1138)
- Add the service the serves status.ente.io
- Support nginx configuration reloads
2024-03-19 05:54:36 +05:30
Manav Rathi f6e575885d
Note the dashboard URL 2024-03-19 05:41:16 +05:30
Manav Rathi 9fe8d1fd53
Add recommended headers 2024-03-18 21:57:25 +05:30
Manav Rathi 19724367df
Support nginx configuration reloads 2024-03-18 21:47:53 +05:30
Manav Rathi ba896f2f3a
Match file name convention 2024-03-18 21:36:01 +05:30