Commit graph

25109 commits

Author SHA1 Message Date
Manav Rathi 687efe506a
[web] Fix an regression introduced in the previous PR (#1324)
Use the implementation instead of the accidental infinite loop
2024-04-05 11:32:32 +05:30
Manav Rathi e0cfa36f08
Use the implementation instead of the accidental infinite loop 2024-04-05 10:51:04 +05:30
laurenspriem 858ba88c65 [mob] Change share page copy 2024-04-05 10:48:37 +05:30
Manav Rathi e7e8ded1ed
[web] Miscellaneous improvements (#1322)
- Remove unused knobs
- Inline
- Initial-scale=1 is still recommended
- Remove custom _document (with a longer term vision of next => vite)
2024-04-05 10:17:04 +05:30
Manav Rathi fa7cbaea18
Remove custom _document
Looking towards a longer term transition out of next
2024-04-05 10:09:37 +05:30
Manav Rathi 9785bbcb26
We don't have full web app support yet
Plus, Apple doesn't do much for PWAs anyway. One reason for removing this until
we test it out in actuality is because there were reports of the semi-PWA
caching causing issues.
2024-04-05 09:38:48 +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 866b52b002
Inline constant 2024-04-05 09:26:30 +05:30
Manav Rathi 2c098904fb
Inline 2024-04-05 09:13:38 +05:30
Manav Rathi a68dce35f6
Remove unused knob 2024-04-05 09:08:56 +05:30
Manav Rathi 1d0f30ad91
These values were never customized 2024-04-05 09:08:02 +05:30
Manav Rathi 7374fe2ecc
[web] Fix nightly build (#1321)
Got broken by yesterday's changes to payments.
2024-04-05 08:58:17 +05:30
Manav Rathi 55454f9454
[web] Fix nightly build
Got broken by yesterday's changes to payments.
2024-04-05 08:57:24 +05:30
Manav Rathi 1aa39e83d7
[server] Build ARM images when publishing to ghcr.io (#1320)
Untested yet, will test alongside the next publish

Requested in https://github.com/ente-io/ente/discussions/1305
2024-04-04 21:59:47 +05:30
Manav Rathi d84ee7223a
[server] Build ARM images when publishing 2024-04-04 21:57:44 +05:30
Manav Rathi 4e5fcebb95
[infra] Setup listmonk (#1319) 2024-04-04 21:36:02 +05:30
Manav Rathi e170b6811d
Tweaks
Refs:
https://github.com/knadh/listmonk/blob/master/listmonk-simple.service#L16
2024-04-04 21:27:47 +05:30
Manav Rathi 3ed2186dcf
Initial cut of listmonk setup 2024-04-04 20:23:25 +05:30
Manav Rathi b6177a5bc3
Listmonk mailing list control (#1289)
## Description
Add listmonk mailing list subscribe and unsubscribe

## Tests
Tested getSubscriberID, unsubscribe, and subscribe using a locally
running listmonk server with different parameters.
- [x] A new subscriber is created and added to the listmonk campaign
mailing list on listmonkSubscribe() for the given list IDs
- [x] Subscriber is removed from listmonk campaign mailing list on
listmonkUnsubscribe() for the given list IDs
- [x] The old email address is unsubscribed, and the new email is
subscribed when a user updates the email
2024-04-04 17:21:55 +05:30
Manav Rathi 27410b2da9
[web] Add an example fetch to staff (#1315)
- Add schema validation of the response
- Add an example fetch
2024-04-04 16:22:49 +05:30
Manav Rathi ae061d2a44
fetch 2024-04-04 16:19:46 +05:30
Manav Rathi d9d03d8451
Add schema validation of the response 2024-04-04 16:12:39 +05:30
Manav Rathi 2f5abb6318
[web] Scaffold staff app (#1314) 2024-04-04 15:50:10 +05:30
Manav Rathi e53c923675
Lint fix + update URL 2024-04-04 15:44:03 +05:30
Manav Rathi 39228270c1
Deploy 2024-04-04 15:40:17 +05:30
Manav Rathi 384ec365e8
Add starter staff app 2024-04-04 15:25:38 +05:30
Vishnu Mohandas b2da2c7e88
Setup Triple-T configuration for F-Droid (#1313)
Potential fix for https://github.com/ente-io/ente/issues/1172.
2024-04-04 15:16:45 +05:30
vishnukvmd c25cc6f8a4 Setup Triple-T configuration for F-Droid 2024-04-04 15:15:59 +05:30
Vishnu Mohandas b2cf6be5f5
[photos] v0.8.75 (#1312) 2024-04-04 14:50:54 +05:30
vishnukvmd fce68ba1be [photos] v0.8.75 2024-04-04 14:50:22 +05:30
Manav Rathi 29550317f7
Enable the jsx-runtime plugin for vite's ESLint
This prevents it complaining about a missing React import.

Enabling this is recommended by the vite starter itself:

> Install
  [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and
  add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends`
  list
2024-04-04 14:46:41 +05:30
Manav Rathi 876c5800f9
[web] Convert payments app to Vite (#1311)
This is the culmination of the previous few PRs. The payments app now
uses vite, which is what we want to give out a real shot for the smaller
of our apps.

**Tested by**

Local setup, and subscribing to a plan.
2024-04-04 14:36:36 +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
Vishnu Mohandas 52c47234fd
[Photos] Allow for configuring a custom server (#1302)
## Description
Users can now tap on the onboarding screen 7 times to bring up a page
where they can configure the endpoint the app should be connecting to.

![photos-selfhost](https://github.com/ente-io/ente/assets/1161789/42fda09a-07e4-4c4e-a658-ec4a2d3f1848)

## Tests
- [x] Verified that production flows are working as expected
- [x] Verified that configuring the endpoint to a local instance lets
you
  - [x] Connect to that instance
  - [x] Create an account
  - [x] Upload a photo
  - [x] Logout and log back in
2024-04-04 13:41:26 +05:30
Manav Rathi 756050ae8c
Fix compilation 2024-04-04 13:02:08 +05:30
Manav Rathi a2d39a46be
[server] nginx configuration improvements (#1310)
- Use keepalives
- Update deprecated http2 syntax
- Document how to check config

Refs:
-
https://www.nginx.com/blog/avoiding-top-10-nginx-configuration-mistakes/#no-keepalives
- https://github.com/nginxinc/kubernetes-ingress/issues/4237
-
https://stackoverflow.com/questions/65944578/how-to-get-nginx-running-in-docker-to-reload-nginx-conf-configuration
2024-04-04 12:42:10 +05:30
Manav Rathi 407eca5414
[server] nginx configuration improvements
- Use keepalives
- Update deprecated http2 syntax
- Document how to check config

Refs:
- https://www.nginx.com/blog/avoiding-top-10-nginx-configuration-mistakes/#no-keepalives
- https://github.com/nginxinc/kubernetes-ingress/issues/4237
- https://stackoverflow.com/questions/65944578/how-to-get-nginx-running-in-docker-to-reload-nginx-conf-configuration
2024-04-04 12:36:39 +05:30
Manav Rathi 87dc7d76ca
Remove middleman package, to get it to compile 2024-04-04 11:36:20 +05:30
Ashil 8b643549fe
[mobile][photos] Remove unused global keys (#1309) 2024-04-04 11:29:23 +05:30
Vishal d8190926fd Change if-else 2024-04-04 11:24:13 +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 cb94dd8b42
[web] Refactor payments (#1304)
This is a reduction in code generally before we give a shot to using
vite for Payments. Once that is done, will do an end-to-end test of the
payments pages on localhost.
2024-04-03 21:44:08 +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