Commit 593ea227 authored by Dillenn Terumalai's avatar Dillenn Terumalai
Browse files

// WIP

parent 499b4222
This diff is collapsed.
{
"/app.js": "/app.js?id=a66f629a1c03465b6e5a",
"/app.js": "/app.js?id=e4a8cfac39f40a99f455",
"/img/favicon.ico": "/img/favicon.ico?id=ddf9962d2b7fa394e573"
}
......@@ -4,6 +4,7 @@ import vuetify from './vuetify';
import axios from "axios";
import Routes from './routes'
import VueRouter from "vue-router";
import ClusterLayout from "@/Layouts/ClusterLayout.vue";
let token: any = document.head.querySelector('meta[name="csrf-token"]');
......@@ -42,6 +43,7 @@ const router = new VueRouter({
new Vue({
el: '#laravel-cluster',
components: { ClusterLayout },
vuetify,
router
})
......@@ -10,81 +10,78 @@ import FailedJobs from "@/Pages/FailedJobs.vue";
import ShowFailedJob from "@/Pages/ShowFailedJob.vue";
import CancelledJobs from "@/Pages/CancelledJobs.vue";
import ShowCancelledJob from "@/Pages/ShowCancelledJob.vue";
import ClusterLayout from "@/Layouts/ClusterLayout.vue";
const routes: RouteConfig[] = [
{
path: '/',
redirect: '/dashboard',
component: ClusterLayout,
children: [
{
path: '/dashboard',
name: 'dashboard',
component: Dashboard
},
redirect: '/dashboard'
},
{
path: '/inspector',
name: 'inspector',
component: Inspector
},
{
path: '/dashboard',
name: 'dashboard',
component: Dashboard
},
{
path: '/inspector',
name: 'inspector',
component: Inspector
},
{
path: '/queue',
name: 'queue',
component: Queue
},
{
path: '/queue',
name: 'queue',
component: Queue
},
{
path: '/pending',
name: 'pending-jobs',
component: PendingJobs
},
{
path: '/pending',
name: 'pending-jobs',
component: PendingJobs
},
{
path: '/pending/:id',
name: 'pending-job-preview',
component: ShowPendingJob
},
{
path: '/pending/:id',
name: 'pending-job-preview',
component: ShowPendingJob
},
{
path: '/completed',
name: 'completed-jobs',
component: CompletedJobs
},
{
path: '/completed',
name: 'completed-jobs',
component: CompletedJobs
},
{
path: '/completed/:id',
name: 'completed-job-preview',
component: ShowCompletedJob
},
{
path: '/completed/:id',
name: 'completed-job-preview',
component: ShowCompletedJob
},
{
path: '/failed',
name: 'failed-jobs',
component: FailedJobs
},
{
path: '/failed',
name: 'failed-jobs',
component: FailedJobs
},
{
path: '/failed/:id',
name: 'failed-job-preview',
component: ShowFailedJob
},
{
path: '/failed/:id',
name: 'failed-job-preview',
component: ShowFailedJob
},
{
path: '/cancelled',
name: 'cancelled-jobs',
component: CancelledJobs
},
{
path: '/cancelled',
name: 'cancelled-jobs',
component: CancelledJobs
},
{
path: '/cancelled/:id',
name: 'cancelled-job-preview',
component: ShowCancelledJob
}
]
}
{
path: '/cancelled/:id',
name: 'cancelled-job-preview',
component: ShowCancelledJob
},
]
export default routes
......@@ -10,19 +10,16 @@
<title>{{ Config::get('app.name') }}</title>
</head>
<body id="laravel-cluster" class="antialiased">
@if (! $assetsAreCurrent)
<div class="alert alert-warning">
The published LaravelCluster assets are not up-to-date with the installed version. To update, run:<br/><code>php
artisan laravel-cluster:publish</code>
<body>
<div id="laravel-cluster" class="antialiased">
<cluster-layout></cluster-layout>
@if (! $assetsAreCurrent)
<div class="alert alert-warning">
The published LaravelCluster assets are not up-to-date with the installed version. To update, run:<br/><code>php
artisan laravel-cluster:publish</code>
</div>
@endif
</div>
@endif
@if ($isDownForMaintenance)
<div class="alert alert-warning">
This application is in "maintenance mode". The cluster is unreachable.
</div>
@endif
<!-- Global LaravelCluster Object -->
<script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment