Initialize the user app and load home banners from the API.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-09 17:08:45 +03:30
co-authored by Cursor
commit a7f9c66514
190 changed files with 36160 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import type { ProductCategory, SeasonCategory } from '@/types/crm'
/** دسته‌بندی کاربرد/فصل — تاکسونومی ثابت اپ (هم‌تراز با سرور) */
export const CATALOG_USAGE_CATEGORIES: ProductCategory[] = [
{ id: 'trousers', title: 'پارچه‌های شلواری', subtitle: 'مشاهده محصولات' },
{ id: 'suit', title: 'پارچه‌های کت‌شلواری', subtitle: 'مشاهده محصولات' },
{ id: 'shirt', title: 'پارچه‌های پیراهنی', subtitle: 'مشاهده محصولات' },
]
export const CATALOG_SEASON_CATEGORIES: SeasonCategory[] = [
{
id: 'summer',
title: 'تابستانه',
description: 'سبک، خنک و مناسب فصل گرم',
},
{
id: 'winter',
title: 'زمستانه',
description: 'گرم و مناسب فصل سرد',
},
{
id: 'all_season',
title: 'چهارفصل',
description: 'مناسب استفاده در بیشتر فصل‌های سال',
},
]
export function getCatalogCategories() {
return {
usage: CATALOG_USAGE_CATEGORIES,
seasons: CATALOG_SEASON_CATEGORIES,
}
}