Billing / plus frontend (#2130)

* [wip] initial

* [wip] subscriptions/plus frontend

* [wip] finish payment flow

* Charges page

* finish most subscriptions work

* Finish

* update eslint

* Fix issues

* fix intl extract

* fix omorphia locale extract

* fix responsiveness

* fix lint
This commit is contained in:
Geometrically
2024-08-15 23:21:30 -07:00
committed by GitHub
parent 1b3744baa2
commit 3a4843fb46
44 changed files with 2353 additions and 201 deletions

View File

@@ -181,13 +181,7 @@ const route = useNativeRoute();
const redirectTarget = route.query.redirect || "";
if (route.fullPath.includes("new_account=true")) {
await navigateTo(
`/auth/welcome?authToken=${route.query.code}${
route.query.redirect ? `&redirect=${encodeURIComponent(route.query.redirect)}` : ""
}`,
);
} else if (route.query.code) {
if (route.query.code && !route.fullPath.includes("new_account=true")) {
await finishSignIn();
}

View File

@@ -205,14 +205,6 @@ const route = useNativeRoute();
const redirectTarget = route.query.redirect;
if (route.fullPath.includes("new_account=true")) {
await navigateTo(
`/auth/welcome?authToken=${route.query.code}${
route.query.redirect ? `&redirect=${encodeURIComponent(route.query.redirect)}` : ""
}`,
);
}
if (auth.value.user) {
await navigateTo("/dashboard");
}

View File

@@ -73,7 +73,7 @@ useHead({
const subscribe = ref(true);
async function continueSignUp() {
const route = useNativeRoute();
const route = useRoute();
await useAuth(route.query.authToken);
await useUser();