diff --git a/public/images/crossword.png b/public/images/crossword.png new file mode 100644 index 0000000..1b579c2 Binary files /dev/null and b/public/images/crossword.png differ diff --git a/public/images/games.png b/public/images/games.png new file mode 100644 index 0000000..8497949 Binary files /dev/null and b/public/images/games.png differ diff --git a/src/pages/Entertainment.vue b/src/pages/Entertainment.vue index a9805f7..6839c32 100644 --- a/src/pages/Entertainment.vue +++ b/src/pages/Entertainment.vue @@ -72,7 +72,7 @@
+
+ +
+

+ 🔤 Temukan Kata Positif +

+
+ + +
+
+ + +
+ + +
+

Cari kata berikut:

+
+ + {{ word }} + +
+

+ Temukan semua kata positif seperti sabar, cinta, syukur, dan gembira untuk hati yang ceria! +

+
+
+ + +
+ +
+
+ + + + + diff --git a/src/pages/Home.vue b/src/pages/Home.vue index e7ca83e..f511e9b 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -8,7 +8,7 @@ margin-bottom=-10px; > -
+
-
+
+
+ +
+
+
+

{{ this.savedUser?.username || 'S'}}

+ +
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 @@ + + + \ 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