mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
46 lines
926 B
JavaScript
46 lines
926 B
JavaScript
import LVVerwaltung from "../components/LVVerwaltung/LVVerwaltung.js";
|
|
import Phrasen from "../plugins/Phrasen.js";
|
|
|
|
const ciPath = FHC_JS_DATA_STORAGE_OBJECT.app_root.replace(/(https:|)(^|\/\/)(.*?\/)/g, '') + FHC_JS_DATA_STORAGE_OBJECT.ci_router;
|
|
|
|
const router = VueRouter.createRouter({
|
|
history: VueRouter.createWebHistory(`/${ciPath}/LVVerwaltung`),
|
|
routes: [
|
|
{
|
|
name: 'index',
|
|
path: `/`,
|
|
component: LVVerwaltung
|
|
},
|
|
{
|
|
name: 'stdsem',
|
|
path: '/stdsem/:stdsem',
|
|
component: LVVerwaltung,
|
|
children: [
|
|
{ name: 'emp', path: 'emp/:emp/:treemenu(.*)*' },
|
|
{ name: 'treemenu', path: ':treemenu(.*)*' }
|
|
]
|
|
},
|
|
{
|
|
path: '/:pathMatch(.*)*',
|
|
redirect: '/'
|
|
},
|
|
|
|
]
|
|
});
|
|
|
|
FhcApps.router.makeExtendable(router);
|
|
|
|
const app = Vue.createApp();
|
|
|
|
FhcApps.makeExtendable(app);
|
|
|
|
app
|
|
.use(router)
|
|
.use(primevue.config.default, {
|
|
zIndex: {
|
|
overlay: 1100
|
|
}
|
|
})
|
|
.use(Phrasen)
|
|
.mount('#main');
|