Adds creation of creator profile

This commit is contained in:
2024-08-16 14:37:12 -04:00
parent 6779c787d0
commit 31e49802db
9 changed files with 283 additions and 274 deletions

View File

@@ -6,7 +6,8 @@
<div class="flex items-center">
<v-app-bar-nav-icon @click.stop="sideBarStore.toggle()">
</v-app-bar-nav-icon>
<RouterLink to="/" class="hidden md:block">
<RouterLink to="/">
<v-img
src="/medias/hutopy.png"
ref="popupButtonRef"
@@ -14,15 +15,7 @@
class="mr-2 h-10 w-20"
></v-img>
</RouterLink>
<RouterLink to="/" class="block md:hidden">
<v-img
src="/images/hutopymedia/icons/logohutopy.png"
ref="popupButtonRef"
alt="Hutopy Logo"
class="mr-2 h-10 w-10"
></v-img>
</RouterLink>
</div>
<!-- Spacer to push the Explorer button to the center -->
@@ -49,7 +42,6 @@
<v-icon>mdi-earth</v-icon>
</v-btn>
<!-- Spacer to keep the search bar to the right -->
<div class="flex-grow"></div>
@@ -111,8 +103,8 @@
</router-link>
</v-list-item>
<v-list-item v-if="userStore.creator && !Object.keys(userStore.creator).length > 0" class="nav-button">
<router-link :to="`/@${userStore.creator.name}`">
<v-list-item v-if="!userStore.hasCreator" class="nav-button">
<router-link to="/profile">
<v-btn class="w-100" variant="plain">Activer votre page</v-btn>
</router-link>
</v-list-item>
@@ -141,11 +133,11 @@
</template>
<script setup>
import { ref, onBeforeUnmount, onBeforeMount } from "vue";
import { useRouter } from 'vue-router';
import { useSideBarStore } from '@/stores/sideBarStore.js';
import { useUserStore } from "@/stores/userStore.js";
import { useAuthStore } from "@/stores/authStore.js";
import {ref, onBeforeUnmount, onBeforeMount} from "vue";
import {useRouter} from 'vue-router';
import {useSideBarStore} from '@/stores/sideBarStore.js';
import {useUserStore} from "@/stores/userStore.js";
import {useAuthStore} from "@/stores/authStore.js";
const authStore = useAuthStore()
const userStore = useUserStore()