From e165b86817ba09824d488e16d41a041761aa9537 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 22 Dec 2016 14:47:45 +0500 Subject: Add "Animal" device category --- web/app/store/DeviceImages.js | 7 +++++++ web/images/animal.svg | 48 +++++++++++++++++++++++++++++++++++++++++++ web/l10n/en.json | 3 ++- web/load.js | 1 + 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 web/images/animal.svg (limited to 'web') diff --git a/web/app/store/DeviceImages.js b/web/app/store/DeviceImages.js index 4a89f4c..c1a8201 100644 --- a/web/app/store/DeviceImages.js +++ b/web/app/store/DeviceImages.js @@ -89,5 +89,12 @@ Ext.define('Traccar.store.DeviceImages', { fillId: 'background', rotateId: 'background', scaleId: 'layer1' + }, { + key: 'animal', + name: Strings.categoryAnimal, + svg: document.getElementById('animalSvg').contentDocument, + fillId: 'background', + rotateId: 'background', + scaleId: 'layer1' }] }); diff --git a/web/images/animal.svg b/web/images/animal.svg new file mode 100644 index 0000000..39b9042 --- /dev/null +++ b/web/images/animal.svg @@ -0,0 +1,48 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/web/l10n/en.json b/web/l10n/en.json index 3c7a965..109482b 100644 --- a/web/l10n/en.json +++ b/web/l10n/en.json @@ -213,5 +213,6 @@ "categoryPlane": "Plane", "categoryMotorcycle": "Motorcycle", "categoryBicycle": "Bicycle", - "categoryPerson": "Person" + "categoryPerson": "Person", + "categoryAnimal": "Animal" } \ No newline at end of file diff --git a/web/load.js b/web/load.js index 4dedd77..7aee735 100644 --- a/web/load.js +++ b/web/load.js @@ -144,5 +144,6 @@ addSvgFile('images/motorcycle.svg', 'motorcycleSvg'); addSvgFile('images/bicycle.svg', 'bicycleSvg'); addSvgFile('images/person.svg', 'personSvg'); + addSvgFile('images/animal.svg', 'animalSvg'); })(); -- cgit v1.2.3