vue-whz-comp-technical_sites v0.0.7
Legal and Rights
German legal and right sites
For now, it is only for private use. In the next step I will publish a customize version for everyone.
Install
via cmd
npm i vue-whz-comp-technical_sites
in main.ts
Optional, you can supply the router. So, two routes will be automatically generated. Therefore, you need to handle "use(router)" command after this command.
import { createApp } from "vue"; import App from "./App.vue"; import "./registerServiceWorker"; import router from "./router"; import technicalSites from "vue-whz-comp-technical_sites";
import technicalSites from "vue-whz-comp-technical_sites"
const app = createApp(App) .use(technicalSites, { router }) .use(router) .mount("#app");
in navigation component
in router
Perhaps, you need whitelist these two routes, if they should be reachable without auth. router.beforeEach(async (to, from, next) => { ... if (to.name === "Legal" || to.name === "Privacy") next(); else if (!isAuthentificated) login(); else next(); ... });