mirror of
https://github.com/axllent/mailpit.git
synced 2025-07-15 01:25:10 +02:00
Chore: Apply linting to all JavaScript/Vue files with eslint & prettier
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import MailboxView from '../views/MailboxView.vue'
|
||||
import MessageView from '../views/MessageView.vue'
|
||||
import NotFoundView from '../views/NotFoundView.vue'
|
||||
import SearchView from '../views/SearchView.vue'
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import MailboxView from "../views/MailboxView.vue";
|
||||
import MessageView from "../views/MessageView.vue";
|
||||
import NotFoundView from "../views/NotFoundView.vue";
|
||||
import SearchView from "../views/SearchView.vue";
|
||||
|
||||
let d = document.getElementById('app')
|
||||
let webroot = '/'
|
||||
const d = document.getElementById("app");
|
||||
let webroot = "/";
|
||||
if (d) {
|
||||
webroot = d.dataset.webroot
|
||||
webroot = d.dataset.webroot;
|
||||
}
|
||||
|
||||
// paths are relative to webroot
|
||||
@ -15,23 +15,23 @@ const router = createRouter({
|
||||
history: createWebHistory(webroot),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
component: MailboxView
|
||||
path: "/",
|
||||
component: MailboxView,
|
||||
},
|
||||
{
|
||||
path: '/search',
|
||||
component: SearchView
|
||||
path: "/search",
|
||||
component: SearchView,
|
||||
},
|
||||
{
|
||||
path: '/view/:id',
|
||||
component: MessageView
|
||||
path: "/view/:id",
|
||||
component: MessageView,
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'NotFound',
|
||||
component: NotFoundView
|
||||
}
|
||||
]
|
||||
})
|
||||
path: "/:pathMatch(.*)*",
|
||||
name: "NotFound",
|
||||
component: NotFoundView,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
export default router
|
||||
export default router;
|
||||
|
Reference in New Issue
Block a user