]> git.proxmox.com Git - pmg-gui.git/blame - js/NavigationTree.js
show user black/whitelist in tree
[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',
13 leaf: true
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',
25 leaf: true,
26 },
27 {
28 text: gettext('Who Objects'),
29 iconCls: 'fa fa-user-circle',
30 path: 'pmgWhoConfiguration',
31 leaf: true,
32 },
33 {
34 text: gettext('What Objects'),
35 iconCls: 'fa fa-cube',
36 path: 'pmgWhatConfiguration',
37 leaf: true,
38 },
39 {
40 text: gettext('When Objects'),
41 iconCls: 'fa fa-clock-o',
42 path: 'pmgWhenConfiguration',
43 leaf: true,
44 }
45 ]
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',
57 leaf: true,
58 },
59 {
60 text: gettext('Spam Detector'),
61 iconCls: 'fa fa-bullhorn',
62 path: 'pmgSpamDetectorConfiguration',
63 leaf: true,
64 },
65 {
66 text: gettext('Virus Detector'),
67 iconCls: 'fa fa-bug',
68 path: 'pmgVirusDetectorConfiguration',
69 leaf: true,
70 },
71 {
72 text: gettext('User Management'),
73 iconCls: 'fa fa-users',
74 path: 'pmgUserManagement',
75 leaf: true,
76 },
77 {
78 text: gettext('Cluster'),
79 iconCls: 'fa fa-server',
c77675e9 80 path: 'pmgClusterAdministration',
ed2e43ff
DC
81 leaf: true,
82 },
83 {
84 text: gettext('License'),
85 iconCls: 'fa fa-ticket',
86 path: 'pmgLicense',
87 leaf: true,
88 }
89 ]
90 },
91 {
92 text: gettext('Administration'),
93 iconCls: 'fa fa-wrench',
94 path: 'pmgServerAdministration',
95 expanded: true,
96 children: [
ed2e43ff
DC
97 {
98 text: gettext('Quarantine'),
99 iconCls: 'fa fa-cubes',
1279636f 100 path: 'pmgSpamQuarantine',
ed2e43ff
DC
101 leaf: true,
102 },
f2a235e3
DC
103 {
104 text: gettext('User Whitelist'),
105 iconCls: 'fa fa-file-o',
106 path: 'pmgUserWhitelist',
107 leaf: true,
108 },
109 {
110 text: gettext('User Blacklist'),
111 iconCls: 'fa fa-file',
112 path: 'pmgUserBlacklist',
113 leaf: true,
114 },
ed2e43ff
DC
115 {
116 text: gettext('Tracking Center'),
117 iconCls: 'fa fa-map-o',
118 path: 'pmgTrackingCenter',
119 leaf: true,
120 },
121 {
122 text: gettext('Queues'),
123 iconCls: 'fa fa-bars',
124 path: 'pmgQueueAdministration',
125 leaf: true,
126 }
127 ]
4183c555
DM
128 },
129 {
130 text: gettext('Statistics'),
131 iconCls: 'fa fa-bar-chart',
132 border: false,
133 path: 'pmgGeneralMailStatistics',
134 expanded: true,
135 children: [
136 {
137 text: gettext('Spam Scores'),
138 iconCls: 'fa fa-table',
139 path: 'pmgSpamScoreDistribution',
140 border: false,
141 leaf: true
142 },
143 {
144 text: gettext('Virus Charts'),
145 iconCls: 'fa fa-bug',
146 path: 'pmgVirusCharts',
147 border: false,
148 leaf: true
149 },
150 {
151 text: gettext('Hourly Distribution'),
152 iconCls: 'fa fa-area-chart',
153 path: 'pmgHourlyMailDistribution',
154 border: false,
155 leaf: true
156 },
a32c09e6
DM
157 {
158 text: gettext('RBL'),
159 iconCls: 'fa fa-line-chart',
160 path: 'pmgRBLStatistics',
161 border: false,
162 leaf: true
163 },
4183c555
DM
164 {
165 text: gettext('Domain'),
166 iconCls: 'fa fa-table',
167 path: 'pmgDomainStatistics',
168 border: false,
169 leaf: true
170 },
171 {
172 text: gettext('Sender'),
173 iconCls: 'fa fa-table',
174 path: 'pmgSenderStatistics',
175 border: false,
176 leaf: true
177 },
178 {
179 text: gettext('Receiver'),
180 iconCls: 'fa fa-table',
181 path: 'pmgReceiverStatistics',
182 border: false,
183 leaf: true
184 },
185 {
186 text: gettext('Contact'),
187 iconCls: 'fa fa-table',
188 path: 'pmgContactStatistics',
189 border: false,
190 leaf: true
191 }
192 ]
ed2e43ff
DC
193 }
194 ]
195 }
196});
197
198Ext.define('PMG.view.main.NavigationTree', {
199 extend: 'Ext.list.Tree',
200 xtype: 'navigationtree',
201
202 select: function(path) {
203 var me = this;
204 var item = me.getStore().findRecord('path', path, 0, false, true, true);
205 me.setSelection(item);
206 },
207
208 animation: false,
209 expanderOnly: true,
210 expanderFirst: false,
211 store: 'NavigationStore',
212 ui: 'nav'
213});