Manav Rathi
7a41ba43a5
Another cleanup of billing-service
2024-04-03 21:32:38 +05:30
Manav Rathi
7a729183e2
Cleanup the pages
2024-04-03 20:03:02 +05:30
Manav Rathi
aa5422db6c
Clean up CSS
2024-04-03 19:54:16 +05:30
Manav Rathi
c0fee7bc91
Clean up strings
2024-04-03 19:51:01 +05:30
Manav Rathi
1411ca6fad
Continue refactoring
2024-04-03 19:46:15 +05:30
Manav Rathi
d0f1bbfca7
Refactor billing service
2024-04-03 17:22:00 +05:30
Manav Rathi
8a00f1b85f
Remove custom errors indirection
2024-04-03 15:45:20 +05:30
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
a689aca4a6
Remove the eslint stuff from docs
...
(trying to remove the eslint-disables throughout)
2024-04-03 13:26:46 +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
b3a86874db
yarn.lock
2024-04-02 20:47:35 +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
6213628aee
[web] Prefer .local files for local only configuration ( #1280 )
...
Refs: https://vitejs.dev/guide/env-and-mode.html
2024-04-02 17:22:32 +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
9cb289e002
[desktop] Prevent the desktop app from getting stuck on viewing openstreetmap info
...
Open the link in a new tab. This prevents the desktop app from getting into a
state where the user cannot navigate back.
2024-04-02 17:05:23 +05:30
Crowdin Bot
ce5627f04c
New Crowdin translations by GitHub Action
2024-04-02 11:28:47 +00:00
Manav Rathi
2e7dcc6bc2
Make the cast link clickable
2024-04-02 16:51:27 +05:30
Manav Rathi
0e1bdfe07e
Support arbitrary ReactNodes as title
2024-04-02 14:38:37 +05:30
Manav Rathi
b95fc54adb
[web] Prefer .local files for local only configuration
...
Refs:
https://vitejs.dev/guide/env-and-mode.html
2024-04-01 19:59:02 +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
d5f294980e
Remove use of emotion from payments
2024-04-01 17:08:54 +05:30
Manav Rathi
1e410a82f2
Remove stray use of @mui/system
2024-04-01 17:05:05 +05:30
Manav Rathi
3b3d314f9c
Remove stale import from styled-engine
2024-04-01 16:52:57 +05:30
Manav Rathi
eced463f6f
Investigate and explain why component selectors don't work with Next vanilla
...
Refs:
- https://github.com/mui/material-ui/issues/27380#issuecomment-928973157
- https://codesandbox.io/s/hopeful-browser-4q17t5?file=/README.md
- https://mui.com/system/styled/#how-to-use-components-selector-api
- https://github.com/vercel/next.js/issues/46973
2024-04-01 16:43:10 +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
7248a226bc
Remove bootstrap
2024-04-01 15:35:45 +05:30
Manav Rathi
8ae7ae2de9
Replace the Spinner in payments
2024-04-01 15:32:56 +05:30
Manav Rathi
28cf7d76d5
Even numbers don't seem to be kosher, only strings work
2024-04-01 15:13:43 +05:30
Manav Rathi
c2957238da
Fix the date handling
2024-04-01 15:07:29 +05:30
Manav Rathi
f9a2ec774a
Make it work with MUI components
2024-04-01 14:54:29 +05:30
Manav Rathi
0568cd03c9
Refactor somewhat
...
More to come
2024-04-01 13:07:36 +05:30
Manav Rathi
39bc68390f
Match the variable name
2024-04-01 10:49:28 +05:30
Manav Rathi
83dabfbdee
Refactor
2024-04-01 10:23:54 +05:30
Manav Rathi
35f2a6944e
Inline
2024-04-01 09:58:55 +05:30
Manav Rathi
18698d35bb
Replace in export progress
2024-03-31 21:43:24 +05:30
Manav Rathi
9e41b906a7
Swap progress bar
2024-03-31 21:38:26 +05:30
Manav Rathi
0f2181c09b
Remove more legacy ml code
2024-03-31 18:41:15 +05:30
Manav Rathi
707e14702e
Remove unused ML debug code
2024-03-31 18:34:00 +05:30
Manav Rathi
f3a0240f1d
Remove more dead code
...
...that uses bootstrap instead of spending migration effort on it.
2024-03-31 18:23:05 +05:30
Manav Rathi
e84b989484
Remove unused code
...
Came across this when trying to migrate off bootstrap in the few remaining
places, this code is unused and just removing it instead of doing a migration of
it to mui.
2024-03-31 18:19:48 +05:30
Manav Rathi
86e4cffb8e
Replace bootstrap buttons in fix time dialog
2024-03-31 18:16:57 +05:30
Manav Rathi
1d02fe4f32
Remove unused fix-large-thumbnail feature
...
This was disabled years ago. Specifically removing this now to reduce the amount
of work in removing bootstrap.
2024-03-31 18:07:17 +05:30
Manav Rathi
e5edeae370
Remove the bootstrap carousel
2024-03-31 18:01:38 +05:30
Manav Rathi
40a1da1ba7
Fine tune
2024-03-31 18:00:09 +05:30
Manav Rathi
5dfafa28c7
Almost there in terms of styling
2024-03-31 17:54:38 +05:30
Manav Rathi
d3df6b31ae
Use actual contents
2024-03-31 17:31:33 +05:30
Manav Rathi
145850a66e
Try using intrinsic size
2024-03-31 17:28:26 +05:30
Manav Rathi
6b56c28870
Mark vscode-styled-components optional
2024-03-31 17:07:48 +05:30
Manav Rathi
9ec68ecd3d
Mention vscode-styled-components
2024-03-31 17:04:38 +05:30
Manav Rathi
8c127a6cec
Animate
2024-03-31 16:47:10 +05:30
Manav Rathi
3890373d4a
Try pure-react-carousel as a replacement of bootstrap's Carousel
2024-03-31 16:45:46 +05:30
Manav Rathi
ee1eb75bdf
Extract component
2024-03-31 16:41:50 +05:30
Manav Rathi
14e99ea26a
Fix ports
2024-03-30 20:59:05 +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
5810d2b762
Add yarn preview:*
2024-03-30 18:06:58 +05:30
Manav Rathi
f6abcafc83
Copy over fix into auth and accounts
2024-03-30 17:20:26 +05:30
Manav Rathi
911cdd9448
Remove more dead code from cast
2024-03-29 22:37:42 +05:30
Manav Rathi
b4699ecfcb
Remove ElectronFile from cast
2024-03-29 22:26:50 +05:30
Manav Rathi
ded151241f
Remove more dead code from cast
2024-03-29 22:22:03 +05:30
Manav Rathi
3dfc3a6dba
Remove dead code from cast
2024-03-29 21:56:33 +05:30
Manav Rathi
7ef59bb4cc
Short circuit unused code
...
isFileEligibleForCast filters out isRawFileFromFileName. Specifically, it
filters out HEIC files. So getRenderableImage is a no-op.
2024-03-29 21:01:17 +05:30
Manav Rathi
049a240916
Remove dead code from cast
2024-03-29 20:54:10 +05:30
Manav Rathi
3fdf5f1e46
Remove dead cast code
2024-03-29 20:12:57 +05:30
Manav Rathi
9440b967c8
Remove the extra spaces being inserted when we copy paste
...
Ref:
- https://github.com/facebook/react/issues/1643
- https://stackoverflow.com/questions/10837063/display-text-with-spaces-that-are-not-copied
2024-03-29 17:10:51 +05:30
Manav Rathi
d22cf34a0e
Remove nesting
2024-03-29 16:18:49 +05:30
Manav Rathi
0d3662d9fe
Remove the 123456 below the actual code
...
It prevents copy pasting (and doesn't look too good either)
2024-03-29 16:03:34 +05:30
Manav Rathi
70e5e9b13c
[cast] Change slideshow time from 5s => 10s
2024-03-29 12:34:54 +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
a06a93e73d
Use 3001 for sidecars
2024-03-29 11:58:42 +05:30
Manav Rathi
1f6b9030ff
[web] Fix nightly build
...
This was accidentally an ancient version of axios when importing from the older
repo - update it to what the rest of the code uses (via the shared package).
2024-03-29 09:11:28 +05:30
Manav Rathi
055ebd0447
Fix leftover gunk
2024-03-28 17:44:27 +05:30
Manav Rathi
212b2663d0
Add payments deployment scripts
2024-03-28 17:42:54 +05:30
Manav Rathi
5867af3a2f
Clean up EnteSpinner
2024-03-28 17:15:45 +05:30
Manav Rathi
ac01f7a12a
Clean up utils
2024-03-28 17:10:48 +05:30
Manav Rathi
713a0038f0
Clean up CSS
2024-03-28 17:09:11 +05:30
Manav Rathi
3c0c591bed
Remove custom font
2024-03-28 17:08:39 +05:30
Manav Rathi
990f9a8d70
Remove old payment instructions
2024-03-28 17:05:59 +05:30
Manav Rathi
f524403580
Wait for i18 to be ready before trying to load the page
2024-03-28 14:25:20 +05:30
Manav Rathi
4c05e0925d
Fix example whitelisted-redirect-url
2024-03-28 13:19:00 +05:30
Manav Rathi
2b379640ca
Allow billing plans to be mounted into the Docker container if needed
2024-03-28 13:07:43 +05:30
Manav Rathi
8cd725978a
Update the README
2024-03-28 12:55:47 +05:30
Manav Rathi
c5a2b61454
Fix tsconfig formatting
2024-03-28 12:11:09 +05:30
Manav Rathi
88e4f61221
Config
2024-03-28 12:07:10 +05:30
Manav Rathi
06f1fa086e
Fix dev
2024-03-28 11:56:05 +05:30
Manav Rathi
e4c18b9e74
Inline
2024-03-28 11:49:05 +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
Abhinav
8a3c0743fe
Import code for payments.ente.io
...
Manav: To avoid accidentally spilling out any secrets, squash and
import. However, the overwhelming majority of the work in the original code was
done by Abhinav <abhinavk.grd@gmail.com> so set them as the author for the
commit.
2024-03-28 10:19:44 +05:30
Vishnu Mohandas
eef33e9c0c
[mobile][web] Redirect to payment portal if subscription is past due ( #1222 )
...
## Description
When a customer whose Stripe subscription is past due (within the 30 day
window after expiry time and has not been cancelled) clicks on the
subscription modal, take them to the payment portal to complete the
subscription.
## Tests
- [x] Tested web
- [x] Tested mobile
2024-03-27 16:29:58 +05:30
vishnukvmd
ba307b0dcd
[web] Fix check
2024-03-27 16:23:38 +05:30
vishnukvmd
ba314eb647
[web] Handle past-due state on clicking "renew"
2024-03-27 16:17:23 +05:30
vishnukvmd
1020366c3a
[mobile][web] Ignore cancelled subscriptions while computing past-due status
2024-03-27 16:11:03 +05:30
vishnukvmd
a15e9b0c9a
[web] Redirect to payment portal if subscription is past due
2024-03-27 15:57:00 +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
24176d8c40
Document a few more dependencies
2024-03-26 21:42:48 +05:30
Crowdin Bot
e3d3943539
New Crowdin translations by GitHub Action
2024-03-26 01:36:29 +00:00
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
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
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
Crowdin Bot
e953c1c16b
New Crowdin translations by GitHub Action
2024-03-23 10:40:49 +00:00
Manav Rathi
53c53cebbc
[web] Update the "source" translation
...
https://github.com/ente-io/ente/pull/1185 updated the file but in the accounts
app. That's not the file that's used as the source - this PR updates the one we
use as the source for Crowdin.
2024-03-23 15:01:44 +05:30
vishnukvmd
0fd4b2936d
ente -> Ente
2024-03-23 12:22:16 +05:30
vishnukvmd
a96cb58f87
Fix case for strings
2024-03-23 12:20:15 +05:30
Manav Rathi
d297465ea6
Dedup
2024-03-22 20:48:57 +05:30
Manav Rathi
0a7991bc0e
Remove unused code
2024-03-22 19:52:08 +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
Crowdin Bot
c9e008895c
New Crowdin translations by GitHub Action
2024-03-22 01:36:33 +00:00
Manav Rathi
1157919496
Update the support email
2024-03-21 12:14:23 +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
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
b7b33eba4a
Switch to contextBridge - Part 1
2024-03-19 19:17:01 +05:30
Manav Rathi
fc3aea7694
[web] Update yarn.lock
2024-03-19 11:24:42 +05:30
Crowdin Bot
9e44f5cc20
New Crowdin translations by GitHub Action
2024-03-19 01:37:04 +00:00
Manav Rathi
4ff378cd06
[web] Update translations for the non-photos apps
2024-03-18 20:01:37 +05:30
Crowdin Bot
6bbd296c25
New Crowdin translations by GitHub Action
2024-03-18 03:38:20 +00:00
Manav Rathi
9012a96a58
[web] Add passkeys related translations
...
Obtained these strings from 33faadf83e/apps/accounts/public/locales/en/translation.json (L632)
I didn't have a way of exhaustively ensuring that all strings are covered, but
I've tried to manually verify.
Once this is merged and translation files synced with Crowdin, I'll do another
PR to update the `local/**/translation.json` files within apps/accounts.
2024-03-17 11:55:57 +05:30
Manav Rathi
f85f220c1d
Web Passkey Recovery ( #1047 )
...
## Description
* Adds passkey recovery feature parity from #1013
## Tests
2024-03-17 11:44:13 +05:30