Added modal to menu
This commit is contained in:
@@ -0,0 +1,296 @@
|
||||
export type NavHubKey =
|
||||
| 'customers'
|
||||
| 'sales'
|
||||
| 'activities'
|
||||
| 'support'
|
||||
| 'tools'
|
||||
| 'settings';
|
||||
|
||||
export type NavIconName =
|
||||
| 'users'
|
||||
| 'user'
|
||||
| 'building'
|
||||
| 'briefcase'
|
||||
| 'filter'
|
||||
| 'document'
|
||||
| 'box'
|
||||
| 'mail'
|
||||
| 'dollar'
|
||||
| 'target'
|
||||
| 'check'
|
||||
| 'calendar'
|
||||
| 'chat'
|
||||
| 'apps-plus'
|
||||
| 'layers'
|
||||
| 'flag'
|
||||
| 'settings'
|
||||
| 'pencil'
|
||||
| 'chart'
|
||||
| 'lightbulb'
|
||||
| 'plus'
|
||||
| 'user-plus';
|
||||
|
||||
export type NavHubTint = 'mint' | 'violet' | 'peach' | 'sky' | 'rose' | 'amber';
|
||||
|
||||
export type NavHubCard = {
|
||||
to: string;
|
||||
title: string;
|
||||
desc: string;
|
||||
icon: NavIconName;
|
||||
tint: NavHubTint;
|
||||
admin?: boolean;
|
||||
};
|
||||
|
||||
export type NavHubShortcut = {
|
||||
to: string;
|
||||
title: string;
|
||||
icon: NavIconName;
|
||||
admin?: boolean;
|
||||
};
|
||||
|
||||
export type NavHubDef = {
|
||||
key: NavHubKey;
|
||||
title: string;
|
||||
desc: string;
|
||||
icon: NavIconName;
|
||||
tint: NavHubTint;
|
||||
cards: NavHubCard[];
|
||||
shortcuts: NavHubShortcut[];
|
||||
};
|
||||
|
||||
export const NAV_HUBS: NavHubDef[] = [
|
||||
{
|
||||
key: 'customers',
|
||||
title: 'مشتریان',
|
||||
desc: 'اشخاص، شرکتها و پروندههای ارتباطی',
|
||||
icon: 'users',
|
||||
tint: 'mint',
|
||||
shortcuts: [
|
||||
{ to: '/contacts/people/new', title: 'شخص جدید', icon: 'user-plus' },
|
||||
{ to: '/contacts/companies/new', title: 'شرکت جدید', icon: 'building' },
|
||||
],
|
||||
cards: [
|
||||
{
|
||||
to: '/contacts',
|
||||
title: 'اشخاص',
|
||||
desc: 'مخاطبان حقیقی و پروندههای مشتری',
|
||||
icon: 'user',
|
||||
tint: 'mint',
|
||||
},
|
||||
{
|
||||
to: '/contacts?tab=companies',
|
||||
title: 'شرکتها',
|
||||
desc: 'سازمانها و مشتریان حقوقی',
|
||||
icon: 'building',
|
||||
tint: 'violet',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'sales',
|
||||
title: 'فروش',
|
||||
desc: 'مدیریت چرخه فروش و درآمد',
|
||||
icon: 'briefcase',
|
||||
tint: 'mint',
|
||||
shortcuts: [
|
||||
{ to: '/deals/new', title: 'معامله جدید', icon: 'plus' },
|
||||
{ to: '/quotes/new', title: 'پیشفاکتور جدید', icon: 'document' },
|
||||
],
|
||||
cards: [
|
||||
{
|
||||
to: '/pipeline',
|
||||
title: 'کاریز فروش',
|
||||
desc: 'سرنخها، معاملات و مراحل فروش',
|
||||
icon: 'filter',
|
||||
tint: 'mint',
|
||||
},
|
||||
{
|
||||
to: '/settings/products',
|
||||
title: 'محصولات و خدمات',
|
||||
desc: 'مدیریت محصولات، قیمتها و موجودی',
|
||||
icon: 'box',
|
||||
tint: 'peach',
|
||||
admin: true,
|
||||
},
|
||||
{
|
||||
to: '/invoices',
|
||||
title: 'فاکتورها',
|
||||
desc: 'صدور فاکتور و پیگیری پرداختها',
|
||||
icon: 'mail',
|
||||
tint: 'sky',
|
||||
},
|
||||
{
|
||||
to: '/quotes',
|
||||
title: 'پیشفاکتورها',
|
||||
desc: 'پیشنهاد قیمت و پیگیری تایید',
|
||||
icon: 'document',
|
||||
tint: 'amber',
|
||||
},
|
||||
{
|
||||
to: '/commissions',
|
||||
title: 'پورسانت',
|
||||
desc: 'سهم فروشندگان از فاکتورهای صادرشده',
|
||||
icon: 'dollar',
|
||||
tint: 'rose',
|
||||
},
|
||||
{
|
||||
to: '/sales/forecast',
|
||||
title: 'هدف و پیشبینی',
|
||||
desc: 'تعیین اهداف و تحلیل عملکرد فروش',
|
||||
icon: 'target',
|
||||
tint: 'mint',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'activities',
|
||||
title: 'فعالیتها',
|
||||
desc: 'کارها، تماسها و برنامهریزی روزانه',
|
||||
icon: 'check',
|
||||
tint: 'sky',
|
||||
shortcuts: [
|
||||
{ to: '/activities/new', title: 'فعالیت جدید', icon: 'plus' },
|
||||
{ to: '/activities/calendar', title: 'تقویم', icon: 'calendar' },
|
||||
],
|
||||
cards: [
|
||||
{
|
||||
to: '/activities',
|
||||
title: 'فعالیتهای من',
|
||||
desc: 'کارها، تماسها و پیگیریهای جاری',
|
||||
icon: 'check',
|
||||
tint: 'mint',
|
||||
},
|
||||
{
|
||||
to: '/activities/calendar',
|
||||
title: 'تقویم فعالیتها',
|
||||
desc: 'نمای روز، هفته و زمانبندی کارها',
|
||||
icon: 'calendar',
|
||||
tint: 'violet',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'support',
|
||||
title: 'پشتیبانی',
|
||||
desc: 'درخواستها و گفتگو با مشتری',
|
||||
icon: 'chat',
|
||||
tint: 'peach',
|
||||
shortcuts: [
|
||||
{ to: '/tickets/new', title: 'تیکت جدید', icon: 'plus' },
|
||||
{ to: '/tickets', title: 'تیکتها', icon: 'chat' },
|
||||
],
|
||||
cards: [
|
||||
{
|
||||
to: '/tickets',
|
||||
title: 'تیکتها',
|
||||
desc: 'درخواستها و پیامهای پشتیبانی',
|
||||
icon: 'chat',
|
||||
tint: 'peach',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'tools',
|
||||
title: 'ابزارها',
|
||||
desc: 'فرمها، پروژه، انبار و اسناد مالی',
|
||||
icon: 'apps-plus',
|
||||
tint: 'violet',
|
||||
shortcuts: [
|
||||
{ to: '/project-cards/new', title: 'کارت پروژه جدید', icon: 'plus' },
|
||||
{ to: '/cheques', title: 'ثبت چک', icon: 'document' },
|
||||
],
|
||||
cards: [
|
||||
{
|
||||
to: '/settings/lead-forms',
|
||||
title: 'فرمساز سرنخ',
|
||||
desc: 'فرم عمومی برای جذب سرنخ تازه',
|
||||
icon: 'layers',
|
||||
tint: 'mint',
|
||||
admin: true,
|
||||
},
|
||||
{
|
||||
to: '/projects',
|
||||
title: 'کاریز پروژه',
|
||||
desc: 'کارتها و مراحل اجرای کار',
|
||||
icon: 'flag',
|
||||
tint: 'violet',
|
||||
},
|
||||
{
|
||||
to: '/inventory',
|
||||
title: 'انبار',
|
||||
desc: 'موجودی کالا و گردش داخلی',
|
||||
icon: 'box',
|
||||
tint: 'peach',
|
||||
},
|
||||
{
|
||||
to: '/cheques',
|
||||
title: 'چکها',
|
||||
desc: 'چکهای دریافتی و پرداختی',
|
||||
icon: 'document',
|
||||
tint: 'sky',
|
||||
},
|
||||
{
|
||||
to: '/attachments',
|
||||
title: 'پیوستها',
|
||||
desc: 'فایلهای متصل به یادداشتها',
|
||||
icon: 'document',
|
||||
tint: 'amber',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'settings',
|
||||
title: 'تنظیمات',
|
||||
desc: 'سازمان، تیم و پیکربندی سیستم',
|
||||
icon: 'settings',
|
||||
tint: 'sky',
|
||||
shortcuts: [
|
||||
{ to: '/settings/team#settings-team', title: 'تیم و نقشها', icon: 'users' },
|
||||
{ to: '/settings/tahesab', title: 'تهحساب', icon: 'chart' },
|
||||
],
|
||||
cards: [
|
||||
{
|
||||
to: '/settings/team#settings-org',
|
||||
title: 'تنظیمات عمومی',
|
||||
desc: 'نام سازمان و تنظیمات پایه',
|
||||
icon: 'building',
|
||||
tint: 'mint',
|
||||
},
|
||||
{
|
||||
to: '/settings/team#settings-team',
|
||||
title: 'تیم و نقشها',
|
||||
desc: 'اعضا، دسترسی و نقشها',
|
||||
icon: 'users',
|
||||
tint: 'violet',
|
||||
},
|
||||
{
|
||||
to: '/settings/custom-fields',
|
||||
title: 'فیلدهای سفارشی',
|
||||
desc: 'فیلدهای اضافه روی پروندهها',
|
||||
icon: 'pencil',
|
||||
tint: 'peach',
|
||||
},
|
||||
{
|
||||
to: '/settings/currencies',
|
||||
title: 'ارزها',
|
||||
desc: 'ارز پایه و نرخ تبدیل',
|
||||
icon: 'dollar',
|
||||
tint: 'sky',
|
||||
},
|
||||
{
|
||||
to: '/settings/tahesab',
|
||||
title: 'تهحساب',
|
||||
desc: 'اتصال مالی و تنظیمات حسابداری',
|
||||
icon: 'chart',
|
||||
tint: 'amber',
|
||||
},
|
||||
{
|
||||
to: '/settings/faq',
|
||||
title: 'FAQ',
|
||||
desc: 'پرسشهای پرتکرار سازمان',
|
||||
icon: 'lightbulb',
|
||||
tint: 'rose',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user