Merge pull request #125 from NileshSP/defaultmenuoptionhighlight

update with PR for issue/bug #100
This commit is contained in:
Liyas Thomas
2019-09-02 05:17:33 +05:30
committed by GitHub
4 changed files with 12 additions and 6 deletions

View File

@@ -184,6 +184,7 @@ See the [CHANGELOG](CHANGELOG.md) file for details.
* [Nicholas La Roux](https://github.com/larouxn) * [Nicholas La Roux](https://github.com/larouxn)
* [RifqiAlAbqary](https://github.com/reefqi037) * [RifqiAlAbqary](https://github.com/reefqi037)
* [izerozlu](https://github.com/izerozlu) * [izerozlu](https://github.com/izerozlu)
* [Nilesh Patel](https://github.com/NileshSP)
### Thanks ### Thanks
* [Dribbble](https://dribbble.com) * [Dribbble](https://dribbble.com)

View File

@@ -1,8 +1,7 @@
# MIDDLEWARE # MIDDLEWARE
<br/>
**This directory is not required, you can delete it if you don't want to use it.** parsedefaulturl.js - parse default url for appropriate path
<br/>
This directory contains your application middleware. <br/>
Middleware let you define custom functions that can be run before rendering either a page or a group of pages.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware). More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware).

View File

@@ -0,0 +1,5 @@
export default function({ route, redirect }) {
if(route.fullPath !== '/') {
return redirect('/');
}
}

View File

@@ -243,7 +243,8 @@
export const findStatusGroup = responseStatus => statusCategories.find(status => status.statusCodeRegex.test(responseStatus)); export const findStatusGroup = responseStatus => statusCategories.find(status => status.statusCodeRegex.test(responseStatus));
export default { export default {
directives: { middleware: 'parsedefaulturl', // calls middleware before loading the page
directives: {
textareaAutoHeight textareaAutoHeight
}, },
components: { components: {