crypted-vue-route
v1.0.0
Published
Crypted Vue Route is a library to encrypt and decrypt your routes in Vue 3 applications.
Maintainers
Readme
Crypted Vue Route
This template should help get you started developing with Vue 3 in Vite.
Dependencies
- Vue : This library is directly depended on Vue3
Installation
npm
npm i crypted-vue-routeyarn
yarn add crypted-vue-routeBasic Usage
<script setup>
import {useCryptedRoute} from "crypted-vue-route";
const {setRouteData, getRouteData, route, router, state: filterState} = useCryptedRoute();
const onSubmit = async () => {
await setRouteData(filterState.value);
};
</script>
<template>
<main>
<input type="search" v-model="filterState.username"/>
{{ filterState.username }}
<button @click.prevent="onSubmit">CLick!</button>
</main>
</template>VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Customize configuration
See Vite Configuration Reference.
Project Setup
npm installCompile and Hot-Reload for Development
npm run devCompile and Minify for Production
npm run build