Sybren A. Stüvel d25151184d Add a "Last Rendered" view
Add a "Last Rendered" view to the webapp.

The Manager now stores (in the database) which job was the last
recipient of a rendered image, and serves that to the appropriate
OpenAPI endpoint.

A new SocketIO subscription + accompanying room makes it possible for
the web interface to receive all rendered images (if they survive the
queue, which discards images when it gets too full).
2022-07-01 12:34:40 +02:00

32 lines
705 B
JavaScript

import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'index',
redirect: { name: 'jobs' },
},
{
path: '/jobs/:jobID?/:taskID?',
name: 'jobs',
component: () => import('../views/JobsView.vue'),
props: true,
},
{
path: '/workers/:workerID?',
name: 'workers',
component: () => import('../views/WorkersView.vue'),
props: true,
},
{
path: '/last-rendered',
name: 'last-rendered',
component: () => import('../views/LastRenderedView.vue'),
},
],
})
export default router