remove license checking

This commit is contained in:
wizard
2023-10-07 11:55:28 +02:00
parent 640ae2e840
commit 5ba4bf3478
148 changed files with 106374 additions and 5358 deletions

View File

@@ -25,16 +25,6 @@
{{ data.app.version }}
</ColorLabel>
</a>
<a
href="https://codecanyon.net/item/vue-file-manager-with-laravel-backend/25815986"
target="_blank"
class="mr-4 inline-block"
>
<span class="text-sm font-bold"> {{ $t('license') }}: </span>
<ColorLabel color="purple">
{{ data.app.license }}
</ColorLabel>
</a>
<b class="mr-4 inline-block">
<span class="text-sm font-bold"> {{ $t('subscription') }}: </span>
<ColorLabel color="purple">

View File

@@ -338,7 +338,7 @@ export default {
width: 52px;
height: 52px;
/deep/ .folder-icon {
> .folder-icon {
@include font-size(52);
}
}

View File

@@ -45,7 +45,7 @@ export default {
line-height: 1.3;
margin-bottom: 15px;
/deep/ span {
> span {
font-size: 48px;
}
}
@@ -67,7 +67,7 @@ export default {
line-height: 1.25;
margin-bottom: 15px;
/deep/ span {
> span {
font-size: 32px;
}
}

View File

@@ -209,7 +209,7 @@ export default {
.sign-in-button {
background: rgba($theme, 0.1);
/deep/ .content {
> .content {
color: $theme;
}
}

View File

@@ -93,7 +93,7 @@ footer {
padding-top: 50px;
padding-bottom: 20px;
/deep/ a {
> a {
font-weight: 700;
}
}

View File

@@ -107,7 +107,7 @@ export default {
line-height: 1.25;
margin-bottom: 15px;
/deep/ span {
> span {
font-size: 48px;
}
}
@@ -156,7 +156,7 @@ export default {
line-height: 1.25;
margin-bottom: 15px;
/deep/ span {
> span {
font-size: 28px;
}
}

View File

@@ -44,7 +44,7 @@ export default {
margin: 0 auto;
max-width: 360px;
/deep/ .button-base {
> .button-base {
margin: 0 auto;
}
}

View File

@@ -41,11 +41,11 @@ export default {
word-break: break-word;
font-weight: 600;
/deep/ a {
> a {
font-size: 15px;
}
/deep/ b {
> b {
font-size: 15px;
font-weight: 700;
}

View File

@@ -16,15 +16,6 @@ const routesMaintenance = [
requiresAuth: false,
},
},
{
name: 'PurchaseCode',
path: '/setup-wizard/purchase-code',
component: () =>
import(/* webpackChunkName: "chunks/purchase-code" */ '../views/SetupWizard/PurchaseCode'),
meta: {
requiresAuth: false,
},
},
{
name: 'Database',
path: '/setup-wizard/database',

View File

@@ -71,7 +71,7 @@ export default {
}
.page-content {
/deep/ p {
> p {
@include font-size(20);
font-weight: 500;
line-height: 1.65;

View File

@@ -167,9 +167,6 @@ export default {
formData.append('password', this.admin.password)
formData.append('password_confirmation', this.admin.password_confirmation)
formData.append('license', localStorage.getItem('license'))
formData.append('purchase_code', localStorage.getItem('purchase_code'))
if (this.admin.avatar) formData.append('avatar', this.admin.avatar)
axios

View File

@@ -1,156 +0,0 @@
<template>
<AuthContentWrapper ref="auth" class="h-screen bg-white dark:bg-dark-background">
<!--Licence Verify-->
<AuthContent name="licence-verify" :visible="true">
<Headline
title="Setup Wizard"
description="Please set your purchase code before continue to set up your application."
>
<settings-icon
size="40"
class="vue-feather text-theme mx-auto mb-3 animate-[spin_5s_linear_infinite]"
/>
</Headline>
<ValidationObserver
@submit.prevent="verifyPurchaseCode"
ref="verifyPurchaseCode"
v-slot="{ invalid }"
tag="form"
class="mb-12 items-start space-y-4 md:flex md:space-x-4 md:space-y-0"
>
<ValidationProvider
tag="div"
mode="passive"
class="w-full text-left"
name="Purchase Code"
rules="required"
v-slot="{ errors }"
>
<input
v-model="purchaseCode"
placeholder="Paste your purchase code"
type="text"
class="dark:placeholder:text-gray-600 focus-border-theme w-full appearance-none rounded-lg border border-transparent bg-light-background px-5 py-3.5 font-bold dark:bg-2x-dark-foreground"
:class="{ 'border-rose-600': errors[0] }"
/>
<span class="text-left text-xs dark:text-rose-600 text-rose-600" v-if="errors[0]">{{ errors[0] }}</span>
</ValidationProvider>
<AuthButton
icon="chevron-right"
text="Verify"
class="w-full justify-center md:w-min"
:loading="isLoading"
:disabled="isLoading"
/>
</ValidationObserver>
<p class="block">
<a
href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-"
target="_blank"
class="text-theme font-bold"
>Where I can find purchase code?
</a>
<a
class="black-link"
href="https://codecanyon.net/item/vue-file-manager-with-laravel-backend/25815986"
target="_blank"
>Dont have purchase code?
</a>
</p>
</AuthContent>
</AuthContentWrapper>
</template>
<script>
import { ValidationProvider, ValidationObserver } from 'vee-validate/dist/vee-validate.full'
import AuthContentWrapper from '../../components/Layout/AuthPages/AuthContentWrapper'
import InfoBox from '../../components/UI/Others/InfoBox'
import AuthContent from '../../components/Layout/AuthPages/AuthContent'
import AuthButton from '../../components/UI/Buttons/AuthButton'
import { SettingsIcon } from 'vue-feather-icons'
import { required } from 'vee-validate/dist/rules'
import Headline from '../../components/UI/Labels/LogoHeadline'
import axios from 'axios'
export default {
name: 'PurchaseCode',
components: {
AuthContentWrapper,
ValidationProvider,
ValidationObserver,
SettingsIcon,
AuthContent,
AuthButton,
required,
InfoBox,
Headline,
},
data() {
return {
isLoading: false,
isExtended: undefined,
purchaseCode: '',
}
},
methods: {
async verifyPurchaseCode() {
if (this.$root.$data.config.isSetupWizardDemo) {
this.$router.push({ name: 'Database' })
}
// Validate fields
const isValid = await this.$refs.verifyPurchaseCode.validate()
if (!isValid) return
// Start loading
this.isLoading = true
// Send request to get verify account
axios
.post('/api/setup/purchase-code', {
purchaseCode: this.purchaseCode,
})
.then((response) => {
// End loading
this.isLoading = false
if (response.data === 'b6896a44017217c36f4a6fdc56699728') {
this.isExtended = true
localStorage.setItem('license', 'Extended')
} else {
this.isExtended = false
localStorage.setItem('license', 'Regular')
}
localStorage.setItem('purchase_code', this.purchaseCode)
// Redirect to next step
this.$router.push({ name: 'Database' })
})
.catch((error) => {
// End loading
this.isLoading = false
if (error.response.status === 400) {
this.$refs.verifyPurchaseCode.setErrors({
'Purchase Code': ['Purchase code is invalid.'],
})
} else if (error.response.status === 404) {
this.$refs.verifyPurchaseCode.setErrors({
'Purchase Code': [
'You may have misconfigured the app, please read the readme file and try it again.',
],
})
} else {
this.$refs.verifyPurchaseCode.setErrors({
'Purchase Code': ['Something is wrong. Please try again.'],
})
}
})
},
},
}
</script>

View File

@@ -13,12 +13,6 @@
/>
</Headline>
<a href="https://codecanyon.net/item/vue-file-manager-with-laravel-backend/25815986">
<AlertBox color="rose" class="text-left">
<p class="text-rose-500">Please make sure you have only legal copy of VueFileManager <b class="text-rose-500 underline">purchased from CodeCanyon</b>. Any illegal copy can contain malicious software, bugs and others security issues which exposes your files to data breach.</p>
</AlertBox>
</a>
<!--PHP version and ini check-->
<div class="card shadow-card">
<FormLabel>PHP Setup</FormLabel>
@@ -247,7 +241,7 @@ export default {
)
if (writeCheck && modulesCheck && iniCheck && this.apiRunning && this.phpVersion.acceptable) {
this.$router.push({ name: 'PurchaseCode' })
this.$router.push({ name: 'Database' })
} else {
this.isError = true
}