init vue and asp.net
This commit is contained in:
10
GUI/src/Home.vue
Normal file
10
GUI/src/Home.vue
Normal file
@@ -0,0 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Home</h1>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
11
GUI/src/Layout.vue
Normal file
11
GUI/src/Layout.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-app-bar :elevation="6">
|
||||
<v-app-bar-title>4 Gewinnt</v-app-bar-title>
|
||||
</v-app-bar>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
10
GUI/src/NotFound.vue
Normal file
10
GUI/src/NotFound.vue
Normal file
@@ -0,0 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Not Found</h1>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
42
GUI/src/main.ts
Normal file
42
GUI/src/main.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './Layout.vue'
|
||||
import router from './router'
|
||||
// Vuetify
|
||||
import 'vuetify/styles'
|
||||
import { createVuetify } from 'vuetify'
|
||||
import * as components from 'vuetify/components'
|
||||
import * as directives from 'vuetify/directives'
|
||||
// Fonts
|
||||
import '@fontsource/roboto/100.css'
|
||||
import '@fontsource/roboto/300.css'
|
||||
import '@fontsource/roboto/400.css'
|
||||
import '@fontsource/roboto/500.css'
|
||||
import '@fontsource/roboto/700.css'
|
||||
import '@fontsource/roboto/900.css'
|
||||
/* optional italic styles */
|
||||
import '@fontsource/roboto/100-italic.css'
|
||||
import '@fontsource/roboto/300-italic.css'
|
||||
import '@fontsource/roboto/400-italic.css'
|
||||
import '@fontsource/roboto/500-italic.css'
|
||||
import '@fontsource/roboto/700-italic.css'
|
||||
import '@fontsource/roboto/900-italic.css'
|
||||
// Icons
|
||||
import '@mdi/font/css/materialdesignicons.css'
|
||||
|
||||
// Vuetify
|
||||
const vuetify = createVuetify({
|
||||
components,
|
||||
directives,
|
||||
icons: {
|
||||
defaultSet: 'mdi', // This is already the default value - only for display purposes
|
||||
},
|
||||
theme: {
|
||||
defaultTheme: 'dark', // 'light' | 'dark' | 'system'
|
||||
},
|
||||
})
|
||||
|
||||
const app = createApp(App).use(vuetify)
|
||||
|
||||
app.use(router)
|
||||
|
||||
app.mount('#app')
|
||||
17
GUI/src/router/index.ts
Normal file
17
GUI/src/router/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import Home from '@/Home.vue'
|
||||
import NotFound from '@/NotFound.vue'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Startseite',
|
||||
component: Home,
|
||||
},
|
||||
{ path: '/:pathMatch(.*)*', name: 'Nicht gefunden', component: NotFound },
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user