Fixed modal style issues, localization of routes issue and updated description string of version command

This commit is contained in:
Prashant Singh 2019-04-07 06:30:55 +05:30
parent c7482f576e
commit 82e56334c2
6 changed files with 30 additions and 21 deletions

View File

@ -18,7 +18,7 @@ class BagistoVersion extends Command
* *
* @var string * @var string
*/ */
protected $description = 'Displays version of Bagisto installed'; protected $description = 'Displays current version of Bagisto installed';
/** /**
* Create a new command instance. * Create a new command instance.

View File

@ -23,7 +23,7 @@ class RouteServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
// // dd(Route::pattern('*', '[a-z]+'));
parent::boot(); parent::boot();
} }

View File

@ -53,4 +53,4 @@ class Locale
return $next($request); return $next($request);
} }
} }

View File

@ -1,7 +1,6 @@
<?php <?php
Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function () { Route::group(['middleware' => ['web', 'locale', 'theme', 'currency']], function () {
//Store front home //Store front home
Route::get('/', 'Webkul\Shop\Http\Controllers\HomeController@index')->defaults('_config', [ Route::get('/', 'Webkul\Shop\Http\Controllers\HomeController@index')->defaults('_config', [
'view' => 'shop::home.index' 'view' => 'shop::home.index'
@ -41,7 +40,7 @@ Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function
])->name('shop.checkout.cart.index'); ])->name('shop.checkout.cart.index');
//Cart Items Add //Cart Items Add
Route::post('checkout/cart/add/{id}', 'Webkul\Shop\Http\Controllers\CartController@add')->defaults('_config',[ Route::post('checkout/cart/add/{id}', 'Webkul\Shop\Http\Controllers\CartController@add')->defaults('_config', [
'redirect' => 'shop.checkout.cart.index' 'redirect' => 'shop.checkout.cart.index'
])->name('cart.add'); ])->name('cart.add');
@ -52,12 +51,12 @@ Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function
Route::get('checkout/cart/remove/{id}', 'Webkul\Shop\Http\Controllers\CartController@remove')->name('cart.remove'); Route::get('checkout/cart/remove/{id}', 'Webkul\Shop\Http\Controllers\CartController@remove')->name('cart.remove');
//Cart Update Before Checkout //Cart Update Before Checkout
Route::post('/checkout/cart', 'Webkul\Shop\Http\Controllers\CartController@updateBeforeCheckout')->defaults('_config',[ Route::post('/checkout/cart', 'Webkul\Shop\Http\Controllers\CartController@updateBeforeCheckout')->defaults('_config', [
'redirect' => 'shop.checkout.cart.index' 'redirect' => 'shop.checkout.cart.index'
])->name('shop.checkout.cart.update'); ])->name('shop.checkout.cart.update');
//Cart Items Remove //Cart Items Remove
Route::get('/checkout/cart/remove/{id}', 'Webkul\Shop\Http\Controllers\CartController@remove')->defaults('_config',[ Route::get('/checkout/cart/remove/{id}', 'Webkul\Shop\Http\Controllers\CartController@remove')->defaults('_config', [
'redirect' => 'shop.checkout.cart.index' 'redirect' => 'shop.checkout.cart.index'
])->name('shop.checkout.cart.remove'); ])->name('shop.checkout.cart.remove');
@ -187,7 +186,7 @@ Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function
//Customer Profile Show //Customer Profile Show
Route::get('profile', 'Webkul\Customer\Http\Controllers\CustomerController@index')->defaults('_config', [ Route::get('profile', 'Webkul\Customer\Http\Controllers\CustomerController@index')->defaults('_config', [
'view' => 'shop::customers.account.profile.index' 'view' => 'shop::customers.account.profile.index'
])->name('customer.profile.index'); ])->name('customer.profile.index');
//Customer Profile Edit Form Show //Customer Profile Edit Form Show
@ -267,7 +266,7 @@ Route::group(['middleware' => ['web', 'theme', 'locale', 'currency']], function
'redirect' => 'customer.reviews.index' 'redirect' => 'customer.reviews.index'
])->name('customer.review.delete'); ])->name('customer.review.delete');
//Customer all review delete //Customer all review delete
Route::get('reviews/all-delete', 'Webkul\Shop\Http\Controllers\ReviewController@deleteAll')->defaults('_config', [ Route::get('reviews/all-delete', 'Webkul\Shop\Http\Controllers\ReviewController@deleteAll')->defaults('_config', [
'redirect' => 'customer.reviews.index' 'redirect' => 'customer.reviews.index'
])->name('customer.review.deleteall'); ])->name('customer.review.deleteall');

View File

@ -138,6 +138,16 @@ abstract class DataGrid
{ {
$parsedUrl = $this->parseUrl(); $parsedUrl = $this->parseUrl();
foreach ($parsedUrl as $key => $value) {
if ( $key == 'locale') {
if ( ! is_array($value)) {
unset($parsedUrl[$key]);
}
} else if ( ! is_array($value)) {
unset($parsedUrl[$key]);
}
}
if (count($parsedUrl)) { if (count($parsedUrl)) {
$filteredOrSortedCollection = $this->sortOrFilterCollection($this->collection = $this->queryBuilder, $parsedUrl); $filteredOrSortedCollection = $this->sortOrFilterCollection($this->collection = $this->queryBuilder, $parsedUrl);
@ -329,4 +339,4 @@ abstract class DataGrid
return $this->getCollection(); return $this->getCollection();
} }
} }

View File

@ -720,27 +720,27 @@ modal {
left: 0px; left: 0px;
position: fixed; position: fixed;
background: #000; background: #000;
opacity: 0.75; opacity: 0.7;
} }
.modal-open .modal-overlay { .modal-open .modal-overlay {
display: block; display: block;
} }
.modal-container { .modal-container {
animation: fade-in-white 0.3s ease-in-out; background: #ffffff;
z-index: 11; top: 200px;
margin-left: -350px;
width: 600px; width: 600px;
max-width: 80%; max-width: 80%;
background: #ffffff; left: auto;
position: fixed; right: auto;
left: 50%; position: absolute;
top: 100px; z-index: 11;
margin-bottom: 100px;
@include box-shadow( @include box-shadow(
0px 15px 25px 0px rgba(0, 0, 0, 0.03), 0px 15px 25px 0px rgba(0, 0, 0, 0.03),
0px 20px 45px 5px rgba(0, 0, 0, 0.2) 0px 20px 45px 5px rgba(0, 0, 0, 0.2)
); );
animation: fade-in-white 0.3s ease-in-out;
animation: jelly 0.5s ease-in-out; animation: jelly 0.5s ease-in-out;
@include border-radius(5px); @include border-radius(5px);
@ -896,4 +896,4 @@ modal {
.vue-swatches__trigger { .vue-swatches__trigger {
border: 1px solid #d3d3d3; border: 1px solid #d3d3d3;
} }