2018-05-04 13:10:57 +02:00
|
|
|
<template>
|
|
|
|
<ul id="sitemap">
|
|
|
|
<li v-for="route in routes">
|
2018-06-19 00:09:11 +02:00
|
|
|
<router-link v-bind:to="route.path" :title="'Visit lbry.tech' + route.path">{{ route.path }}</router-link>
|
2018-05-04 13:10:57 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data: function() {
|
|
|
|
var routes = [];
|
|
|
|
this.$router.options.routes.forEach(function(item) {
|
|
|
|
if(item.path != "/" && item.path != "*") {
|
|
|
|
routes.push(item);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return {
|
|
|
|
routes: routes
|
|
|
|
}
|
|
|
|
},
|
|
|
|
name: 'Sitemap'
|
|
|
|
}
|
2018-06-19 00:09:11 +02:00
|
|
|
</script>
|