|
1 |
| -/*global $, moment, countlyVue, app, countlyLogger, countlyCommon, CV, countlyGlobal */ |
| 1 | +/*global moment, countlyVue, app, countlyLogger, countlyCommon, CV, countlyGlobal */ |
2 | 2 | (function() {
|
3 | 3 | var isSecondFormat = (Math.round(parseFloat(this.timestamp)) + "").length === 10;
|
4 | 4 |
|
|
209 | 209 | }]
|
210 | 210 | });
|
211 | 211 |
|
212 |
| - $(document).ready(function() { |
213 |
| - app.logger = logger; |
| 212 | + app.logger = logger; |
214 | 213 |
|
215 |
| - app.route('/manage/logger', 'logger', function() { |
216 |
| - var params = {}; |
217 |
| - this.logger.params = params; |
218 |
| - this.renderWhenReady(this.logger); |
219 |
| - }); |
220 |
| - |
221 |
| - app.addSubMenu("management", { code: "logger", permission: "logger", url: "#/manage/logger", text: "logger.title", priority: 50 }); |
222 |
| - if (app.configurationsView) { |
223 |
| - app.configurationsView.registerLabel("logger.state", "logger.state"); |
224 |
| - app.configurationsView.registerInput("logger.state", { |
225 |
| - input: "el-select", |
226 |
| - attrs: {}, |
227 |
| - list: [ |
228 |
| - { value: 'on', label: CV.i18n("logger.state-on") }, |
229 |
| - { value: 'off', label: CV.i18n("logger.state-off") }, |
230 |
| - { value: 'automatic', label: CV.i18n("logger.state-automatic") } |
231 |
| - ] |
232 |
| - }); |
233 |
| - app.configurationsView.registerLabel("logger.limit", "logger.limit"); |
234 |
| - } |
| 214 | + app.route('/manage/logger', 'logger', function() { |
| 215 | + var params = {}; |
| 216 | + this.logger.params = params; |
| 217 | + this.renderWhenReady(this.logger); |
235 | 218 | });
|
| 219 | + |
| 220 | + app.addSubMenu("management", { code: "logger", permission: "logger", url: "#/manage/logger", text: "logger.title", priority: 50 }); |
| 221 | + if (app.configurationsView) { |
| 222 | + app.configurationsView.registerLabel("logger.state", "logger.state"); |
| 223 | + app.configurationsView.registerInput("logger.state", { |
| 224 | + input: "el-select", |
| 225 | + attrs: {}, |
| 226 | + list: [ |
| 227 | + { value: 'on', label: CV.i18n("logger.state-on") }, |
| 228 | + { value: 'off', label: CV.i18n("logger.state-off") }, |
| 229 | + { value: 'automatic', label: CV.i18n("logger.state-automatic") } |
| 230 | + ] |
| 231 | + }); |
| 232 | + app.configurationsView.registerLabel("logger.limit", "logger.limit"); |
| 233 | + } |
236 | 234 | })();
|
0 commit comments