diff --git a/composables/useHeader.js b/composables/useHeader.js index 53a94bd..842f9c1 100644 --- a/composables/useHeader.js +++ b/composables/useHeader.js @@ -2,8 +2,8 @@ export const useHeader = () => { const header = useState('header', () => {}) const setHeader = (store) => { - console.log('set header', import.meta.server) - console.log('setHeader', store, header.value || 'None!') + // console.log('set header', import.meta.server) + // console.log('setHeader', store, header.value || 'None!') if (!header.value) { header.value = store.header } diff --git a/modules/init.js b/modules/init.js index f2e775a..e12bd96 100644 --- a/modules/init.js +++ b/modules/init.js @@ -48,7 +48,7 @@ export default defineNuxtModule({ }) const body = await response.text() const testJson = JSON.parse(body) - console.log('Index created:' + JSON.stringify(testJson)) + // console.log('Index created:' + JSON.stringify(testJson)) console.log('Elastic Search index created succesfully!') } catch (err) { console.error('Error:', err) diff --git a/pages/collections/[slug].vue b/pages/collections/[slug].vue index fce1bb6..fd0dbc8 100644 --- a/pages/collections/[slug].vue +++ b/pages/collections/[slug].vue @@ -38,7 +38,7 @@ if (!data.value.ftvaCollection) { const page = ref(_get(data.value, 'ftvaCollection', {})) watch(data, (newVal, oldVal) => { - console.log('In watch preview enabled, newVal, oldVal', newVal, oldVal) + // console.log('In watch preview enabled, newVal, oldVal', newVal, oldVal) page.value = _get(newVal, 'ftvaCollection', {}) }) diff --git a/pages/events/[slug].vue b/pages/events/[slug].vue index cfac954..9e7ff1d 100644 --- a/pages/events/[slug].vue +++ b/pages/events/[slug].vue @@ -37,7 +37,7 @@ const page = ref(_get(data.value, 'ftvaEvent', {})) const series = ref(_get(data.value, 'ftvaEventSeries', {})) watch(data, (newVal, oldVal) => { - console.log('In watch preview enabled, newVal, oldVal', newVal, oldVal) + // console.log('In watch preview enabled, newVal, oldVal', newVal, oldVal) page.value = _get(newVal, 'ftvaEvent', {}) series.value = _get(newVal, 'ftvaEventSeries', {}) }) diff --git a/pages/series/[slug].vue b/pages/series/[slug].vue index cccbc04..b1e4231 100644 --- a/pages/series/[slug].vue +++ b/pages/series/[slug].vue @@ -41,7 +41,7 @@ const otherSeriesOngoing = ref(_get(data.value, 'otherSeriesOngoing', {})) const otherSeriesUpcoming = ref(_get(data.value, 'otherSeriesUpcoming', {})) watch(data, (newVal, oldVal) => { - console.log('In watch preview enabled, newVal, oldVal', newVal, oldVal) + // console.log('In watch preview enabled, newVal, oldVal', newVal, oldVal) page.value = _get(newVal, 'ftvaEventSeries', {}) upcomingEvents.value = _get(newVal, 'upcomingEvents', {}) pastEvents.value = _get(newVal, 'pastEvents', {}) diff --git a/plugins/craft-layout-data.client.js b/plugins/craft-layout-data.client.js index 705e33e..3d5d86b 100644 --- a/plugins/craft-layout-data.client.js +++ b/plugins/craft-layout-data.client.js @@ -26,7 +26,7 @@ export default defineNuxtPlugin((nuxtApp) => { // ] } - console.log('globalStore.footerPrimary', JSON.stringify(globalStore.footerPrimary)) + // console.log('globalStore.footerPrimary', JSON.stringify(globalStore.footerPrimary)) } } return { diff --git a/plugins/data-api.js b/plugins/data-api.js index 4ca1a76..c145d69 100644 --- a/plugins/data-api.js +++ b/plugins/data-api.js @@ -74,9 +74,9 @@ async function keywordSearchWithFilters( config.public.esAlias === '' ) return - console.log('keyword:' + keyword) - console.log('filters:' + filters) - console.log('sort:' + sort) + // console.log('keyword:' + keyword) + // console.log('filters:' + filters) + // console.log('sort:' + sort) const testquery = JSON.stringify({ _source: [...source], @@ -100,7 +100,7 @@ async function keywordSearchWithFilters( ...parseFieldNames(aggFields), }, }) - console.log('this is the query: ' + testquery) + // console.log('this is the query: ' + testquery) const response = await fetch( `${config.public.esURL}/${config.public.esAlias}/_search`, // replace alias with indexname diff --git a/plugins/indexer.server.js b/plugins/indexer.server.js index 8b228cc..9065b35 100644 --- a/plugins/indexer.server.js +++ b/plugins/indexer.server.js @@ -27,13 +27,13 @@ export default defineNuxtPlugin((nuxtApp) => { // console.log('Existing data in ES', docExistsResponseValue) if (docExistsResponseValue && docExistsResponseValue._source) { - console.log('GET-RESPONSE: ' + slug) + // console.log('GET-RESPONSE: ' + slug) const updateUrl = `${esURL}/${esIndex}/_update/${slug}` - console.log('ES update url', updateUrl) + // console.log('ES update url', updateUrl) const postBody = { doc: data } - console.log('postBody', JSON.stringify(postBody)) + // console.log('postBody', JSON.stringify(postBody)) const updateResponse = await fetch( `${esURL}/${esIndex}/_update/${slug}`, { @@ -61,7 +61,7 @@ export default defineNuxtPlugin((nuxtApp) => { } ) - console.log('Create a new document in ES:', await response.text()) + // console.log('Create a new document in ES:', await response.text()) } } else { console.warn('not indexing anything') diff --git a/utils/arrayOfArrays.js b/utils/arrayOfArrays.js index 33bdcb9..8c606bb 100644 --- a/utils/arrayOfArrays.js +++ b/utils/arrayOfArrays.js @@ -12,7 +12,7 @@ function arrayOfArrays(arr, chunkSize) { const group = [] for (let i = 0; i < arr.length; i += chunkSize) { const chunk = arr.slice(i, i + chunkSize) - console.log('Chunk' + i + chunk) + // console.log('Chunk' + i + chunk) group.push(chunk) } return group