From 442e882646467bf6db9d7dd84dc0e8a5ddd527fa Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Fri, 29 Jan 2016 14:20:40 -0500 Subject: [PATCH] Cache manifest. Fixes #219. --- Makefile | 3 +++ web/index.html | 2 +- web/stratux.appcache | 52 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 web/stratux.appcache diff --git a/Makefile b/Makefile index b87482c88..dfc0862ea 100644 --- a/Makefile +++ b/Makefile @@ -62,6 +62,9 @@ www: mkdir -p /var/www/plates/js cp web/plates/js/*.js /var/www/plates/js cp web/index.html /var/www + cp web/stratux.appcache /var/www + # Mark the manifest with the git hash. + echo "# Stratux build: " `git log -n 1 --pretty=%H` >>/var/www/stratux.appcache install: cp -f gen_gdl90 /usr/bin/gen_gdl90 diff --git a/web/index.html b/web/index.html index dbbc9ea08..796d73222 100755 --- a/web/index.html +++ b/web/index.html @@ -1,5 +1,5 @@ - + diff --git a/web/stratux.appcache b/web/stratux.appcache new file mode 100644 index 000000000..e73f6b1f0 --- /dev/null +++ b/web/stratux.appcache @@ -0,0 +1,52 @@ +CACHE MANIFEST +/index.html +/maui/fonts/fontawesome-webfont.woff +/maui/js/mobile-angular-ui.gestures.min.js +/maui/js/mobile-angular-ui.min.js +/maui/js/angular-ui-router.min.js +/maui/js/mobile-angular-ui.core.min.js +/maui/js/angular.min.js +/maui/css/mobile-angular-ui-hover.min.css +/maui/css/mobile-angular-ui-desktop.min.css +/maui/css/mobile-angular-ui-base.min.css +/js/j3di-all.min.js +/js/addtohomescreen.min.js +/js/main.js +/plates/weather-help.html +/plates/settings.html +/plates/status-help.html +/plates/traffic-help.html +/plates/js/weather.js +/plates/js/traffic.js +/plates/js/status.js +/plates/js/settings.js +/plates/js/gps.js +/plates/js/towers.js +/plates/js/ahrs.js +/plates/js/logs.js +/plates/settings-help.html +/plates/logs.html +/plates/towers.html +/plates/gps.html +/plates/status.html +/plates/traffic.html +/plates/towers-help.html +/plates/gps-help.html +/plates/weather.html +/img/screen-320x460.png +/img/screen-1536x2008.png +/img/screen-1182x2208.png +/img/logo-apple3.png +/img/logo-apple2.png +/img/screen-1496x2048.png +/img/screen-1242x2148.png +/img/screen-640x1096.png +/img/screen-768x1004.png +/img/logo-android2.png +/img/screen-750x1294.png +/img/world.png +/img/logo-android3.png +/img/screen-748x1024.png +/img/screen-640x920.png +/css/addtohomescreen.css +/css/main.css