Initial commit of Balout Pastry admin dashboards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-02 17:23:00 +03:30
co-authored by Cursor
commit af11d96fd0
103 changed files with 14651 additions and 0 deletions
+105
View File
@@ -0,0 +1,105 @@
import {
CakeSlice,
FolderTree,
Package,
PlusCircle,
Settings,
Users,
type LucideIcon,
} from 'lucide-react'
export type NavItem = {
label: string
href: string
}
export type NavSection = {
id: string
title: string
titleEn: string
description: string
href: string
icon: LucideIcon
items: NavItem[]
}
export type ProductTile = {
id: string
title: string
titleEn: string
description: string
href: string
icon: LucideIcon
}
export const productTiles: ProductTile[] = [
{
id: 'products-list',
title: 'محصولات من',
titleEn: 'My Products',
description: 'مشاهده و مدیریت همه محصولات فروشگاه',
href: '/products/list',
icon: CakeSlice,
},
{
id: 'products-new',
title: 'ثبت محصول جدید',
titleEn: 'New Product',
description: 'افزودن شیرینی یا محصول تازه به فروشگاه',
href: '/products/new',
icon: PlusCircle,
},
{
id: 'products-categories',
title: 'دسته بندی محصولات',
titleEn: 'Categories',
description: 'مدیریت دسته‌بندی‌های محصولات',
href: '/products/categories',
icon: FolderTree,
},
]
export const navSections: NavSection[] = [
{
id: 'products',
title: 'محصولات من',
titleEn: 'Products',
description: 'مدیریت شیرینی‌ها و محصولات فروشگاه',
href: '/products',
icon: CakeSlice,
items: productTiles.map((tile) => ({
label: tile.title,
href: tile.href,
})),
},
{
id: 'users',
title: 'کاربران',
titleEn: 'Users',
description: 'مدیریت کاربران، نقش‌ها و دسترسی‌ها',
href: '/users',
icon: Users,
items: [
{ label: 'همه کاربران', href: '/users' },
{ label: 'ثبت کاربر جدید', href: '/users' },
],
},
{
id: 'orders',
title: 'سفارشات من',
titleEn: 'Orders',
description: 'پیگیری و مدیریت سفارش‌ها',
href: '/orders',
icon: Package,
items: [],
},
{
id: 'settings',
title: 'تنظیمات',
titleEn: 'Settings',
description: 'تنظیمات فروشگاه و حساب کاربری',
href: '/settings',
icon: Settings,
items: [],
},
]