diff --git a/app/src/App.vue b/app/src/App.vue index 646bdb8..89043b0 100644 --- a/app/src/App.vue +++ b/app/src/App.vue @@ -1,15 +1,7 @@ - - - - diff --git a/app/src/components/AuthForm.vue b/app/src/components/AuthForm.vue index d8b37f8..d8c2088 100644 --- a/app/src/components/AuthForm.vue +++ b/app/src/components/AuthForm.vue @@ -84,7 +84,7 @@ const handleChange = () => { } - + @@ -114,7 +114,12 @@ const handleChange = () => { Continue with GitHub - or + + or + { @input="handleChange()" /> - + {{ errorMessage }} +import { onMounted, ref } from 'vue' +import { useRouter } from 'vue-router' +import { logout } from '../utils/auth' +import api from '../utils/api' + +const router = useRouter() + +const handleLogout = async () => { + await logout() + router.push({ name: 'login' }) +} + +const questData = ref(null) +const questErr = ref(null) + +onMounted(async () => { + try { + const res = await api.get('/quests/helloworld') + questData.value = res.data + } catch (err) { + questErr.value = err + } +}) + + + + + + + + + + + + + + + {{ questData.title }} + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/components/HeaderPart.vue b/app/src/components/HeaderPart.vue deleted file mode 100644 index 900767f..0000000 --- a/app/src/components/HeaderPart.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - 1. Command's Basics - - - ● - - - 1. Try Your First Command - - - - - - - - - - - - - - - - - - - diff --git a/app/src/components/QuestPart.vue b/app/src/components/QuestPart.vue index 8e6a46f..257c897 100644 --- a/app/src/components/QuestPart.vue +++ b/app/src/components/QuestPart.vue @@ -17,7 +17,7 @@ onMounted(async () => { - + Failed to get quest infomation diff --git a/app/src/views/GamePage.vue b/app/src/views/GamePage.vue index 848614c..c92f8f7 100644 --- a/app/src/views/GamePage.vue +++ b/app/src/views/GamePage.vue @@ -2,6 +2,7 @@ import { onMounted, ref } from 'vue' import socket from '../utils/socket' import sessionManager from '../utils/session' +import GameHeaderPart from '../components/GameHeaderPart.vue' import CommandlistPart from '../components/CommandlistPart.vue' import HintPart from '../components/HintPart.vue' import QuestPart from '../components/QuestPart.vue' @@ -43,11 +44,15 @@ onMounted(async () => { - - - - - + + + + + + + + + @@ -55,8 +60,8 @@ onMounted(async () => { - - + + @@ -64,11 +69,14 @@ onMounted(async () => { - - - - - + + + + +
or
+ or +
+
{{ errorMessage }}
+ {{ questData.title }} +
- 1. Command's Basics -
●
- 1. Try Your First Command -