Manav Rathi
f10f751a2f
Inline local storage calls
...
The methods are trivial, and we cannot centralize the keys since they will be
different for different apps. So an abstraction for this is not beneficial.
Also move the next specific dev build check to @/next
2024-04-03 14:21:11 +05:30
Manav Rathi
d28daece8a
ignorePatters seems to be inherited (as we wished) when extending
2024-04-03 13:48:41 +05:30
Manav Rathi
24bce96d71
Shorten
2024-04-03 13:44:30 +05:30
Manav Rathi
ad6dea2ecb
prettier markdown
2024-04-03 13:39:44 +05:30
Manav Rathi
212dcfb88a
Tinker
2024-04-03 13:32:05 +05:30
Manav Rathi
e2fd88bff0
Remove (possibly) unnecessary tsconfigRootDir
...
Let's see what breaks
2024-04-03 13:15:12 +05:30
Manav Rathi
764b6bf2f3
Move react setup to react specific file
2024-04-03 13:02:09 +05:30
Manav Rathi
5c1ed5be8f
Restructure eslint config
2024-04-02 20:44:57 +05:30
Manav Rathi
14fde54d87
Not really
2024-04-02 20:04:23 +05:30
Manav Rathi
26b35cec9e
Merge @/ui into @/next
2024-04-02 19:58:42 +05:30
Manav Rathi
cc90dd7ba5
[web] Enable Russian
...
The translation percentage of Russian in crowdin is now 100%, it's time to
enable it as an option in the UI.
A big thank you to the translators.
2024-04-02 17:16:33 +05:30
Manav Rathi
0e1bdfe07e
Support arbitrary ReactNodes as title
2024-04-02 14:38:37 +05:30
Manav Rathi
25e762ba57
Remove mui from list of transpiled packages
...
- I can't see this mentioned anywhere in the docs
- Removing it didn't break anything dev / preview
2024-04-01 17:13:06 +05:30
Manav Rathi
9b27cac465
Remove @emotion/server
...
It is not mentioned as a dependency in the SSR page
> For v10 and above, SSR just works in Next.js.
>
> https://emotion.sh/docs/ssr
Tested by - yarn dev, yarn preview:photos
2024-04-01 16:05:17 +05:30
Manav Rathi
7183a8b493
[web] Remove emotion caches
...
This is no longer needed for emotion > 10
> For v10 and above, SSR just works in Next.js.
>
> https://emotion.sh/docs/ssr#nextjs
Tested with
- yarn dev:*
- yarn preview:*
This change screws up the CSS in places in dev mode though.
2024-03-30 20:56:38 +05:30
Manav Rathi
949780d1e8
[cast] Use the placeholder as the placeholder, not as the label
2024-03-29 12:15:06 +05:30
Manav Rathi
478435f806
Use :3001 for all the aux services
2024-03-28 11:42:59 +05:30
Manav Rathi
8f0ef055c5
[web] Make the imported payments code feel at home in the new monorepo
...
- Use the shared yarn monorepo configuration
- styled-components => emotion (since that's what the rest of the code uses)
- Remove Sentry (since it's gone elsewhere)
2024-03-28 11:40:22 +05:30
Manav Rathi
48a726885f
Fix typo in comment
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
147d79c64f
[web][photos] Fix infinite loop on half-logins ( #1197 )
...
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
Manav Rathi
4b7155dd13
Match the condition in one more place
2024-03-25 17:44:27 +05:30
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
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
Manav Rathi
e8acbd8c9f
Convert the other conversion functions
2024-03-25 12:45:21 +05:30
Manav Rathi
2522da2b5e
Handle runFFMPEGCmd in preload
2024-03-25 12:32:57 +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
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
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
Manav Rathi
b1d0909675
EXtract common queueProcessor
2024-03-23 18:49:22 +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
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
Manav Rathi
7a3209ebf6
Fix preload.ts - Part x/x
2024-03-23 16:13:16 +05:30
Manav Rathi
d297465ea6
Dedup
2024-03-22 20:48:57 +05:30
Manav Rathi
03bad54bce
Remove from the web side
2024-03-22 17:41:32 +05:30
Manav Rathi
8391e7edfc
Start migrating from promise-fs
2024-03-22 15:13:37 +05:30
Manav Rathi
3a6c7b2dcd
Remove unused sendNotification IPC
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
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