Commit graph

47 commits

Author SHA1 Message Date
Manav Rathi 902074022a
ff
This reverts commit 6568cb19a9.
2024-05-10 22:22:39 +05:30
Manav Rathi 95c0f53d21
Preserve parameters
This was needed for the purchase success to be relayed back.
2024-04-15 10:59:07 +05:30
Manav Rathi 8d24a489f6
[desktop] Fix payment redirect
Fixes: https://github.com/ente-io/ente/issues/1440

There were two issues:

- It was a backward incompatible change to change the scheme from ente:// to
  next://. Revert.

- We also need to setup a top level redirect when the user presses back without
  making any changes to their subscription.

**Tested by**

Running payments app and desktop app locally, and verifying that after
interactions with the payments endpoint we go back to the desktop app's actual
contents correctly.
2024-04-15 10:47:14 +05:30
Manav Rathi 039387a84e
Initial-scale=1 is still recommended
Ref:
https://teamtreehouse.com/community/is-initialscale-not-needed
2024-04-05 09:36:18 +05:30
Manav Rathi 384ec365e8
Add starter staff app 2024-04-04 15:25:38 +05:30
Manav Rathi 608cb6c85e
Prevent double rendering in strict mode
The double invocation during dev mode, while harmless, is confusing, so add an
additional small check to insure this only runs once.
2024-04-04 14:25:04 +05:30
Manav Rathi 712b99b8f3
Fix lint issue 2024-04-04 14:15:42 +05:30
Manav Rathi 935e47fbca
Fix the payments eslint 2024-04-04 14:10:16 +05:30
Manav Rathi fcb26d39f1
Don't need default export 2024-04-04 14:02:31 +05:30
Manav Rathi ff6d0d32cf
Remove unused 404 handler
The default appType == 'spa' in vite redirects all (unclaimed) paths to /index.html.

If needed, this can be disabled:
https://stackoverflow.com/questions/69701743/how-can-i-configure-vites-dev-server-to-give-404-errors/69711988#69711988
2024-04-04 13:58:30 +05:30
Manav Rathi 756050ae8c
Fix compilation 2024-04-04 13:02:08 +05:30
Manav Rathi 87dc7d76ca
Remove middleman package, to get it to compile 2024-04-04 11:36:20 +05:30
Manav Rathi 4255e48abb
Convert payments app to use Vite - Part 1
(Doesn't compile)
2024-04-04 11:10:34 +05:30
Manav Rathi a8a5cc8b59
Inline spinner 2024-04-04 09:55:52 +05:30
Manav Rathi 949a42004f
Remove the need for a separate page 2024-04-04 09:53:11 +05:30
Manav Rathi 56d500f4e8
Keep React in scope 2024-04-03 21:41:03 +05:30
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 ad6dea2ecb
prettier markdown 2024-04-03 13:39:44 +05:30
Manav Rathi e2fd88bff0
Remove (possibly) unnecessary tsconfigRootDir
Let's see what breaks
2024-04-03 13:15:12 +05:30
Manav Rathi 5c1ed5be8f
Restructure eslint config 2024-04-02 20:44:57 +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 d5f294980e
Remove use of emotion from payments 2024-04-01 17:08:54 +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 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 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 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