mirror of
https://github.com/Floriansylvain/SpaceMessenger.git
synced 2026-08-19 19:53:22 +02:00
initial commit
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { RouterView } from 'vue-router'
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<RouterView />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,4 @@
|
||||
body {
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
+14
@@ -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')
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user