🚨 🎨 add new rules & fix linter warnings

This commit is contained in:
Kevin van der Werff
2019-10-01 14:33:26 +02:00
committed by Kevin
parent 6a2e1a58d5
commit 0e12d978bb
13 changed files with 48 additions and 38 deletions

View File

@@ -10,7 +10,11 @@
<script>
export default {
props: ['resource', 'isActive', 'createCopyUrl'],
props: {
resource: Object,
isActive: Boolean,
createCopyUrl: Function,
},
}
</script>

View File

@@ -9,8 +9,8 @@ export default {
methods: {
goToHome() {
this.$router.push('/')
}
}
},
},
}
</script>

View File

@@ -15,22 +15,22 @@ import { mapMutations } from 'vuex'
export default {
data() {
return {
categories: [{ slug: '', title: '' }]
categories: [{ slug: '', title: '' }],
}
},
computed: {
areCardsVisible() {
return this.$store.getters['Sidebar/areCardsVisible']
}
},
},
created() {
this.categories = this.$store.getters['data/resources'].map(({ title, slug }) => ({ title, slug }))
},
methods: {
...mapMutations({
toggleCardsVisible: 'Sidebar/toggleCardsVisible'
})
}
toggleCardsVisible: 'Sidebar/toggleCardsVisible',
}),
},
}
</script>

View File

@@ -5,14 +5,18 @@
td.tableRow--links
tr
td
a.tableRow--reference(@click='createCopyUrl(resource)') Copy
a.tableRow--reference(@click="createCopyUrl(resource)") Copy
td
a.tableRow--target(:href="resource.url" :target='resource.title' rel='noreferrer') Open
</template>
<script>
export default {
props: ['resource', 'isActive', 'createCopyUrl'],
props: {
resource: Object,
isActive: Boolean,
createCopyUrl: Function,
},
}
</script>