mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-28 07:14:42 +00:00
translations update
This commit is contained in:
@@ -116,8 +116,8 @@ class FileManagerFile extends Model
|
|||||||
*/
|
*/
|
||||||
public function getThumbnailAttribute()
|
public function getThumbnailAttribute()
|
||||||
{
|
{
|
||||||
// Get thumbnail from s3
|
// Get thumbnail from external storage
|
||||||
if ($this->attributes['thumbnail'] && is_storage_driver(['s3', 'spaces'])) {
|
if ($this->attributes['thumbnail'] && is_storage_driver(['s3', 'spaces', 'wasabi', 'backblaze'])) {
|
||||||
|
|
||||||
return Storage::temporaryUrl('file-manager/' . $this->attributes['thumbnail'], now()->addHour());
|
return Storage::temporaryUrl('file-manager/' . $this->attributes['thumbnail'], now()->addHour());
|
||||||
}
|
}
|
||||||
@@ -146,7 +146,7 @@ class FileManagerFile extends Model
|
|||||||
public function getFileUrlAttribute()
|
public function getFileUrlAttribute()
|
||||||
{
|
{
|
||||||
// Get file from s3
|
// Get file from s3
|
||||||
if (is_storage_driver(['s3', 'spaces'])) {
|
if (is_storage_driver(['s3', 'spaces', 'wasabi', 'backblaze'])) {
|
||||||
|
|
||||||
$header = [
|
$header = [
|
||||||
"ResponseAcceptRanges" => "bytes",
|
"ResponseAcceptRanges" => "bytes",
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ use Illuminate\Foundation\Auth\User as Authenticatable;
|
|||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
use Illuminate\Support\Facades\Hash;
|
use Illuminate\Support\Facades\Hash;
|
||||||
use Illuminate\Support\Facades\Notification;
|
use Illuminate\Support\Facades\Notification;
|
||||||
|
use Illuminate\Support\Facades\Storage;
|
||||||
use Laravel\Cashier\Billable;
|
use Laravel\Cashier\Billable;
|
||||||
use Laravel\Passport\HasApiTokens;
|
use Laravel\Passport\HasApiTokens;
|
||||||
use Rinvex\Subscriptions\Traits\HasSubscriptions;
|
use Rinvex\Subscriptions\Traits\HasSubscriptions;
|
||||||
@@ -151,6 +152,11 @@ class User extends Authenticatable
|
|||||||
return $user_capacity;
|
return $user_capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get user full folder tree
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection
|
||||||
|
*/
|
||||||
public function getFolderTreeAttribute()
|
public function getFolderTreeAttribute()
|
||||||
{
|
{
|
||||||
return FileManagerFolder::with(['folders.shared', 'shared:token,id,item_id,permission,protected'])
|
return FileManagerFolder::with(['folders.shared', 'shared:token,id,item_id,permission,protected'])
|
||||||
@@ -166,6 +172,13 @@ class User extends Authenticatable
|
|||||||
*/
|
*/
|
||||||
public function getAvatarAttribute()
|
public function getAvatarAttribute()
|
||||||
{
|
{
|
||||||
|
// Get avatar from external storage
|
||||||
|
if ($this->attributes['avatar'] && is_storage_driver(['s3', 'spaces', 'wasabi', 'backblaze'])) {
|
||||||
|
|
||||||
|
return Storage::temporaryUrl($this->attributes['avatar'], now()->addDay());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get avatar from local storage
|
||||||
if ($this->attributes['avatar']) {
|
if ($this->attributes['avatar']) {
|
||||||
return url('/' . $this->attributes['avatar']);
|
return url('/' . $this->attributes['avatar']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,5 +239,59 @@
|
|||||||
"/js/main.f7ea32b1bdd7d5893101.hot-update.js": "/js/main.f7ea32b1bdd7d5893101.hot-update.js",
|
"/js/main.f7ea32b1bdd7d5893101.hot-update.js": "/js/main.f7ea32b1bdd7d5893101.hot-update.js",
|
||||||
"/js/main.bb919bf230ccfd1da5ad.hot-update.js": "/js/main.bb919bf230ccfd1da5ad.hot-update.js",
|
"/js/main.bb919bf230ccfd1da5ad.hot-update.js": "/js/main.bb919bf230ccfd1da5ad.hot-update.js",
|
||||||
"/js/main.c339a8942aeb56673ce8.hot-update.js": "/js/main.c339a8942aeb56673ce8.hot-update.js",
|
"/js/main.c339a8942aeb56673ce8.hot-update.js": "/js/main.c339a8942aeb56673ce8.hot-update.js",
|
||||||
"/js/main.666b5bd039ecb83ba849.hot-update.js": "/js/main.666b5bd039ecb83ba849.hot-update.js"
|
"/js/main.666b5bd039ecb83ba849.hot-update.js": "/js/main.666b5bd039ecb83ba849.hot-update.js",
|
||||||
|
"/js/main.5d6bd6229cad21177b5d.hot-update.js": "/js/main.5d6bd6229cad21177b5d.hot-update.js",
|
||||||
|
"/js/main.1314bd7b0155050142db.hot-update.js": "/js/main.1314bd7b0155050142db.hot-update.js",
|
||||||
|
"/js/main.c55d0aaf47449e57f28f.hot-update.js": "/js/main.c55d0aaf47449e57f28f.hot-update.js",
|
||||||
|
"/js/main.1ebff55b9a709134bdf9.hot-update.js": "/js/main.1ebff55b9a709134bdf9.hot-update.js",
|
||||||
|
"/js/main.d9e14c4f874d9aae2991.hot-update.js": "/js/main.d9e14c4f874d9aae2991.hot-update.js",
|
||||||
|
"/js/main.6aad28750a58dc8a1a84.hot-update.js": "/js/main.6aad28750a58dc8a1a84.hot-update.js",
|
||||||
|
"/js/main.a4a5e491361ca05ac530.hot-update.js": "/js/main.a4a5e491361ca05ac530.hot-update.js",
|
||||||
|
"/js/main.ab40d76d1114a2a348d9.hot-update.js": "/js/main.ab40d76d1114a2a348d9.hot-update.js",
|
||||||
|
"/js/main.272e7fc5df78185ef223.hot-update.js": "/js/main.272e7fc5df78185ef223.hot-update.js",
|
||||||
|
"/js/main.3980c9d6032f6d9893d6.hot-update.js": "/js/main.3980c9d6032f6d9893d6.hot-update.js",
|
||||||
|
"/js/main.3fd1ae93571bb5fe8493.hot-update.js": "/js/main.3fd1ae93571bb5fe8493.hot-update.js",
|
||||||
|
"/js/main.c9097f4a153e7fd3e0bd.hot-update.js": "/js/main.c9097f4a153e7fd3e0bd.hot-update.js",
|
||||||
|
"/js/main.89cbccfdfb280c101229.hot-update.js": "/js/main.89cbccfdfb280c101229.hot-update.js",
|
||||||
|
"/js/main.3a92cbc41ec25d8e2018.hot-update.js": "/js/main.3a92cbc41ec25d8e2018.hot-update.js",
|
||||||
|
"/js/main.2a86157426eb177cc6f2.hot-update.js": "/js/main.2a86157426eb177cc6f2.hot-update.js",
|
||||||
|
"/js/main.411caab58470390ff0bd.hot-update.js": "/js/main.411caab58470390ff0bd.hot-update.js",
|
||||||
|
"/js/main.d594e00eec3ae4abd751.hot-update.js": "/js/main.d594e00eec3ae4abd751.hot-update.js",
|
||||||
|
"/js/main.70d17783fe28bf990276.hot-update.js": "/js/main.70d17783fe28bf990276.hot-update.js",
|
||||||
|
"/js/main.c7bc397e2e421f0141fc.hot-update.js": "/js/main.c7bc397e2e421f0141fc.hot-update.js",
|
||||||
|
"/js/main.815d02e7f3f9f8841915.hot-update.js": "/js/main.815d02e7f3f9f8841915.hot-update.js",
|
||||||
|
"/js/main.d40b9abc043ed8480a8a.hot-update.js": "/js/main.d40b9abc043ed8480a8a.hot-update.js",
|
||||||
|
"/js/main.19a9789de3de21c4b8eb.hot-update.js": "/js/main.19a9789de3de21c4b8eb.hot-update.js",
|
||||||
|
"/js/main.8be11c6045cb66da58d1.hot-update.js": "/js/main.8be11c6045cb66da58d1.hot-update.js",
|
||||||
|
"/js/main.1983ca165da1e65707ed.hot-update.js": "/js/main.1983ca165da1e65707ed.hot-update.js",
|
||||||
|
"/js/main.7a29b122f46980bbd2ef.hot-update.js": "/js/main.7a29b122f46980bbd2ef.hot-update.js",
|
||||||
|
"/js/main.ddb45dcd7b4091c5ac5f.hot-update.js": "/js/main.ddb45dcd7b4091c5ac5f.hot-update.js",
|
||||||
|
"/js/main.7d7ac6845f8c792a4476.hot-update.js": "/js/main.7d7ac6845f8c792a4476.hot-update.js",
|
||||||
|
"/js/main.ae16004d1621864211e7.hot-update.js": "/js/main.ae16004d1621864211e7.hot-update.js",
|
||||||
|
"/js/main.84b099565f7cb44a5aae.hot-update.js": "/js/main.84b099565f7cb44a5aae.hot-update.js",
|
||||||
|
"/js/main.61d6dc70f0b4a8d69347.hot-update.js": "/js/main.61d6dc70f0b4a8d69347.hot-update.js",
|
||||||
|
"/js/main.6d77e25fc48e11872fb5.hot-update.js": "/js/main.6d77e25fc48e11872fb5.hot-update.js",
|
||||||
|
"/js/main.e52f1368604fe28cad40.hot-update.js": "/js/main.e52f1368604fe28cad40.hot-update.js",
|
||||||
|
"/js/main.0d074a932a774d85ed24.hot-update.js": "/js/main.0d074a932a774d85ed24.hot-update.js",
|
||||||
|
"/js/main.9372920546a93ccc4f10.hot-update.js": "/js/main.9372920546a93ccc4f10.hot-update.js",
|
||||||
|
"/js/main.e865592c8390a29c196a.hot-update.js": "/js/main.e865592c8390a29c196a.hot-update.js",
|
||||||
|
"/js/main.a405908c3c0bda177afe.hot-update.js": "/js/main.a405908c3c0bda177afe.hot-update.js",
|
||||||
|
"/js/main.40ee7f6bbbdb4944b217.hot-update.js": "/js/main.40ee7f6bbbdb4944b217.hot-update.js",
|
||||||
|
"/js/main.0ca213bc260327e5c44c.hot-update.js": "/js/main.0ca213bc260327e5c44c.hot-update.js",
|
||||||
|
"/js/main.1917f89d4150ee8fa356.hot-update.js": "/js/main.1917f89d4150ee8fa356.hot-update.js",
|
||||||
|
"/js/main.f61541d93f712f3870ca.hot-update.js": "/js/main.f61541d93f712f3870ca.hot-update.js",
|
||||||
|
"/js/main.ebf234ddd5de8b436e8c.hot-update.js": "/js/main.ebf234ddd5de8b436e8c.hot-update.js",
|
||||||
|
"/js/main.fb8288157f51ae2a8545.hot-update.js": "/js/main.fb8288157f51ae2a8545.hot-update.js",
|
||||||
|
"/js/main.16962ba62f72f7247d29.hot-update.js": "/js/main.16962ba62f72f7247d29.hot-update.js",
|
||||||
|
"/js/main.039a8cc665108287b217.hot-update.js": "/js/main.039a8cc665108287b217.hot-update.js",
|
||||||
|
"/js/main.ee47b865bc9872684964.hot-update.js": "/js/main.ee47b865bc9872684964.hot-update.js",
|
||||||
|
"/js/main.63b6901d1d22c6ac0984.hot-update.js": "/js/main.63b6901d1d22c6ac0984.hot-update.js",
|
||||||
|
"/js/main.45cbdbd7827041cbf512.hot-update.js": "/js/main.45cbdbd7827041cbf512.hot-update.js",
|
||||||
|
"/js/main.3e33271a12bfec030777.hot-update.js": "/js/main.3e33271a12bfec030777.hot-update.js",
|
||||||
|
"/js/main.5dbd0ab9a4c5232667e8.hot-update.js": "/js/main.5dbd0ab9a4c5232667e8.hot-update.js",
|
||||||
|
"/js/main.04e901a4b402b51a750f.hot-update.js": "/js/main.04e901a4b402b51a750f.hot-update.js",
|
||||||
|
"/js/main.4558580a594cbc8eff6c.hot-update.js": "/js/main.4558580a594cbc8eff6c.hot-update.js",
|
||||||
|
"/js/main.dba2bd0ad2b7d3512714.hot-update.js": "/js/main.dba2bd0ad2b7d3512714.hot-update.js",
|
||||||
|
"/js/main.5a7ca08ce1752a485326.hot-update.js": "/js/main.5a7ca08ce1752a485326.hot-update.js",
|
||||||
|
"/js/main.1a592bc84a9da2723333.hot-update.js": "/js/main.1a592bc84a9da2723333.hot-update.js"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
<database-icon v-if="link.icon === 'database'" size="17"></database-icon>
|
<database-icon v-if="link.icon === 'database'" size="17"></database-icon>
|
||||||
<credit-card-icon v-if="link.icon === 'credit-card'" size="17"></credit-card-icon>
|
<credit-card-icon v-if="link.icon === 'credit-card'" size="17"></credit-card-icon>
|
||||||
<cloud-icon v-if="link.icon === 'cloud'" size="17"></cloud-icon>
|
<cloud-icon v-if="link.icon === 'cloud'" size="17"></cloud-icon>
|
||||||
|
<monitor-icon v-if="link.icon === 'monitor'" size="17"></monitor-icon>
|
||||||
|
<box-icon v-if="link.icon === 'box'" size="17"></box-icon>
|
||||||
</div>
|
</div>
|
||||||
<b class="menu-link">
|
<b class="menu-link">
|
||||||
<span>{{ link.title }}</span>
|
<span>{{ link.title }}</span>
|
||||||
@@ -33,6 +35,7 @@
|
|||||||
FileTextIcon,
|
FileTextIcon,
|
||||||
SettingsIcon,
|
SettingsIcon,
|
||||||
DatabaseIcon,
|
DatabaseIcon,
|
||||||
|
MonitorIcon,
|
||||||
Trash2Icon,
|
Trash2Icon,
|
||||||
CloudIcon,
|
CloudIcon,
|
||||||
PowerIcon,
|
PowerIcon,
|
||||||
@@ -40,11 +43,14 @@
|
|||||||
UsersIcon,
|
UsersIcon,
|
||||||
UserIcon,
|
UserIcon,
|
||||||
LockIcon,
|
LockIcon,
|
||||||
|
BoxIcon,
|
||||||
} from 'vue-feather-icons'
|
} from 'vue-feather-icons'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MenuBar',
|
name: 'MenuBar',
|
||||||
components: {
|
components: {
|
||||||
|
BoxIcon,
|
||||||
|
MonitorIcon,
|
||||||
ChevronRightIcon,
|
ChevronRightIcon,
|
||||||
UploadCloudIcon,
|
UploadCloudIcon,
|
||||||
CreditCardIcon,
|
CreditCardIcon,
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
</section>
|
</section>
|
||||||
<footer class="plan-footer">
|
<footer class="plan-footer">
|
||||||
<b class="price">
|
<b class="price">
|
||||||
{{ plan.data.attributes.price }}/Mo.
|
{{ plan.data.attributes.price }}/{{ $t('global.monthly_ac') }}.
|
||||||
</b>
|
</b>
|
||||||
<ButtonBase @click.native="selectPlan(plan)" type="submit" button-style="secondary" class="sign-in-button">
|
<ButtonBase @click.native="selectPlan(plan)" type="submit" button-style="secondary" class="sign-in-button">
|
||||||
Sign Up
|
{{ $t('global.get_it') }}
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,7 +49,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
axios.get('/api/public/pricing')
|
axios.get('/api/public/pricing')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.plans = response.data
|
this.plans = response.data
|
||||||
|
|||||||
@@ -1,4 +1,80 @@
|
|||||||
{
|
{
|
||||||
|
"global": {
|
||||||
|
"premium": "Premium",
|
||||||
|
"free": "Free",
|
||||||
|
"default": "Default",
|
||||||
|
"canceled": "Canceled",
|
||||||
|
"active": "Active",
|
||||||
|
"or": "or",
|
||||||
|
"total": "Total",
|
||||||
|
"monthly_ac": "Mo.",
|
||||||
|
"get_it": "Mo.",
|
||||||
|
"admin": "Admin",
|
||||||
|
"menu": "Menu",
|
||||||
|
"subscription": "Subscription",
|
||||||
|
"upgrade_plan": "Upgrade Plan",
|
||||||
|
"saas": "Services"
|
||||||
|
},
|
||||||
|
"errors": {
|
||||||
|
"capacity_digit": "The storage capacity must be lower than 10 digit number."
|
||||||
|
},
|
||||||
|
"user_invoices": {
|
||||||
|
"title": "Invoices",
|
||||||
|
"empty": "You don't have any invoices yet."
|
||||||
|
},
|
||||||
|
"user_password": {
|
||||||
|
"title": "Change Your Password"
|
||||||
|
},
|
||||||
|
"user_payments": {
|
||||||
|
"title": "Payment Methods",
|
||||||
|
"set_as_default": "Set as default card",
|
||||||
|
"delete_card": "Delete card",
|
||||||
|
"empty": "You don't have any payment cards yet."
|
||||||
|
},
|
||||||
|
"user_subscription": {
|
||||||
|
"title": "Subscription Plan",
|
||||||
|
"plan": "Plan",
|
||||||
|
"billed": "Billed",
|
||||||
|
"status": "Status",
|
||||||
|
"created_at": "Created At",
|
||||||
|
"renews_at": "Renews At",
|
||||||
|
"canceled_at": "Canceled At",
|
||||||
|
"ends_at": "Ends At",
|
||||||
|
"empty": "You don't have any subscription yet.",
|
||||||
|
"cancel_plan": "Cancel Plan",
|
||||||
|
"resume_plan": "Resume Plan"
|
||||||
|
},
|
||||||
|
"user_settings": {
|
||||||
|
"title_account": "Account Information",
|
||||||
|
"title_billing": "Billing Information",
|
||||||
|
"name": "Name",
|
||||||
|
"name_plac": "Type your billing name",
|
||||||
|
"address": "Address",
|
||||||
|
"address_plac": "Type your billing address",
|
||||||
|
"state": "State",
|
||||||
|
"state_plac": "Type your billing state",
|
||||||
|
"city": "City",
|
||||||
|
"city_plac": "Type your billing city",
|
||||||
|
"postal_code": "Postal Code",
|
||||||
|
"postal_code_plac": "Type your billing postal code",
|
||||||
|
"country": "Country",
|
||||||
|
"country_plac": "Type your billing country",
|
||||||
|
"phone_number": "Phone Number",
|
||||||
|
"phone_number_plac": "Type your billing phone number"
|
||||||
|
},
|
||||||
|
"rows": {
|
||||||
|
"invoice": {
|
||||||
|
"number": "Invoice Number",
|
||||||
|
"total": "Total",
|
||||||
|
"plan": "Plan",
|
||||||
|
"payed": "Payed"
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"number": "Card Number",
|
||||||
|
"status": "Status",
|
||||||
|
"expiration": "Expiration Date"
|
||||||
|
}
|
||||||
|
},
|
||||||
"routes": {
|
"routes": {
|
||||||
"create_new_password": "create-new-password"
|
"create_new_password": "create-new-password"
|
||||||
},
|
},
|
||||||
@@ -81,6 +157,30 @@
|
|||||||
"registration_text": "Don’t have an account?",
|
"registration_text": "Don’t have an account?",
|
||||||
"registration_button": "Register account."
|
"registration_button": "Register account."
|
||||||
},
|
},
|
||||||
|
"page_pricing_tables": {
|
||||||
|
"title": "Choose Your Plan",
|
||||||
|
"description": "Choose plan witch perfect fit your needs. All plans is billed monthly automatically via your credit card."
|
||||||
|
},
|
||||||
|
"page_upgrade_account": {
|
||||||
|
"title": "Choose Payment Method",
|
||||||
|
"desription": "Choose plan witch perfect fit your needs. All plans is billed monthly automatically via your credit card.",
|
||||||
|
"section_card": "Payment Card",
|
||||||
|
"section_billing": "Billing Information",
|
||||||
|
"section_summary": "Order Summary",
|
||||||
|
"change_payment": {
|
||||||
|
"you_can": "Also you can",
|
||||||
|
"change_payment": "change your default payment method",
|
||||||
|
"pay_by_new_card": "pay by new credit card"
|
||||||
|
},
|
||||||
|
"errors": {
|
||||||
|
"pay_by_another_card": "Please pay by another payment card"
|
||||||
|
},
|
||||||
|
"summary": {
|
||||||
|
"period": "Billed monthly",
|
||||||
|
"submit_button": "Pay with credit card",
|
||||||
|
"submit_disclaimer": "By submit form, you agree to save the payment method and billing information in your VueFileManager account."
|
||||||
|
}
|
||||||
|
},
|
||||||
"uploading": {
|
"uploading": {
|
||||||
"progress": "Uploading files {current}/{total}"
|
"progress": "Uploading files {current}/{total}"
|
||||||
},
|
},
|
||||||
@@ -122,7 +222,7 @@
|
|||||||
"of": "of"
|
"of": "of"
|
||||||
},
|
},
|
||||||
"storage": {
|
"storage": {
|
||||||
"sec_capacity": "Storage Capacity",
|
"sec_capacity": "Your disk Usage",
|
||||||
"sec_details": "Capacity Usage Details",
|
"sec_details": "Capacity Usage Details",
|
||||||
"total_used": "Total used {used}",
|
"total_used": "Total used {used}",
|
||||||
"total_capacity": "Your storage capacity {capacity}",
|
"total_capacity": "Your storage capacity {capacity}",
|
||||||
@@ -163,6 +263,9 @@
|
|||||||
"move": "Move"
|
"move": "Move"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
|
"payment_cards": "Payment Cards",
|
||||||
|
"invoices": "Invoices",
|
||||||
|
"subscription": "Subscription",
|
||||||
"files": "Files",
|
"files": "Files",
|
||||||
"latest": "Recent Uploads",
|
"latest": "Recent Uploads",
|
||||||
"shared": "Shared Files",
|
"shared": "Shared Files",
|
||||||
@@ -266,6 +369,24 @@
|
|||||||
"title": "User was deleted",
|
"title": "User was deleted",
|
||||||
"message": "Your user was deleted with all user data content."
|
"message": "Your user was deleted with all user data content."
|
||||||
},
|
},
|
||||||
|
"popup_set_card": {
|
||||||
|
"title": "Set as default card?",
|
||||||
|
"message": "Your card will be set as default and will be always charged for the next billings."
|
||||||
|
},
|
||||||
|
"popup_delete_card": {
|
||||||
|
"title": "Are you sure?",
|
||||||
|
"message": "This event is irreversible and your payment card will be delete forever"
|
||||||
|
},
|
||||||
|
"popup_subscription_cancel": {
|
||||||
|
"title": "Subscription Was Resumed",
|
||||||
|
"message": "You'll continue to have access to the features you've paid for until the end of your billing cycle.",
|
||||||
|
"button": "I'm done"
|
||||||
|
},
|
||||||
|
"popup_subscription_resumed": {
|
||||||
|
"title": "Subscription Was Canceled",
|
||||||
|
"message": "Your subscription was re-activated, and they will be billed on the original billing cycle.",
|
||||||
|
"button": "That's awesome!"
|
||||||
|
},
|
||||||
"user_box_storage": {
|
"user_box_storage": {
|
||||||
"title": "Change User Storage Capacity",
|
"title": "Change User Storage Capacity",
|
||||||
"description": "Change user storage capacity by input bellow. You have to type only number e.g. value '5' means, user will have 5GB of storage capacity."
|
"description": "Change user storage capacity by input bellow. You have to type only number e.g. value '5' means, user will have 5GB of storage capacity."
|
||||||
@@ -283,8 +404,67 @@
|
|||||||
"description": "You can change role for current user. Admin role can edit or create new users, change storage capacity and any other application settings."
|
"description": "You can change role for current user. Admin role can edit or create new users, change storage capacity and any other application settings."
|
||||||
},
|
},
|
||||||
"admin_menu": {
|
"admin_menu": {
|
||||||
"admin_label": "Admin",
|
"dashboard": "Dashboard",
|
||||||
"users": "Users"
|
"users": "Users",
|
||||||
|
"settings": "Settings",
|
||||||
|
"plans": "Plans",
|
||||||
|
"invoices": "Invoices",
|
||||||
|
"pages": "Pages"
|
||||||
|
},
|
||||||
|
"admin_pages": {
|
||||||
|
"table": {
|
||||||
|
"page": "Page",
|
||||||
|
"slug": "Slug",
|
||||||
|
"status": "Status"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"admin_page_dashboard": {
|
||||||
|
"version": "Version",
|
||||||
|
"license": "License",
|
||||||
|
"backer_button": "Become a Backer",
|
||||||
|
"w_total_users": {
|
||||||
|
"title": "Total Users",
|
||||||
|
"link": "Show All Users"
|
||||||
|
},
|
||||||
|
"w_total_space": {
|
||||||
|
"title": "Total Space Used",
|
||||||
|
"link": "Show All Users"
|
||||||
|
},
|
||||||
|
"w_total_premium": {
|
||||||
|
"title": "Total Premium Users",
|
||||||
|
"link": "Show All Plans"
|
||||||
|
},
|
||||||
|
"w_latest_users": {
|
||||||
|
"title": "Latest Registrations"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"admin_page_invoices": {
|
||||||
|
"empty": {
|
||||||
|
"title": "You don’t have any invoices yet",
|
||||||
|
"description": "All customers invoices will be showed here."
|
||||||
|
},
|
||||||
|
"table": {
|
||||||
|
"number": "Invoice Number",
|
||||||
|
"total": "Total",
|
||||||
|
"plan": "Plan",
|
||||||
|
"payed": "Payed",
|
||||||
|
"user": "User"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"admin_page_plans": {
|
||||||
|
"create_plan_button": "Create Plan",
|
||||||
|
"empty": {
|
||||||
|
"title": "You don’t have any plan yet",
|
||||||
|
"description": "For create new plan, click on button below.",
|
||||||
|
"button": "Create New Plan"
|
||||||
|
},
|
||||||
|
"table": {
|
||||||
|
"status": "Status",
|
||||||
|
"name": "Plan Name",
|
||||||
|
"subscribers": "Subscribers",
|
||||||
|
"price": "Price",
|
||||||
|
"storage_capacity": "Storage Capacity"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"admin_page_user": {
|
"admin_page_user": {
|
||||||
"select_role": "Select user role",
|
"select_role": "Select user role",
|
||||||
@@ -297,13 +477,16 @@
|
|||||||
"change_capacity": "Change Capacity",
|
"change_capacity": "Change Capacity",
|
||||||
"send_password_link": "Send Password Reset Link",
|
"send_password_link": "Send Password Reset Link",
|
||||||
"tabs": {
|
"tabs": {
|
||||||
"detail": "Detail",
|
"subscription": "Subscription",
|
||||||
"storage": "Storage Usage",
|
"storage": "Storage Usage",
|
||||||
|
"invoices": "Invoices",
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
"delete": "Delete User"
|
"delete": "Delete User",
|
||||||
|
"detail": "Detail"
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"name": "User",
|
"name": "User",
|
||||||
|
"plan": "Sunscription Plan",
|
||||||
"role": "Role",
|
"role": "Role",
|
||||||
"storage_used": "Storage Used",
|
"storage_used": "Storage Used",
|
||||||
"storage_capacity": "Storage Capacity",
|
"storage_capacity": "Storage Capacity",
|
||||||
@@ -317,13 +500,22 @@
|
|||||||
"label_email": "Type E-mail",
|
"label_email": "Type E-mail",
|
||||||
"label_name": "Type full name",
|
"label_name": "Type full name",
|
||||||
"label_conf_pass": "Confirm password"
|
"label_conf_pass": "Confirm password"
|
||||||
|
},
|
||||||
|
"invoices": {
|
||||||
|
"empty": "User don't have any invoices yet."
|
||||||
|
},
|
||||||
|
"subscription": {
|
||||||
|
"empty": "User don't have any subscription yet."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"toaster": {
|
"toaster": {
|
||||||
"changed_user": "You successfully changed user's role!",
|
"changed_user": "You successfully changed user's role!",
|
||||||
"sended_password": "You successfully send user email for reset password!",
|
"sended_password": "You successfully send user email for reset password!",
|
||||||
"changed_capacity": "You successfully changed user's storage size!",
|
"changed_capacity": "You successfully changed user's storage size!",
|
||||||
"created_user": "User was created successfully!"
|
"created_user": "User was created successfully!",
|
||||||
|
"card_deleted": "Your card was successfully deleted.",
|
||||||
|
"card_set": "Your card was successfully set as default.",
|
||||||
|
"account_upgraded": "Your account was successfully upgraded."
|
||||||
},
|
},
|
||||||
"roles": {
|
"roles": {
|
||||||
"admin": "Admin",
|
"admin": "Admin",
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
<ContentSidebar>
|
<ContentSidebar>
|
||||||
|
|
||||||
<!--Admin-->
|
<!--Admin-->
|
||||||
<ContentGroup :title="$t('admin_menu.admin_label')" class="navigator">
|
<ContentGroup :title="$t('global.admin')" class="navigator">
|
||||||
<div class="menu-list-wrapper vertical">
|
<div class="menu-list-wrapper vertical">
|
||||||
<router-link :to="{name: 'Dashboard'}" class="menu-list-item link">
|
<router-link :to="{name: 'Dashboard'}" class="menu-list-item link">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<box-icon size="17"></box-icon>
|
<box-icon size="17"></box-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Dashboard
|
{{ $t('admin_menu.dashboard') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link :to="{name: 'Users'}" class="menu-list-item link">
|
<router-link :to="{name: 'Users'}" class="menu-list-item link">
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<settings-icon size="17"></settings-icon>
|
<settings-icon size="17"></settings-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Settings
|
{{ $t('admin_menu.settings') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<database-icon size="17"></database-icon>
|
<database-icon size="17"></database-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Plans
|
{{ $t('admin_menu.plans') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link :to="{name: 'Invoices'}" class="menu-list-item link">
|
<router-link :to="{name: 'Invoices'}" class="menu-list-item link">
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<file-text-icon size="17"></file-text-icon>
|
<file-text-icon size="17"></file-text-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Invoices
|
{{ $t('admin_menu.invoices') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link :to="{name: 'Pages'}" class="menu-list-item link">
|
<router-link :to="{name: 'Pages'}" class="menu-list-item link">
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
<monitor-icon size="17"></monitor-icon>
|
<monitor-icon size="17"></monitor-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Pages
|
{{ $t('admin_menu.pages') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,15 +10,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="metadata">
|
<div class="metadata">
|
||||||
<a href="https://vuefilemanager.com/changelog" target="_blank" class="meta">
|
<a href="https://vuefilemanager.com/changelog" target="_blank" class="meta">
|
||||||
<span class="meta-title">Version:</span>
|
<span class="meta-title">{{ $t('admin_page_dashboard.version') }}:</span>
|
||||||
<ColorLabel color="purple">
|
<ColorLabel color="purple">
|
||||||
{{ data.app_version }}
|
{{ data.app_version }}
|
||||||
</ColorLabel>
|
</ColorLabel>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://codecanyon.net/item/vue-file-manager-with-laravel-backend/25815986" target="_blank" class="meta">
|
<a href="https://codecanyon.net/item/vue-file-manager-with-laravel-backend/25815986" target="_blank" class="meta">
|
||||||
<span class="meta-title">License:</span>
|
<span class="meta-title">{{ $t('admin_page_dashboard.license') }}:</span>
|
||||||
<ColorLabel color="purple">
|
<ColorLabel color="purple">
|
||||||
Extended
|
{{ data.license }}
|
||||||
</ColorLabel>
|
</ColorLabel>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://vuefilemanager.com" target="_blank" class="became-backer">
|
<a href="https://vuefilemanager.com" target="_blank" class="became-backer">
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<credit-card-icon size="15"></credit-card-icon>
|
<credit-card-icon size="15"></credit-card-icon>
|
||||||
</div>
|
</div>
|
||||||
<span class="content">
|
<span class="content">
|
||||||
Become a Backer
|
{{ $t('admin_page_dashboard.backer_button') }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,34 +35,34 @@
|
|||||||
<WidgetTotals
|
<WidgetTotals
|
||||||
class="widget"
|
class="widget"
|
||||||
icon="users"
|
icon="users"
|
||||||
title="Total Users"
|
:title="$t('admin_page_dashboard.w_total_users.title')"
|
||||||
:value="data.total_users"
|
:value="data.total_users"
|
||||||
link-route="Users"
|
link-route="Users"
|
||||||
link-name="Show All Users"
|
:link-name="$t('admin_page_dashboard.w_total_users.link')"
|
||||||
></WidgetTotals>
|
></WidgetTotals>
|
||||||
<WidgetTotals
|
<WidgetTotals
|
||||||
class="widget"
|
class="widget"
|
||||||
icon="hard-drive"
|
icon="hard-drive"
|
||||||
title="Total Space Used"
|
:title="$t('admin_page_dashboard.w_total_space.title')"
|
||||||
:value="data.total_used_space"
|
:value="data.total_used_space"
|
||||||
link-route="Users"
|
link-route="Users"
|
||||||
link-name="Show All Users"
|
:link-name="$t('admin_page_dashboard.w_total_space.link')"
|
||||||
></WidgetTotals>
|
></WidgetTotals>
|
||||||
<WidgetTotals
|
<WidgetTotals
|
||||||
v-if="config.isSaaS"
|
v-if="config.isSaaS"
|
||||||
class="widget"
|
class="widget"
|
||||||
icon="star"
|
icon="star"
|
||||||
title="Total Premium Users"
|
:title="$t('admin_page_dashboard.w_total_premium.title')"
|
||||||
:value="data.total_premium_users"
|
:value="data.total_premium_users"
|
||||||
link-route="Plans"
|
link-route="Plans"
|
||||||
link-name="Show All Plans"
|
:link-name="$t('admin_page_dashboard.w_total_premium.link')"
|
||||||
></WidgetTotals>
|
></WidgetTotals>
|
||||||
</div>
|
</div>
|
||||||
<div class="widget-users">
|
<div class="widget-users">
|
||||||
<WidgetLatestRegistrations
|
<WidgetLatestRegistrations
|
||||||
class="widget"
|
class="widget"
|
||||||
icon="users"
|
icon="users"
|
||||||
title="Latest Registrations"
|
:title="$t('admin_page_dashboard.w_latest_users.title')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -55,8 +55,8 @@
|
|||||||
<EmptyPageContent
|
<EmptyPageContent
|
||||||
v-if="! isLoading && invoices.length === 0"
|
v-if="! isLoading && invoices.length === 0"
|
||||||
icon="file-text"
|
icon="file-text"
|
||||||
title="You don’t have any invoices yet"
|
:title="$t('admin_page_invoices.empty.title')"
|
||||||
description="All customers invoices will be showed here."
|
:description="$t('admin_page_invoices.empty.description')"
|
||||||
>
|
>
|
||||||
</EmptyPageContent>
|
</EmptyPageContent>
|
||||||
<div id="loader" v-if="isLoading">
|
<div id="loader" v-if="isLoading">
|
||||||
@@ -102,27 +102,27 @@
|
|||||||
invoices: undefined,
|
invoices: undefined,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
label: 'Invoice Number',
|
label: this.$t('admin_page_invoices.table.number'),
|
||||||
field: 'data.attributes.order',
|
field: 'data.attributes.order',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Total',
|
label: this.$t('admin_page_invoices.table.total'),
|
||||||
field: 'data.attributes.bag.amount',
|
field: 'data.attributes.bag.amount',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Plan',
|
label: this.$t('admin_page_invoices.table.plan'),
|
||||||
field: 'data.attributes.bag.amount',
|
field: 'data.attributes.bag.amount',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Payed',
|
label: this.$t('admin_page_invoices.table.payed'),
|
||||||
field: 'data.attributes.created_at',
|
field: 'data.attributes.created_at',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'User',
|
label: this.$t('admin_page_invoices.table.user'),
|
||||||
field: 'relationships.user.data.attributes.name',
|
field: 'relationships.user.data.attributes.name',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,17 +78,17 @@
|
|||||||
pages: undefined,
|
pages: undefined,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
label: 'Page',
|
label: this.$t('admin_pages.table.page'),
|
||||||
field: 'data.attributes.title',
|
field: 'data.attributes.title',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Slug',
|
label: this.$t('admin_pages.table.slug'),
|
||||||
field: 'data.attributes.slug',
|
field: 'data.attributes.slug',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Status',
|
label: this.$t('admin_pages.table.status'),
|
||||||
field: 'data.attributes.visibility',
|
field: 'data.attributes.visibility',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<router-link :to="{name: 'PlanCreate'}">
|
<router-link :to="{name: 'PlanCreate'}">
|
||||||
<MobileActionButton icon="plus">
|
<MobileActionButton icon="plus">
|
||||||
Create Plan
|
{{ $t('admin_page_plans.create_plan_button') }}
|
||||||
</MobileActionButton>
|
</MobileActionButton>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
@@ -65,11 +65,11 @@
|
|||||||
<EmptyPageContent
|
<EmptyPageContent
|
||||||
v-if="! isLoading && plans.length === 0"
|
v-if="! isLoading && plans.length === 0"
|
||||||
icon="file"
|
icon="file"
|
||||||
title="You don’t have any plan yet"
|
:title="$t('admin_page_plans.empty.title')"
|
||||||
description="For create new plan, click on button below."
|
:description="$t('admin_page_plans.empty.description')"
|
||||||
>
|
>
|
||||||
<router-link :to="{name: 'PlanCreate'}">
|
<router-link :to="{name: 'PlanCreate'}">
|
||||||
<ButtonBase button-style="theme">Create New Plan</ButtonBase>
|
<ButtonBase button-style="theme">{{ $t('admin_page_plans.empty.button') }}</ButtonBase>
|
||||||
</router-link>
|
</router-link>
|
||||||
</EmptyPageContent>
|
</EmptyPageContent>
|
||||||
|
|
||||||
@@ -115,27 +115,27 @@
|
|||||||
plans: undefined,
|
plans: undefined,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
label: 'Status',
|
label: this.$t('admin_page_plans.table.status'),
|
||||||
field: 'data.attributes.status',
|
field: 'data.attributes.status',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Plan Name',
|
label: this.$t('admin_page_plans.table.name'),
|
||||||
field: 'data.attributes.name',
|
field: 'data.attributes.name',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Subscribers',
|
label: this.$t('admin_page_plans.table.subscribers'),
|
||||||
field: 'data.attributes.subscribers',
|
field: 'data.attributes.subscribers',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Price',
|
label: this.$t('admin_page_plans.table.price'),
|
||||||
field: 'data.attributes.price',
|
field: 'data.attributes.price',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Storage Capacity',
|
label: this.$t('admin_page_plans.table.storage_capacity'),
|
||||||
field: 'data.attributes.capacity',
|
field: 'data.attributes.capacity',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<DatatableWrapper :paginator="true" :columns="columns" :data="users" class="table table-users">
|
<DatatableWrapper :paginator="true" :columns="columns" :data="users" class="table table-users">
|
||||||
<template scope="{ row }">
|
<template scope="{ row }">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 300px">
|
<td style="min-width: 320px">
|
||||||
<router-link :to="{name: 'UserDetail', params: {id: row.data.id}}">
|
<router-link :to="{name: 'UserDetail', params: {id: row.data.id}}">
|
||||||
<DatatableCellImage
|
<DatatableCellImage
|
||||||
:image="row.data.attributes.avatar"
|
:image="row.data.attributes.avatar"
|
||||||
@@ -36,10 +36,10 @@
|
|||||||
</td>
|
</td>
|
||||||
<td v-if="config.isSaaS">
|
<td v-if="config.isSaaS">
|
||||||
<span class="cell-item" v-if="row.data.attributes.subscription">
|
<span class="cell-item" v-if="row.data.attributes.subscription">
|
||||||
Premium
|
{{ $t('global.premium') }}
|
||||||
</span>
|
</span>
|
||||||
<span class="cell-item" v-else>
|
<span class="cell-item" v-else>
|
||||||
Free
|
{{ $t('global.free') }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Subscription Plan',
|
label: this.$t('admin_page_user.table.plan'),
|
||||||
field: 'data.attributes.subscription',
|
field: 'data.attributes.subscription',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
hidden: ! this.config.isSaaS,
|
hidden: ! this.config.isSaaS,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<credit-card-icon size="17"></credit-card-icon>
|
<credit-card-icon size="17"></credit-card-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Subscription
|
{{ $t('admin_page_user.tabs.subscription') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<file-text-icon size="17"></file-text-icon>
|
<file-text-icon size="17"></file-text-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Invoices
|
{{ $t('admin_page_user.tabs.invoices') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
|
|||||||
@@ -3,16 +3,16 @@
|
|||||||
|
|
||||||
<!--Change role-->
|
<!--Change role-->
|
||||||
<PageTabGroup>
|
<PageTabGroup>
|
||||||
<FormLabel>{{ $t('user_box_role.title') }}</FormLabel>
|
<FormLabel>
|
||||||
|
{{ $t('user_box_role.title') }}
|
||||||
|
</FormLabel>
|
||||||
|
|
||||||
<InfoBox>
|
<InfoBox>
|
||||||
<p>{{ $t('user_box_role.description') }}</p>
|
<p>{{ $t('user_box_role.description') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
|
|
||||||
<ValidationObserver ref="changeRole" @submit.prevent="changeRole" v-slot="{ invalid }" tag="form"
|
<ValidationObserver ref="changeRole" @submit.prevent="changeRole" v-slot="{ invalid }" tag="form" class="form block-form">
|
||||||
class="form block-form">
|
<ValidationProvider tag="div" class="block-wrapper" v-slot="{ errors }" mode="passive" name="Role" rules="required">
|
||||||
<ValidationProvider tag="div" class="block-wrapper" v-slot="{ errors }" mode="passive" name="Role"
|
|
||||||
rules="required">
|
|
||||||
<label>{{ $t('admin_page_user.select_role') }}:</label>
|
<label>{{ $t('admin_page_user.select_role') }}:</label>
|
||||||
<div class="single-line-form">
|
<div class="single-line-form">
|
||||||
<SelectInput v-model="userRole" :options="roles"
|
<SelectInput v-model="userRole" :options="roles"
|
||||||
@@ -61,10 +61,10 @@
|
|||||||
<!--Billing Information-->
|
<!--Billing Information-->
|
||||||
<PageTabGroup>
|
<PageTabGroup>
|
||||||
<div class="form block-form">
|
<div class="form block-form">
|
||||||
<FormLabel>Billing Information</FormLabel>
|
<FormLabel>{{ $t('user_settings.title_billing') }}</FormLabel>
|
||||||
|
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Name:</label>
|
<label>{{ $t('user_settings.name') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input :value="user.relationships.settings.data.attributes.billing_name"
|
<input :value="user.relationships.settings.data.attributes.billing_name"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Address:</label>
|
<label>{{ $t('user_settings.address') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input :value="user.relationships.settings.data.attributes.billing_address"
|
<input :value="user.relationships.settings.data.attributes.billing_address"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>State:</label>
|
<label>{{ $t('user_settings.state') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input :value="user.relationships.settings.data.attributes.billing_state"
|
<input :value="user.relationships.settings.data.attributes.billing_state"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="wrapper-inline">
|
<div class="wrapper-inline">
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>City:</label>
|
<label>{{ $t('user_settings.city') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input :value="user.relationships.settings.data.attributes.billing_city"
|
<input :value="user.relationships.settings.data.attributes.billing_city"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Postal Code:</label>
|
<label>{{ $t('user_settings.postal_code') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input :value="user.relationships.settings.data.attributes.billing_postal_code"
|
<input :value="user.relationships.settings.data.attributes.billing_postal_code"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Country:</label>
|
<label>{{ $t('user_settings.country') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input :value="user.relationships.settings.data.attributes.billing_country"
|
<input :value="user.relationships.settings.data.attributes.billing_country"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Phone Number:</label>
|
<label>{{ $t('user_settings.phone_number') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input :value="user.relationships.settings.data.attributes.billing_phone_number"
|
<input :value="user.relationships.settings.data.attributes.billing_phone_number"
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
</DatatableWrapper>
|
</DatatableWrapper>
|
||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
<InfoBox v-else>
|
<InfoBox v-else>
|
||||||
<p>User don't have any invoices yet.</p>
|
<p>{{ $t('admin_page_user.invoices.empty') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
</PageTab>
|
</PageTab>
|
||||||
</template>
|
</template>
|
||||||
@@ -66,22 +66,22 @@
|
|||||||
invoices: undefined,
|
invoices: undefined,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
label: 'Invoice Number',
|
label: this.$t('admin_page_invoices.table.number'),
|
||||||
field: 'data.attributes.order',
|
field: 'data.attributes.order',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Total',
|
label: this.$t('admin_page_invoices.table.total'),
|
||||||
field: 'data.attributes.bag.amount',
|
field: 'data.attributes.bag.amount',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Plan',
|
label: this.$t('admin_page_invoices.table.plan'),
|
||||||
field: 'data.attributes.bag.amount',
|
field: 'data.attributes.bag.amount',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Payed',
|
label: this.$t('admin_page_invoices.table.payed'),
|
||||||
field: 'data.attributes.created_at',
|
field: 'data.attributes.created_at',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
@@ -110,14 +110,4 @@
|
|||||||
.block-form {
|
.block-form {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-width: 960px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageTab class="form-fixed-width">
|
<PageTab class="form-fixed-width">
|
||||||
<PageTabGroup>
|
<PageTabGroup>
|
||||||
<FormLabel>{{ $t('user_box_password.title') }}</FormLabel>
|
<FormLabel>
|
||||||
|
{{ $t('user_box_password.title') }}
|
||||||
|
</FormLabel>
|
||||||
<InfoBox>
|
<InfoBox>
|
||||||
<p>{{ $t('user_box_password.description') }}</p>
|
<p>{{ $t('user_box_password.description') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
@@ -83,14 +85,4 @@
|
|||||||
.block-form {
|
.block-form {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-width: 960px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageTab :is-loading="isLoading" class="form-fixed-width" v-if="storage">
|
<PageTab :is-loading="isLoading" class="form-fixed-width" v-if="storage">
|
||||||
<PageTabGroup v-if="config.storageLimit || ! user.data.attributes.subscription">
|
<PageTabGroup v-if="config.storageLimit || ! user.data.attributes.subscription">
|
||||||
<FormLabel>{{ $t('user_box_storage.title') }}</FormLabel>
|
<FormLabel>
|
||||||
|
{{ $t('user_box_storage.title') }}
|
||||||
|
</FormLabel>
|
||||||
<InfoBox>
|
<InfoBox>
|
||||||
<p>{{ $t('user_box_storage.description') }}</p>
|
<p>{{ $t('user_box_storage.description') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
@@ -124,7 +126,7 @@
|
|||||||
if (error.response.data.errors['attributes.storage_capacity']) {
|
if (error.response.data.errors['attributes.storage_capacity']) {
|
||||||
|
|
||||||
this.$refs.changeStorageCapacity.setErrors({
|
this.$refs.changeStorageCapacity.setErrors({
|
||||||
'Capacity': 'The storage capacity must be lower than 10 digit number.'
|
'Capacity': this.$t('errors.capacity_digit')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -158,14 +160,4 @@
|
|||||||
.block-form {
|
.block-form {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-width: 960px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,32 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageTab :is-loading="isLoading" class="form-fixed-width">
|
<PageTab :is-loading="isLoading" class="form-fixed-width">
|
||||||
<PageTabGroup v-if="subscription">
|
<PageTabGroup v-if="subscription">
|
||||||
<FormLabel>Subscription Plan</FormLabel>
|
<FormLabel>
|
||||||
|
{{ $t('user_subscription.title') }}
|
||||||
|
</FormLabel>
|
||||||
|
|
||||||
<!--Info about active subscription-->
|
<!--Info about active subscription-->
|
||||||
<div v-if="! subscription.canceled" class="state active">
|
<div v-if="! subscription.canceled" class="state active">
|
||||||
<ListInfo class="list-info">
|
<ListInfo class="list-info">
|
||||||
<ListInfoItem class="list-item" title="Plan" :content="subscription.attributes.name + ' - ' + subscription.attributes.capacity_formatted"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.plan')" :content="subscription.attributes.name + ' - ' + subscription.attributes.capacity_formatted"/>
|
||||||
<ListInfoItem class="list-item" title="Billed" content="Monthly"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.billed')" content="Monthly"/>
|
||||||
<ListInfoItem class="list-item" title="Status" :content="status"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.status')" :content="status"/>
|
||||||
<ListInfoItem class="list-item" title="Created At" :content="subscription.attributes.created_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.created_at')" :content="subscription.attributes.created_at"/>
|
||||||
<ListInfoItem class="list-item" title="Renews At" :content="subscription.attributes.ends_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.renews_at')" :content="subscription.attributes.ends_at"/>
|
||||||
</ListInfo>
|
</ListInfo>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Info about canceled subscription-->
|
<!--Info about canceled subscription-->
|
||||||
<div v-if="subscription.attributes.canceled" class="state canceled">
|
<div v-if="subscription.attributes.canceled" class="state canceled">
|
||||||
<ListInfo class="list-info">
|
<ListInfo class="list-info">
|
||||||
<ListInfoItem class="list-item" title="Plan" :content="subscription.attributes.name"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.plan')" :content="subscription.attributes.name"/>
|
||||||
<ListInfoItem class="list-item" title="Status" :content="status"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.status')" :content="status"/>
|
||||||
<ListInfoItem class="list-item" title="Canceled At" :content="subscription.attributes.canceled_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.canceled_at')" :content="subscription.attributes.canceled_at"/>
|
||||||
<ListInfoItem class="list-item" title="Ends At" :content="subscription.attributes.ends_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.ends_at')" :content="subscription.attributes.ends_at"/>
|
||||||
</ListInfo>
|
</ListInfo>
|
||||||
</div>
|
</div>
|
||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
<PageTabGroup v-if="! subscription">
|
<PageTabGroup v-if="! subscription">
|
||||||
<InfoBox>
|
<InfoBox>
|
||||||
<p>User don't have any subscription yet.</p>
|
<p>{{ $t('admin_page_user.subscription.empty') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
</PageTab>
|
</PageTab>
|
||||||
@@ -62,10 +64,10 @@
|
|||||||
computed: {
|
computed: {
|
||||||
status() {
|
status() {
|
||||||
if (this.subscription.attributes.canceled) {
|
if (this.subscription.attributes.canceled) {
|
||||||
return 'Canceled'
|
return this.$t('global.canceled')
|
||||||
}
|
}
|
||||||
if (this.subscription.attributes.active) {
|
if (this.subscription.attributes.active) {
|
||||||
return 'Active'
|
return this.$t('global.active')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -106,13 +108,4 @@
|
|||||||
flex: 0 0 50%;
|
flex: 0 0 50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 960px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -10,11 +10,11 @@
|
|||||||
<nav class="mobile-navigation">
|
<nav class="mobile-navigation">
|
||||||
|
|
||||||
<!--Admin menu-->
|
<!--Admin menu-->
|
||||||
<b class="mobile-menu-label">Admin</b>
|
<b class="mobile-menu-label">{{ $t('global.admin') }}</b>
|
||||||
<MenuItemList :navigation="AdminNavigation" />
|
<MenuItemList :navigation="AdminNavigation" />
|
||||||
|
|
||||||
<!--SaaS menu-->
|
<!--SaaS menu-->
|
||||||
<b class="mobile-menu-label">SaaS</b>
|
<b class="mobile-menu-label">{{ $t('global.saas') }}</b>
|
||||||
<MenuItemList :navigation="SassNavigation" />
|
<MenuItemList :navigation="SassNavigation" />
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -36,15 +36,21 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
AdminNavigation: [
|
AdminNavigation: [
|
||||||
|
{
|
||||||
|
icon: 'box',
|
||||||
|
title: this.$t('admin_menu.dashboard'),
|
||||||
|
routeName: 'Dashboard',
|
||||||
|
isVisible: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: 'users',
|
icon: 'users',
|
||||||
title: 'Users',
|
title: this.$t('admin_menu.users'),
|
||||||
routeName: 'Users',
|
routeName: 'Users',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'settings',
|
icon: 'settings',
|
||||||
title: 'Settings',
|
title: this.$t('admin_menu.settings'),
|
||||||
routeName: 'User',
|
routeName: 'User',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
@@ -52,16 +58,22 @@
|
|||||||
SassNavigation: [
|
SassNavigation: [
|
||||||
{
|
{
|
||||||
icon: 'database',
|
icon: 'database',
|
||||||
title: 'Plans',
|
title: this.$t('admin_menu.plans'),
|
||||||
routeName: 'Plans',
|
routeName: 'Plans',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'file-text',
|
icon: 'file-text',
|
||||||
title: 'Invoices',
|
title: this.$t('admin_menu.invoices'),
|
||||||
routeName: 'Invoices',
|
routeName: 'Invoices',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: 'monitor-icon',
|
||||||
|
title: this.$t('admin_menu.pages'),
|
||||||
|
routeName: 'Pages',
|
||||||
|
isVisible: true,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,11 +10,11 @@
|
|||||||
<nav class="mobile-navigation">
|
<nav class="mobile-navigation">
|
||||||
|
|
||||||
<!--Admin menu-->
|
<!--Admin menu-->
|
||||||
<b class="mobile-menu-label">Menu</b>
|
<b class="mobile-menu-label">{{ $t('global.menu') }}</b>
|
||||||
<MenuItemList :navigation="ProfileNavigation" />
|
<MenuItemList :navigation="ProfileNavigation" />
|
||||||
|
|
||||||
<!--SaaS menu-->
|
<!--SaaS menu-->
|
||||||
<b class="mobile-menu-label">Subscription</b>
|
<b class="mobile-menu-label">{{ $t('global.subscription') }}</b>
|
||||||
<MenuItemList :navigation="SubscriptionNavigation" />
|
<MenuItemList :navigation="SubscriptionNavigation" />
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -37,19 +37,19 @@
|
|||||||
ProfileNavigation: [
|
ProfileNavigation: [
|
||||||
{
|
{
|
||||||
icon: 'user',
|
icon: 'user',
|
||||||
title: 'Profile',
|
title: this.$t('menu.profile'),
|
||||||
routeName: 'Profile',
|
routeName: 'Profile',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'hard-drive',
|
icon: 'hard-drive',
|
||||||
title: 'Storage',
|
title: this.$t('menu.storage'),
|
||||||
routeName: 'Storage',
|
routeName: 'Storage',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'lock',
|
icon: 'lock',
|
||||||
title: 'Password',
|
title: this.$t('menu.password'),
|
||||||
routeName: 'Password',
|
routeName: 'Password',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
@@ -57,19 +57,19 @@
|
|||||||
SubscriptionNavigation: [
|
SubscriptionNavigation: [
|
||||||
{
|
{
|
||||||
icon: 'cloud',
|
icon: 'cloud',
|
||||||
title: 'Subscription',
|
title: this.$t('menu.subscription'),
|
||||||
routeName: 'Subscription',
|
routeName: 'Subscription',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'credit-card',
|
icon: 'credit-card',
|
||||||
title: 'Payment Cards',
|
title: this.$t('menu.payment_cards'),
|
||||||
routeName: 'PaymentMethods',
|
routeName: 'PaymentMethods',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'file-text',
|
icon: 'file-text',
|
||||||
title: 'Invoices',
|
title: this.$t('menu.invoices'),
|
||||||
routeName: 'Invoice',
|
routeName: 'Invoice',
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
<cloud-icon size="17"></cloud-icon>
|
<cloud-icon size="17"></cloud-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Subscription
|
{{ $t('menu.subscription') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<credit-card-icon size="17"></credit-card-icon>
|
<credit-card-icon size="17"></credit-card-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Payment Cards
|
{{ $t('menu.payment_cards') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
<file-text-icon size="17"></file-text-icon>
|
<file-text-icon size="17"></file-text-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Invoices
|
{{ $t('menu.invoices') }}
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
<div v-if="config.storageLimit && config.isSaaS && config.app_payments_active" class="headline-actions">
|
<div v-if="config.storageLimit && config.isSaaS && config.app_payments_active" class="headline-actions">
|
||||||
<router-link :to="{name: 'UpgradePlan'}" v-if="! user.relationships.subscription || (user.relationships.subscription && ! user.relationships.subscription.data.attributes.is_highest)">
|
<router-link :to="{name: 'UpgradePlan'}" v-if="! user.relationships.subscription || (user.relationships.subscription && ! user.relationships.subscription.data.attributes.is_highest)">
|
||||||
<ButtonBase class="upgrade-button" button-style="secondary" type="button">
|
<ButtonBase class="upgrade-button" button-style="secondary" type="button">
|
||||||
Upgrade Plan
|
{{ $t('upgrade.upgrade_plan') }}
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['user', 'config']),
|
...mapGetters(['user', 'config']),
|
||||||
subscriptionStatus() {
|
subscriptionStatus() {
|
||||||
return this.user.data.attributes.subscription ? 'Premium' : 'Free'
|
return this.user.data.attributes.subscription ? this.$t('global.premium') : this.$t('global.free')
|
||||||
},
|
},
|
||||||
subscriptionColor() {
|
subscriptionColor() {
|
||||||
return this.user.data.attributes.subscription ? 'green' : 'purple'
|
return this.user.data.attributes.subscription ? 'green' : 'purple'
|
||||||
|
|||||||
@@ -6,9 +6,8 @@
|
|||||||
|
|
||||||
<div class="plan-title">
|
<div class="plan-title">
|
||||||
<credit-card-icon size="42" class="title-icon"></credit-card-icon>
|
<credit-card-icon size="42" class="title-icon"></credit-card-icon>
|
||||||
<h1>Choose Payment Method</h1>
|
<h1>{{ $t('page_upgrade_account.title') }}</h1>
|
||||||
<h2>Choose plan witch perfect fit your needs. All plans is billed monthly automatically via your
|
<h2>{{ $t('page_upgrade_account.desription') }}</h2>
|
||||||
credit card.</h2>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="order">
|
<div class="order">
|
||||||
@@ -16,7 +15,7 @@
|
|||||||
<div class="steps">
|
<div class="steps">
|
||||||
|
|
||||||
<div class="payment-card">
|
<div class="payment-card">
|
||||||
<FormLabel>Payment Card</FormLabel>
|
<FormLabel>{{ $t('page_upgrade_account.section_card') }}</FormLabel>
|
||||||
|
|
||||||
<!-- Pay by new credit card -->
|
<!-- Pay by new credit card -->
|
||||||
<div class="register-card" v-show="! defaultPaymentMethod || payByNewCard">
|
<div class="register-card" v-show="! defaultPaymentMethod || payByNewCard">
|
||||||
@@ -43,7 +42,7 @@
|
|||||||
<div class="credit-card-numbers">
|
<div class="credit-card-numbers">
|
||||||
•••• {{ defaultPaymentMethod.data.attributes.last4 }}
|
•••• {{ defaultPaymentMethod.data.attributes.last4 }}
|
||||||
</div>
|
</div>
|
||||||
<ColorLabel color="purple">Default</ColorLabel>
|
<ColorLabel color="purple">{{ $t('global.default') }}</ColorLabel>
|
||||||
</div>
|
</div>
|
||||||
<div class="expiration-date">
|
<div class="expiration-date">
|
||||||
<span>{{ defaultPaymentMethod.data.attributes.exp_month }} / {{ defaultPaymentMethod.data.attributes.exp_year }}</span>
|
<span>{{ defaultPaymentMethod.data.attributes.exp_month }} / {{ defaultPaymentMethod.data.attributes.exp_year }}</span>
|
||||||
@@ -52,41 +51,51 @@
|
|||||||
|
|
||||||
<!--Change payment-->
|
<!--Change payment-->
|
||||||
<div class="change-payment" v-if="! isError">
|
<div class="change-payment" v-if="! isError">
|
||||||
<span>Also you can</span>
|
<span>
|
||||||
|
{{ $t('page_upgrade_account.change_payment.you_can') }}
|
||||||
|
</span>
|
||||||
|
|
||||||
<router-link v-if="PaymentMethods.data.length > 0" :to="{name: 'PaymentMethods'}">change your
|
<router-link v-if="PaymentMethods.data.length > 0" :to="{name: 'PaymentMethods'}">
|
||||||
default payment method
|
{{ $t('page_upgrade_account.change_payment.change_payment') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
<span v-if="PaymentMethods.data.length > 0">or</span>
|
|
||||||
|
|
||||||
<a @click="payByNewCardForm">pay by new credit card.</a>
|
<span v-if="PaymentMethods.data.length > 0">
|
||||||
|
{{ $t('global.or') }}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<a @click="payByNewCardForm">
|
||||||
|
{{ $t('page_upgrade_account.change_payment.pay_by_new_card') }}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Card error-->
|
<!--Card error-->
|
||||||
<div class="card-error-message" v-if="isError">
|
<div class="card-error-message" v-if="isError">
|
||||||
<span>{{ errorMessage }}</span>
|
<span>{{ errorMessage }}</span>
|
||||||
<span @click="payByNewCardForm"
|
<span @click="payByNewCardForm" class="link">
|
||||||
class="link">Please pay by another payment card</span>
|
{{ $t('page_upgrade_account.errors.pay_by_another_card') }}
|
||||||
<span> or </span>
|
</span>
|
||||||
<router-link :to="{name: 'PaymentMethods'}" class="link">Change your default payment
|
<span>
|
||||||
method
|
{{ $t('global.or') }}
|
||||||
|
</span>
|
||||||
|
<router-link :to="{name: 'PaymentMethods'}" class="link">
|
||||||
|
{{ $t('page_upgrade_account.change_payment.change_payment') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="billing" v-if="billing">
|
<div class="billing" v-if="billing">
|
||||||
<FormLabel>Billing Information</FormLabel>
|
<FormLabel>{{ $t('page_upgrade_account.section_billing') }}</FormLabel>
|
||||||
|
|
||||||
<ValidationObserver ref="order" v-slot="{ invalid }" tag="form" class="form block-form">
|
<ValidationObserver ref="order" v-slot="{ invalid }" tag="form" class="form block-form">
|
||||||
<div class="form block-form">
|
<div class="form block-form">
|
||||||
|
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Name:</label>
|
<label>{{ $t('user_settings.name') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
||||||
rules="required"
|
rules="required"
|
||||||
name="billing_name" v-slot="{ errors }">
|
name="billing_name" v-slot="{ errors }">
|
||||||
<input v-model="billing.billing_name"
|
<input v-model="billing.billing_name"
|
||||||
placeholder="Type your billing name"
|
:placeholder="$t('user_settings.name_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
:class="{'is-error': errors[0]}"
|
:class="{'is-error': errors[0]}"
|
||||||
/>
|
/>
|
||||||
@@ -95,12 +104,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Address:</label>
|
<label>{{ $t('user_settings.address') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
||||||
rules="required"
|
rules="required"
|
||||||
name="billing_address" v-slot="{ errors }">
|
name="billing_address" v-slot="{ errors }">
|
||||||
<input v-model="billing.billing_address"
|
<input v-model="billing.billing_address"
|
||||||
placeholder="Type your billing address"
|
:placeholder="$t('user_settings.address_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
:class="{'is-error': errors[0]}"
|
:class="{'is-error': errors[0]}"
|
||||||
/>
|
/>
|
||||||
@@ -109,12 +118,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>State:</label>
|
<label>{{ $t('user_settings.state') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
||||||
rules="required"
|
rules="required"
|
||||||
name="billing_state" v-slot="{ errors }">
|
name="billing_state" v-slot="{ errors }">
|
||||||
<input v-model="billing.billing_state"
|
<input v-model="billing.billing_state"
|
||||||
placeholder="Type your billing state"
|
:placeholder="$t('user_settings.state_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
:class="{'is-error': errors[0]}"
|
:class="{'is-error': errors[0]}"
|
||||||
/>
|
/>
|
||||||
@@ -124,12 +133,12 @@
|
|||||||
|
|
||||||
<div class="wrapper-inline">
|
<div class="wrapper-inline">
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>City:</label>
|
<label>{{ $t('user_settings.city') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
||||||
rules="required" name="billing_city"
|
rules="required" name="billing_city"
|
||||||
v-slot="{ errors }">
|
v-slot="{ errors }">
|
||||||
<input v-model="billing.billing_city"
|
<input v-model="billing.billing_city"
|
||||||
placeholder="Type your billing city"
|
:placeholder="$t('user_settings.city_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
:class="{'is-error': errors[0]}"
|
:class="{'is-error': errors[0]}"
|
||||||
/>
|
/>
|
||||||
@@ -138,12 +147,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Postal Code:</label>
|
<label>{{ $t('user_settings.postal_code') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
||||||
rules="required" name="billing_postal_code"
|
rules="required" name="billing_postal_code"
|
||||||
v-slot="{ errors }">
|
v-slot="{ errors }">
|
||||||
<input v-model="billing.billing_postal_code"
|
<input v-model="billing.billing_postal_code"
|
||||||
placeholder="Type your billing postal code"
|
:placeholder="$t('user_settings.postal_code_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
:class="{'is-error': errors[0]}"
|
:class="{'is-error': errors[0]}"
|
||||||
/>
|
/>
|
||||||
@@ -153,12 +162,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Country:</label>
|
<label>{{ $t('user_settings.country') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
||||||
rules="required"
|
rules="required"
|
||||||
name="billing_country" v-slot="{ errors }">
|
name="billing_country" v-slot="{ errors }">
|
||||||
<input v-model="billing.billing_country"
|
<input v-model="billing.billing_country"
|
||||||
placeholder="Type your billing country"
|
:placeholder="$t('user_settings.country_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
:class="{'is-error': errors[0]}"
|
:class="{'is-error': errors[0]}"
|
||||||
/>
|
/>
|
||||||
@@ -167,12 +176,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Phone Number:</label>
|
<label>{{ $t('user_settings.phone_number') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper"
|
||||||
rules="required"
|
rules="required"
|
||||||
name="billing_phone_number" v-slot="{ errors }">
|
name="billing_phone_number" v-slot="{ errors }">
|
||||||
<input v-model="billing.billing_phone_number"
|
<input v-model="billing.billing_phone_number"
|
||||||
placeholder="Type your billing phone number"
|
:placeholder="$t('user_settings.phone_number_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
:class="{'is-error': errors[0]}"
|
:class="{'is-error': errors[0]}"
|
||||||
/>
|
/>
|
||||||
@@ -184,12 +193,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary">
|
<div class="summary">
|
||||||
<FormLabel>Order Summary</FormLabel>
|
<FormLabel>{{ $t('page_upgrade_account.section_summary') }}</FormLabel>
|
||||||
<div class="summary-list" :class="{'is-error': isError}" v-if="requestedPlan">
|
<div class="summary-list" :class="{'is-error': isError}" v-if="requestedPlan">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<b>{{ requestedPlan.data.attributes.name }}</b>
|
<b>{{ requestedPlan.data.attributes.name }}</b>
|
||||||
<small>Billed monthly</small>
|
<small>{{ $t('page_upgrade_account.summary.period') }}</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<b>{{ requestedPlan.data.attributes.price }}</b>
|
<b>{{ requestedPlan.data.attributes.price }}</b>
|
||||||
@@ -197,7 +206,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<b>Total</b>
|
<b>{{ $t('global.total') }}</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<b>{{ requestedPlan.data.attributes.price }}</b>
|
<b>{{ requestedPlan.data.attributes.price }}</b>
|
||||||
@@ -205,12 +214,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<ButtonBase :disabled="isSubmitted" :loading="isSubmitted" @click.native="submitOrder"
|
<ButtonBase :disabled="isSubmitted" :loading="isSubmitted" @click.native="submitOrder"
|
||||||
type="submit" button-style="theme-solid" class="next-submit">
|
type="submit" button-style="theme-solid" class="next-submit">
|
||||||
Pay with credit card
|
{{ $t('page_upgrade_account.summary.submit_button') }}
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
<p class="error-message" v-if="isError">{{ errorMessage }}</p>
|
<p class="error-message" v-if="isError">{{ errorMessage }}</p>
|
||||||
<small class="disclaimer">
|
<small class="disclaimer">
|
||||||
By submit form, you agree to save the payment method and billing information in your
|
{{ $t('page_upgrade_account.summary.submit_disclaimer') }}
|
||||||
VueFileManager account.
|
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -297,7 +305,7 @@
|
|||||||
// Show toaster
|
// Show toaster
|
||||||
events.$emit('toaster', {
|
events.$emit('toaster', {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: 'Your account was successfully upgraded.',
|
message: this.$t('toaster.account_upgraded'),
|
||||||
})
|
})
|
||||||
|
|
||||||
// Go to User page
|
// Go to User page
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<div class="content-page">
|
<div class="content-page">
|
||||||
<div class="plan-title">
|
<div class="plan-title">
|
||||||
<cloud-icon size="42" class="title-icon"></cloud-icon>
|
<cloud-icon size="42" class="title-icon"></cloud-icon>
|
||||||
<h1>Choose Your Plan</h1>
|
<h1>{{ $t('page_pricing_tables.title') }}</h1>
|
||||||
<h2>Choose plan witch perfect fit your needs. All plans is billed monthly automatically via your credit card.</h2>
|
<h2>{{ $t('page_pricing_tables.description') }}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<PlanPricingTables @load="onLoadPricingTables" @selected-plan="onSelectTable"/>
|
<PlanPricingTables @load="onLoadPricingTables" @selected-plan="onSelectTable"/>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageTab :is-loading="isLoading">
|
<PageTab :is-loading="isLoading">
|
||||||
<PageTabGroup v-if="invoices && invoices.length > 0">
|
<PageTabGroup v-if="invoices && invoices.length > 0">
|
||||||
<FormLabel>Invoices</FormLabel>
|
<FormLabel>{{ $t('user_invoices.title') }}</FormLabel>
|
||||||
<DatatableWrapper :paginator="true" :columns="columns" :data="invoices" class="table">
|
<DatatableWrapper :paginator="true" :columns="columns" :data="invoices" class="table">
|
||||||
<template scope="{ row }">
|
<template scope="{ row }">
|
||||||
<tr>
|
<tr>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</DatatableWrapper>
|
</DatatableWrapper>
|
||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
<InfoBox v-else>
|
<InfoBox v-else>
|
||||||
<p>You don't have any invoices yet.</p>
|
<p>{{ $t('user_invoices.empty') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
</PageTab>
|
</PageTab>
|
||||||
</template>
|
</template>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
import FormLabel from '@/components/Others/Forms/FormLabel'
|
import FormLabel from '@/components/Others/Forms/FormLabel'
|
||||||
import PageTab from '@/components/Others/Layout/PageTab'
|
import PageTab from '@/components/Others/Layout/PageTab'
|
||||||
import InfoBox from '@/components/Others/Forms/InfoBox'
|
import InfoBox from '@/components/Others/Forms/InfoBox'
|
||||||
import {ExternalLinkIcon} from "vue-feather-icons";
|
import {ExternalLinkIcon} from "vue-feather-icons"
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -67,22 +67,22 @@
|
|||||||
invoices: undefined,
|
invoices: undefined,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
label: 'Invoice Number',
|
label: this.$t('rows.invoice.number'),
|
||||||
field: 'data.attributes.order',
|
field: 'data.attributes.order',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Total',
|
label: this.$t('rows.invoice.total'),
|
||||||
field: 'data.attributes.bag.amount',
|
field: 'data.attributes.bag.amount',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Plan',
|
label: this.$t('rows.invoice.plan'),
|
||||||
field: 'data.attributes.bag.amount',
|
field: 'data.attributes.bag.amount',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Payed',
|
label: this.$t('rows.invoice.payed'),
|
||||||
field: 'data.attributes.created_at',
|
field: 'data.attributes.created_at',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
@@ -112,13 +112,4 @@
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-width: 960px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<PageTab>
|
<PageTab>
|
||||||
<PageTabGroup>
|
<PageTabGroup>
|
||||||
<ValidationObserver ref="password" @submit.prevent="resetPassword" v-slot="{ invalid }" tag="form" class="form block-form">
|
<ValidationObserver ref="password" @submit.prevent="resetPassword" v-slot="{ invalid }" tag="form" class="form block-form">
|
||||||
<FormLabel>Change Your Password</FormLabel>
|
<FormLabel>{{ $t('user_password.title') }}</FormLabel>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>{{ $t('page_create_password.label_new_pass') }}:</label>
|
<label>{{ $t('page_create_password.label_new_pass') }}:</label>
|
||||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="New Password"
|
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="New Password"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageTab :is-loading="isLoading">
|
<PageTab :is-loading="isLoading">
|
||||||
<PageTabGroup v-if="PaymentMethods && PaymentMethods.length > 0">
|
<PageTabGroup v-if="PaymentMethods && PaymentMethods.length > 0">
|
||||||
<FormLabel>Payment Methods</FormLabel>
|
<FormLabel>{{ $t('user_payments.title') }}</FormLabel>
|
||||||
<DatatableWrapper :paginator="true" :columns="columns" :data="PaymentMethods" class="table">
|
<DatatableWrapper :paginator="true" :columns="columns" :data="PaymentMethods" class="table">
|
||||||
<template scope="{ row }">
|
<template scope="{ row }">
|
||||||
<tr :class="{'is-deleting': row.data.attributes.card_id === deletingID}">
|
<tr :class="{'is-deleting': row.data.attributes.card_id === deletingID}">
|
||||||
@@ -13,15 +13,15 @@
|
|||||||
<div class="credit-card-numbers">
|
<div class="credit-card-numbers">
|
||||||
•••• {{ row.data.attributes.last4 }}
|
•••• {{ row.data.attributes.last4 }}
|
||||||
</div>
|
</div>
|
||||||
<ColorLabel v-if="row.data.id === defaultPaymentCard.data.id" color="purple">Default</ColorLabel>
|
<ColorLabel v-if="row.data.id === defaultPaymentCard.data.id" color="purple">{{ $t('global.default') }}</ColorLabel>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<!--<td>
|
||||||
<span class="cell-item">
|
<span class="cell-item">
|
||||||
<ColorLabel :color="getCardStatusColor(row.data.attributes.status)">{{ getCardStatus(row.data.attributes.status) }}</ColorLabel>
|
<ColorLabel :color="getCardStatusColor(row.data.attributes.status)">{{ getCardStatus(row.data.attributes.status) }}</ColorLabel>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>-->
|
||||||
<td>
|
<td>
|
||||||
<span class="cell-item">
|
<span class="cell-item">
|
||||||
{{ row.data.attributes.exp_month }} / {{ row.data.attributes.exp_year }}
|
{{ row.data.attributes.exp_month }} / {{ row.data.attributes.exp_year }}
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="action-icons">
|
<div class="action-icons">
|
||||||
<credit-card-icon size="15" class="icon icon-card" title="Set as default card" @click="setDefaultCard(row.data.attributes)" v-if="row.data.id !== defaultPaymentCard.data.id"></credit-card-icon>
|
<credit-card-icon size="15" class="icon icon-card" :title="$t('user_payments.set_as_default')" @click="setDefaultCard(row.data.attributes)" v-if="row.data.id !== defaultPaymentCard.data.id"></credit-card-icon>
|
||||||
<trash2-icon size="15" class="icon icon-trash" title="Delete card" @click="deleteCard(row.data.attributes)"></trash2-icon>
|
<trash2-icon size="15" class="icon icon-trash" :title="$t('user_payments.delete_card')" @click="deleteCard(row.data.attributes)"></trash2-icon>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
</DatatableWrapper>
|
</DatatableWrapper>
|
||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
<InfoBox v-else>
|
<InfoBox v-else>
|
||||||
<p>You don't have any payment cards yet.</p>
|
<p>{{ $t('user_payments.empty') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
</PageTab>
|
</PageTab>
|
||||||
</template>
|
</template>
|
||||||
@@ -73,17 +73,17 @@
|
|||||||
deletingID: undefined,
|
deletingID: undefined,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
label: 'Card Number',
|
label: this.$t('rows.card.number'),
|
||||||
field: 'data.attributes.total',
|
field: 'data.attributes.total',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
/*{
|
||||||
label: 'Status',
|
label: this.$t('rows.card.status'),
|
||||||
field: 'data.attributes.status',
|
field: 'data.attributes.status',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},*/
|
||||||
{
|
{
|
||||||
label: 'Expiration Date',
|
label: this.$t('rows.card.expiration'),
|
||||||
field: 'data.attributes.total',
|
field: 'data.attributes.total',
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
@@ -125,8 +125,8 @@
|
|||||||
},
|
},
|
||||||
setDefaultCard(card) {
|
setDefaultCard(card) {
|
||||||
events.$emit('confirm:open', {
|
events.$emit('confirm:open', {
|
||||||
title: 'Set as default card?',
|
title: this.$t('popup_set_card.title'),
|
||||||
message: 'Your card will be set as default and will be always charged for the next billings.',
|
message: this.$t('popup_set_card.message'),
|
||||||
buttonColor: 'theme-solid',
|
buttonColor: 'theme-solid',
|
||||||
action: {
|
action: {
|
||||||
id: card.card_id,
|
id: card.card_id,
|
||||||
@@ -136,8 +136,8 @@
|
|||||||
},
|
},
|
||||||
deleteCard(card) {
|
deleteCard(card) {
|
||||||
events.$emit('confirm:open', {
|
events.$emit('confirm:open', {
|
||||||
title: 'Are you sure?',
|
title: this.$t('popup_set_card.'),
|
||||||
message: 'This event is irreversible and your payment card will be delete forever',
|
message: this.$t('popup_set_card.'),
|
||||||
action: {
|
action: {
|
||||||
id: card.card_id,
|
id: card.card_id,
|
||||||
operation: 'delete-credit-card'
|
operation: 'delete-credit-card'
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
// Show toaster
|
// Show toaster
|
||||||
events.$emit('toaster', {
|
events.$emit('toaster', {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: 'Your card was successfully deleted.',
|
message: this.$t('toaster.card_deleted'),
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
// Show toaster
|
// Show toaster
|
||||||
events.$emit('toaster', {
|
events.$emit('toaster', {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: 'Your card was successfully set as default.',
|
message: this.$t('toaster.card_set'),
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<PageTab>
|
<PageTab>
|
||||||
<PageTabGroup v-if="userInfo">
|
<PageTabGroup v-if="userInfo">
|
||||||
<div class="form block-form">
|
<div class="form block-form">
|
||||||
<FormLabel>Account Information</FormLabel>
|
<FormLabel>{{ $t('user_settings.title_account') }}</FormLabel>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>{{ $t('page_registration.label_email') }}</label>
|
<label>{{ $t('page_registration.label_email') }}</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
@@ -27,75 +27,75 @@
|
|||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
<PageTabGroup v-if="config.isSaaS && billingInfo">
|
<PageTabGroup v-if="config.isSaaS && billingInfo">
|
||||||
<div class="form block-form">
|
<div class="form block-form">
|
||||||
<FormLabel>Billing Information</FormLabel>
|
<FormLabel>{{ $t('user_settings.title_billing') }}</FormLabel>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Name:</label>
|
<label>{{ $t('user_settings.name') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input @keyup="$updateText('/user/relationships/settings', 'billing_name', billingInfo.billing_name)"
|
<input @keyup="$updateText('/user/relationships/settings', 'billing_name', billingInfo.billing_name)"
|
||||||
v-model="billingInfo.billing_name"
|
v-model="billingInfo.billing_name"
|
||||||
placeholder="Type your billing name"
|
:placeholder="$t('user_settings.name_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Address:</label>
|
<label>{{ $t('user_settings.address') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input @keyup="$updateText('/user/relationships/settings', 'billing_address', billingInfo.billing_address)"
|
<input @keyup="$updateText('/user/relationships/settings', 'billing_address', billingInfo.billing_address)"
|
||||||
v-model="billingInfo.billing_address"
|
v-model="billingInfo.billing_address"
|
||||||
placeholder="Type your billing address"
|
:placeholder="$t('user_settings.address_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>State:</label>
|
<label>{{ $t('user_settings.state') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input @keyup="$updateText('/user/relationships/settings', 'billing_state', billingInfo.billing_state)"
|
<input @keyup="$updateText('/user/relationships/settings', 'billing_state', billingInfo.billing_state)"
|
||||||
v-model="billingInfo.billing_state"
|
v-model="billingInfo.billing_state"
|
||||||
placeholder="Type your billing state"
|
:placeholder="$t('user_settings.state_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrapper-inline">
|
<div class="wrapper-inline">
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>City:</label>
|
<label>{{ $t('user_settings.city') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input @keyup="$updateText('/user/relationships/settings', 'billing_city', billingInfo.billing_city)"
|
<input @keyup="$updateText('/user/relationships/settings', 'billing_city', billingInfo.billing_city)"
|
||||||
v-model="billingInfo.billing_city"
|
v-model="billingInfo.billing_city"
|
||||||
placeholder="Type your billing city"
|
:placeholder="$t('user_settings.city_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Postal Code:</label>
|
<label>{{ $t('user_settings.postal_code') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input @keyup="$updateText('/user/relationships/settings', 'billing_postal_code', billingInfo.billing_postal_code)"
|
<input @keyup="$updateText('/user/relationships/settings', 'billing_postal_code', billingInfo.billing_postal_code)"
|
||||||
v-model="billingInfo.billing_postal_code"
|
v-model="billingInfo.billing_postal_code"
|
||||||
placeholder="Type your billing postal code"
|
:placeholder="$t('user_settings.postal_code_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Country:</label>
|
<label>{{ $t('user_settings.country') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input @keyup="$updateText('/user/relationships/settings', 'billing_country', billingInfo.billing_country)"
|
<input @keyup="$updateText('/user/relationships/settings', 'billing_country', billingInfo.billing_country)"
|
||||||
v-model="billingInfo.billing_country"
|
v-model="billingInfo.billing_country"
|
||||||
placeholder="Type your billing country"
|
:placeholder="$t('user_settings.country_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block-wrapper">
|
<div class="block-wrapper">
|
||||||
<label>Phone Number:</label>
|
<label>{{ $t('user_settings.phone_number') }}:</label>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input @keyup="$updateText('/user/relationships/settings', 'billing_phone_number', billingInfo.billing_phone_number)"
|
<input @keyup="$updateText('/user/relationships/settings', 'billing_phone_number', billingInfo.billing_phone_number)"
|
||||||
v-model="billingInfo.billing_phone_number"
|
v-model="billingInfo.billing_phone_number"
|
||||||
placeholder="Type your billing phone number"
|
:placeholder="$t('user_settings.phone_number_plac')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -180,12 +180,4 @@
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 960px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageTab v-if="storage">
|
<PageTab v-if="storage">
|
||||||
<PageTabGroup>
|
<PageTabGroup>
|
||||||
<FormLabel>Your disk Usage</FormLabel>
|
<FormLabel>{{ $t('storage.sec_capacity') }}</FormLabel>
|
||||||
<StorageItemDetail type="disk" :title="$t('storage.total_used', {used: storage.attributes.used})" :percentage="storage.attributes.percentage" :used="$t('storage.total_capacity', {capacity: storage.attributes.capacity})"/>
|
<StorageItemDetail type="disk" :title="$t('storage.total_used', {used: storage.attributes.used})" :percentage="storage.attributes.percentage" :used="$t('storage.total_capacity', {capacity: storage.attributes.capacity})"/>
|
||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
<PageTabGroup>
|
<PageTabGroup>
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageTab :is-loading="isLoading">
|
<PageTab :is-loading="isLoading">
|
||||||
<PageTabGroup v-if="subscription">
|
<PageTabGroup v-if="subscription">
|
||||||
<FormLabel>Subscription Plan</FormLabel>
|
<FormLabel>
|
||||||
|
{{ $t('user_subscription.title') }}
|
||||||
|
</FormLabel>
|
||||||
|
|
||||||
<!--Info about active subscription-->
|
<!--Info about active subscription-->
|
||||||
<div v-if="! subscription.data.attributes.canceled" class="state active">
|
<div v-if="! subscription.data.attributes.canceled" class="state active">
|
||||||
<ListInfo class="list-info">
|
<ListInfo class="list-info">
|
||||||
<ListInfoItem class="list-item" title="Plan" :content="subscription.data.attributes.name + ' - ' + subscription.data.attributes.capacity_formatted"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.plan')" :content="subscription.data.attributes.name + ' - ' + subscription.data.attributes.capacity_formatted"/>
|
||||||
<ListInfoItem class="list-item" title="Billed" content="Monthly"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.billed')" content="Monthly"/>
|
||||||
<ListInfoItem class="list-item" title="Status" :content="status"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.status')" :content="status"/>
|
||||||
<ListInfoItem class="list-item" title="Created At" :content="subscription.data.attributes.created_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.created_at')" :content="subscription.data.attributes.created_at"/>
|
||||||
<ListInfoItem class="list-item" title="Renews At" :content="subscription.data.attributes.ends_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.renews_at')" :content="subscription.data.attributes.ends_at"/>
|
||||||
</ListInfo>
|
</ListInfo>
|
||||||
<div class="plan-action">
|
<div class="plan-action">
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
@@ -26,10 +28,10 @@
|
|||||||
<!--Info about canceled subscription-->
|
<!--Info about canceled subscription-->
|
||||||
<div v-if="subscription.data.attributes.canceled" class="state canceled">
|
<div v-if="subscription.data.attributes.canceled" class="state canceled">
|
||||||
<ListInfo class="list-info">
|
<ListInfo class="list-info">
|
||||||
<ListInfoItem class="list-item" title="Plan" :content="subscription.data.attributes.name"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.plan')" :content="subscription.data.attributes.name"/>
|
||||||
<ListInfoItem class="list-item" title="Status" :content="status"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.status')" :content="status"/>
|
||||||
<ListInfoItem class="list-item" title="Canceled At" :content="subscription.data.attributes.canceled_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.canceled_at')" :content="subscription.data.attributes.canceled_at"/>
|
||||||
<ListInfoItem class="list-item" title="Ends At" :content="subscription.data.attributes.ends_at"/>
|
<ListInfoItem class="list-item" :title="$t('user_subscription.ends_at')" :content="subscription.data.attributes.ends_at"/>
|
||||||
</ListInfo>
|
</ListInfo>
|
||||||
<div class="plan-action">
|
<div class="plan-action">
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
@@ -43,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</PageTabGroup>
|
</PageTabGroup>
|
||||||
<InfoBox v-else>
|
<InfoBox v-else>
|
||||||
<p>You don't have any subscription yet.</p>
|
<p>{{ $t('user_subscription.empty') }}</p>
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
</PageTab>
|
</PageTab>
|
||||||
</template>
|
</template>
|
||||||
@@ -77,23 +79,23 @@
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
cancelButtonText() {
|
cancelButtonText() {
|
||||||
return this.isConfirmedCancel ? this.$t('popup_share_edit.confirm') : 'Cancel Plan'
|
return this.isConfirmedCancel ? this.$t('popup_share_edit.confirm') : this.$t('user_subscription.cancel_plan')
|
||||||
},
|
},
|
||||||
cancelButtonStyle() {
|
cancelButtonStyle() {
|
||||||
return this.isConfirmedCancel ? 'danger-solid' : 'secondary'
|
return this.isConfirmedCancel ? 'danger-solid' : 'secondary'
|
||||||
},
|
},
|
||||||
resumeButtonText() {
|
resumeButtonText() {
|
||||||
return this.isConfirmedResume ? this.$t('popup_share_edit.confirm') : 'Resume Plan'
|
return this.isConfirmedResume ? this.$t('popup_share_edit.confirm') : this.$t('user_subscription.resume_plan')
|
||||||
},
|
},
|
||||||
resumeButtonStyle() {
|
resumeButtonStyle() {
|
||||||
return this.isConfirmedResume ? 'theme-solid' : 'secondary'
|
return this.isConfirmedResume ? 'theme-solid' : 'secondary'
|
||||||
},
|
},
|
||||||
status() {
|
status() {
|
||||||
if (this.subscription.data.attributes.canceled) {
|
if (this.subscription.data.attributes.canceled) {
|
||||||
return 'Canceled'
|
return this.$t('global.canceled')
|
||||||
}
|
}
|
||||||
if (this.subscription.data.attributes.active) {
|
if (this.subscription.data.attributes.active) {
|
||||||
return 'Active'
|
return this.$t('global.active')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -135,10 +137,10 @@
|
|||||||
|
|
||||||
events.$emit('alert:open', {
|
events.$emit('alert:open', {
|
||||||
emoji: '👍',
|
emoji: '👍',
|
||||||
title: 'Subscription Was Canceled',
|
title: this.$t('popup_subscription_cancel.title'),
|
||||||
message: 'You\'ll continue to have access to the features you\'ve paid for until the end of your billing cycle.',
|
message: this.$t('popup_subscription_cancel.message'),
|
||||||
buttonStyle: 'theme',
|
buttonStyle: 'theme',
|
||||||
button: 'I\'m done'
|
button: this.$t('popup_subscription_cancel.button')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@@ -176,10 +178,10 @@
|
|||||||
|
|
||||||
events.$emit('alert:open', {
|
events.$emit('alert:open', {
|
||||||
emoji: '👍',
|
emoji: '👍',
|
||||||
title: 'Subscription Was Resumed',
|
title: this.$t('popup_subscription_cancel.title'),
|
||||||
message: 'Your subscription was re-activated, and they will be billed on the original billing cycle.',
|
message: this.$t('popup_subscription_cancel.message'),
|
||||||
buttonStyle: 'theme',
|
buttonStyle: 'theme',
|
||||||
button: 'That\'s awesome!'
|
button: this.$t('popup_subscription_cancel.button')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user