appscms-tools-theme 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. metadata +1 -3
  3. data/manifest.json +0 -17
  4. data/serviceworker.js +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30c373f22804a555b15b83aa007f3e3443d8caf312bb12bed6457948b8c2a24a
4
- data.tar.gz: d3b60bbefe39e4f37d9342d8f73b4354921369625e3853cdb4d8e67d751dea94
3
+ metadata.gz: 4c0c2b9a496f019cca62be797af3647d7d6af27b48ea009d1ff73d9cd5a6cd29
4
+ data.tar.gz: f38166d308b491d4d1a66c1f1a51ee077f3591a4e3a8fe193c0ec72934790ba2
5
5
  SHA512:
6
- metadata.gz: 609469aff38914d16ee4686d9d4218cb8f7b50973483d60f884c8efbea6340396a248de947e3987813fa86d938d7fd1142543905869d472ac69ff233ec4cab49
7
- data.tar.gz: 16b392c015fdc1d3a15d08d10f99dc8bf93599feabb2b0446bf704de1aee351c996270e6e0d307cb8cf476cebcd981bb8716b1cd625074a7a7a3890bb204654c
6
+ metadata.gz: 9df0005e584ee3345c8493a8e8eca5552c6a9b73b8ced5432d81e23936f07ea7f052954a1e20beb78c20075f046c02202ffa856138c74c0dd2bc2632e12014e4
7
+ data.tar.gz: 0b92614d3cfbdea7eb932d779b227f87d2a695b6b8e1fc3976ac20154c3fb7fb9e478f8f80d04bc522d68878a90e7e78ff44ed6f4f1d3275865cafe25c1d4397
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
@@ -162,8 +162,6 @@ files:
162
162
  - assets/support.svg
163
163
  - assets/twitter.svg
164
164
  - assets/youtube.svg
165
- - manifest.json
166
- - serviceworker.js
167
165
  homepage: https://github.com/Appscms-com/appscms-tools-theme
168
166
  licenses:
169
167
  - MIT
data/manifest.json DELETED
@@ -1,17 +0,0 @@
1
- ---
2
- ---
3
- {
4
- "short_name": "{{site.name}}",
5
- "name": "{{site.name}}",
6
- "icons": [
7
- {
8
- "src": "/assets/images/avatar.png",
9
- "type": "image/png",
10
- "sizes": "1024x1024"
11
- }
12
- ],
13
- "start_url": ".",
14
- "display": "standalone",
15
- "theme_color": "#000000",
16
- "background_color": "#ffffff"
17
- }
data/serviceworker.js DELETED
@@ -1,42 +0,0 @@
1
- const CACHE_NAME = 'v1'
2
- const urlsToCache = ['index.html']
3
-
4
- const self = this
5
-
6
- // Install SW
7
- self.addEventListener('install', (event) => {
8
- event.waitUntil(
9
- caches.open(CACHE_NAME).then((cache) => {
10
- console.log('Opened cache')
11
-
12
- return cache.addAll(urlsToCache)
13
- })
14
- )
15
- })
16
-
17
- // Listen for requests
18
- self.addEventListener('fetch', (event) => {
19
- event.respondWith(
20
- caches.match(event.request).then(() => {
21
- return fetch(event.request).catch(() => caches.match('index.html'))
22
- })
23
- )
24
- })
25
-
26
- // Activate the SW
27
- self.addEventListener('activate', (event) => {
28
- const cacheWhitelist = []
29
- cacheWhitelist.push(CACHE_NAME)
30
-
31
- event.waitUntil(
32
- caches.keys().then((cacheNames) =>
33
- Promise.all(
34
- cacheNames.map((cacheName) => {
35
- if (!cacheWhitelist.includes(cacheName)) {
36
- return caches.delete(cacheName)
37
- }
38
- })
39
- )
40
- )
41
- )
42
- })