]> git.proxmox.com Git - pmg-gui.git/blame - js/NavigationTree.js
dkim settings: improve label for signing domain source selection
[pmg-gui.git] / js / NavigationTree.js
CommitLineData
ed2e43ff
DC
1Ext.define('PMG.store.NavigationStore', {
2 extend: 'Ext.data.TreeStore',
3
4 storeId: 'NavigationStore',
5
6 root: {
7 expanded: true,
8 children: [
9 {
10 text: gettext('Dashboard'),
11 iconCls: 'fa fa-tachometer',
12 path: 'pmgDashboard',
c87d46fb 13 leaf: true,
ed2e43ff
DC
14 },
15 {
16 text: gettext('Mail Filter'),
17 iconCls: 'fa fa-envelope',
18 path: 'pmgRuleConfiguration',
19 expanded: true,
20 children: [
21 {
22 text: gettext('Action Objects'),
23 iconCls: 'fa fa-flag',
24 path: 'pmgActionList',
c87d46fb 25 leaf: true,
ed2e43ff
DC
26 },
27 {
28 text: gettext('Who Objects'),
29 iconCls: 'fa fa-user-circle',
30 path: 'pmgWhoConfiguration',
c87d46fb 31 leaf: true,
ed2e43ff
DC
32 },
33 {
34 text: gettext('What Objects'),
35 iconCls: 'fa fa-cube',
36 path: 'pmgWhatConfiguration',
c87d46fb 37 leaf: true,
ed2e43ff
DC
38 },
39 {
40 text: gettext('When Objects'),
41 iconCls: 'fa fa-clock-o',
42 path: 'pmgWhenConfiguration',
c87d46fb
TL
43 leaf: true,
44 },
45 ],
ed2e43ff
DC
46 },
47 {
48 text: gettext('Configuration'),
49 iconCls: 'fa fa-gears',
50 path: 'pmgSystemConfiguration',
51 expanded: true,
52 children: [
53 {
54 text: gettext('Mail Proxy'),
55 iconCls: 'fa fa-envelope-o',
56 path: 'pmgMailProxyConfiguration',
c87d46fb 57 leaf: true,
ed2e43ff
DC
58 },
59 {
60 text: gettext('Spam Detector'),
61 iconCls: 'fa fa-bullhorn',
62 path: 'pmgSpamDetectorConfiguration',
c87d46fb 63 leaf: true,
ed2e43ff
DC
64 },
65 {
66 text: gettext('Virus Detector'),
67 iconCls: 'fa fa-bug',
68 path: 'pmgVirusDetectorConfiguration',
c87d46fb 69 leaf: true,
ed2e43ff
DC
70 },
71 {
72 text: gettext('User Management'),
73 iconCls: 'fa fa-users',
74 path: 'pmgUserManagement',
c87d46fb 75 leaf: true,
ed2e43ff
DC
76 },
77 {
78 text: gettext('Cluster'),
79 iconCls: 'fa fa-server',
c77675e9 80 path: 'pmgClusterAdministration',
c87d46fb 81 leaf: true,
ed2e43ff
DC
82 },
83 {
a10c81d9
DM
84 text: gettext('Subscription'),
85 iconCls: 'fa fa-support',
86 path: 'pmgSubscription',
c87d46fb
TL
87 leaf: true,
88 },
d3ad46ba
SI
89 {
90 text: gettext('Backup/Restore'),
91 iconCls: 'fa fa-floppy-o',
92 path: 'pmgBackupConfiguration',
93 leaf: true,
94 },
c083fb77
WB
95 {
96 text: gettext('Certificates'),
97 iconCls: 'fa fa-certificate',
98 path: 'pmgCertificateConfiguration',
99 leaf: true,
100 },
c87d46fb 101 ],
ed2e43ff
DC
102 },
103 {
104 text: gettext('Administration'),
105 iconCls: 'fa fa-wrench',
106 path: 'pmgServerAdministration',
107 expanded: true,
108 children: [
ed2e43ff 109 {
387aeedf
DC
110 text: gettext('Spam Quarantine'),
111 iconCls: 'fa fa-bullhorn',
1279636f 112 path: 'pmgSpamQuarantine',
c87d46fb 113 leaf: true,
387aeedf
DC
114 },
115 {
116 text: gettext('Virus Quarantine'),
117 iconCls: 'fa fa-bug',
118 path: 'pmgVirusQuarantine',
c87d46fb 119 leaf: true,
0023ef6a
DC
120 },
121 {
122 text: gettext('Attachment Quarantine'),
123 iconCls: 'fa fa-paperclip',
124 path: 'pmgAttachmentQuarantine',
c87d46fb 125 leaf: true,
ed2e43ff 126 },
f2a235e3
DC
127 {
128 text: gettext('User Whitelist'),
129 iconCls: 'fa fa-file-o',
130 path: 'pmgUserWhitelist',
c87d46fb 131 leaf: true,
f2a235e3
DC
132 },
133 {
134 text: gettext('User Blacklist'),
135 iconCls: 'fa fa-file',
136 path: 'pmgUserBlacklist',
c87d46fb 137 leaf: true,
f2a235e3 138 },
ed2e43ff
DC
139 {
140 text: gettext('Tracking Center'),
141 iconCls: 'fa fa-map-o',
cf248533 142 path: 'pmgMailTracker',
c87d46fb 143 leaf: true,
ed2e43ff
DC
144 },
145 {
146 text: gettext('Queues'),
147 iconCls: 'fa fa-bars',
148 path: 'pmgQueueAdministration',
c87d46fb
TL
149 leaf: true,
150 },
151 ],
4183c555
DM
152 },
153 {
154 text: gettext('Statistics'),
155 iconCls: 'fa fa-bar-chart',
4183c555
DM
156 path: 'pmgGeneralMailStatistics',
157 expanded: true,
158 children: [
159 {
160 text: gettext('Spam Scores'),
161 iconCls: 'fa fa-table',
162 path: 'pmgSpamScoreDistribution',
c87d46fb 163 leaf: true,
4183c555
DM
164 },
165 {
6fb7df06 166 text: gettext('Virus Charts'),
4183c555
DM
167 iconCls: 'fa fa-bug',
168 path: 'pmgVirusCharts',
c87d46fb 169 leaf: true,
4183c555
DM
170 },
171 {
172 text: gettext('Hourly Distribution'),
173 iconCls: 'fa fa-area-chart',
174 path: 'pmgHourlyMailDistribution',
c87d46fb 175 leaf: true,
4183c555 176 },
a32c09e6 177 {
d6a00b29 178 text: gettext('Postscreen'),
a32c09e6
DM
179 iconCls: 'fa fa-line-chart',
180 path: 'pmgRBLStatistics',
c87d46fb 181 leaf: true,
a32c09e6 182 },
4183c555
DM
183 {
184 text: gettext('Domain'),
185 iconCls: 'fa fa-table',
186 path: 'pmgDomainStatistics',
c87d46fb 187 leaf: true,
4183c555
DM
188 },
189 {
190 text: gettext('Sender'),
191 iconCls: 'fa fa-table',
192 path: 'pmgSenderStatistics',
c87d46fb 193 leaf: true,
4183c555
DM
194 },
195 {
196 text: gettext('Receiver'),
197 iconCls: 'fa fa-table',
198 path: 'pmgReceiverStatistics',
c87d46fb 199 leaf: true,
4183c555
DM
200 },
201 {
202 text: gettext('Contact'),
203 iconCls: 'fa fa-table',
204 path: 'pmgContactStatistics',
c87d46fb
TL
205 leaf: true,
206 },
207 ],
208 },
209 ],
210 },
ed2e43ff
DC
211});
212
213Ext.define('PMG.view.main.NavigationTree', {
214 extend: 'Ext.list.Tree',
215 xtype: 'navigationtree',
216
217 select: function(path) {
218 var me = this;
219 var item = me.getStore().findRecord('path', path, 0, false, true, true);
220 me.setSelection(item);
221 },
222
223 animation: false,
224 expanderOnly: true,
225 expanderFirst: false,
226 store: 'NavigationStore',
9d87a333 227 ui: 'pve-nav',
ed2e43ff 228});