2017-02-03 14:09:27 +00:00
|
|
|
<template>
|
|
|
|
<ul>
|
2018-11-24 18:49:19 +00:00
|
|
|
<li v-for="(visit, index) in visits" :key="index">
|
|
|
|
<i>{{ visit.date | hours }}</i> - {{ visit.path }}
|
|
|
|
</li>
|
2017-02-03 14:09:27 +00:00
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
filters: {
|
2017-10-31 13:43:55 +00:00
|
|
|
hours(date) {
|
2017-02-03 14:09:27 +00:00
|
|
|
return date.split('T')[1].split('.')[0]
|
|
|
|
}
|
2018-07-12 12:03:50 +00:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
visits() {
|
|
|
|
return this.$store.state.visits.slice().reverse()
|
|
|
|
}
|
2017-02-03 14:09:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</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>
|