Fix analytics page in prod

This commit is contained in:
Julien Nahum 2023-03-26 13:43:23 +02:00
parent d4777fd9e3
commit 5e14249906
4 changed files with 17 additions and 28 deletions

View File

@ -58,9 +58,5 @@ export default {
return queryStr.slice(1)
}
},
methods: {
}
}
</script>

View File

@ -12,25 +12,19 @@ import FormStats from '../../../components/open/forms/components/FormStats.vue'
import SeoMeta from '../../../mixins/seo-meta.js'
export default {
name: 'FormStats',
components: {FormStats},
props: {
form: { type: Object, required: true }
form: {type: Object, required: true},
},
mixins: [SeoMeta],
data: () => ({
}),
mounted() {},
data: () => ({}),
computed: {
metaTitle() {
return (this.form) ? 'Form Analytics - '+this.form.title : 'Form Analytics'
},
},
methods: {
return (this.form ? ('Form Analytics - ' + this.form.title) : 'Form Analytics')
}
}
}
</script>

View File

@ -15,10 +15,10 @@ export default {
},
mixins: [SeoMeta],
data: () => ({
}),
data: () => ({}),
mounted() {},
mounted() {
},
computed: {
metaTitle() {
@ -26,8 +26,6 @@ export default {
},
},
methods: {
}
methods: {}
}
</script>

View File

@ -1,5 +1,6 @@
function page (path) {
const pages = import.meta.glob('../pages/**')
function page (path) {
return pages[`../pages/${path}`]
}
@ -17,8 +18,8 @@ export default [
children: [
{ path: '', redirect: { name: 'forms.show' } },
{ path: 'submissions', name: 'forms.show', component: page('forms/show/submissions.vue') },
{ path: 'analytics', name: 'forms.show.analytics', component: page('forms/show/analytics.vue') },
{ path: 'share', name: 'forms.show.share', component: page('forms/show/share.vue') }
{ path: 'share', name: 'forms.show.share', component: page('forms/show/share.vue') },
{ path: 'analytics', name: 'forms.show.analytics', component: page('forms/show/stats.vue') }
]
},