This commit is contained in:
@@ -41,38 +41,11 @@ export default new Router({
|
|||||||
// which is lazy-loaded when the route is visited.
|
// which is lazy-loaded when the route is visited.
|
||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName: "about" */ "./views/About.vue")
|
import(/* webpackChunkName: "about" */ "./views/About.vue")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/log",
|
||||||
|
name: "log",
|
||||||
|
component: () => import(/* webpackChunkName: "log" */ "./views/log.vue")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
// Router.beforeEach((to, from, next) => {
|
|
||||||
// if(to.matched.some(record => record.meta.requiresAuth)) {
|
|
||||||
// if (localStorage.getItem('jwt') == null) {
|
|
||||||
// next({
|
|
||||||
// path: '/login',
|
|
||||||
// params: { nextUrl: to.fullPath }
|
|
||||||
// })
|
|
||||||
// } else {
|
|
||||||
// let user = JSON.parse(localStorage.getItem('user'))
|
|
||||||
// if(to.matched.some(record => record.meta.is_admin)) {
|
|
||||||
// if(user.is_admin == 1){
|
|
||||||
// next()
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// next({ name: 'userboard'})
|
|
||||||
// }
|
|
||||||
// }else {
|
|
||||||
// next()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } else if(to.matched.some(record => record.meta.guest)) {
|
|
||||||
// if(localStorage.getItem('jwt') == null){
|
|
||||||
// next()
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// next({ name: 'userboard'})
|
|
||||||
// }
|
|
||||||
// }else {
|
|
||||||
// next()
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
|
|||||||
25
app/ayanova/src/views/log.vue
Normal file
25
app/ayanova/src/views/log.vue
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<template>
|
||||||
|
<div></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/* xeslint-disable */
|
||||||
|
|
||||||
|
import logger from "../utils/logit";
|
||||||
|
//import lt from "../api/locale";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
beforeMount() {},
|
||||||
|
mounted() {},
|
||||||
|
methods: {
|
||||||
|
log: function() {
|
||||||
|
return logger.getLog();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
@@ -33,7 +33,7 @@ WEEK OF 2018-11-12 - RAVEN shell start work. YAY!
|
|||||||
NEXT UP / CURRENTLY WORKING ON:
|
NEXT UP / CURRENTLY WORKING ON:
|
||||||
|
|
||||||
- About page with server license info, server version / client version
|
- About page with server license info, server version / client version
|
||||||
- localize the view
|
|
||||||
- Also should show or have link to go to the local error log "Support information" view
|
- Also should show or have link to go to the local error log "Support information" view
|
||||||
- Search for terms I already localized via google on microsoft localization search page to confirm they are correct or change them
|
- Search for terms I already localized via google on microsoft localization search page to confirm they are correct or change them
|
||||||
- Add an error log view that a user can go to without logging in that shows the local error log
|
- Add an error log view that a user can go to without logging in that shows the local error log
|
||||||
|
|||||||
Reference in New Issue
Block a user