0.0.7 • Published 3 years ago

vue-whz-comp-technical_sites v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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(); ... });

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.1

3 years ago