Fix analytics page in prod
This commit is contained in:
parent
d4777fd9e3
commit
5e14249906
|
@ -58,9 +58,5 @@ export default {
|
||||||
return queryStr.slice(1)
|
return queryStr.slice(1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -12,25 +12,19 @@ import FormStats from '../../../components/open/forms/components/FormStats.vue'
|
||||||
import SeoMeta from '../../../mixins/seo-meta.js'
|
import SeoMeta from '../../../mixins/seo-meta.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'FormStats',
|
||||||
components: {FormStats},
|
components: {FormStats},
|
||||||
props: {
|
props: {
|
||||||
form: { type: Object, required: true }
|
form: {type: Object, required: true},
|
||||||
},
|
},
|
||||||
mixins: [SeoMeta],
|
mixins: [SeoMeta],
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({}),
|
||||||
}),
|
|
||||||
|
|
||||||
mounted() {},
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
metaTitle() {
|
metaTitle() {
|
||||||
return (this.form) ? 'Form Analytics - '+this.form.title : 'Form Analytics'
|
return (this.form ? ('Form Analytics - ' + this.form.title) : 'Form Analytics')
|
||||||
},
|
}
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -11,23 +11,21 @@ import SeoMeta from '../../../mixins/seo-meta.js'
|
||||||
export default {
|
export default {
|
||||||
components: {FormSubmissions},
|
components: {FormSubmissions},
|
||||||
props: {
|
props: {
|
||||||
form: { type: Object, required: true }
|
form: {type: Object, required: true}
|
||||||
},
|
},
|
||||||
mixins: [SeoMeta],
|
mixins: [SeoMeta],
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({}),
|
||||||
}),
|
|
||||||
|
|
||||||
mounted() {},
|
mounted() {
|
||||||
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
metaTitle() {
|
metaTitle() {
|
||||||
return (this.form) ? 'Form Submissions - '+this.form.title : 'Form Submissions'
|
return (this.form) ? 'Form Submissions - ' + this.form.title : 'Form Submissions'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
const pages = import.meta.glob('../pages/**')
|
||||||
|
|
||||||
function page (path) {
|
function page (path) {
|
||||||
const pages = import.meta.glob('../pages/**')
|
|
||||||
return pages[`../pages/${path}`]
|
return pages[`../pages/${path}`]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,8 +18,8 @@ export default [
|
||||||
children: [
|
children: [
|
||||||
{ path: '', redirect: { name: 'forms.show' } },
|
{ path: '', redirect: { name: 'forms.show' } },
|
||||||
{ path: 'submissions', name: 'forms.show', component: page('forms/show/submissions.vue') },
|
{ 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') }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue