49e7d4a8f7
- Implemented ProductCategoryCard component for displaying product categories with icons, titles, and counts. - Created ProductCategoryCardInProducts component for rendering product categories in a product context. - Defined TypeScript interfaces for product category props. - Added ProductCard component for individual product display with image and title. - Established Axios instance for API calls with request and response interceptors. - Developed services for fetching product categories and category details from the API.
29 lines
641 B
TypeScript
29 lines
641 B
TypeScript
import { t, translates } from '@/locales/translates';
|
|
|
|
export default {
|
|
home: {
|
|
title: t('pages_home_title'),
|
|
route: () => '/',
|
|
},
|
|
productCategories: {
|
|
title: t('pages_product_categories_title'),
|
|
route: () => '/product-categories',
|
|
},
|
|
products: {
|
|
title: t('pages_products_title'),
|
|
route: (productId: string) => `/product-categories/${productId}`,
|
|
},
|
|
projects: {
|
|
title: t('pages_projects_title'),
|
|
route: () => '/projects',
|
|
},
|
|
about: {
|
|
title: t('pages_about_title'),
|
|
route: () => '/about-us',
|
|
},
|
|
contact: {
|
|
title: t('pages_contact_title'),
|
|
route: () => '/contact',
|
|
},
|
|
};
|