diff --git a/resources/js/tasks/components/DashboardViewer.vue b/resources/js/tasks/components/DashboardViewer.vue new file mode 100644 index 0000000000..aa5fd80457 --- /dev/null +++ b/resources/js/tasks/components/DashboardViewer.vue @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/resources/js/tasks/components/ParticipantHomeScreen.vue b/resources/js/tasks/components/ParticipantHomeScreen.vue index 4df71961f7..1e46c75321 100644 --- a/resources/js/tasks/components/ParticipantHomeScreen.vue +++ b/resources/js/tasks/components/ParticipantHomeScreen.vue @@ -1,33 +1,29 @@ - + - - - - +} + +.button-class { + background-color: #e6f3ff; + padding: 5px 15px; + border-radius: 10px; + border: none; + cursor: pointer; +} + \ No newline at end of file diff --git a/resources/js/tasks/components/ProcessBrowser.vue b/resources/js/tasks/components/ProcessBrowser.vue new file mode 100644 index 0000000000..b6ac621cd1 --- /dev/null +++ b/resources/js/tasks/components/ProcessBrowser.vue @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/resources/js/tasks/components/ProcessesDashboardsMenu.vue b/resources/js/tasks/components/ProcessesDashboardsMenu.vue new file mode 100644 index 0000000000..ebab15efa2 --- /dev/null +++ b/resources/js/tasks/components/ProcessesDashboardsMenu.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/resources/js/tasks/router.js b/resources/js/tasks/router.js new file mode 100644 index 0000000000..c60625daed --- /dev/null +++ b/resources/js/tasks/router.js @@ -0,0 +1,32 @@ +import Vue from "vue"; +import VueRouter from "vue-router"; +import ProcessBrowser from "./components/ProcessBrowser.vue"; +import DashboardViewer from "./components/DashboardViewer.vue"; + +Vue.use(VueRouter); + +const router = new VueRouter({ + mode: "history", + base: "/tasks", + routes: [ + { + path: "/process/:processId", + name: "process-browser", + component: ProcessBrowser, + props: route => ({ + processId: parseInt(route.params.processId) || null, + process: null + }) + }, + { + path: "/dashboard/:dashboardId", + name: "dashboard", + component: DashboardViewer, + props: route => ({ + dashboardId: route.params.dashboardId || null + }) + } + ] +}); + +export default router; \ No newline at end of file diff --git a/webpack.mix.js b/webpack.mix.js index ef6c05502a..96d065d9c7 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -131,6 +131,7 @@ mix .js("resources/js/tasks/index.js", "public/js/tasks/index.js") .js("resources/js/tasks/mobile.js", "public/js/tasks/mobile.js") .js("resources/js/tasks/show.js", "public/js/tasks/show.js") + .js("resources/js/tasks/router.js", "public/js/tasks/router.js") .js("resources/js/notifications/index.js", "public/js/notifications/index.js") .js('resources/js/inbox-rules/index.js', 'public/js/inbox-rules')