Skip to content
Snippets Groups Projects
Commit 4d71ad68 authored by Nik | Klampfradler's avatar Nik | Klampfradler Committed by Hangzhi Yu
Browse files

Register app routes

parent 9a08f9e4
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
......@@ -10,12 +10,19 @@ import Parent from "./components/Parent.vue";
// The list is generated by util/frontent_helpers.py and passed to Vite,
// which aliases the app package names into virtual JavaScript modules
// and generates importing code at bundle time.
import "aleksisAppImporter";
import apps from "aleksisAppImporter";
import CeleryProgress from "./components/celery_progress/CeleryProgress.vue";
import About from "./components/about/About.vue";
import Error404 from "./components/Error404.vue";
for (const { appName, appRoutes } of Object.entries(apps)) {
window.router.addRoute({
path: `/app/${appName}`,
name: `${appName}`,
children: appRoutes,
});
}
window.router.addRoute({
path: "/account/login/",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment