Bunch of little changes.
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-15 17:53:56 -04:00
parent d2fa100a89
commit 2eea51828a
31 changed files with 5439 additions and 846 deletions
+15 -29
View File
@@ -1,39 +1,25 @@
import { createRouter, createWebHistory } from 'vue-router'
import TableView from '../views/TableView.vue'
import DatabaseView from '../views/DatabaseView.vue'
import AboutView from '../views/AboutView.vue'
import { useSessionStore } from "../stores/session";
import { createRouter, createWebHistory } from "vue-router";
import TableView from "../views/TableView.vue";
import DatabaseView from "../views/DatabaseView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
redirect: '/table'
path: "/",
redirect: "/table",
},
{
path: '/table',
name: 'table',
component: TableView
path: "/table",
name: "table",
component: TableView,
},
{
path: '/database',
name: 'database',
component: DatabaseView
}
]
})
path: "/database",
name: "database",
component: DatabaseView,
},
],
});
export default router
// router.beforeEach(async (to) => {
// // redirect to login page if not logged in and trying to access a restricted page
// const publicPages = ['/database'];
// const authRequired = !publicPages.includes(to.path);
// const auth = useSessionStore();
// if (authRequired && !auth.session['id']) {
// return '/database';
// }
// });
export default router;