add vue :(
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { Card } from '@3ba/vue';
|
||||
import Footer from "./components/Footer.vue";
|
||||
</script>
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import { createApp } from 'vue';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import '../css/app.css'
|
||||
import "@3ba/styles";
|
||||
|
||||
createApp(App)
|
||||
.use(router)
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<footer>
|
||||
<slot>All rights reserved</slot>
|
||||
<template v-if="this.date">
|
||||
|
||||
• {{ this.year }}
|
||||
</template>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
new Date().getFullYear()
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
year: 0,
|
||||
};
|
||||
},
|
||||
props: {
|
||||
date: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.year = new Date().getFullYear();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
asdf
|
||||
</template>
|
||||
@@ -1,21 +1,12 @@
|
||||
import { createRouterconst host = process.env.VITE_HMR_HOST || "localhost";
|
||||
const clientPort = process.env.VITE_HMR_CLIENTPORT || 5173;
|
||||
const protocol = process.env.VITE_HMR_PROTOCOL || "ws";
|
||||
, createWebHistory } from 'vue-router';
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import App from '../App.vue';
|
||||
import BirthdayView from '../pages/BirthdayView.vue';
|
||||
import TestingView from '../pages/TestingView.vue';
|
||||
import HomeView from '../pages/HomeView.vue';
|
||||
import NewsView from '../pages/NewsView.vue';
|
||||
|
||||
const routes = [
|
||||
{ path: '/',
|
||||
children:
|
||||
[
|
||||
{ path: '', component: BirthdayView },
|
||||
{ path: 'aero', component: TestingView },
|
||||
{ path: 'home', component: HomeView },
|
||||
{ path: 'hearsay', component: NewsView },
|
||||
{ path: '', component: HomeView },
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user