mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-27 06:54:41 +00:00
fixes part 5
This commit is contained in:
@@ -201,13 +201,13 @@ return [
|
|||||||
'col_date' => 'Date',
|
'col_date' => 'Date',
|
||||||
'col_amount' => 'Amount',
|
'col_amount' => 'Amount',
|
||||||
'total' => 'Total',
|
'total' => 'Total',
|
||||||
|
|
||||||
|
// v2
|
||||||
'max_team_members' => 'Up to {value} Team Members',
|
'max_team_members' => 'Up to {value} Team Members',
|
||||||
'max_team_members.unlimited' => 'Up to {value} Team Members',
|
'max_team_members.unlimited' => 'Unlimited Team Members',
|
||||||
'max_storage_amount' => '{value} GB Storage Size',
|
'max_storage_amount' => '{value} GB Storage Size',
|
||||||
'interval.month' => 'Monthly',
|
'interval.month' => 'Monthly',
|
||||||
'interval.year' => 'Yearly',
|
'interval.year' => 'Yearly',
|
||||||
|
|
||||||
// v2
|
|
||||||
'bandwidth' => 'Bandwidth',
|
'bandwidth' => 'Bandwidth',
|
||||||
'storage' => 'Storage',
|
'storage' => 'Storage',
|
||||||
'flatFee' => 'Flat Fee',
|
'flatFee' => 'Flat Fee',
|
||||||
|
|||||||
@@ -51,9 +51,9 @@
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="pl-3 md:pl-1">
|
<td class="pl-3 md:pl-1">
|
||||||
<div class="w-32 text-right md:w-full">
|
<div class="w-28">
|
||||||
<img
|
<img
|
||||||
class="w-32 md:inline-block"
|
class="inline-block max-h-5"
|
||||||
:src="$getPaymentLogo(row.data.attributes.driver)"
|
:src="$getPaymentLogo(row.data.attributes.driver)"
|
||||||
:alt="row.data.attributes.driver"
|
:alt="row.data.attributes.driver"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
:email="user.data.attributes.email"
|
:email="user.data.attributes.email"
|
||||||
:paystackkey="config.paystack_public_key"
|
:paystackkey="config.paystack_public_key"
|
||||||
:reference="$generatePaystackReference()"
|
:reference="$generatePaystackReference()"
|
||||||
:callback="paystackPaymentSuccessful"
|
:callback="paymentSuccessful"
|
||||||
:close="paystackClosed"
|
:close="paystackClosed"
|
||||||
>
|
>
|
||||||
<span class="text-theme cursor-pointer text-sm font-bold">
|
<span class="text-theme cursor-pointer text-sm font-bold">
|
||||||
@@ -132,8 +132,9 @@ export default {
|
|||||||
|
|
||||||
this.paypal.isMethodsLoaded = true
|
this.paypal.isMethodsLoaded = true
|
||||||
this.paypal.isMethodLoading = false
|
this.paypal.isMethodLoading = false
|
||||||
|
const app = this
|
||||||
|
|
||||||
// Initialize paypal buttons for single charge
|
// Initialize paypal buttons for single charge
|
||||||
await paypal
|
await paypal
|
||||||
.Buttons({
|
.Buttons({
|
||||||
createOrder: function (data, actions) {
|
createOrder: function (data, actions) {
|
||||||
@@ -148,10 +149,13 @@ export default {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onApprove: function () {
|
||||||
|
app.paymentSuccessful()
|
||||||
|
},
|
||||||
})
|
})
|
||||||
.render('#paypal-button-container')
|
.render('#paypal-button-container')
|
||||||
},
|
},
|
||||||
paystackPaymentSuccessful() {
|
paymentSuccessful() {
|
||||||
this.$closePopup()
|
this.$closePopup()
|
||||||
|
|
||||||
events.$emit('toaster', {
|
events.$emit('toaster', {
|
||||||
|
|||||||
@@ -227,7 +227,9 @@
|
|||||||
|
|
||||||
<!--Keyboard shortcut hint-->
|
<!--Keyboard shortcut hint-->
|
||||||
<div v-if="!$isMobile()" class="absolute right-4 top-1/2 -translate-y-1/2 transform">
|
<div v-if="!$isMobile()" class="absolute right-4 top-1/2 -translate-y-1/2 transform">
|
||||||
<span class="text-xs text-gray-400">{{ i === 0 ? '↵' : metaKeyIcon + i }}</span>
|
<span class="text-xs text-gray-400">
|
||||||
|
{{ i === 0 ? '↵' : metaKeyIcon + i }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
</InfoBox>
|
</InfoBox>
|
||||||
|
|
||||||
<!--Toggle yearly billing-->
|
<!--Toggle yearly billing-->
|
||||||
<div v-if="hasYearlyPlans.length > 0" class="mb-2 px-5 text-right">
|
<div v-if="hasYearlyPlans.length > 0" class="mb-2 text-right">
|
||||||
<label
|
<label
|
||||||
:class="{ 'text-gray-400': !isSelectedYearlyPlans }"
|
:class="{ 'text-gray-400': !isSelectedYearlyPlans }"
|
||||||
class="cursor-pointer text-xs font-bold"
|
class="cursor-pointer text-xs font-bold"
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
class="w-full"
|
class="w-full"
|
||||||
v-if="plans.data.length !== 0"
|
v-if="plans && plans.data.length !== 0"
|
||||||
:button-style="buttonStyle"
|
:button-style="buttonStyle"
|
||||||
@click.native="isPaymentOptionPage = true"
|
@click.native="isPaymentOptionPage = true"
|
||||||
>{{ $t('Upgrade Account') }}
|
>{{ $t('Upgrade Account') }}
|
||||||
@@ -254,7 +254,7 @@ export default {
|
|||||||
custom_id: userId,
|
custom_id: userId,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onApprove: function (data, actions) {
|
onApprove: function () {
|
||||||
app.paymentSuccessful()
|
app.paymentSuccessful()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Vendored
+1
-1
@@ -40,7 +40,7 @@ const defaultState = {
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('user'),
|
label: i18n.t('User'),
|
||||||
field: 'user_id',
|
field: 'user_id',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
<ValidationProvider tag="div" mode="passive" name="Max Team Members" rules="required" v-slot="{ errors }">
|
<ValidationProvider tag="div" mode="passive" name="Max Team Members" rules="required" v-slot="{ errors }">
|
||||||
<AppInputText
|
<AppInputText
|
||||||
:title="$t('Team Members')"
|
:title="$t('Team Members')"
|
||||||
:description="$t('To set unlimited team members, type -1 into form')"
|
:description="$t('Type -1 to set unlimited team members.')"
|
||||||
:is-last="true"
|
:is-last="true"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
<p>{{ errorMessage }}</p>
|
<p>{{ errorMessage }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
|
|
||||||
<ButtonBase :disabled="isLoading" :loading="isLoading" button-style="theme" type="submit">
|
<ButtonBase :disabled="isLoading" :loading="isLoading" button-style="theme" type="submit" class="w-full sm:w-auto">
|
||||||
{{ $t('admin_page_plans.create_plan_button') }}
|
{{ $t('admin_page_plans.create_plan_button') }}
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
</ValidationObserver>
|
</ValidationObserver>
|
||||||
|
|||||||
@@ -198,7 +198,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ButtonBase :disabled="isLoading" :loading="isLoading" button-style="theme" type="submit">
|
<ButtonBase :disabled="isLoading" :loading="isLoading" button-style="theme" type="submit" class="w-full sm:w-auto">
|
||||||
{{ $t('admin_page_plans.create_plan_button') }}
|
{{ $t('admin_page_plans.create_plan_button') }}
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
</ValidationObserver>
|
</ValidationObserver>
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
{{ row.data.attributes.role }}
|
{{ row.data.attributes.role }}
|
||||||
</ColorLabel>
|
</ColorLabel>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-3 md:px-1" v-if="config.isSaaS">
|
<td class="px-3 md:px-1">
|
||||||
<span class="text-sm font-bold">
|
<span class="text-sm font-bold">
|
||||||
{{ row.data.relationships.subscription ? $t('global.premium') : $t('global.free') }}
|
{{ row.data.relationships.subscription ? $t('global.premium') : $t('global.free') }}
|
||||||
</span>
|
</span>
|
||||||
@@ -343,7 +343,7 @@ export default {
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('admin_page_user.table.plan'),
|
label: this.$t('Account'),
|
||||||
sortable: false,
|
sortable: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class UserMinimalResource extends JsonResource
|
|||||||
return [
|
return [
|
||||||
'data' => [
|
'data' => [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'type' => 'users',
|
'type' => 'user',
|
||||||
'attributes' => [
|
'attributes' => [
|
||||||
'avatar' => $this->settings->avatar,
|
'avatar' => $this->settings->avatar,
|
||||||
'name' => $this->settings->name,
|
'name' => $this->settings->name,
|
||||||
|
|||||||
Reference in New Issue
Block a user