opnform-host-nginx/client/components/vendor/appsumo/AppSumoBilling.vue

115 lines
2.4 KiB
Vue
Raw Normal View History

2023-12-09 15:47:03 +01:00
<template>
<div
v-if="user.active_license"
class="border p-5 shadow-md rounded-md"
>
2023-12-09 15:47:03 +01:00
<div class="w-auto flex flex-col items-center">
<img
src="/img/appsumo/as-taco-white-bg.png"
class="max-w-[60px]"
alt="AppSumo"
>
2023-12-09 15:47:03 +01:00
<img
src="/img/appsumo/as-Select-dark.png"
class="max-w-[150px]"
alt="AppSumo"
>
2023-12-09 15:47:03 +01:00
</div>
<p class="mt-6">
Your AppSumo
<span class="font-semibold">lifetime deal tier {{ licenseTier }}</span>
license is active. Here's a reminder of your plan details:
2023-12-09 15:47:03 +01:00
</p>
<ul class="list-disc pl-5 mt-4">
<li>
Number of Forms:
<span class="font-semibold">{{ tierFeatures.form_quantity }}</span>
</li>
<li>
Custom domains:
<span class="font-semibold">{{ tierFeatures.domain_names }}</span>
</li>
<li>
File Size Uploads:
<span class="font-semibold">{{ tierFeatures.file_upload_size }}</span>
</li>
<li>
Users limit:
<span class="font-semibold">{{ tierFeatures.users }}</span>
</li>
2023-12-09 15:47:03 +01:00
</ul>
<div class="w-max">
<v-button
color="outline-gray"
shade="lighter"
class="mt-4 block"
href="https://appsumo.com/account/products/"
target="_blank"
>
Manage in AppSumo
2023-12-09 15:47:03 +01:00
</v-button>
</div>
</div>
</template>
<script>
import { computed } from "vue"
import VButton from "~/components/global/VButton.vue"
2023-12-09 15:47:03 +01:00
export default {
name: "AppSumoBilling",
2023-12-09 15:47:03 +01:00
components: { VButton },
setup() {
2023-12-09 15:47:03 +01:00
const authStore = useAuthStore()
return {
user: computed(() => authStore.user),
2023-12-09 15:47:03 +01:00
}
},
data() {
return {}
2023-12-09 15:47:03 +01:00
},
computed: {
licenseTier() {
2023-12-09 15:47:03 +01:00
return this.user?.active_license?.meta?.tier
},
tierFeatures() {
2023-12-09 15:47:03 +01:00
if (!this.licenseTier) return {}
return {
1: {
form_quantity: "Unlimited",
file_upload_size: "25mb",
domain_names: "5",
users: 1
2023-12-09 15:47:03 +01:00
},
2: {
form_quantity: "Unlimited",
file_upload_size: "50mb",
domain_names: "25",
users: 5
2023-12-09 15:47:03 +01:00
},
3: {
form_quantity: "Unlimited",
file_upload_size: "75mb",
domain_names: "Unlimited",
2024-07-26 13:24:34 +02:00
users: 20
},
2023-12-09 15:47:03 +01:00
}[this.licenseTier]
},
2023-12-09 15:47:03 +01:00
},
watch: {},
mounted() {},
2023-12-09 15:47:03 +01:00
created() {},
2023-12-09 15:47:03 +01:00
unmounted() {},
2023-12-09 15:47:03 +01:00
methods: {},
2023-12-09 15:47:03 +01:00
}
</script>