Files
opnform-host-nginx/client/components/vendor/appsumo/AppSumoRegister.vue

82 lines
1.6 KiB
Vue
Raw Normal View History

2023-12-09 15:47:03 +01:00
<template>
<div
v-if="hasValidLicense"
class="p-6 bg-white border shadow-md rounded-md"
>
<img
src="/img/appsumo/as-taco-white-bg.png"
class="max-w-[60px] mx-auto"
alt="AppSumo"
>
2023-12-09 15:47:03 +01:00
<img
src="/img/appsumo/as-Select-dark.png"
class="max-w-[300px] mx-auto"
alt="AppSumo"
>
2023-12-09 15:47:03 +01:00
<p class="mt-6">
<span class="text-green-500">We found your AppSumo Lifetime deal license!</span>
Just complete the registration form to finalize the activation of your
license.
2023-12-09 15:47:03 +01:00
</p>
</div>
<div
v-else-if="hasLicenseError"
class="p-6 bg-white border border-red-500 shadow-md rounded-md"
>
<img
src="/img/appsumo/as-taco-white-bg.png"
class="max-w-[60px] mx-auto"
alt="AppSumo"
>
2023-12-09 15:47:03 +01:00
<img
src="/img/appsumo/as-Select-dark.png"
class="max-w-[300px] mx-auto"
alt="AppSumo"
>
2023-12-09 15:47:03 +01:00
<p class="mt-6">
<span class="text-red-600">Invalid AppSumo license</span>. The license was
probably already attached to an OpnForm account. Please contact support.
2023-12-09 15:47:03 +01:00
</p>
</div>
</template>
<script>
export default {
name: "AppSumoRegister",
2023-12-09 15:47:03 +01:00
data() {
2023-12-09 15:47:03 +01:00
return {
hasValidLicense: false,
hasLicenseError: false,
2023-12-09 15:47:03 +01:00
}
},
computed: {},
watch: {},
mounted() {
if (
this.$route.query.appsumo_license !== undefined &&
this.$route.query.appsumo_license
) {
2023-12-09 15:47:03 +01:00
this.hasValidLicense = true
} else if (
this.$route.query.appsumo_error !== undefined &&
this.$route.query.appsumo_error
) {
2023-12-09 15:47:03 +01:00
this.hasLicenseError = true
}
},
created() {},
unmounted() {},
2023-12-09 15:47:03 +01:00
methods: {},
2023-12-09 15:47:03 +01:00
}
</script>