initial commit

This commit is contained in:
Florian Sylvain
2023-02-04 17:52:43 +01:00
commit ce0ab23555
23 changed files with 5462 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<script setup lang="ts">
import { RouterView } from 'vue-router'
</script>
<template>
<RouterView />
</template>
<style scoped>
</style>
+4
View File
@@ -0,0 +1,4 @@
body {
margin: 0;
box-sizing: border-box;
}
+14
View File
@@ -0,0 +1,14 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import './assets/base.css'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')
+23
View File
@@ -0,0 +1,23 @@
import { createRouter, createWebHistory } from 'vue-router'
import GroupSelection from '@/views/GroupSelection.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'Home',
component: GroupSelection
},
{
path: '/group',
name: 'Group',
component: GroupSelection,
// beforeEnter: (to, from) => {
// return '/'
// }
},
]
})
export default router
+11
View File
@@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
</template>
<style scoped>
</style>
+24
View File
@@ -0,0 +1,24 @@
<script setup lang="ts">
import { initializeApp } from "firebase/app"
const firebaseConfig = {
apiKey: "AIzaSyDVyP3WELYiQL8OBGFaLpCkZr8gA9cVu-4",
authDomain: "spacemessenger-fsylvain.firebaseapp.com",
projectId: "spacemessenger-fsylvain",
storageBucket: "spacemessenger-fsylvain.appspot.com",
messagingSenderId: "103202352459",
appId: "1:103202352459:web:c41f6a1e35492bbd8e4cce"
}
const app = initializeApp(firebaseConfig)
</script>
<template>
<h1>Space Messenger</h1>
<button>create a group</button>
</template>
<style scoped>
</style>
+11
View File
@@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
</template>
<style scoped>
</style>