Customer routes now tranferred in master route table for packages, removed display bug from navigation menu and removed the item from the root parent of navigation menu in storefront

This commit is contained in:
prashant-webkul 2018-08-22 10:41:48 +05:30
parent 22b465cbed
commit 36a05a4bcd
8 changed files with 57 additions and 53 deletions

View File

@ -315,4 +315,50 @@ Route::group(['middleware' => ['web']], function () {
])->name('admin.sliders.store');
});
});
//customer routes starts here
Route::prefix('customer')->group(function () {
// Login Routes
Route::get('login', 'Webkul\Customer\Http\Controllers\SessionController@show')->defaults('_config', [
'view' => 'shop::customers.session.index',
])->name('customer.session.index');
Route::post('login', 'Webkul\Customer\Http\Controllers\SessionController@create')->defaults('_config', [
'redirect' => 'customer.account.profile'
])->name('customer.session.create');
// Registration Routes
Route::get('register', 'Webkul\Customer\Http\Controllers\RegistrationController@show')->defaults('_config', [
'view' => 'shop::customers.signup.index' //hint path
])->name('customer.register.index');
Route::post('register', 'Webkul\Customer\Http\Controllers\RegistrationController@create')->defaults('_config', [
'redirect' => 'customer.account.profile',
])->name('customer.register.create'); //redirect attribute will get changed immediately to account.index when account's index page will be made
// Auth Routes
Route::group(['middleware' => ['customer']], function () {
//route for logout which will be under the auth guard of the customer by default
Route::get('logout', 'Webkul\Customer\Http\Controllers\SessionController@destroy')->defaults('_config', [
'redirect' => 'customer.session.index'
])->name('customer.session.destroy');
//customer account
Route::prefix('account')->group(function () {
Route::get('profile', 'Webkul\Customer\Http\Controllers\CustomerController@profile')->defaults('_config', [
'view' => 'shop::customers.account.profile.home.index'
])->name('customer.account.profile');
//profile edit
Route::get('profile/edit', 'Webkul\Customer\Http\Controllers\CustomerController@editProfile')->defaults('_config', [
'view' => 'shop::customers.account.profile.edit.index'
])->name('customer.profile.edit');
});
});
});
//customer routes end here
});

View File

@ -1,46 +0,0 @@
<?php
Route::group(['middleware' => ['web']], function () {
Route::prefix('customer')->group(function () {
// Login Routes
Route::get('login', 'Webkul\Customer\Http\Controllers\SessionController@show')->defaults('_config', [
'view' => 'shop::customers.session.index',
])->name('customer.session.index');
Route::post('login', 'Webkul\Customer\Http\Controllers\SessionController@create')->defaults('_config', [
'redirect' => 'customer.account.profile'
])->name('customer.session.create');
// Registration Routes
Route::get('register', 'Webkul\Customer\Http\Controllers\RegistrationController@show')->defaults('_config', [
'view' => 'shop::customers.signup.index' //hint path
])->name('customer.register.index');
Route::post('register', 'Webkul\Customer\Http\Controllers\RegistrationController@create')->defaults('_config', [
'redirect' => 'customer.account.profile',
])->name('customer.register.create'); //redirect attribute will get changed immediately to account.index when account's index page will be made
// Auth Routes
Route::group(['middleware' => ['customer']], function () {
//route for logout which will be under the auth guard of the customer by default
Route::get('logout', 'Webkul\Customer\Http\Controllers\SessionController@destroy')->defaults('_config', [
'redirect' => 'customer.session.index'
])->name('customer.session.destroy');
//customer account
Route::prefix('account')->group(function () {
Route::get('profile', 'Webkul\Customer\Http\Controllers\CustomerController@profile')->defaults('_config', [
'view' => 'shop::customers.account.profile.home.index'
])->name('customer.account.profile');
//profile edit
Route::get('profile/edit', 'Webkul\Customer\Http\Controllers\CustomerController@editProfile')->defaults('_config', [
'view' => 'shop::customers.account.profile.edit.index'
])->name('customer.profile.edit');
});
});
});
});

View File

@ -13,7 +13,7 @@ class CustomerServiceProvider extends ServiceProvider
{
public function boot(Router $router)
{
include __DIR__ . '/../Http/routes.php';
// include __DIR__ . '/../Http/routes.php';
$this->publishes([
__DIR__ . '/../../publishable/assets' => public_path('vendor/webkul/customer/assets'),

View File

@ -1,7 +1,7 @@
<template>
<li>
<a href="">{{ this.item['translations'][0].name }}&emsp;<i class="icon dropdown-right-icon"
v-if="haveChildren"></i></a>
v-if="haveChildren && item.parent_id != null"></i></a>
<ul v-if="haveChildren">
<category-item
v-for="(child, index) in item.children"

View File

@ -5,7 +5,8 @@
v-for="(item, index) in items"
:key="index"
:url="url"
:item="item">
:item="item"
:parent="index">
</category-item>
<li>
<img src="vendor/webkul/shop/assets/images/offer-zone.svg"/>

View File

@ -214,6 +214,7 @@ body {
.nav > li {
float: left;
margin-right: 1px;
}
.nav > li > a {
@ -267,7 +268,7 @@ body {
.nav > li li:hover > ul {
left: 100%;
margin-left: 1px;
top: -1px;
top: -2px;
}
.nav > li:hover > a:first-child:nth-last-child(2):before {
@ -281,6 +282,7 @@ body {
.nav li li:hover > a:first-child:nth-last-child(2):before {
right: 10px;
}
}
}

View File

@ -332,7 +332,7 @@ body {
.header .header-bottom .nav > li li:hover > ul {
left: 100%;
margin-left: 1px;
top: -1px;
top: -2px;
}
.header .header-bottom .nav > li:hover > a:first-child:nth-last-child(2):before {

View File

@ -29115,6 +29115,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
//
//
// define the item component
@ -29160,7 +29161,7 @@ var render = function() {
_vm._l(_vm.items, function(item, index) {
return _c("category-item", {
key: index,
attrs: { url: _vm.url, item: item }
attrs: { url: _vm.url, item: item, parent: index }
})
}),
_vm._v(" "),
@ -29293,7 +29294,7 @@ var render = function() {
return _c("li", [
_c("a", { attrs: { href: "" } }, [
_vm._v(_vm._s(this.item["translations"][0].name) + ""),
_vm.haveChildren
_vm.haveChildren && _vm.item.parent_id != null
? _c("i", { staticClass: "icon dropdown-right-icon" })
: _vm._e()
]),