♻️ removes matomo, fixes linting errors, adds fathom

This commit is contained in:
lostdesign
2020-04-28 18:17:05 +02:00
parent 0122e5b8bd
commit 7ee963313d
12 changed files with 11177 additions and 214 deletions

View File

@@ -13,20 +13,6 @@ export default {
searchPath: '/search',
}
},
methods: {
// isTag :: String -> Bool
isTag: R.startsWith('#'),
// removeFirstChar :: String -> String
removeFirstChar: R.compose(
R.join(''),
R.adjust(0, () => '')
),
onEnter() {
const searchParams = new URLSearchParams({ ...this.$route.query, enter: true })
this.$router.push(this.searchPath + '?' + searchParams.toString())
},
},
watch: {
searchInput(input) {
const words = R.filter(isNotEmpty, R.split(' ', input))
@@ -51,6 +37,20 @@ export default {
this.searchInput = `${tags} ${keywords}`.trim()
},
methods: {
// isTag :: String -> Bool
isTag: R.startsWith('#'),
// removeFirstChar :: String -> String
removeFirstChar: R.compose(
R.join(''),
R.adjust(0, () => ''),
),
onEnter() {
const searchParams = new URLSearchParams({ ...this.$route.query, enter: true })
this.$router.push(this.searchPath + '?' + searchParams.toString())
},
},
}
</script>