change price && clean code
This commit is contained in:
parent
687723f94e
commit
cfeea4771f
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
export const actions = {
|
||||
@ -135,10 +134,6 @@ export const actions = {
|
||||
maxAge: 60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
export const actions = {
|
||||
@ -135,10 +134,6 @@ export const actions = {
|
||||
maxAge: 60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
|
||||
@ -936,7 +936,7 @@ onDestroy(async () => {
|
||||
{['Active', 'Paid', 'On Trial', 'Cancelled']?.includes(subscriptionData?.status_formatted) ? subscriptionData?.product_name : data?.user?.freeTrial === true ? 'Free Trial Subscription' : 'Free Subscription'}
|
||||
</span>
|
||||
<span class="text-sm text-white {subscriptionData?.status_formatted !== 'Active' ? 'hidden' : ''}">
|
||||
{subscriptionData?.product_name?.includes('Monthly') ? '$9.99 billed every month' : '$90 billed every year'}
|
||||
{subscriptionData?.product_name?.includes('Monthly') ? '$49.99 billed every month' : '$499 billed every year'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
export const load = async ({locals, params}) => {
|
||||
|
||||
@ -145,9 +144,6 @@ export const actions = {
|
||||
maxAge: 60*60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
export const actions = {
|
||||
@ -133,10 +132,6 @@ export const actions = {
|
||||
path: '/',
|
||||
maxAge: 60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
export const actions = {
|
||||
@ -135,10 +134,6 @@ export const actions = {
|
||||
maxAge: 60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider} from '$lib/store';
|
||||
|
||||
|
||||
export const actions = {
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
export const actions = {
|
||||
@ -128,10 +127,6 @@ export const actions = {
|
||||
maxAge: 60*60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
|
||||
@ -128,7 +128,7 @@ async function purchasePlan() {
|
||||
Pay Yearly
|
||||
</span>
|
||||
<span class="text-[#9DED1E] text-sm font-semibold">
|
||||
Save up 25%
|
||||
Save up 16%
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@ -250,7 +250,7 @@ async function purchasePlan() {
|
||||
<div class="flex flex-col mb-6 items-center">
|
||||
|
||||
<div class="flex flex-row items-center">
|
||||
<span class="mr-2 text-4xl font-bold">{mode ? '$90' : '$9.99'}</span>
|
||||
<span class="mr-2 text-4xl font-bold">{mode ? '$499' : '$49.99'}</span>
|
||||
<span class="text-white text-xl">{mode ? '/year' : '/month'}</span>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
|
||||
@ -136,10 +135,7 @@ export const actions = {
|
||||
path: '/',
|
||||
maxAge: 60*60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
|
||||
@ -130,10 +129,6 @@ export const actions = {
|
||||
path: '/',
|
||||
maxAge: 60*60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { error, fail, redirect } from "@sveltejs/kit";
|
||||
import { validateData } from "$lib/utils";
|
||||
import { loginUserSchema, registerUserSchema } from "$lib/schemas";
|
||||
import { oauthState, oauthVerifier, oauthProvider } from '$lib/store';
|
||||
|
||||
|
||||
export const actions = {
|
||||
@ -127,9 +126,6 @@ export const actions = {
|
||||
maxAge: 60*60
|
||||
});
|
||||
|
||||
oauthState.update( value => state);
|
||||
oauthVerifier.update( value => verifier);
|
||||
oauthProvider.update( value => providerSelected);
|
||||
|
||||
|
||||
redirect(302,authProviderRedirect);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user