create webapp stencil with side bar, routes and fake login
This commit is contained in:
21
cmd/cli/templates/vue/Password.vue.tmpl
Normal file
21
cmd/cli/templates/vue/Password.vue.tmpl
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div>
|
||||
<main>
|
||||
Username and password form <br>
|
||||
<button class="bg-blue-400 pl-4 pr-4 pt-2 pb-2 cursor-pointer rounded-2xl" @click="login">Login</button>
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useAuthenticationStore } from '@/stores/authentication.ts'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
function login() {
|
||||
const authenticationStore = useAuthenticationStore();
|
||||
authenticationStore.login();
|
||||
router.push('/');
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user