mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 02:07:14 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
43 lines
626 B
Vue
43 lines
626 B
Vue
<template>
|
|
<ul>
|
|
<li v-for="(visit, index) in visits" :key="index">
|
|
<i>{{ visit.date | hours }}</i> - {{ visit.path }}
|
|
</li>
|
|
</ul>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
filters: {
|
|
hours (date) {
|
|
return date.split('T')[1].split('.')[0]
|
|
}
|
|
},
|
|
computed: {
|
|
visits () {
|
|
return this.$store.state.visits.slice().reverse()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
ul {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
overflow: auto;
|
|
list-style-type: none;
|
|
}
|
|
ul li {
|
|
padding: 2px 0;
|
|
}
|
|
ul li i {
|
|
color: gray;
|
|
font-style: normal;
|
|
}
|
|
</style>
|