From 185a6e4b3518ea7cebac33430751507b1bb94994 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 10 Nov 2016 12:08:25 +0500 Subject: - Implement category selector for DeviceDialog - Fix jscs and jshint issues --- web/app/Application.js | 1 - web/app/DeviceImages.js | 43 +++++++++++---------- web/app/Style.js | 2 +- web/app/store/DeviceImages.js | 64 ++++++++++++++++---------------- web/app/view/DeviceDialog.js | 8 ++++ web/app/view/MapController.js | 12 +++--- web/app/view/ReportController.js | 2 +- web/images/arrow.svg | 1 + web/images/bicycle.svg | 70 +++++++++++------------------------ web/images/bus.svg | 80 +++++++++++----------------------------- web/images/car.svg | 70 ++++++++++------------------------- web/images/default.svg | 69 ++++++++++++---------------------- web/images/motorcycle.svg | 70 +++++++++++------------------------ web/images/person.svg | 69 +++++++++++----------------------- web/images/plane.svg | 70 +++++++++++------------------------ web/images/route.svg | 1 - web/images/ship.svg | 70 +++++++++++------------------------ web/images/truck.svg | 76 +++++++++++--------------------------- web/l10n/en.json | 1 + web/load.js | 30 +++++++-------- 20 files changed, 283 insertions(+), 526 deletions(-) create mode 100644 web/images/arrow.svg delete mode 100644 web/images/route.svg diff --git a/web/app/Application.js b/web/app/Application.js index a92d148b..702a75a9 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -127,7 +127,6 @@ Ext.define('Traccar.Application', { }, showError: function (response) { - var data; if (Ext.isString(response)) { Ext.Msg.alert(Strings.errorTitle, response); } else if (response.responseText) { diff --git a/web/app/DeviceImages.js b/web/app/DeviceImages.js index 87f2ca87..f96a3b06 100644 --- a/web/app/DeviceImages.js +++ b/web/app/DeviceImages.js @@ -18,24 +18,21 @@ Ext.define('Traccar.DeviceImages', { singleton: true, - - getImageIcon: function(color, zoom, angle, category) { - var image, device, svg, width, height, rotateTransform, scaleTransform, transform, fill; - // Get right image or fallback to default arrow + + getImageSvg: function (color, zoom, angle, category) { + var i, device, svg, width, height, rotateTransform, scaleTransform, fill; + if (category) { - device = Ext.getStore('DeviceImages').findRecord('key', category); + device = Ext.getStore('DeviceImages').findRecord('key', category, 0, false, false, true); } if (device === undefined || device === null) { - device = Ext.getStore('DeviceImages').findRecord('key', 'default'); + device = Ext.getStore('DeviceImages').findRecord('key', 'default', 0, false, false, true); } - - // Duplicate svg object to not brake origin svg = Ext.clone(device.get('svg')); - // Get original dimensions width = parseFloat(svg.documentElement.getAttribute('width')); height = parseFloat(svg.documentElement.getAttribute('height')); - // Colorize + fill = device.get('fillId'); if (!Ext.isArray(fill)) { fill = [fill]; @@ -43,11 +40,10 @@ Ext.define('Traccar.DeviceImages', { for (i = 0; i < fill.length; i++) { svg.getElementById(fill[i]).style.fill = color; } - // Prepare rotate transformation + rotateTransform = 'rotate(' + angle + ' ' + (width / 2) + ' ' + (height / 2) + ')'; svg.getElementById(device.get('rotateId')).setAttribute('transform', rotateTransform); - // Adjust size and prepare scale transformation width *= Traccar.Style.mapScaleNormal; height *= Traccar.Style.mapScaleNormal; if (zoom) { @@ -63,23 +59,30 @@ Ext.define('Traccar.DeviceImages', { } else { svg.getElementById(device.get('scaleId')).setAttribute('transform', scaleTransform + ' ' + rotateTransform); } - //transform = scaleTransform + ' ' + rotateTransform; - - // Set dimension attributes svg.documentElement.setAttribute('width', width); svg.documentElement.setAttribute('height', height); svg.documentElement.setAttribute('viewBox', '0 0 ' + width + ' ' + height); - + + return svg; + }, + + getImageIcon: function (color, zoom, angle, category) { + var image, svg, width, height; + + svg = this.getImageSvg(color, zoom, angle, category); + width = parseFloat(svg.documentElement.getAttribute('width')); + height = parseFloat(svg.documentElement.getAttribute('height')); + image = new ol.style.Icon({ - imgSize: [width, height], // Workaround for IE + imgSize: [width, height], src: 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(new XMLSerializer().serializeToString(svg.documentElement)) }); image.fill = color; image.zoom = zoom; image.angle = angle; image.category = category; - + return image; - } -}); \ No newline at end of file + } +}); diff --git a/web/app/Style.js b/web/app/Style.js index b19584f0..a7fe1056 100644 --- a/web/app/Style.js +++ b/web/app/Style.js @@ -57,7 +57,7 @@ Ext.define('Traccar.Style', { mapColorOnline: 'rgba(77, 250, 144, 1.0)', mapColorUnknown: 'rgba(250, 190, 77, 1.0)', - mapColorOffline: 'rgba(255, 84, 104, 1.0)', + mapColorOffline: 'rgba(255, 162, 173, 1.0)', mapScaleNormal: 1, mapScaleSelected: 1.5, diff --git a/web/app/store/DeviceImages.js b/web/app/store/DeviceImages.js index 64a78556..efe8606a 100644 --- a/web/app/store/DeviceImages.js +++ b/web/app/store/DeviceImages.js @@ -17,12 +17,12 @@ */ Ext.define('Traccar.store.DeviceImages', { extend: 'Ext.data.Store', - fields: ['key', 'name', 'svg', 'fillId', 'rotateId', 'scaleId', 'scale'], + fields: ['key', 'name', 'svg', 'fillId', 'rotateId', 'scaleId'], data: [{ - key: 'route', - name: Strings.categoryRoute, - svg: document.getElementById('routeSvg').contentDocument, + key: 'arrow', + name: Strings.categoryArrow, + svg: document.getElementById('arrowSvg').contentDocument, fillId: 'arrow', rotateId: 'arrow', scaleId: 'arrow' @@ -30,64 +30,64 @@ Ext.define('Traccar.store.DeviceImages', { key: 'default', name: Strings.categoryDefault, svg: document.getElementById('defaultSvg').contentDocument, - fillId: ['path4148', 'path4149'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'car', name: Strings.categoryCar, svg: document.getElementById('carSvg').contentDocument, - fillId: ['path4148', 'path4157'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'bus', name: Strings.categoryBus, svg: document.getElementById('busSvg').contentDocument, - fillId: ['path4148', 'path4200'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'truck', name: Strings.categoryTruck, svg: document.getElementById('truckSvg').contentDocument, - fillId: ['path4148', 'path4336'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'ship', name: Strings.categoryShip, svg: document.getElementById('shipSvg').contentDocument, - fillId: ['path4148', 'path4177'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'plane', name: Strings.categoryPlane, svg: document.getElementById('planeSvg').contentDocument, - fillId: ['path4148', 'path4203'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'motorcycle', name: Strings.categoryMotorcycle, svg: document.getElementById('motorcycleSvg').contentDocument, - fillId: ['path4148', 'path4256'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'bicycle', name: Strings.categoryBicycle, svg: document.getElementById('bicycleSvg').contentDocument, - fillId: ['path4148', 'path4282'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }, { key: 'person', name: Strings.categoryPerson, svg: document.getElementById('personSvg').contentDocument, - fillId: ['path4148', 'path4308'], - rotateId: 'path4148', - scaleId: 'layer2' + fillId: 'path4724', + rotateId: 'path4724', + scaleId: 'layer1' }] -}); \ No newline at end of file +}); diff --git a/web/app/view/DeviceDialog.js b/web/app/view/DeviceDialog.js index dea50749..d3f964ed 100644 --- a/web/app/view/DeviceDialog.js +++ b/web/app/view/DeviceDialog.js @@ -65,6 +65,14 @@ Ext.define('Traccar.view.DeviceDialog', { queryMode: 'local', displayField: 'name', valueField: 'key', + listConfig: { + getInnerTpl: function () { + return '' + + '
' + + '{[new XMLSerializer().serializeToString(Traccar.DeviceImages.getImageSvg(' + + 'Traccar.Style.mapColorOnline, false, 0, values.key))]}
- {name}
'; + } + } }] } }); diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index a0e28671..103d62ed 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -71,7 +71,7 @@ Ext.define('Traccar.view.MapController', { this.lookupReference('showReportsButton').setVisible(Traccar.app.isMobile()); }, - showReports: function() { + showReports: function () { Traccar.app.showReports(true); }, @@ -290,7 +290,7 @@ Ext.define('Traccar.view.MapController', { color: Traccar.Style.mapTextStrokeColor, width: Traccar.Style.mapTextStrokeWidth }), - offsetY: - image.getSize()[1] / 2 - Traccar.Style.mapTextOffset, + offsetY: -image.getSize()[1] / 2 - Traccar.Style.mapTextOffset, font : Traccar.Style.mapTextFont }) }); @@ -305,7 +305,7 @@ Ext.define('Traccar.view.MapController', { if (deviceId !== undefined) { index = deviceId % Traccar.Style.mapRouteColor.length; } - return this.getMarkerStyle(false, Traccar.Style.mapRouteColor[index], angle, 'route'); + return this.getMarkerStyle(false, Traccar.Style.mapRouteColor[index], angle, 'arrow'); }, resizeMarker: function (style, zoom) { @@ -315,13 +315,13 @@ Ext.define('Traccar.view.MapController', { style.getImage().angle, style.getImage().category); text = style.getText(); - text.setOffsetY(- image.getSize()[1] / 2 - Traccar.Style.mapTextOffset); - return newStyle = new ol.style.Style({ + text.setOffsetY(-image.getSize()[1] / 2 - Traccar.Style.mapTextOffset); + return new ol.style.Style({ image: image, text: text }); }, - + rotateMarker: function (style, angle) { var newStyle = new ol.style.Style({ image: Traccar.DeviceImages.getImageIcon(style.getImage().fill, diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js index 67fcf121..50eabaea 100644 --- a/web/app/view/ReportController.js +++ b/web/app/view/ReportController.js @@ -41,7 +41,7 @@ Ext.define('Traccar.view.ReportController', { } }, - hideReports: function() { + hideReports: function () { Traccar.app.showReports(false); }, diff --git a/web/images/arrow.svg b/web/images/arrow.svg new file mode 100644 index 00000000..a85201d8 --- /dev/null +++ b/web/images/arrow.svg @@ -0,0 +1 @@ + diff --git a/web/images/bicycle.svg b/web/images/bicycle.svg index 2f0c4d95..86132ffc 100644 --- a/web/images/bicycle.svg +++ b/web/images/bicycle.svg @@ -9,18 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="bicycle.svg" - inkscape:export-filename="/home/local/RG/kas/repos/traccar/traccar-web/web/images/default.svg.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90"> + sodipodi:docname="bicycle.svg"> + id="defs4147" /> + id="metadata4150"> @@ -49,46 +46,23 @@ - - - - - - - - - + id="layer1"> + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> - + inkscape:connector-curvature="0" + id="path4140" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 17.279576,21.785713 -2.19029,0 q -0.279018,0 -0.404576,-0.24414 -0.118583,-0.244141 0.04883,-0.467355 l 1.311384,-1.750837 q -0.453404,-0.216239 -0.955636,-0.216239 -0.920759,0 -1.576451,0.655692 -0.655692,0.655692 -0.655692,1.576451 0,0.920759 0.655692,1.576451 0.655692,0.655692 1.576451,0.655692 0.802176,0 1.416015,-0.502232 0.61384,-0.509208 0.774275,-1.283483 z m -1.297433,-0.892857 1.297433,0 Q 17.154018,20.299943 16.756418,19.86049 l -0.774275,1.032366 z m 3.348214,0 2.008929,-2.678571 -3.348214,0 -0.69057,0.920759 q 0.732422,0.718471 0.878907,1.757812 l 1.150948,0 z m 7.156808,2.02288 q 0.655692,-0.655692 0.655692,-1.576451 0,-0.920759 -0.655692,-1.576451 -0.655692,-0.655692 -1.576451,-0.655692 -0.418526,0 -0.844029,0.167411 l 1.213728,1.813616 q 0.104632,0.160435 0.06976,0.341797 -0.03488,0.181361 -0.188338,0.279018 -0.104631,0.07673 -0.251116,0.07673 -0.24414,0 -0.369698,-0.202287 L 23.327293,19.76981 q -0.648716,0.662668 -0.648716,1.569476 0,0.920759 0.655692,1.576451 0.655691,0.655692 1.57645,0.655692 0.920759,0 1.576451,-0.655692 z m 0.62779,-3.780692 q 0.920759,0.913783 0.920759,2.204241 0,1.290457 -0.920759,2.211216 -0.913783,0.913784 -2.204241,0.913784 -1.290457,0 -2.211216,-0.913784 -0.913784,-0.920759 -0.913784,-2.211216 0,-0.676618 0.272043,-1.276507 0.279018,-0.606864 0.767299,-1.046317 l -0.453404,-0.683594 -2.462333,3.271485 q -0.125558,0.181361 -0.355747,0.181361 l -1.374163,0 q -0.160436,1.143974 -1.039342,1.911273 -0.878906,0.767299 -2.050781,0.767299 -1.290458,0 -2.211217,-0.913784 -0.913783,-0.920759 -0.913783,-2.211216 0,-1.290458 0.913783,-2.204241 0.920759,-0.920759 2.211217,-0.920759 0.795201,0 1.499721,0.383649 l 0.955636,-1.276506 -1.5625,0 q -0.181362,0 -0.313895,-0.132534 -0.132534,-0.132533 -0.132534,-0.313895 0,-0.181361 0.132534,-0.313895 0.132533,-0.132533 0.313895,-0.132533 l 2.678571,0 0,0.892857 3.03432,0 -0.592913,-0.892857 -1.548549,0 q -0.181362,0 -0.313896,-0.132534 -0.132533,-0.132533 -0.132533,-0.313895 0,-0.181362 0.132533,-0.313895 0.132534,-0.132534 0.313896,-0.132534 l 1.785714,0 q 0.23019,0 0.369699,0.195313 l 1.862444,2.790179 q 0.634765,-0.30692 1.339285,-0.30692 1.290458,0 2.204241,0.920759 z" /> diff --git a/web/images/bus.svg b/web/images/bus.svg index 935d7b92..6f1b7a90 100644 --- a/web/images/bus.svg +++ b/web/images/bus.svg @@ -9,15 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" sodipodi:docname="bus.svg"> + id="defs4147" /> + id="metadata4150"> @@ -46,61 +46,23 @@ - - - - - - - - - + id="layer1"> + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> - - - - - + inkscape:connector-curvature="0" + id="path4477" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 17.056362,22.866908 q 0.265067,-0.265067 0.265067,-0.634766 0,-0.369699 -0.265067,-0.62779 -0.258092,-0.265067 -0.62779,-0.265067 -0.369699,0 -0.634766,0.265067 -0.258091,0.258091 -0.258091,0.62779 0,0.369699 0.258091,0.634766 0.265067,0.258091 0.634766,0.258091 0.369698,0 0.62779,-0.258091 z m 7.142857,0 q 0.265067,-0.265067 0.265067,-0.634766 0,-0.369699 -0.265067,-0.62779 -0.258091,-0.265067 -0.62779,-0.265067 -0.369699,0 -0.634766,0.265067 -0.258091,0.258091 -0.258091,0.62779 0,0.369699 0.258091,0.634766 0.265067,0.258091 0.634766,0.258091 0.369699,0 0.62779,-0.258091 z m -0.0558,-3.397043 -0.502233,-2.678571 q -0.03488,-0.160435 -0.160435,-0.258092 -0.118582,-0.104631 -0.279018,-0.104631 l -6.40346,0 q -0.160435,0 -0.285993,0.104631 -0.118582,0.09766 -0.15346,0.258092 l -0.502232,2.678571 q -0.03488,0.209264 0.09766,0.369699 0.132534,0.160435 0.341797,0.160435 l 7.407924,0 q 0.209264,0 0.341797,-0.160435 0.132534,-0.160435 0.09766,-0.369699 z m -1.674108,-4.031808 q 0.09766,-0.09766 0.09766,-0.237165 0,-0.139509 -0.09766,-0.237165 -0.09766,-0.09766 -0.237165,-0.09766 l -4.464285,0 q -0.139509,0 -0.237166,0.09766 -0.09766,0.09766 -0.09766,0.237165 0,0.139509 0.09766,0.237165 0.09766,0.09766 0.237166,0.09766 l 4.464285,0 q 0.139509,0 0.237165,-0.09766 z m 2.887835,4.820034 0,4.206194 -0.892857,0 0,0.892857 q 0,0.369699 -0.265067,0.62779 -0.258091,0.265067 -0.62779,0.265067 -0.369699,0 -0.634766,-0.265067 -0.258091,-0.258091 -0.258091,-0.62779 l 0,-0.892857 -5.357143,0 0,0.892857 q 0,0.369699 -0.265067,0.62779 -0.258092,0.265067 -0.62779,0.265067 -0.369699,0 -0.634766,-0.265067 -0.258091,-0.258091 -0.258091,-0.62779 l 0,-0.892857 -0.892857,0 0,-4.206194 q 0,-0.78125 0.174386,-1.555525 l 0.718471,-3.166853 q 0.06278,-0.544084 0.676618,-0.955636 0.620815,-0.411551 1.604353,-0.620814 0.99051,-0.209264 2.183311,-0.209264 1.192802,0 2.17634,0.209264 0.990513,0.209263 1.604352,0.620814 0.620815,0.411552 0.683594,0.955636 l 0.732422,3.166853 q 0.160435,0.711496 0.160435,1.555525 z" /> diff --git a/web/images/car.svg b/web/images/car.svg index 893078fa..d712374f 100644 --- a/web/images/car.svg +++ b/web/images/car.svg @@ -9,15 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" sodipodi:docname="car.svg"> + id="defs4147" /> + id="metadata4150"> @@ -46,53 +46,23 @@ - - - - - - - - - + id="layer1"> + sodipodi:nodetypes="ssscccs" /> - - - + inkscape:connector-curvature="0" + id="path4409" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 15.877511,21.904297 q 0.327846,-0.327846 0.327846,-0.788225 0,-0.46038 -0.327846,-0.788226 Q 15.549665,20 15.089285,20 q -0.460379,0 -0.788225,0.327846 -0.327846,0.327846 -0.327846,0.788226 0,0.460379 0.327846,0.788225 0.327846,0.327846 0.788225,0.327846 0.46038,0 0.788226,-0.327846 z m 0.578962,-3.020368 7.087053,0 -0.620814,-2.490235 q -0.01395,-0.0558 -0.09766,-0.118582 -0.0837,-0.06976 -0.146484,-0.06976 l -5.357143,0 q -0.06278,0 -0.146484,0.06976 -0.08371,0.06278 -0.09766,0.118582 l -0.620815,2.490235 z m 9.242466,3.020368 q 0.327846,-0.327846 0.327846,-0.788225 0,-0.46038 -0.327846,-0.788226 Q 25.371093,20 24.910714,20 q -0.46038,0 -0.788226,0.327846 -0.327846,0.327846 -0.327846,0.788226 0,0.460379 0.327846,0.788225 0.327846,0.327846 0.788226,0.327846 0.460379,0 0.788225,-0.327846 z m 1.443918,-1.457868 0,2.678571 q 0,0.09766 -0.06278,0.160436 -0.06278,0.06278 -0.160436,0.06278 l -0.669642,0 0,0.892857 q 0,0.558035 -0.390625,0.94866 -0.390625,0.390625 -0.948661,0.390625 -0.558036,0 -0.948661,-0.390625 -0.390625,-0.390625 -0.390625,-0.94866 l 0,-0.892857 -7.142857,0 0,0.892857 q 0,0.558035 -0.390625,0.94866 -0.390625,0.390625 -0.948661,0.390625 -0.558035,0 -0.94866,-0.390625 Q 13.75,24.799107 13.75,24.241072 l 0,-0.892857 -0.669643,0 q -0.09766,0 -0.160436,-0.06278 -0.06278,-0.06278 -0.06278,-0.160436 l 0,-2.678571 q 0,-0.648717 0.453404,-1.102121 0.46038,-0.460379 1.109096,-0.460379 l 0.195313,0 0.732422,-2.922712 q 0.160435,-0.655692 0.725446,-1.095145 0.565011,-0.446429 1.248605,-0.446429 l 5.357143,0 q 0.683594,0 1.248605,0.446429 0.565011,0.439453 0.725446,1.095145 l 0.732422,2.922712 0.195313,0 q 0.648716,0 1.10212,0.460379 0.46038,0.453404 0.46038,1.102121 z" /> diff --git a/web/images/default.svg b/web/images/default.svg index 5af1abc7..983e487c 100644 --- a/web/images/default.svg +++ b/web/images/default.svg @@ -9,15 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="default.svg" + sodipodi:docname="default.svg"> + id="defs4147" /> + id="metadata4150"> @@ -46,47 +46,24 @@ - - - - - - - - - + id="layer1"> - + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> + style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.81362325;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="path4250" + cx="20" + cy="20" + r="5.2625632" /> diff --git a/web/images/motorcycle.svg b/web/images/motorcycle.svg index d3b6ee76..5e46b4d3 100644 --- a/web/images/motorcycle.svg +++ b/web/images/motorcycle.svg @@ -9,18 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="motorcycle.svg" - inkscape:export-filename="/home/local/RG/kas/repos/traccar/traccar-web/web/images/default.svg.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90"> + sodipodi:docname="motorcycle.svg"> + id="defs4147" /> + id="metadata4150"> @@ -49,46 +46,23 @@ - - - - - - - - - + id="layer1"> + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> - + inkscape:connector-curvature="0" + id="path4140" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 28.014333,20.976253 q 0.08371,0.718471 -0.15346,1.388114 -0.237165,0.662667 -0.690569,1.136997 -0.453404,0.474331 -1.109096,0.739398 -0.648716,0.265067 -1.367187,0.216238 -1.123047,-0.07673 -1.953125,-0.87193 -0.823103,-0.795201 -0.93471,-1.911273 -0.08371,-0.774274 0.188337,-1.464843 0.279018,-0.697545 0.830078,-1.192802 l -0.495257,-0.746373 q -0.669643,0.558036 -1.053292,1.353237 -0.38365,0.795201 -0.38365,1.702009 0,0.188337 -0.132533,0.327846 -0.125558,0.132533 -0.313895,0.132533 l -1.785714,0 -0.481306,0 q -0.160436,1.143974 -1.039342,1.911273 -0.878906,0.767299 -2.050781,0.767299 -1.290458,0 -2.211217,-0.913784 -0.913783,-0.920759 -0.913783,-2.211216 0,-1.290458 0.913783,-2.204241 0.920759,-0.920759 2.211217,-0.920759 0.530134,0 1.060268,0.188337 l 0.167411,-0.313895 q -0.85798,-0.767299 -2.120536,-0.767299 l -0.446429,0 q -0.181361,0 -0.313895,-0.132534 -0.132533,-0.132533 -0.132533,-0.313895 0,-0.181361 0.132533,-0.313895 0.132534,-0.132533 0.313895,-0.132533 l 0.892857,0 q 0.544085,0 1.01144,0.09766 0.467355,0.09068 0.809152,0.265067 0.348772,0.174386 0.502232,0.279018 0.15346,0.09766 0.355748,0.251116 l 3.571428,0 0.802177,0 -0.592913,-0.892857 -1.548549,0 q -0.209264,0 -0.341797,-0.15346 -0.132534,-0.160435 -0.09766,-0.369699 0.0279,-0.160435 0.160435,-0.265067 0.132533,-0.104632 0.299944,-0.104632 l 1.764788,0 q 0.23019,0 0.369699,0.195313 l 0.488281,0.732422 0.795201,-0.795201 q 0.132533,-0.132534 0.32087,-0.132534 l 0.70452,0 q 0.181362,0 0.313895,0.132534 0.132534,0.132533 0.132534,0.313895 l 0,0.892857 q 0,0.181362 -0.132534,0.313895 -0.132533,0.132534 -0.313895,0.132534 l -1.248605,0 0.802177,1.199777 q 0.913783,-0.439454 1.918248,-0.251117 0.997488,0.181362 1.702009,0.941686 0.70452,0.753348 0.823102,1.764788 z m -12.925502,2.594866 q 0.802176,0 1.416016,-0.502232 0.613839,-0.509208 0.774274,-1.283483 l -2.19029,0 q -0.244141,0 -0.38365,-0.216238 -0.125558,-0.223215 -0.007,-0.439453 l 1.025391,-1.932199 q -0.327846,-0.09068 -0.634766,-0.09068 -0.920759,0 -1.576451,0.655692 -0.655692,0.655692 -0.655692,1.576451 0,0.920759 0.655692,1.576451 0.655692,0.655692 1.576451,0.655692 z m 8.244978,-0.655692 q 0.655692,0.655692 1.576451,0.655692 0.920758,0 1.57645,-0.655692 0.655692,-0.655692 0.655692,-1.576451 0,-0.920759 -0.655692,-1.576451 -0.655692,-0.655692 -1.57645,-0.655692 -0.418527,0 -0.844029,0.167411 l 1.213727,1.813616 q 0.104632,0.160435 0.06976,0.341797 -0.03488,0.181361 -0.188337,0.279018 -0.104632,0.07673 -0.251116,0.07673 -0.244141,0 -0.369699,-0.202287 L 23.326833,19.7695 q -0.648716,0.662668 -0.648716,1.569476 0,0.920759 0.655692,1.576451 z" /> diff --git a/web/images/person.svg b/web/images/person.svg index 306b3033..71546ecb 100644 --- a/web/images/person.svg +++ b/web/images/person.svg @@ -9,18 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="person.svg" - inkscape:export-filename="/home/local/RG/kas/repos/traccar/traccar-web/web/images/default.svg.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90"> + sodipodi:docname="person.svg"> + id="defs4147" /> + id="metadata4150"> @@ -49,45 +46,23 @@ - - - - - - - - - + id="layer1"> + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> - + inkscape:connector-curvature="0" + id="path4140" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 24.464286,23.508649 q 0,0.760323 -0.439454,1.304408 -0.432477,0.544085 -1.046317,0.544085 l -5.957031,0 q -0.613839,0 -1.053292,-0.544085 -0.432478,-0.544085 -0.432478,-1.304408 0,-0.592913 0.0558,-1.116072 0.06278,-0.530134 0.223214,-1.060268 0.160435,-0.537109 0.404576,-0.913783 0.251116,-0.38365 0.655692,-0.620815 0.411551,-0.24414 0.941685,-0.24414 0.913784,0.892857 2.183315,0.892857 1.269531,0 2.183315,-0.892857 0.530134,0 0.934709,0.24414 0.411552,0.237165 0.655692,0.620815 0.251116,0.376674 0.411552,0.913783 0.160435,0.530134 0.216239,1.060268 0.06278,0.523159 0.06278,1.116072 z m -2.57394,-8.077567 q 0.788225,0.78125 0.788225,1.890346 0,1.109096 -0.788225,1.897321 -0.78125,0.78125 -1.890346,0.78125 -1.109096,0 -1.897322,-0.78125 -0.78125,-0.788225 -0.78125,-1.897321 0,-1.109096 0.78125,-1.890346 Q 18.890904,14.642856 20,14.642856 q 1.109096,0 1.890346,0.788226 z" /> diff --git a/web/images/plane.svg b/web/images/plane.svg index b3b749ca..5c81e9b4 100644 --- a/web/images/plane.svg +++ b/web/images/plane.svg @@ -9,18 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="plane.svg" - inkscape:export-filename="/home/local/RG/kas/repos/traccar/traccar-web/web/images/default.svg.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90"> + sodipodi:docname="plane.svg"> + id="defs4147" /> + id="metadata4150"> @@ -49,46 +46,23 @@ - - - - - - - - - + id="layer1"> + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> - + inkscape:connector-curvature="0" + id="path4140" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 24.710579,15.289739 q 0.30692,0.362723 0.08371,1.032366 -0.223214,0.669642 -0.753348,1.199776 l -1.123047,1.123047 1.116072,4.854911 q 0.03488,0.132533 -0.08371,0.23019 l -0.892857,0.669643 q -0.04883,0.04185 -0.132533,0.04185 -0.0279,0 -0.04883,-0.007 -0.104632,-0.02093 -0.146485,-0.111607 l -1.946149,-3.543527 -1.806641,1.80664 0.369699,1.353237 q 0.03488,0.118583 -0.0558,0.216239 l -0.669643,0.669643 q -0.06278,0.06278 -0.160435,0.06278 l -0.01395,0 Q 18.342,24.873977 18.279221,24.797247 L 16.960858,23.03946 15.203046,21.7211 q -0.07673,-0.04883 -0.09068,-0.160435 -0.007,-0.09068 0.06278,-0.174386 l 0.669643,-0.676619 q 0.06278,-0.06278 0.160435,-0.06278 0.04185,0 0.0558,0.007 l 1.353237,0.369698 1.806641,-1.80664 -3.543527,-1.94615 q -0.09766,-0.0558 -0.118583,-0.16741 -0.01395,-0.111608 0.06278,-0.188337 L 16.51443,16.02216 q 0.09766,-0.09068 0.209263,-0.0558 l 4.638672,1.109096 1.116071,-1.116072 q 0.530134,-0.530134 1.199777,-0.753348 0.669643,-0.223214 1.032366,0.08371 z" /> diff --git a/web/images/route.svg b/web/images/route.svg deleted file mode 100644 index a85201d8..00000000 --- a/web/images/route.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/web/images/ship.svg b/web/images/ship.svg index 5e242997..c82dc6c7 100644 --- a/web/images/ship.svg +++ b/web/images/ship.svg @@ -9,18 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="ship.svg" - inkscape:export-filename="/home/local/RG/kas/repos/traccar/traccar-web/web/images/default.svg.png" - inkscape:export-xdpi="90" - inkscape:export-ydpi="90"> + sodipodi:docname="ship.svg"> + id="defs4147" /> + id="metadata4150"> image/svg+xml - - + - - - - - - - - + id="layer1"> - + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> + id="path4511" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 25.489676,24.596818 q 0.132533,-0.132533 0.313895,-0.132533 0.181362,0 0.313895,0.132533 l 0.892857,0.892858 -0.62779,0.62779 -0.578962,-0.578962 -0.578962,0.578962 q -0.125558,0.132533 -0.313895,0.132533 -0.188337,0 -0.313895,-0.132533 l -0.578962,-0.578962 -0.578962,0.578962 q -0.132534,0.132533 -0.313895,0.132533 -0.181362,0 -0.313895,-0.132533 l -0.578963,-0.578962 -0.578962,0.578962 q -0.132533,0.132533 -0.313895,0.132533 -0.181361,0 -0.313895,-0.132533 l -0.578962,-0.578962 -0.578962,0.578962 q -0.132533,0.132533 -0.313895,0.132533 -0.181362,0 -0.313895,-0.132533 l -0.578962,-0.578962 -0.578962,0.578962 q -0.132534,0.132533 -0.313895,0.132533 -0.181362,0 -0.313895,-0.132533 L 16.875,25.538504 16.296038,26.117466 q -0.132534,0.132533 -0.313896,0.132533 -0.181361,0 -0.313895,-0.132533 l -0.578962,-0.578962 -0.578962,0.578962 q -0.132533,0.132533 -0.313895,0.132533 -0.181361,0 -0.313895,-0.132533 l -0.892857,-0.892857 0.62779,-0.627791 0.578962,0.578962 0.578962,-0.578962 q 0.132534,-0.132533 0.313895,-0.132533 0.181362,0 0.313895,0.132533 l 0.578962,0.578962 0.578963,-0.578962 q 0.132533,-0.132533 0.313895,-0.132533 0.181361,0 0.313895,0.132533 l 0.578962,0.578962 0.578962,-0.578962 q 0.132533,-0.132533 0.313895,-0.132533 0.181361,0 0.313895,0.132533 l 0.578962,0.578962 0.578962,-0.578962 q 0.132534,-0.132533 0.313895,-0.132533 0.181362,0 0.313895,0.132533 l 0.578962,0.578962 0.578962,-0.578962 q 0.132534,-0.132533 0.313895,-0.132533 0.181362,0 0.313896,0.132533 L 23.125,25.17578 23.703962,24.596818 q 0.132533,-0.132533 0.313895,-0.132533 0.181361,0 0.313895,0.132533 l 0.578962,0.578962 0.578962,-0.578962 z M 14.510323,24.331751 q -0.132533,0.132534 -0.313895,0.132534 -0.181361,0 -0.313895,-0.132534 l -0.892857,-0.892857 0.62779,-0.62779 0.578962,0.571987 0.578962,-0.571987 q 0.132534,-0.132533 0.313895,-0.132533 0.181362,0 0.313895,0.132533 l 0.578962,0.571987 0.446429,-0.446429 0,-2.043806 -1.464844,-2.19029 q -0.118582,-0.181361 -0.04883,-0.390625 0.06976,-0.216239 0.279018,-0.285993 l 1.234654,-0.404576 0,-2.085659 0.892857,0 0,-0.892857 1.785714,0 0,-0.892857 1.785715,0 0,0.892857 1.785714,0 0,0.892857 0.892857,0 0,2.085659 1.234654,0.404576 q 0.209264,0.06975 0.279018,0.285993 0.06976,0.209264 -0.04883,0.390625 l -1.464844,2.19029 0,2.043806 0.132534,-0.125558 q 0.132533,-0.132533 0.313895,-0.132533 0.181361,0 0.313895,0.132533 l 0.578962,0.571987 0.578962,-0.571987 q 0.132533,-0.132533 0.313895,-0.132533 0.181362,0 0.313895,0.132533 l 0.892857,0.892857 -0.62779,0.62779 -0.578962,-0.578962 -0.578962,0.578962 q -0.125558,0.132534 -0.313895,0.132534 -0.188337,0 -0.313895,-0.132534 l -0.578962,-0.578962 -0.578962,0.578962 q -0.132534,0.132534 -0.313895,0.132534 -0.181362,0 -0.313895,-0.132534 l -0.578963,-0.578962 -0.578962,0.578962 q -0.132533,0.132534 -0.313895,0.132534 -0.181361,0 -0.313895,-0.132534 l -0.578962,-0.578962 -0.578962,0.578962 q -0.132533,0.132534 -0.313895,0.132534 -0.181362,0 -0.313895,-0.132534 l -0.578962,-0.578962 -0.578962,0.578962 q -0.132534,0.132534 -0.313895,0.132534 -0.181362,0 -0.313895,-0.132534 L 16.875,23.752789 16.296038,24.331751 q -0.132534,0.132534 -0.313896,0.132534 -0.181361,0 -0.313895,-0.132534 l -0.578962,-0.578962 -0.578962,0.578962 z m 2.811105,-7.90318 0,0.892857 L 20,16.428571 l 2.678571,0.892857 0,-0.892857 -0.892857,0 0,-0.892858 -3.571429,0 0,0.892858 -0.892857,0 z" /> diff --git a/web/images/truck.svg b/web/images/truck.svg index e0026c3b..0f82a3e8 100644 --- a/web/images/truck.svg +++ b/web/images/truck.svg @@ -9,15 +9,15 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="50" - height="50" - viewBox="0 0 50.000001 50.000001" - id="svg2" + width="40" + height="40" + viewBox="0 0 40 40" + id="svg4145" version="1.1" inkscape:version="0.91 r13725" sodipodi:docname="truck.svg"> + id="defs4147" /> + id="metadata4150"> @@ -46,57 +46,23 @@ - - - - - - - - - + id="layer1"> + style="fill:#008000;fill-opacity:1;stroke:#000000;stroke-width:0.94994837;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 33.525025,20 c 0,7.469665 -6.05536,13.525025 -13.525025,13.525025 -7.469665,0 -13.5250252,-6.05536 -13.5250254,-13.525025 -2e-7,-5.309252 3.0591749,-9.903995 7.5109944,-12.117699 L 20,1.4749746 26.049865,7.9001866 C 30.482258,10.120688 33.525025,14.705006 33.525025,20 Z" + id="path4724" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssscccs" /> - - - - + inkscape:connector-curvature="0" + id="path4443" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:FontAwesome;-inkscape-font-specification:'FontAwesome, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 17.726005,23.75279 q 0.265067,-0.265067 0.265067,-0.627791 0,-0.362723 -0.265067,-0.62779 -0.265067,-0.265067 -0.627791,-0.265067 -0.362723,0 -0.62779,0.265067 -0.265067,0.265067 -0.265067,0.62779 0,0.362724 0.265067,0.627791 0.265067,0.265067 0.62779,0.265067 0.362724,0 0.627791,-0.265067 z m -2.413505,-4.199219 2.678572,0 0,-1.785714 -1.102121,0 q -0.09068,0 -0.15346,0.06278 l -1.360212,1.360212 q -0.06278,0.06278 -0.06278,0.153459 l 0,0.209264 z m 8.663505,4.199219 q 0.265067,-0.265067 0.265067,-0.627791 0,-0.362723 -0.265067,-0.62779 -0.265067,-0.265067 -0.627791,-0.265067 -0.362723,0 -0.62779,0.265067 -0.265067,0.265067 -0.265067,0.62779 0,0.362724 0.265067,0.627791 0.265067,0.265067 0.62779,0.265067 0.362724,0 0.627791,-0.265067 z m 2.050781,-8.217076 0,7.142857 q 0,0.104632 -0.0279,0.188337 -0.0279,0.07673 -0.09766,0.125558 -0.06278,0.04883 -0.111607,0.0837 -0.04883,0.0279 -0.167411,0.04185 -0.111607,0.007 -0.15346,0.01395 -0.04185,0 -0.181361,0 -0.132534,-0.007 -0.15346,-0.007 0,0.739398 -0.523159,1.262556 -0.523158,0.523159 -1.262556,0.523159 -0.739397,0 -1.262555,-0.523159 Q 21.5625,23.864397 21.5625,23.124999 l -2.678571,0 q 0,0.739398 -0.523159,1.262556 -0.523158,0.523159 -1.262556,0.523159 -0.739397,0 -1.262555,-0.523159 Q 15.3125,23.864397 15.3125,23.124999 l -0.446428,0 q -0.02093,0 -0.160436,0.007 -0.132533,0 -0.174386,0 -0.04185,-0.007 -0.160435,-0.01395 -0.111607,-0.01395 -0.160435,-0.04185 -0.04883,-0.03488 -0.118583,-0.0837 -0.06278,-0.04883 -0.09068,-0.125558 -0.0279,-0.0837 -0.0279,-0.188337 0,-0.181362 0.132534,-0.313895 0.132533,-0.132534 0.313895,-0.132534 l 0,-2.232143 q 0,-0.0558 -0.007,-0.24414 0,-0.188337 0,-0.265067 0.007,-0.07673 0.02093,-0.237165 0.01395,-0.167411 0.04185,-0.258092 0.03488,-0.09766 0.09766,-0.216239 0.06975,-0.118582 0.160435,-0.209263 l 1.381138,-1.381138 q 0.132534,-0.132534 0.348773,-0.223215 0.223214,-0.09068 0.411551,-0.09068 l 1.116072,0 0,-1.339285 q 0,-0.181362 0.132533,-0.313895 0.132534,-0.132534 0.313895,-0.132534 l 7.142857,0 q 0.181362,0 0.313895,0.132534 0.132534,0.132533 0.132534,0.313895 z" /> diff --git a/web/l10n/en.json b/web/l10n/en.json index 9dc20adc..ee6bef81 100644 --- a/web/l10n/en.json +++ b/web/l10n/en.json @@ -187,6 +187,7 @@ "statisticsRequests": "Requests", "statisticsMessagesReceived": "Messages Received", "statisticsMessagesStored": "Messages Stored", + "categoryArrow": "Arrow", "categoryDefault": "Default", "categoryCar": "Car", "categoryBus": "Bus", diff --git a/web/load.js b/web/load.js index 6257fe0e..0d13b2c6 100644 --- a/web/load.js +++ b/web/load.js @@ -1,33 +1,34 @@ (function () { + var debugMode, touchMode, locale, localeParameter, extjsVersion, fontAwesomeVersion, olVersion; function addStyleFile(file) { var link = document.createElement('link'); link.setAttribute('rel', 'stylesheet'); link.setAttribute('type', 'text/css'); link.setAttribute('href', file); - document.head.appendChild(link) + document.head.appendChild(link); } function addScriptFile(file) { var script = document.createElement('script'); script.setAttribute('src', file); - script.async = false + script.async = false; document.head.appendChild(script); } - + function addSvgFile(file, id) { var svg = document.createElement('object'); svg.setAttribute('id', id); svg.setAttribute('data', file); svg.setAttribute('type', 'image/svg+xml'); - svg.setAttribute('style','visibility:hidden') + svg.setAttribute('style', 'visibility:hidden'); document.body.appendChild(svg); } - var debugMode = document.getElementById('loadScript').getAttribute('mode') === 'debug'; - var touchMode = 'ontouchstart' in window || navigator.maxTouchPoints; + debugMode = document.getElementById('loadScript').getAttribute('mode') === 'debug'; + touchMode = 'ontouchstart' in window || navigator.maxTouchPoints; - var locale = {}; + locale = {}; window.Locale = locale; locale.languages = { @@ -74,7 +75,7 @@ 'zh': { name: '中文', code: 'zh_CN' } }; - var localeParameter = window.location.search.match(/locale=([^&#]+)/); + localeParameter = window.location.search.match(/locale=([^&#]+)/); locale.language = localeParameter && localeParameter[1]; if (locale.language === undefined) { locale.language = window.navigator.userLanguage || window.navigator.language; @@ -85,7 +86,7 @@ locale.language = 'en'; // default } - window.addEventListener("load", function (event) { + window.addEventListener('load', function (event) { if (debugMode) { Ext.Loader.setConfig({ @@ -108,9 +109,9 @@ }); - var extjsVersion = '6.0.1'; - var fontAwesomeVersion = '4.6.3'; - var olVersion = '3.18.2'; + extjsVersion = '6.0.1'; + fontAwesomeVersion = '4.6.3'; + olVersion = '3.18.2'; if (debugMode) { addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/ext-all-debug.js'); @@ -128,10 +129,9 @@ addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol-debug.js'); addStyleFile('app.css'); - //addScriptFile('arrow.js'); - + addSvgFile('images/default.svg', 'defaultSvg'); - addSvgFile('images/route.svg', 'routeSvg'); + addSvgFile('images/arrow.svg', 'arrowSvg'); addSvgFile('images/car.svg', 'carSvg'); addSvgFile('images/bus.svg', 'busSvg'); addSvgFile('images/truck.svg', 'truckSvg'); -- cgit v1.2.3