v1.7 RC.2

This commit is contained in:
carodej
2020-07-21 09:27:57 +02:00
parent b67297f160
commit 6f6115d5cb
10 changed files with 38 additions and 13 deletions

View File

@@ -1,5 +1,15 @@
![logo](https://vuefilemanager.com/assets/images/vuefilemanager-horizontal-logo.svg)
# Private Cloud Storage Build on Laravel & Vue.js
## Supporting VueFileManager
Hi, we are trying make the best experience with VueFileManager. There is a lot things to do, and a lot of features we can make.
But, it can't be done without you, development is more and more complicated and we have to hire new colleagues to help with it. There is couple way you can support us, and then, we support you with all great new features which can be. Thanks!
- [Become a backer or sponsor on Patreon](https://www.patreon.com/vuefilemanager)
- [One-time donation via PayPal](https://www.paypal.me/peterpapp)
- [Purchase Licence on CodeCanyon](https://codecanyon.net/item/vue-file-manager-with-laravel-backend/25815986)
## Contents
- [Installation](#installation)
@@ -9,10 +19,11 @@
- [Nginx Configuration](#nginx-configuration)
- [Apache Configuration](#apache-configuration)
- [Recover Failed Installation](#installation-failed)
- [Update VueFileManager from 1.6.x to 1.7 ](#update-vuefilemanager)
- [Update VueFileManager from 1.6.x to 1.7 ](#update-vuefilemanager-from-16x-to-17)
- [Payments](#payments)
- [Get your active plans](#get-your-active-plans)
- [Manage Failed Payments](#manage-failed-payments)
- [Tax Rates](#tax-rates)
- [Technical Informations](#technical-informations)
- [For Developers](#for-developers)
- [Supported Storages](#supported-storages)
@@ -28,7 +39,7 @@
## Server Requirements
** For running app make sure you have installed:**
**For running app make sure you have installed:**
- PHP >= 7.2.5 version
- MySQL 5.6+
@@ -36,7 +47,7 @@
** These PHP Extensions are required:**
**These PHP Extensions are required:**
- GD
- BCMath
@@ -53,6 +64,8 @@
Copy project files to web root folder of your domain. It's mostly located in `html`, `www` or `public_html` folder name.
Make sure `.env` file was uploaded. This type of file can be hidden in default.
Set `755` permission (CHMOD) to these file and folders directory within all children subdirectories:
- /bootstrap/cache
@@ -165,7 +178,7 @@ Then follow this steps:
- Restore your `.env` config file on your server.
- Go to https://your-domain.com/upgrade and follow the setup wizard instructions.
#Payments
# Payments
VueFileManager is packed with **Stripe** payment options. To configure Stripe, you will be asked in Setup Wizard to set up. Or, if you skip this installation process, you will find stripe set up in you admin `Dashboard / Settings / Payments`.
## Get your active plans
@@ -177,6 +190,11 @@ GET /api/public/pricing
## Manage Failed Payments
VueFileManager manage failed payments with additional email notification. But, there is more you can do for better User Experience. There is some additionals option in Stripe, look on [prevent failed payments](https://dashboard.stripe.com/settings/billing/automatic).
## Tax Rates
You are able to manage tax rates. When adding a new tax rate, if no Region is specified, the tax rate will apply to everyone. Add a [ISO 3166-1 alpha-2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) to the Region field if you wish to apply taxes per country.
Just log in to your stripe dashboard, and you will find taxes under `Dashboard / Products / Tax Rates`.
# Technical Informations
## For Developers
Installation process on your localhost is the same. But, there are some good hints.
@@ -195,6 +213,10 @@ To start server on your localhost, run this command
```
php artisan serve
```
To develop your front-end, you have to install npm modules by this command:
```
npm install
```
To compiles and hot-reloads for development. Then run this command:
```

View File

@@ -42,7 +42,7 @@ class FavouriteController extends Controller
$user->favourite_folders()->syncWithoutDetaching($request->unique_id);
// Return updated favourites
return $user->favourites;
return $user->favourite_folders;
}
/**
@@ -64,6 +64,6 @@ class FavouriteController extends Controller
$user->favourite_folders()->detach($unique_id);
// Return updated favourites
return $user->favourites;
return $user->favourite_folders;
}
}

View File

@@ -128,6 +128,11 @@ class PaymentMethodsController extends Controller
// Get user
$user = Auth::user();
// Check if is demo
if (is_demo($user->id)) {
return response('Done', 201);
}
// Register new payment method
$this->stripe->registerNewPaymentMethod($request, $user);

View File

@@ -171,7 +171,6 @@ function get_version()
*/
function is_demo($user_id)
{
return env('APP_DEMO', false) && $user_id === 1;
}

View File

@@ -138,6 +138,6 @@ class Demo
*/
public static function favourites($user) {
return $user->favourites->makeHidden(['pivot']);
return $user->favourite_folders->makeHidden(['pivot']);
}
}

View File

@@ -107,7 +107,6 @@ class User extends Authenticatable
*/
protected $casts = [
'email_verified_at' => 'datetime',
'favourites' => 'array',
];
protected $appends = [

2
public/js/main.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -23,7 +23,7 @@
{{ data.license }}
</ColorLabel>
</a>
<a v-if="! config.isDemo" href="https://vuefilemanager.com" target="_blank" class="became-backer">
<a v-if="! config.isDemo" href="https://vuefilemanager.com/become-a-backer" target="_blank" class="became-backer">
<div class="icon">
<credit-card-icon size="15"></credit-card-icon>
</div>

View File

@@ -175,7 +175,7 @@
return this.config.isSaaS
},
canShowUpgradeButton() {
return this.config.storageDefaultSpace === this.user.relationships.storage.data.attributes.capacity || this.config.storageLimit && this.user.relationships.storage.data.attributes.used > 95
return this.config.isDemo || this.config.storageDefaultSpace === this.user.relationships.storage.data.attributes.capacity || this.config.storageLimit && this.user.relationships.storage.data.attributes.used > 95
},
canShowUpgradeWarning() {
return this.config.storageLimit && this.user.relationships.storage.data.attributes.used > 95

View File

@@ -12,7 +12,7 @@
<ValidationObserver @submit.prevent="databaseCredentialsSubmit" ref="verifyPurchaseCode" v-slot="{ invalid }" tag="form" class="form block-form">
<FormLabel>Database Credentials</FormLabel>
<InfoBox>
<p>We strongly recommend use MySQL or MariaDB database. Create new database and get credentials in your locale database client. For those who use cPanel or Plesk, here is useful resources:</p>
<p>We strongly recommend use MySQL or MariaDB database. Create new database, set all privileges and get credentials. For those who use cPanel or Plesk, here is useful resources:</p>
<ul>
<li>
<a href="https://www.inmotionhosting.com/support/edu/cpanel/create-database-2/" target="_blank">1. cPanel - MySQL Database Wizard</a>