Browse Source

remove appcache stuff

pull/10/head
Aaron Parecki 6 years ago
parent
commit
8008d3236c
No known key found for this signature in database GPG Key ID: 276C2817346D6056
4 changed files with 1 additions and 40 deletions
  1. +0
    -9
      controllers/controllers.php
  2. +0
    -14
      views/appcache.php
  3. +1
    -7
      views/layout.php
  4. +0
    -10
      views/new-post.php

+ 0
- 9
controllers/controllers.php View File

@ -366,15 +366,6 @@ $app->get('/map.png', function() use($app) {
$app->response()->body($img); $app->response()->body($img);
}); });
/*
$app->get('/teacup.appcache', function() use($app) {
$content = partial('appcache');
$app->response()['Content-type'] = 'text/cache-manifest';
$app->response()->body($content);
});
*/
$app->get('/:domain', function($domain) use($app) { $app->get('/:domain', function($domain) use($app) {
$params = $app->request()->params(); $params = $app->request()->params();

+ 0
- 14
views/appcache.php View File

@ -1,14 +0,0 @@
CACHE MANIFEST
/bootstrap/css/bootstrap.min.css
/bootstrap/css/bootstrap-theme.css
/bootstrap/css/bootstrap-theme.css.map
/css/font-awesome/css/font-awesome.min.css
/css/style.css
/js/jquery-1.7.1.min.js
/images/teacup-logo-144.png
/images/spinner.gif
NETWORK:
*
# v31

+ 1
- 7
views/layout.php View File

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="en"<?= property_exists($this, 'enable_appcache') ? ' manifest="teacup.appcache"' : '' ?>>
<html lang="en">
<head> <head>
<title><?= $this->title ?></title> <title><?= $this->title ?></title>
<meta charset="utf-8"> <meta charset="utf-8">
@ -65,11 +65,5 @@
</div> </div>
<div id="new_version_available">
<div class="inner">
There is a new version available! Refresh to load the new version.
</div>
</div>
</body> </body>
</html> </html>

+ 0
- 10
views/new-post.php View File

@ -296,16 +296,6 @@ $(function(){
} }
}); });
function onUpdateReady() {
// Show the notice that says there is a new version of the app
$("#new_version_available").show();
}
window.applicationCache.addEventListener('updateready', onUpdateReady);
if(window.applicationCache.status === window.applicationCache.UPDATEREADY) {
onUpdateReady();
}
}); });
</script> </script>

Loading…
Cancel
Save