Add prettier config, format codebase

This commit is contained in:
David Haz
2025-07-12 11:59:33 +03:00
parent ac8b2c04d8
commit f4d97ee94e
211 changed files with 10586 additions and 8810 deletions

View File

@@ -1,27 +1,24 @@
<template>
<div>
<DisplayHeader
v-if="!isCategoryPage"
:activeItem="activeItem"
/>
<DisplayHeader v-if="!isCategoryPage" :activeItem="activeItem" />
<router-view />
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import DisplayHeader from '@/components/landing/DisplayHeader/DisplayHeader.vue'
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import DisplayHeader from '@/components/landing/DisplayHeader/DisplayHeader.vue';
const route = useRoute()
const route = useRoute();
const activeItem = computed(() => {
if (route.path === '/') return 'home'
return null
})
if (route.path === '/') return 'home';
return null;
});
const isCategoryPage = computed(() => {
return /^\/[^/]+\/[^/]+$/.test(route.path)
})
return /^\/[^/]+\/[^/]+$/.test(route.path);
});
</script>