summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2020-01-29 11:31:20 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2020-01-29 11:31:20 +0100
commita48307eaad7a495ee189f9acb751881e920155ba (patch)
treefb455a280d47df7cb4a0cdbc9f5f4d5269041507
parent7583b4bf00871c80aaeb8051889b70fd798c0be1 (diff)
Optimizations
-rw-r--r--404.html2
-rw-r--r--changelog.1.1.html2
-rw-r--r--changelog.1.2.html2
-rw-r--r--changelog.beta.html2
-rw-r--r--changelog.html2
-rw-r--r--changelog.old.html2
-rw-r--r--downloads.html2
-rw-r--r--index.html2
-rwxr-xr-xjavascripts/main.js8
-rw-r--r--manifest.json13
-rw-r--r--sw.js70
11 files changed, 97 insertions, 10 deletions
diff --git a/404.html b/404.html
index b816ff03..c23a2d7c 100644
--- a/404.html
+++ b/404.html
@@ -8,7 +8,7 @@
<meta name="keywords" content="qtpass, pass, gpg, git, password, store, manager, security">
<link rel="stylesheet" href="/stylesheets/styles.css">
<link rel="stylesheet" href="/stylesheets/pygment_trac.css">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
diff --git a/changelog.1.1.html b/changelog.1.1.html
index d604748c..8376dafc 100644
--- a/changelog.1.1.html
+++ b/changelog.1.1.html
@@ -8,7 +8,7 @@
<meta name="keywords" content="qtpass, pass, gpg, git, password, store, manager, security">
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<link rel="canonical" href="https://qtpass.org/changelog.1.1">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
diff --git a/changelog.1.2.html b/changelog.1.2.html
index d1b09df4..4b7cd228 100644
--- a/changelog.1.2.html
+++ b/changelog.1.2.html
@@ -9,7 +9,7 @@
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<link rel="canonical" href="https://qtpass.org/changelog">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
diff --git a/changelog.beta.html b/changelog.beta.html
index d34a8040..df4f86dd 100644
--- a/changelog.beta.html
+++ b/changelog.beta.html
@@ -8,7 +8,7 @@
<meta name="keywords" content="qtpass, pass, gpg, git, password, store, manager, security">
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<link rel="canonical" href="https://qtpass.org/changelog.beta">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
diff --git a/changelog.html b/changelog.html
index c043fca8..574ab357 100644
--- a/changelog.html
+++ b/changelog.html
@@ -9,7 +9,7 @@
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<link rel="canonical" href="https://qtpass.org/changelog">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
diff --git a/changelog.old.html b/changelog.old.html
index 9c20e7c8..8e48711c 100644
--- a/changelog.old.html
+++ b/changelog.old.html
@@ -9,7 +9,7 @@
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<link rel="canonical" href="https://qtpass.org/changelog.old">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
diff --git a/downloads.html b/downloads.html
index bb5e0cc7..6b075a8e 100644
--- a/downloads.html
+++ b/downloads.html
@@ -8,7 +8,7 @@
<meta name="keywords" content="qtpass, pass, gpg, git, password, store, manager, security">
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<link rel="canonical" href="https://qtpass.org/downloads">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
diff --git a/index.html b/index.html
index 59baeb04..164e81f5 100644
--- a/index.html
+++ b/index.html
@@ -9,7 +9,7 @@
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<link rel="canonical" href="https://qtpass.org">
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
diff --git a/javascripts/main.js b/javascripts/main.js
index c095730a..915c0394 100755
--- a/javascripts/main.js
+++ b/javascripts/main.js
@@ -1,2 +1,8 @@
window.onload=init;function init(){var config=document.getElementById('config');var qtpass=document.getElementById('qtpass');qtpass.onclick=function(){if(config.classList.contains('hidden')){config.classList.remove('hidden');}else{config.classList.add('hidden');}}
-config.onclick=function(){config.classList.add('hidden');}} \ No newline at end of file
+config.onclick=function(){config.classList.add('hidden');}}
+if('serviceWorker' in navigator) {
+ navigator.serviceWorker.register('/sw.js')
+ .then(function() {
+ console.log('Service Worker Registered');
+ });
+} \ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 3c8d97da..d38f291d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,5 +1,10 @@
{
- "name": "App",
+ "name": "QtPass GUI for pass, the standard UNIX password manager",
+ "short_name": "QtPass",
+ "start_url": "/index.html",
+ "display": "standalone",
+ "background_color": "#39c",
+ "theme_color": "#fff",
"icons": [
{
"src": "\/images\/android-icon-36x36.png",
@@ -36,6 +41,12 @@
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
+ },
+ {
+ "src": "\/images\/logo.png",
+ "sizes": "1024x1024",
+ "type": "image\/png",
+ "density": "4.0"
}
]
}
diff --git a/sw.js b/sw.js
new file mode 100644
index 00000000..53d054e4
--- /dev/null
+++ b/sw.js
@@ -0,0 +1,70 @@
+const cacheName = 'qtpass::v1::static';
+
+self.addEventListener('install', e => {
+ e.waitUntil(
+ caches.open(cacheName).then(cache => {
+ return cache.addAll([
+ '/',
+ '/404.html',
+ '/changelog.1.1.html',
+ '/changelog.1.2.html',
+ '/changelog.beta.html',
+ '/changelog.html',
+ '/changelog.old.html',
+ '/downloads.html',
+ '/index.html',
+ '/stylesheets/pygment_trac.css',
+ '/stylesheets/styles.css',
+ '/javascripts/main.js',
+ '/javascripts/scale.fix.js',
+ '/docs/',
+ '/images/android-icon-144x144.png',
+ '/images/apple-icon-120x120.png',
+ '/images/apple-icon-76x76.png',
+ '/images/favicon-32x32.png',
+ '/images/ms-icon-144x144.png',
+ '/images/win10.png',
+ '/images/android-icon-192x192.png',
+ '/images/apple-icon-144x144.png',
+ '/images/apple-icon-precomposed.png',
+ '/images/favicon-96x96.png',
+ '/images/ms-icon-150x150.png',
+ '/images/windows.png',
+ '/images/android-icon-36x36.png',
+ '/images/apple-icon-152x152.png',
+ '/images/apple-icon.png',
+ '/images/freebsd.png',
+ '/images/ms-icon-310x310.png',
+ '/images/android-icon-48x48.png',
+ '/images/apple-icon-180x180.png',
+ '/images/bg_hr.png',
+ '/images/icon_download.png',
+ '/images/ms-icon-70x70.png',
+ '/images/android-icon-72x72.png',
+ '/images/apple-icon-57x57.png',
+ '/images/blacktocat.png',
+ '/images/linux.png',
+ '/images/og.png',
+ '/images/android-icon-96x96.png',
+ '/images/apple-icon-60x60.png',
+ '/images/config.png',
+ '/images/logo.png',
+ '/images/qtpass.png',
+ '/images/apple-icon-114x114.png',
+ '/images/apple-icon-72x72.png',
+ '/images/favicon-16x16.png',
+ '/images/macos.png',
+ '/images/sprite_download.png'
+ ]).then(() => self.skipWaiting());
+ })
+ );
+});
+self.addEventListener('fetch', event => {
+ event.respondWith(
+ caches.open(cacheName).then(cache => {
+ return cache.match(event.request).then(res => {
+ return res || fetch(event.request)
+ });
+ })
+ );
+}); \ No newline at end of file