From 6f794a2c96951cdd8d00ed01bf6bd47b2a74f2f3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 29 Apr 2017 16:18:45 +1200 Subject: Show additional statistics info --- web/app/model/Statistics.js | 14 +++++++++++++- web/app/view/Statistics.js | 14 +++++++++++++- web/l10n/en.json | 2 ++ 3 files changed, 28 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/app/model/Statistics.js b/web/app/model/Statistics.js index cc7ffc5..95280ac 100644 --- a/web/app/model/Statistics.js +++ b/web/app/model/Statistics.js @@ -1,5 +1,5 @@ /* - * Copyright 2016 Anton Tananaev (anton@traccar.org) + * Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +41,18 @@ Ext.define('Traccar.model.Statistics', { }, { name: 'messagesStored', type: 'int' + }, { + name: 'mailSent', + type: 'int' + }, { + name: 'smsSent', + type: 'int' + }, { + name: 'geocoderRequests', + type: 'int' + }, { + name: 'geolocationRequests', + type: 'int' }, { name: 'attributes' }] diff --git a/web/app/view/Statistics.js b/web/app/view/Statistics.js index 4322525..d5176a3 100644 --- a/web/app/view/Statistics.js +++ b/web/app/view/Statistics.js @@ -1,5 +1,5 @@ /* - * Copyright 2016 Anton Tananaev (anton@traccar.org) + * Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,6 +73,18 @@ Ext.define('Traccar.view.Statistics', { }, { text: Strings.statisticsMessagesStored, dataIndex: 'messagesStored' + }, { + text: Strings.notificationMail, + dataIndex: 'mailSent' + }, { + text: Strings.notificationSms, + dataIndex: 'smsSent' + }, { + text: Strings.statisticsGeocoder, + dataIndex: 'geocoderRequests' + }, { + text: Strings.statisticsGeolocation, + dataIndex: 'geolocationRequests' }] } }); diff --git a/web/l10n/en.json b/web/l10n/en.json index 3520507..fcd0e84 100644 --- a/web/l10n/en.json +++ b/web/l10n/en.json @@ -276,6 +276,8 @@ "statisticsRequests": "Requests", "statisticsMessagesReceived": "Messages Received", "statisticsMessagesStored": "Messages Stored", + "statisticsGeocoder": "Geocoder Requests", + "statisticsGeolocation": "Geolocation Requests", "categoryArrow": "Arrow", "categoryDefault": "Default", "categoryCar": "Car", -- cgit v1.2.3