|
36 | 36 | activeMainSidebar = navigation.to?.url.pathname ?? '';
|
37 | 37 | });
|
38 | 38 |
|
39 |
| - let menu = [ |
40 |
| - { name: 'Dashboard', icon: 'ChartPieOutline', href: '/app/dashboard' }, |
41 |
| - { name: 'Leads', icon: 'FunnelOutline', href: '/app/leads' }, |
42 |
| - { name: 'Contacts', icon: 'UserOutline', href: '/app/contacts' }, |
43 |
| - { |
44 |
| - name: 'Accounts', |
45 |
| - icon: 'BuildingOfficeOutline', |
46 |
| - children: { |
47 |
| - 'All Accounts': '/app/accounts', |
48 |
| - 'New Account': '/app/accounts/new', |
49 |
| - 'Account Opportunities': '/app/accounts/opportunities', |
50 |
| - 'Deleted/Archived Accounts': '/app/accounts/deleted' |
51 |
| - } |
52 |
| - }, |
53 |
| - { |
54 |
| - name: 'Opportunities', |
55 |
| - icon: 'CurrencyDollarOutline', |
56 |
| - children: { |
57 |
| - 'All Opportunities': '/app/opportunities', |
58 |
| - 'New Opportunity': '/app/opportunities/new' |
59 |
| - } |
60 |
| - }, |
61 |
| - { |
62 |
| - name: 'Cases', |
63 |
| - icon: 'LifebuoyOutline', |
64 |
| - children: { |
65 |
| - 'All Cases': '/app/cases', |
66 |
| - 'New Case': '/app/cases/new' |
67 |
| - } |
68 |
| - }, |
69 |
| - { |
70 |
| - name: 'Tasks', |
71 |
| - icon: 'ClipboardOutline', |
72 |
| - children: { |
73 |
| - 'All Tasks': '/app/tasks', |
74 |
| - 'New Task': '/app/tasks/new', |
75 |
| - Calendar: '/app/tasks/calendar' |
76 |
| - } |
77 |
| - }, |
78 |
| - { |
79 |
| - name: 'Invoices', |
80 |
| - icon: 'ReceiptOutline', |
81 |
| - children: { |
82 |
| - 'All Invoices': '/app/invoices', |
83 |
| - 'Create Invoice': '/app/invoices/new' |
84 |
| - } |
85 |
| - }, |
86 |
| - { |
87 |
| - name: 'Reports', |
88 |
| - icon: 'ChartBarOutline', |
89 |
| - children: { |
90 |
| - 'Sales Reports': '/app/reports/sales', |
91 |
| - 'Case Stats': '/app/reports/cases', |
92 |
| - 'Invoice Trends': '/app/reports/invoices' |
93 |
| - } |
94 |
| - }, |
95 |
| - { |
96 |
| - name: 'Settings', |
97 |
| - icon: 'CogOutline', |
98 |
| - children: { |
99 |
| - 'User Management': '/app/settings/users', |
100 |
| - 'Custom Fields': '/app/settings/fields', |
101 |
| - Integrations: '/app/settings/integrations' |
102 |
| - } |
103 |
| - } |
104 |
| - ]; |
105 |
| - let links = [ |
106 |
| - { |
107 |
| - label: 'Support', |
108 |
| - href: 'https://discord.gg/', |
109 |
| - icon: LifeSaverSolid |
110 |
| - } |
111 |
| - ]; |
112 |
| - let dropdowns = Object.fromEntries(Object.keys(menu).map((x) => [x, false])); |
113 | 39 | </script>
|
114 | 40 |
|
115 | 41 | <Sidebar
|
|
193 | 119 | />
|
194 | 120 | </SidebarDropdownWrapper>
|
195 | 121 | </SidebarGroup>
|
196 |
| - <SidebarGroup ulClass={groupClass}> |
197 |
| - {#each links as { label, href, icon } (label)} |
198 |
| - <SidebarItem {label} {href} spanClass="ml-3" class={itemClass} target="_blank"> |
199 |
| - <svelte:component this={icon} slot="icon" class={iconClass} /> |
200 |
| - </SidebarItem> |
201 |
| - {/each} |
202 |
| - </SidebarGroup> |
| 122 | + |
203 | 123 | </nav>
|
204 | 124 | </SidebarWrapper>
|
205 | 125 | </Sidebar>
|
|
0 commit comments