/opt/traccar/web/release.html:
download all external references to cloudflare CDN for css and java libraries to a new folder:
sudo mkdir /opt/traccar/web/ajaxlocal
cd //opt/traccar/web/ajaxlocal
sudo wget http://cdnjs.cloudflare.com/ajax/libs/ol3/3.17.1/ol.css
sudo wget http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css
sudo wget http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css
sudo wget http://cdnjs.cloudflare.com/ajax/libs/ol3/3.17.1/ol-debug.js
get extjs 6.0.1 GPL, download via signup at:
https://www.sencha.com/legal/gpl/
copy ext-6.0.1-gpl\ext-6.0.1\build\*.* into
/opt/traccar/web/ajaxlocal/
(final structure is /opt/traccar/web/ajaxlocal/build/,,,,
download fontawesome from fontawesome.io version 4.6.3 (or whatever version is called by script - check the debug console of your browser for network resources it tries to load.
extract font-awesome css and font-awesome.min.css into the new /ajaxlocal folder
make a new folder
sudo mkdir /opt/traccar/web/fonts/
extract font-awesome/fonts into /opt/traccar/web/fonts/
cd /opt/traccar/web/fonts
sudo cp /home/pi/Downloads/font-awesome-4.6.3/fonts/* ./
edit /opt/traccar/web/locale.js to point to your ajaxlocal/build/locale-en.js as downloaded above so the line looks like
Ext.Loader.loadScript('ajaxlocal/build/classic/locale/locale-' + Locale.languages[Locale.language].code + '.js);
No comments:
Post a Comment