aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-14 18:08:21 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-14 18:08:29 -0700
commit19d343c251619b87411c6de5d80fab41aee51de1 (patch)
tree3a67933f1021ee248ef34552aaf650f8d31da66f /web
parentdb406fcc787df2fa865e5c5fe333f152e533cda1 (diff)
downloadetbsa-traccar-web-19d343c251619b87411c6de5d80fab41aee51de1.tar.gz
etbsa-traccar-web-19d343c251619b87411c6de5d80fab41aee51de1.tar.bz2
etbsa-traccar-web-19d343c251619b87411c6de5d80fab41aee51de1.zip
Switch to local dependencies
Diffstat (limited to 'web')
-rw-r--r--web/load.js36
1 files changed, 11 insertions, 25 deletions
diff --git a/web/load.js b/web/load.js
index 26a651c..9e9cd8f 100644
--- a/web/load.js
+++ b/web/load.js
@@ -156,36 +156,22 @@
navigator.__defineGetter__('userAgent', function () { return __originalUserAgent.replace(/\/OPR[^)]*/g, ''); });
}
- extjsVersion = '6.2.0';
- olVersion = '6.5.0';
- olLayerSwitcherVersion = '3.8.3';
- proj4jsVersion = '2.6.0';
-
- if (debugMode) {
- addScriptFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/ext-all-debug.js');
- addScriptFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/packages/charts/classic/charts-debug.js');
- } else {
- addScriptFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/ext-all.js');
- addScriptFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/packages/charts/classic/charts.js');
- }
- addScriptFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/classic/locale/locale-' + locale.languages[locale.language].code + '.js');
+ addScriptFile('lib/extjs/ext-all.js');
+ addScriptFile('lib/extjs/classic/locale/locale-' + locale.languages[locale.language].code + '.js');
- addStyleFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/classic/theme-triton/resources/theme-triton-all.css');
- addScriptFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/classic/theme-triton/theme-triton.js');
+ addStyleFile('lib/extjs/classic/theme-triton/resources/theme-triton-all.css');
+ addScriptFile('lib/extjs/classic/theme-triton/theme-triton.js');
- addStyleFile('https://cdn.traccar.com/js/extjs/' + extjsVersion + '/packages/charts/classic/triton/resources/charts-all.css');
+ addScriptFile('lib/extjs/packages/charts/classic/charts.js');
+ addStyleFile('lib/extjs/packages/charts/classic/triton/resources/charts-all.css');
- addStyleFile('https://cdn.traccar.com/js/ol/' + olVersion + '/ol.css');
- addScriptFile('https://cdn.traccar.com/js/ol/' + olVersion + '/ol.js');
+ addStyleFile('lib/ol/ol.css');
+ addScriptFile('lib/ol/ol.js');
- addStyleFile('https://cdn.traccar.com/js/ol-layerswitcher/' + olLayerSwitcherVersion + '/ol-layerswitcher.css');
- addScriptFile('https://cdn.traccar.com/js/ol-layerswitcher/' + olLayerSwitcherVersion + '/ol-layerswitcher.js');
+ addStyleFile('lib/ol-layerswitcher/ol-layerswitcher.css');
+ addScriptFile('lib/ol-layerswitcher/ol-layerswitcher.js');
- if (debugMode) {
- addScriptFile('https://cdn.traccar.com/js/proj4js/' + proj4jsVersion + '/proj4-src.js');
- } else {
- addScriptFile('https://cdn.traccar.com/js/proj4js/' + proj4jsVersion + '/proj4.js');
- }
+ addScriptFile('lib/proj4/proj4.js');
window.Images = ['arrow', 'default', 'animal', 'bicycle', 'boat', 'bus', 'car', 'crane', 'helicopter', 'motorcycle',
'offroad', 'person', 'pickup', 'plane', 'ship', 'tractor', 'train', 'tram', 'trolleybus', 'truck', 'van', 'scooter'];