|
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
|
|
143 | 69 | href="/app/leads/open"
|
144 | 70 | class={`${itemClass} ${mainSidebarUrl === '/app/leads/open' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
|
145 | 71 | />
|
146 |
| - <SidebarDropdownItem |
147 |
| - label="Closed Leads" |
148 |
| - href="/app/leads/closed" |
149 |
| - class={`${itemClass} ${mainSidebarUrl === '/app/leads/closed' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`} |
150 |
| - /> |
151 | 72 | <SidebarDropdownItem
|
152 | 73 | label="Create Lead"
|
153 | 74 | href="/app/leads/new"
|
|
171 | 92 | href="/app/accounts/opportunities"
|
172 | 93 | class={`${itemClass} ${mainSidebarUrl === '/app/accounts/opportunities' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`}
|
173 | 94 | />
|
174 |
| - <SidebarDropdownItem |
175 |
| - label="Deleted/Archived Accounts" |
176 |
| - href="/app/accounts/deleted" |
177 |
| - class={`${itemClass} ${mainSidebarUrl === '/app/accounts/deleted' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`} |
178 |
| - /> |
179 |
| - </SidebarDropdownWrapper> |
180 |
| -
|
181 |
| - <SidebarDropdownWrapper label="Opportunities"> |
182 |
| - <SidebarDropdownItem |
183 |
| - label="All Opportunities" |
184 |
| - href="/app/opportunities" |
185 |
| - class={`${itemClass} ${mainSidebarUrl === '/app/opportunities' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`} |
186 |
| - /> |
187 |
| - <SidebarDropdownItem |
188 |
| - label="New Opportunity" |
189 |
| - href="/app/opportunities/new" |
190 |
| - class={`${itemClass} ${mainSidebarUrl === '/app/opportunities/new' ? 'bg-gray-100 font-semibold dark:bg-gray-700' : ''}`} |
191 |
| - /> |
192 | 95 | </SidebarDropdownWrapper>
|
193 |
| -
|
194 | 96 | <SidebarDropdownWrapper label="Cases">
|
195 | 97 | <SidebarDropdownItem
|
196 | 98 | label="All Cases"
|
|
217 | 119 | />
|
218 | 120 | </SidebarDropdownWrapper>
|
219 | 121 | </SidebarGroup>
|
220 |
| - <SidebarGroup ulClass={groupClass}> |
221 |
| - {#each links as { label, href, icon } (label)} |
222 |
| - <SidebarItem {label} {href} spanClass="ml-3" class={itemClass} target="_blank"> |
223 |
| - <svelte:component this={icon} slot="icon" class={iconClass} /> |
224 |
| - </SidebarItem> |
225 |
| - {/each} |
226 |
| - </SidebarGroup> |
| 122 | + |
227 | 123 | </nav>
|
228 | 124 | </SidebarWrapper>
|
229 | 125 | </Sidebar>
|
|
0 commit comments