Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- traefik.docker.network=proxy

gendercomics-website:
image: gendercomics/website:2.3.2
image: gendercomics/website:2.4.0
container_name: gendercomics-website
restart: always
networks:
Expand Down
11 changes: 11 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
<script setup>
import { useFeatureStore } from '~/stores/features.ts'
import { init, trackPages } from 'insights-js'

const featureStore = useFeatureStore()
const trackingDisabled = computed(() => {
const hostname = window.location.hostname
const isProductionDomain = hostname === 'gendercomics.net'
const isStaging =
hostname === 'stage.gendercomics.net' || hostname.includes('stage')
return !isProductionDomain || isStaging
})

init('TrYgnSHvKAIkGdBl', (disabled = trackingDisabled))
trackPages()
</script>

<template>
Expand Down
24 changes: 24 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ export default defineNuxtConfig({
'/',
'/de',
'/en',
'/about',
'/de/about',
'/en/about',
'/activities',
'/de/activities',
'/en/activities',
'/de/artist/anke-feuchtenberger',
'/de/artist/jul-gordon',
'/de/artist/nele-jongeling',
Expand All @@ -90,6 +96,24 @@ export default defineNuxtConfig({
'/en/artist/jul-gordon',
'/en/artist/nele-jongeling',
'/en/artist/regina-hofer',
'/book',
'/de/book',
'/en/book',
'/collaborations',
'/de/collaborations',
'/en/collaborations',
'/database',
'/de/database',
'/en/database',
'/imprint',
'/de/imprint',
'/en/imprint',
'/privacy',
'/de/privacy',
'/en/privacy',
'/team',
'/de/team',
'/en/team',
],
},
},
Expand Down
10 changes: 8 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gendercomics-webapp",
"version": "2.3.2",
"version": "2.4.0",
"description": "GenderComics website",
"private": true,
"type": "module",
Expand All @@ -16,6 +16,7 @@
"@nuxtjs/i18n": "^8.5.5",
"@pinia/nuxt": "^0.5.4",
"@vueuse/core": "^11.1.0",
"insights-js": "^1.2.11",
"nuxt-security": "^2.0.0",
"pinia": "^2.2.4",
"vue": "^3.5.12",
Expand Down
5 changes: 5 additions & 0 deletions pages/database/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import SearchResultFooter from '~/components/SearchResultFooter.vue'
import { useDebounceFn } from '@vueuse/core'
import { useAsyncData } from '#app'
import { track } from 'insights-js'

const { locale } = useI18n()
const searchStore = useSearchStore()
Expand Down Expand Up @@ -39,6 +40,10 @@ const onInput = useDebounceFn(() => {
}, 500)

async function search() {
track({
id: 'database-search',
parameters: { searchTerm: searchInput.searchTerm },
})
try {
data = await $fetch(appConfig.dbApiBaseUrl + '/search-web', {
//query: { searchTerm: searchInput.searchTerm },
Expand Down