Basic Vue setup.

This commit is contained in:
2023-07-17 23:09:58 +02:00
parent a30ac3f997
commit b5860b4f64
21 changed files with 4335 additions and 6 deletions

13
cmd/admin/src/App.vue Normal file
View File

@@ -0,0 +1,13 @@
<template>
<router-view />
</template>
<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({});
</script>
<style lang="scss">
@import "@/assets/main.scss";
</style>

View File

@@ -0,0 +1,4 @@
html, body {
padding: 0;
margin: 0;
}

9
cmd/admin/src/main.ts Normal file
View File

@@ -0,0 +1,9 @@
import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
createApp(App)
.use(createPinia())
.use(router)
.mount("#app");

View File

@@ -0,0 +1,15 @@
import {createRouter, createWebHistory} from "vue-router";
import SignIn from "../views/SignIn.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: "/login",
name: "login",
component: SignIn
}
]
});
export default router;

View File

@@ -0,0 +1,5 @@
import {defineStore} from "pinia";
export const useCounterStore = defineStore("counter", () => {
return {}
})

View File

@@ -0,0 +1,9 @@
<template>
<h1>Sign In</h1>
</template>
<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({});
</script>