feat(admin): implement Phase B management modules based on frontend integration contract
Deploy Canina / deploy (push) Failing after 28s

This commit is contained in:
parsa committed 2026-08-06 23:58:10 +03:30
1 parent 8dc2b1e586
commit f70c1fe3c2
12 files changed
+2998 -13

No files matched your search

+19 -13
View File
@@ -1,6 +1,6 @@
import { useState, useRef } from 'react';
import { useState, useEffect, useRef } from 'react';
import { Link, useLocation, useNavigate } from 'react-router-dom';
import { Users, ShoppingCart, Tag, Settings, LogOut, TrendingUp, FolderTree, FileText, BookOpen, Heart, Package, LayoutDashboard, Languages, Image, Video, PhoneCall } from 'lucide-react';
import { Users, ShoppingCart, Tag, Settings, LogOut, TrendingUp, FolderTree, FileText, BookOpen, Heart, Package, LayoutDashboard, Languages, Image, Video, PhoneCall, Sparkles, MessageSquareQuote, FlaskConical, Building2, Globe, DollarSign, Sliders } from 'lucide-react';
import api from '../services/api';
import { useAdminAuthStore } from '../store/adminAuthStore';
@@ -13,36 +13,44 @@ const menuGroups = [
]
},
{
title: 'فروشگاه',
title: 'فروشگاه و تخصصی',
items: [
{ icon: ShoppingCart, label: 'سفارشات', path: '/orders' },
{ icon: Package, label: 'محصولات', path: '/products' },
{ icon: FolderTree, label: 'دسته‌بندی‌ها', path: '/categories' },
{ icon: Tag, label: 'کدهای تخفیف', path: '/coupons' },
{ icon: Sparkles, label: 'مشاور هوشمند', path: '/smart-advisor' },
{ icon: FileText, label: 'نسخه‌های پزشکی', path: '/prescriptions' },
]
},
{
title: 'مدیریت و کاربران',
title: 'مدیریت و همکاران B2B',
items: [
{ icon: Users, label: 'کاربران', path: '/users' },
{ icon: Heart, label: 'حیوانات (Pets)', path: '/pets' },
{ icon: Package, label: 'درخواست‌های B2B', path: '/wholesale' },
{ icon: Building2, label: 'مدیریت B2B & عمده', path: '/b2b' },
{ icon: PhoneCall, label: 'تماس با ما & اطلاعات', path: '/contact' },
]
},
{
title: 'محتوا',
title: 'محتوا و دانشنامه',
items: [
{ icon: Image, label: 'بنرها و اسلایدرها', path: '/banners' },
{ icon: FlaskConical, label: 'دانشنامه ترکیبات', path: '/ingredients' },
{ icon: MessageSquareQuote, label: 'نظرات و گواهی‌ها', path: '/testimonials' },
{ icon: FileText, label: 'وبلاگ', path: '/blogs' },
{ icon: BookOpen, label: 'دانشنامه', path: '/wiki' },
{ icon: BookOpen, label: 'دانشنامه عمومی', path: '/wiki' },
{ icon: Video, label: 'مدیریت ویدئوها', path: '/videos' },
{ icon: Image, label: 'بنرها و نظرات (CMS)', path: '/cms' },
{ icon: Image, label: 'مدیریت CMS قدیم', path: '/cms' },
]
},
{
title: 'سیستم',
title: 'سیستم و تنظیمات',
items: [
{ icon: Settings, label: 'تنظیمات', path: '/settings' },
{ icon: Settings, label: 'تنظیمات کلی', path: '/settings' },
{ icon: Globe, label: 'تنظیمات سئو', path: '/settings/seo' },
{ icon: DollarSign, label: 'تنظیمات مالی & ارسال', path: '/settings/financial' },
{ icon: Sliders, label: 'تنظیمات سیستمی', path: '/settings/system' },
{ icon: Languages, label: 'متون رابط کاربری', path: '/ui-texts' },
{ icon: Image, label: 'مدیریت رسانه', path: '/media' },
]
@@ -150,7 +158,5 @@ export default function Sidebar({ isOpen, setIsOpen }: SidebarProps) {
</>
);
}
function useEffect(arg0: () => () => void, arg1: undefined[]) {
throw new Error('Function not implemented.');
}