-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First draft of implementation * Work on route filtering * Add route list column * Fix pane dragging * Extract diff into own method * Extract panes styling * Add nicer styling for redirect flag * Extract styling to common.styl * Fix highlight color of entries * Remove duplicate styling of entry elements * Make route list heading h3 * Change route list heading * Remove console.log * Fix closing tag in IndexRoute.vue * Implement toggle recording in router view list & simplyfy list of route changes * Add support for nested routes in router config * Split router from routes * Add fully working routes tab * Fix posible issue when there is no routes when routing is initialized. * Fix issue with not beeing allowed to select nested routes * feat: routing tab keyboard shortcut * feat: integrate routes history into framerate graph * fix: error if no corresponding metric * chore: add keep-alive in example * fix: abstract component error * fix(GroupDropdown): style + dark mode
- Loading branch information
Showing
42 changed files
with
1,786 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template> | ||
<h2>Child route</h2> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<div> | ||
<p>Hello named route</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<template> | ||
<div class="parent"> | ||
<h2>Parent</h2> | ||
<router-view class="child"></router-view> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<div> | ||
<p>Hello from route 1</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<div> | ||
<p>Hello from route 2</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<div> | ||
<p>Hello from route with alias</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<div> | ||
<p>Hello from before enter route</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<div> | ||
<p>Hello from route with params: Username: {{ $route.params.username }}, Id: {{ $route.params.id }}</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div> | ||
<p>Hello from route with props: Username: {{ username }}, Id: {{ id }}</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
username: { | ||
type: String, | ||
default: 'ms' | ||
}, | ||
id: { | ||
type: Number, | ||
default: 33 | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<div> | ||
<p>Hello from route with query: {{ $route.query }}</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<div> | ||
<p><router-link to="/route-one">Go to Route One</router-link></p> | ||
<p><router-link to="/route-two">Go to Route Two</router-link></p> | ||
<p><router-link to="/route-with-params/markussorg/5">Go to route with params</router-link></p> | ||
<p><router-link to="/route-named">Go to named route</router-link></p> | ||
<p><router-link to="/route-with-query?el=value&test=true">Go to route with query</router-link></p> | ||
<p><router-link to="/route-with-before-enter">Go to route with before enter</router-link></p> | ||
<p><router-link to="/route-with-redirect">Go to route with redirect</router-link></p> | ||
<p><router-link to="/this-is-the-alias">Go to route with alias</router-link></p> | ||
<p><router-link to="/route-with-dynamic-component">Go to route with dyn. component</router-link></p> | ||
<p><router-link to="/route-with-props">Go to route with props</router-link></p> | ||
<p><router-link to="/route-with-props-default">Go to route with props (default)</router-link></p> | ||
<p><router-link to="/route-parent">Go to route parent</router-link></p> | ||
<p><router-link to="/route-child">Go to route child</router-link></p> | ||
<keep-alive> | ||
<router-view /> | ||
</keep-alive> | ||
<p><button @click="addRoutes">Add new routes</button></p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import RouteOne from './RouteOne.vue' | ||
export default { | ||
methods: { | ||
addRoutes () { | ||
this.$router.addRoutes([ | ||
{ path: '/new-route', component: RouteOne } | ||
]) | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.