From 4d55b911bd252c90d1d0ec4053d8502154192676 Mon Sep 17 00:00:00 2001 From: ninioe Date: Sun, 17 Jul 2016 09:54:15 +0300 Subject: Added AlertEventHandler & Mute button for all notifications --- debug.xml | 1 + src/org/traccar/BasePipelineFactory.java | 13 +++++-- src/org/traccar/events/AlertEventHandler.java | 46 ++++++++++++++++++++++ src/org/traccar/model/Event.java | 5 +++ src/org/traccar/model/Position.java | 1 - src/org/traccar/protocol/H02ProtocolDecoder.java | 12 +++--- tools/test-generator.py | 4 +- web/app/AttributeFormatter.js | 29 ++------------ web/app/controller/Root.js | 16 +++++++- web/app/view/Report.js | 5 --- web/app/view/StateController.js | 49 ------------------------ web/l10n/ar.json | 4 ++ web/l10n/bg.json | 4 ++ web/l10n/cs.json | 4 ++ web/l10n/da.json | 4 ++ web/l10n/de.json | 4 ++ web/l10n/el.json | 4 ++ web/l10n/en.json | 4 ++ web/l10n/es.json | 4 ++ web/l10n/fa.json | 4 ++ web/l10n/fi.json | 4 ++ web/l10n/fr.json | 4 ++ web/l10n/he.json | 4 ++ web/l10n/hu.json | 4 ++ web/l10n/id.json | 4 ++ web/l10n/it.json | 4 ++ web/l10n/ka.json | 4 ++ web/l10n/lo.json | 4 ++ web/l10n/lt.json | 4 ++ web/l10n/ml.json | 4 ++ web/l10n/ms.json | 4 ++ web/l10n/nb.json | 4 ++ web/l10n/ne.json | 4 ++ web/l10n/nl.json | 4 ++ web/l10n/nn.json | 4 ++ web/l10n/pl.json | 4 ++ web/l10n/pt.json | 4 ++ web/l10n/pt_BR.json | 4 ++ web/l10n/ro.json | 4 ++ web/l10n/ru.json | 4 ++ web/l10n/si.json | 4 ++ web/l10n/sk.json | 4 ++ web/l10n/sl.json | 4 ++ web/l10n/sr.json | 4 ++ web/l10n/ta.json | 4 ++ web/l10n/th.json | 4 ++ web/l10n/tr.json | 4 ++ web/l10n/uk.json | 4 ++ web/l10n/vi.json | 4 ++ web/l10n/zh.json | 4 ++ 50 files changed, 244 insertions(+), 93 deletions(-) create mode 100644 src/org/traccar/events/AlertEventHandler.java diff --git a/debug.xml b/debug.xml index 5c6a59f27..cf310fd04 100644 --- a/debug.xml +++ b/debug.xml @@ -47,6 +47,7 @@ 90 true true + true