this.authStore.currentUser)
+ savedUser : JSON.parse(localStorage.getItem('user')) || {}
};
},
methods: {
@@ -416,8 +437,6 @@ export default {
const diffToStart = start - now;
const diffToEnd = end - now;
- console.log("diffToStart:", diffToStart, "diffToEnd:", diffToEnd);
-
const pad = (n) => String(n).padStart(2, "0")
if (diffToStart > 0) {
const totalSeconds = Math.floor(diffToStart / 1000);
@@ -581,6 +600,7 @@ export default {
},
computed: {
currentUser() {
+ console.log(this.authStore.currentUser)
return this.authStore.currentUser;
}
}
diff --git a/src/pages/Minigame.vue b/src/pages/Minigame.vue
new file mode 100644
index 0000000..a6cd145
--- /dev/null
+++ b/src/pages/Minigame.vue
@@ -0,0 +1,118 @@
+
+
+
+
+

+
+
+
+
+

+
+
+
Pilih game favoritmu dan mainkan sesuka kamu
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index c1c3ba7..70cbc47 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -11,6 +11,8 @@ import ChaptersPage from '@/pages/Chapters.vue'
import ChapterListPage from '@/pages/ChapterList.vue'
import SynopsisPage from '@/pages/Synopsis.vue'
import MissionPage from '@/pages/MissionPage.vue'
+import FindwordsPage from '@/pages/Findwords.vue'
+import MinigamePage from '@/pages/Minigame.vue'
const routes = [
{ path: '/', name: 'home', component: HomePage , meta:{requiresAuth:true}},
@@ -29,7 +31,11 @@ const routes = [
},
{ path: '/entertainment/manga/:manga_id/chapters/:chapter_id/', name:'manga-list', component:ChapterListPage, props:true},
{ path: '/entertainment/manga/:manga_id/chapters/:chapter_id/pages', name:'manga-read', component:ChapterListPage, props:true},
- { path:'/mission/quest/:id/missions', name: 'quest-missions', component:MissionPage}
+ { path:'/mission/quest/:id/missions', name: 'quest-missions', component:MissionPage},
+
+ // game
+ { path: '/entertainment/game/find-words/', name:'game-find-words', component:FindwordsPage, props:true},
+ { path: '/entertainment/mini-games/', name:'mini-games', component:MinigamePage, props:true},
]
const router = createRouter({
diff --git a/src/services/missions.js b/src/services/missions.js
index 3e628fb..bdf7385 100644
--- a/src/services/missions.js
+++ b/src/services/missions.js
@@ -27,4 +27,8 @@ export const updateMissionLog = async(missionId ,data = {}) =>{
return await api.patch(`missions/${missionId}/`, data, {
headers: { "Content-Type": "multipart/form-data" },
});
-}
\ No newline at end of file
+}
+
+// export const getUserPoint = async(user_id) =>{
+// return await api.get();
+// }
\ No newline at end of file