diff --git a/TODO b/TODO index 45297df..f1b6b75 100644 --- a/TODO +++ b/TODO @@ -1 +1,4 @@ -- Email login (remove/fix github login) \ No newline at end of file +- Email login (remove/fix github login) + +- Remove github login + diff --git a/dashboard/components/pricing/PricingCard.vue b/dashboard/components/pricing/PricingCard.vue deleted file mode 100644 index 76296d5..0000000 --- a/dashboard/components/pricing/PricingCard.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/dashboard/components/pricing/PricingCardGeneric.vue b/dashboard/components/pricing/PricingCardGeneric.vue index 9f4d4e9..82ba2ca 100644 --- a/dashboard/components/pricing/PricingCardGeneric.vue +++ b/dashboard/components/pricing/PricingCardGeneric.vue @@ -15,7 +15,7 @@ export type PricingCardProp = { const props = defineProps<{ datas: PricingCardProp[], defaultIndex?: number }>(); -const activeProject = useActiveProject(); +const { project } = useProject(); const currentIndex = ref(props.defaultIndex || 0); @@ -24,8 +24,13 @@ const data = computed(() => { }) async function onUpgradeClick() { - const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/create`, { - ...signHeaders({ 'content-type': 'application/json' }), + const res = await $fetch(`/api/pay/create`, { + headers: useComputedHeaders({ + useSnapshotDates: false, + custom: { + 'content-type': 'application/json' + } + }).value, method: 'POST', body: JSON.stringify({ planId: data.value.planId }) }) @@ -67,7 +72,10 @@ async function onUpgradeClick() { }" :min="0" :max="datas.length - 1" v-model="currentIndex"> -
{{ sub }}
+
+ {{ sub }} +
@@ -82,20 +90,27 @@ async function onUpgradeClick() {
-
-
+ +
+ + + Upgrade -
-
+ + + Downgrade -
+ +
- + + {{ data.cta }} - + +
diff --git a/dashboard/components/pricing/PricingDrawer.vue b/dashboard/components/pricing/PricingDrawer.vue index 6e3e618..b530519 100644 --- a/dashboard/components/pricing/PricingDrawer.vue +++ b/dashboard/components/pricing/PricingDrawer.vue @@ -15,7 +15,7 @@ function getPricingsData() { price: '€0 / mo', subs: [ 'Up to 5000 visits/events per month', - 'CPM 0€ per visit/event' + ], features: [ 'Email support', @@ -274,7 +274,7 @@ async function onLifetimeUpgradeClick() {
-
+
help@litlyx.com diff --git a/dashboard/components/settings/billing.vue b/dashboard/components/settings/billing.vue index 936b382..94b4c13 100644 --- a/dashboard/components/settings/billing.vue +++ b/dashboard/components/settings/billing.vue @@ -127,23 +127,23 @@ const { visible } = usePricingDrawer();