1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-06-23 00:29:15 +02:00

UI: Rewrite web UI, add URL routing and components

See #156
This commit is contained in:
Ralph Slooten
2023-09-22 15:06:03 +12:00
parent 8f0549c596
commit 6a4e5fb03c
37 changed files with 3254 additions and 540 deletions

View File

@ -1,10 +1,8 @@
import { createRouter, createWebHistory } from 'vue-router'
import MailboxView from '../views/MailboxView.vue'
import SearchView from '../views/SearchView.vue'
import MessageView from '../views/MessageView.vue'
import NotFoundView from '../views/NotFoundView.vue'
// import EditView from '../views/EditView.vue'
// import StatsView from '../views/StatsView.vue'
// import NotFound from '../views/NotFound.vue'
import SearchView from '../views/SearchView.vue'
let d = document.getElementById('app')
let webroot = '/'
@ -18,19 +16,16 @@ const router = createRouter({
routes: [
{
path: '/',
// name: 'home',
component: MailboxView
},
{
path: '/search',
// name: 'edit',
component: SearchView
},
// {
// path: '/view/:id',
// name: 'view',
// component: StatsView
// },
{
path: '/view/:id',
component: MessageView
},
{
path: '/:pathMatch(.*)*',
name: 'NotFound',