{{project.name}}
diff --git a/components/dashboard/Games.vue b/components/dashboard/Games.vue
deleted file mode 100644
index b5543d2..0000000
--- a/components/dashboard/Games.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- rtr
-
-
-
-
diff --git a/components/dashboard/GamesAdmin.vue b/components/dashboard/GamesAdmin.vue
new file mode 100644
index 0000000..516b8ea
--- /dev/null
+++ b/components/dashboard/GamesAdmin.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/projectsCard.vue b/components/projectsCard.vue
index 8531e27..cf713cf 100644
--- a/components/projectsCard.vue
+++ b/components/projectsCard.vue
@@ -28,7 +28,7 @@ export default defineComponent({
-
+
{{project.name}}
diff --git a/pages/categories/index.vue b/pages/categories/index.vue
index ef6aecc..4753d85 100644
--- a/pages/categories/index.vue
+++ b/pages/categories/index.vue
@@ -3,7 +3,7 @@ import {defineComponent} from 'vue'
import AllGames from "~/components/view/AllGames.vue";
export default defineComponent({
- name: "games",
+ name: "index",
components: {AllGames}
})
diff --git a/pages/user/dashboard.vue b/pages/user/dashboard.vue
index 8eaef40..7f0f6b1 100644
--- a/pages/user/dashboard.vue
+++ b/pages/user/dashboard.vue
@@ -3,37 +3,32 @@ import {useAuthStore} from "~/stores/auth";
import SideNav from "~/components/base/SideNav.vue";
import {$fetch} from "ofetch";
import Projects from "~/components/dashboard/Projects.vue";
+import Games from "~/pages/categories/index.vue";
+import GamesAdmin from "~/components/dashboard/GamesAdmin.vue";
definePageMeta({
middleware: [
"auth"
]
})
-
+const user = ref({});
const store = useAuthStore();
const state = ref(0);
-const {data: user} = await useAsyncData(
- 'user',
- () => {
- try {
- return $fetch('http://127.0.0.1:3890/v1/account/identity', {
- headers: {
- Authorization: `Bearer ${store.token}`
- }
- });
- } catch (error) {
- if (error.response && error.response.status === 401) {
- store.logout()
- navigateTo('/')
- } else {
- console.error(error);
- }
- }
+try {
+ user.value = await $fetch('http://127.0.0.1:3890/v1/account/identity', {
+ headers: {
+ Authorization: `Bearer ${store.token}`
}
-
-
-)
+ });
+} catch (error) {
+ if (error.response && error.response.status === 401) {
+ store.logout()
+ navigateTo('/')
+ } else {
+ console.error(error);
+ }
+}
function changeState(e) {
switch (e) {
@@ -43,6 +38,9 @@ function changeState(e) {
case 1:
state.value = 1;
break;
+ case 2:
+ state.value = 2;
+ break;
}
}
@@ -74,7 +72,7 @@ function changeState(e) {
-
+
diff --git a/tailwind.config.js b/tailwind.config.js
index fea7fc0..d7c075a 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -13,14 +13,16 @@ module.exports = {
width: {
'550': '550px',
'222': '90px',
- '551': '650px'
+ '551': '650px',
+ '552': '550px'
},
height: {
'550': '550px',
'552': '400px',
'222': '90px',
'551': '650px',
- '145': '145px'
+ '145': '145px',
+ '553': '570px'
}
},
},