diff --git a/resources/js/components/Navbar.vue b/resources/js/components/Navbar.vue index 781da22..e7f1481 100644 --- a/resources/js/components/Navbar.vue +++ b/resources/js/components/Navbar.vue @@ -19,7 +19,7 @@ class="text-sm text-gray-600 dark:text-white hover:text-gray-800 cursor-pointer mt-1 mr-8"> Integrations - + +
+
+

+ {{ content }} +

+
+
+ + + + + + + + +
+
+ + + diff --git a/resources/js/components/open/forms/components/EmbedFormCode.vue b/resources/js/components/open/forms/components/EmbedFormCode.vue deleted file mode 100644 index caa55c8..0000000 --- a/resources/js/components/open/forms/components/EmbedFormCode.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - diff --git a/resources/js/components/open/forms/components/FormSubmissions.vue b/resources/js/components/open/forms/components/FormSubmissions.vue index dcbeddd..7c81a02 100644 --- a/resources/js/components/open/forms/components/FormSubmissions.vue +++ b/resources/js/components/open/forms/components/FormSubmissions.vue @@ -1,39 +1,41 @@ - - diff --git a/resources/js/pages/forms/show/analytics.vue b/resources/js/pages/forms/show/analytics.vue new file mode 100644 index 0000000..b1b2f48 --- /dev/null +++ b/resources/js/pages/forms/show/analytics.vue @@ -0,0 +1,34 @@ + + + \ No newline at end of file diff --git a/resources/js/pages/forms/show/index.vue b/resources/js/pages/forms/show/index.vue new file mode 100644 index 0000000..1fdfd62 --- /dev/null +++ b/resources/js/pages/forms/show/index.vue @@ -0,0 +1,225 @@ + + + diff --git a/resources/js/pages/forms/show/share.vue b/resources/js/pages/forms/show/share.vue new file mode 100644 index 0000000..bef283e --- /dev/null +++ b/resources/js/pages/forms/show/share.vue @@ -0,0 +1,47 @@ + + + \ No newline at end of file diff --git a/resources/js/pages/forms/show/submissions.vue b/resources/js/pages/forms/show/submissions.vue new file mode 100644 index 0000000..bc028f7 --- /dev/null +++ b/resources/js/pages/forms/show/submissions.vue @@ -0,0 +1,31 @@ + + + diff --git a/resources/js/router/routes.js b/resources/js/router/routes.js index a0a8cb8..f3624e8 100644 --- a/resources/js/router/routes.js +++ b/resources/js/router/routes.js @@ -8,8 +8,17 @@ export default [ // Forms { path: '/forms/create', name: 'forms.create', component: page('forms/create.vue') }, - { path: '/forms/:slug/show', name: 'forms.show', component: page('forms/show.vue') }, { path: '/forms/:slug/edit', name: 'forms.edit', component: page('forms/edit.vue') }, + { + path: '/forms/:slug/show', + component: page('forms/show/index.vue'), + 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') } + ] + }, // Subscription { path: '/subscriptions/success', name: 'subscriptions.success', component: page('subscriptions/success.vue') },