schon/storefront/pages/brand/[uuid].vue
Alexandr SaVBaD Waltz c60ac13e88 Features: 1) Introduce handleDeposit function with validation logic and deposit transaction flow; 2) Add useDeposit composable and balance.vue page for user account balance management; 3) Enhance wishlist and cart functionality with authentication checks and notification improvements;
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.
2025-07-08 23:41:31 +03:00

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>