]>
git.proxmox.com Git - pmg-gui.git/blob - js/NavigationTree.js
1 Ext
.define('PMG.store.NavigationStore', {
2 extend
: 'Ext.data.TreeStore',
4 storeId
: 'NavigationStore',
10 text
: gettext('Dashboard'),
11 iconCls
: 'fa fa-tachometer',
16 text
: gettext('Mail Filter'),
17 iconCls
: 'fa fa-envelope',
18 path
: 'pmgRuleConfiguration',
22 text
: gettext('Action Objects'),
23 iconCls
: 'fa fa-flag',
24 path
: 'pmgActionList',
28 text
: gettext('Who Objects'),
29 iconCls
: 'fa fa-user-circle',
30 path
: 'pmgWhoConfiguration',
34 text
: gettext('What Objects'),
35 iconCls
: 'fa fa-cube',
36 path
: 'pmgWhatConfiguration',
40 text
: gettext('When Objects'),
41 iconCls
: 'fa fa-clock-o',
42 path
: 'pmgWhenConfiguration',
48 text
: gettext('Configuration'),
49 iconCls
: 'fa fa-gears',
50 path
: 'pmgSystemConfiguration',
54 text
: gettext('Mail Proxy'),
55 iconCls
: 'fa fa-envelope-o',
56 path
: 'pmgMailProxyConfiguration',
60 text
: gettext('Spam Detector'),
61 iconCls
: 'fa fa-bullhorn',
62 path
: 'pmgSpamDetectorConfiguration',
66 text
: gettext('Virus Detector'),
68 path
: 'pmgVirusDetectorConfiguration',
72 text
: gettext('User Management'),
73 iconCls
: 'fa fa-users',
74 path
: 'pmgUserManagement',
78 text
: gettext('Cluster'),
79 iconCls
: 'fa fa-server',
80 path
: 'pmgClusterAdministration',
84 text
: gettext('Subscription'),
85 iconCls
: 'fa fa-support',
86 path
: 'pmgSubscription',
92 text
: gettext('Administration'),
93 iconCls
: 'fa fa-wrench',
94 path
: 'pmgServerAdministration',
98 text
: gettext('Spam Quarantine'),
99 iconCls
: 'fa fa-bullhorn',
100 path
: 'pmgSpamQuarantine',
104 text
: gettext('Virus Quarantine'),
105 iconCls
: 'fa fa-bug',
106 path
: 'pmgVirusQuarantine',
110 text
: gettext('User Whitelist'),
111 iconCls
: 'fa fa-file-o',
112 path
: 'pmgUserWhitelist',
116 text
: gettext('User Blacklist'),
117 iconCls
: 'fa fa-file',
118 path
: 'pmgUserBlacklist',
122 text
: gettext('Tracking Center'),
123 iconCls
: 'fa fa-map-o',
124 path
: 'pmgMailTracker',
128 text
: gettext('Queues'),
129 iconCls
: 'fa fa-bars',
130 path
: 'pmgQueueAdministration',
136 text
: gettext('Statistics'),
137 iconCls
: 'fa fa-bar-chart',
138 path
: 'pmgGeneralMailStatistics',
142 text
: gettext('Spam Scores'),
143 iconCls
: 'fa fa-table',
144 path
: 'pmgSpamScoreDistribution',
148 text
: gettext('Virus Charts'),
149 iconCls
: 'fa fa-bug',
150 path
: 'pmgVirusCharts',
154 text
: gettext('Hourly Distribution'),
155 iconCls
: 'fa fa-area-chart',
156 path
: 'pmgHourlyMailDistribution',
160 text
: gettext('Postscreen'),
161 iconCls
: 'fa fa-line-chart',
162 path
: 'pmgRBLStatistics',
166 text
: gettext('Domain'),
167 iconCls
: 'fa fa-table',
168 path
: 'pmgDomainStatistics',
172 text
: gettext('Sender'),
173 iconCls
: 'fa fa-table',
174 path
: 'pmgSenderStatistics',
178 text
: gettext('Receiver'),
179 iconCls
: 'fa fa-table',
180 path
: 'pmgReceiverStatistics',
184 text
: gettext('Contact'),
185 iconCls
: 'fa fa-table',
186 path
: 'pmgContactStatistics',
195 Ext
.define('PMG.view.main.NavigationTree', {
196 extend
: 'Ext.list.Tree',
197 xtype
: 'navigationtree',
199 select: function(path
) {
201 var item
= me
.getStore().findRecord('path', path
, 0, false, true, true);
202 me
.setSelection(item
);
207 expanderFirst
: false,
208 store
: 'NavigationStore',