Fixes: 1) Replace `ElNotification` with `useNotification` across all components and composables; 2) Add missing semicolons, consistent formatting, and type annotations in multiple files; 3) Resolve non-reactive elements in wishlist and cart state management; Extra: 1) Update i18n translations with new strings for promocodes, balance, authentication, and profile settings; 2) Refactor SCSS styles including variable additions and component-specific tweaks; 3) Remove redundant queries, unused imports, and `storePage.ts` file for cleanup.
40 lines
No EOL
871 B
Vue
40 lines
No EOL
871 B
Vue
<template>
|
|
<div class="brand">
|
|
<ui-title>{{ brand.name }}</ui-title>
|
|
<div class="brand__categories">
|
|
<cards-category
|
|
v-for="category in brand.categories"
|
|
:key="category.uuid"
|
|
:category="category"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {useBrandByUuid} from "~/composables/brands";
|
|
import {usePageTitle} from "~/composables/utils";
|
|
|
|
const route = useRoute()
|
|
|
|
const slug = computed(() => route.params.uuid)
|
|
|
|
const { setPageTitle } = usePageTitle();
|
|
|
|
const { brand } = await useBrandByUuid(slug.value);
|
|
|
|
setPageTitle(brand.value?.name ?? 'Brand');
|
|
// TODO: add product by this brand
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.brand {
|
|
&__categories {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, 275px);
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 50px;
|
|
}
|
|
}
|
|
</style> |